Jump to content


php code not executed

  • Please log in to reply
1 reply to this topic

#1 Godard

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 23 May 2006 - 12:45 PM

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?


#2 Kris

  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

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?
$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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users