gautamphp Posted September 10, 2007 Share Posted September 10, 2007 Hi, I have installed XAMP on my system but when i have codding in editplus editor or note pad and i save it as:- file.php and explore in internet explorer or mosila it gives an error. So, plz help me and tell me what should i do for it? Thanks and regards Jitendra Quote Link to comment https://forums.phpfreaks.com/topic/68689-my-php-programme-is-not-running/ Share on other sites More sharing options...
jagat21 Posted September 10, 2007 Share Posted September 10, 2007 can u mention what error u r getting while executing the script ? Quote Link to comment https://forums.phpfreaks.com/topic/68689-my-php-programme-is-not-running/#findComment-345254 Share on other sites More sharing options...
MadTechie Posted September 10, 2007 Share Posted September 10, 2007 try this code (in its own file) <?php phpinfo(); ?> if this fails please refer to the XAMP Manual Quote Link to comment https://forums.phpfreaks.com/topic/68689-my-php-programme-is-not-running/#findComment-345255 Share on other sites More sharing options...
liam1412 Posted September 10, 2007 Share Posted September 10, 2007 you can't actually explore a php file in the same way you can an html file. In the xamp istallation folder there should be a folder in there called www You need to place everything you want to be processed by php in this folder You then type http://localhost/test.php in your browser (localhost refers to the www folder.) This shoudl now be working Quote Link to comment https://forums.phpfreaks.com/topic/68689-my-php-programme-is-not-running/#findComment-345260 Share on other sites More sharing options...
xyn Posted September 10, 2007 Share Posted September 10, 2007 unless you redefine your apache, httpd.conf and re-assign the root path. then again; MadTechie i think is trying to get the phpinfo() to display which will show where the problem would be. Quote Link to comment https://forums.phpfreaks.com/topic/68689-my-php-programme-is-not-running/#findComment-345265 Share on other sites More sharing options...
MadTechie Posted September 10, 2007 Share Posted September 10, 2007 Kinda, sorry got the quick message, was on the phone at the same time.. basically we need more info.. mainly what the error is.. it could be anything from IE is crashing or not finding the site to a php error.. now by creating a simple script we have a test base.. also it will give us more info if the script fails then i can only assume theirs a problem with the XAMP side or thing.. if it works then we still need the error to workout the problem.. the most common problem i find the the use of short tags ie <? should be <?php Quote Link to comment https://forums.phpfreaks.com/topic/68689-my-php-programme-is-not-running/#findComment-345267 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.