just-a-noob Posted September 23, 2009 Share Posted September 23, 2009 Please could someone help me please. I am running Windows XP and i have downloaded and installed EasyPHP5.3.0 So i made a simple html page with the following php: <? php print("It Worked!");?> I then saved the file as variables.php and then saved it to the www folder within EasyPHP. But when i open Firefox and print http://127.0.0.1/variables.php i only get Object not found? The same happens if i type http://localhost/variables.php Could someone tell me what i am doing wrong please. Big thanks for any and all help Quote Link to comment Share on other sites More sharing options...
Maq Posted September 23, 2009 Share Posted September 23, 2009 Hmm weird error, I would've expected: Parse error: syntax error, unexpected T_PRINT Remove the space between and php. Then tell me what the output is. Quote Link to comment Share on other sites More sharing options...
just-a-noob Posted September 23, 2009 Author Share Posted September 23, 2009 Have done as you said but it still didn't work but when i put the pointer onto the www folder it showed that the folder contained a file called variables.php.txt? And when i typed http://127.0.0.1/variables.php.txt into the address bar and the source code appeared? Quote Link to comment Share on other sites More sharing options...
corbin Posted September 23, 2009 Share Posted September 23, 2009 What editor are you using? If you put the filename as "name.php" it will probably save it as .php and not .php.txt Quote Link to comment Share on other sites More sharing options...
just-a-noob Posted September 23, 2009 Author Share Posted September 23, 2009 Hi corbin, I finally managed to get it right! I did save it as variables.php but must have left out the option "all files" Thanks for the replies both Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.