Jump to content


This topic is now archived and is closed to further replies.


php code not executed

Recommended Posts

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?


Share this post

Link to post
Share on other sites
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?
$h = fopen("new.php","wb")
fwrite($h,"<?php\r\n phpinfo()\r\n ?>")
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.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.