php code is not executed when the file is created with a script on the server, but runs if the same file is uploaded.
I create a file xxx.php wich contains php code on the server. When I try to execute the created file it shows only the html code and cannot cope withe the line <?php 'include('filename.php') ?> It simply cannot find the file 'filename.php'. When I download ths file xxx.php and upload it to the server: it runs normally and it can find the included file.
Anyone famliar whith this phenomena?
php code not executed
1 reply to this topic
Posted 23 May 2006 - 01:57 PM
Maybe you could post up some code? I run a test with the following code and everything appears to work fine, is this how you're doing it?
<?php $h = fopen("new.php","wb") fwrite($h,"<?php\r\n phpinfo()\r\n ?>") fclose($h) include "new.php" ?>Please Note: I have not included the semi-colons on the end of the the functions, there is a forum bug that prevents this.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users