PHP Classes

File: tests/test.mime-stub.php

Recommend this page to a friend!
  Classes of Till Wehowski   MIME Stub   tests/test.mime-stub.php   Download  
File: tests/test.mime-stub.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MIME Stub
Generate PHP script that can self-execute the code
Author: By
Last change: Update of tests/test.mime-stub.php
Date: 1 year ago
Size: 1,211 bytes


Class file image Download
= \webfan\MimeStubAPC::vm();

// echo print_r($vm, true);

$newFile = __DIR__. DIRECTORY_SEPARATOR . 'test-my-install-index.php';

$a = <<<PHPE
echo '<br />TEST-modified.';

$vm->get_file($vm->document, '$HOME/index.php', 'stub index.php')

$fcont = <<<PHP
Content-Type: image/x-icon
Content-Disposition: httpd ;filename="\$HOME/\$WEB/images/apc.ico";name="\$WEB /images/apc.ico"

$fcont.= file_get_contents('');
$attachPart = $vm->get_file($vm->document, '$__FILE__/', 'archive');
$attachPart->append($fcont); // test-my-install-index.php?web=/images/apc.ico

$fcont = <<<PHP
Content-Type: application/x-httpd-php;charset=utf-8
Content-Disposition: httpd ;filename="\$HOME/\$WEBtest.php";name="\$WEB test.php"

\$test = new \webfan\InstallShield\apc\Test();


$attachPart->append($fcont); // test-my-install-index.php?web=test.php


$vm->location = $newFile; // this saves the stub-php-file to $newFile

//Test the new stub and call/run the $newFile, should be like calling the file in the browser!
require $newFile;