tony.s Posted August 6, 2009 Share Posted August 6, 2009 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. Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/ Share on other sites More sharing options...
Maknis Posted August 6, 2009 Share Posted August 6, 2009 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. Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-891917 Share on other sites More sharing options...
PFMaBiSmAd Posted August 6, 2009 Share Posted August 6, 2009 Post a script you are trying to use. Show the opening php tag that is in the file. Also, show the exact URL that you are using in the browser. Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-891918 Share on other sites More sharing options...
watsmyname Posted August 6, 2009 Share Posted August 6, 2009 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. 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"; ?> Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-891920 Share on other sites More sharing options...
tony.s Posted August 6, 2009 Author Share Posted August 6, 2009 Yes, I used to use WAMPSERVER and I love it, but as I was getting familiar with Joomla, the tutorials that I was following all suggested XAMP. tried WAMP ? Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-891922 Share on other sites More sharing options...
tony.s Posted August 6, 2009 Author Share Posted August 6, 2009 <?php echo "This is test script"; ?> This ran!! Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-891924 Share on other sites More sharing options...
watsmyname Posted August 6, 2009 Share Posted August 6, 2009 <?php echo "This is test script"; ?> This ran!! Check php short tags might be disabled in your php.ini file that's why php engine is not parsing the code and displaying it like a normal code. Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-891926 Share on other sites More sharing options...
tony.s Posted August 7, 2009 Author Share Posted August 7, 2009 Hi, I just wanted to thank everyone for their help...I don't know what I was doing wrong before, but it is working now. THANK YOU! Link to comment https://forums.phpfreaks.com/topic/169050-solved-new-php-files-wont-interpret-locally/#findComment-892645 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.