I know that my apache server is working. If I browse my script.php file locally through my browser, my script.php file which is in my pc is run and it writes a test.htm file locally. That is the behaviour I expect. Nonetheless, this file is not created when I run this flash sentence: senderLoad.sendAndLoad("script.php",_root.receiveLoad);
On one hand, I have checked that the function receiveLoad.onLoad is actually called. Moreover, if I do something like echo "&var=1" in the script.php file, actually, I can check that this value is being passed correctly to flash. However, the script.php file is not writing like it should for writing the test.htm file. The php code is this:
Code: Select all
<?php
$fp = fopen("test.htm", "w");
ob_start();
echo "&var1=2&";
echo "<html><head><title>The text has been written</title></head><body>Hello</body></html>";
$html = ob_get_contents();
ob_end_clean();
fwrite($fp, $html); fclose($fp);
?>
Thanks a lot.