Jump to content

[SOLVED] New php files won't interpret locally


tony.s

Recommended Posts

Hello, I am on an Asus Eee PC netbook running Windows XP, using XAMP.  I am finding that php files that are created on this computer are not interpreted by the browser, regardless of how they are created. 

 

I am able to run the XAMP example PHPs fine, Joomla runs fine and PHP files that I created on other machines all run fine.  I tried using Windows Explorer to make an exact copy of a PHP script that runs and the code in the new file will not interpret. When I do a view source the PHP code shows. 

 

If I use an editor – either Notepad, or Notepad++, and copy and paste the text in, the same thing happens and I've tried encoding in both ANSI and UTF-8.  Even a simple script with only the PHPINFO() function will not run.  :facewall: 

tried WAMP ?

 

Hello, I am on an Asus Eee PC netbook running Windows XP, using XAMP.  I am finding that php files that are created on this computer are not interpreted by the browser, regardless of how they are created. 

 

I am able to run the XAMP example PHPs fine, Joomla runs fine and PHP files that I created on other machines all run fine.  I tried using Windows Explorer to make an exact copy of a PHP script that runs and the code in the new file will not interpret. When I do a view source the PHP code shows. 

 

If I use an editor – either Notepad, or Notepad++, and copy and paste the text in, the same thing happens and I've tried encoding in both ANSI and UTF-8.  Even a simple script with only the PHPINFO() function will not run.  :facewall:

Hello, I am on an Asus Eee PC netbook running Windows XP, using XAMP.  I am finding that php files that are created on this computer are not interpreted by the browser, regardless of how they are created. 

 

I am able to run the XAMP example PHPs fine, Joomla runs fine and PHP files that I created on other machines all run fine.  I tried using Windows Explorer to make an exact copy of a PHP script that runs and the code in the new file will not interpret. When I do a view source the PHP code shows. 

 

If I use an editor – either Notepad, or Notepad++, and copy and paste the text in, the same thing happens and I've tried encoding in both ANSI and UTF-8.  Even a simple script with only the PHPINFO() function will not run.  :facewall:

Xampp is the best,

 

well make sure php short tags are enable in your php configuration file

first try simple code

<?php
echo "This is test script";
?>

Archived

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

×
×
  • Create New...

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.