phpgreenee Posted December 22, 2006 Share Posted December 22, 2006 Hi folks - I am TOTALLY green on PHP.After trying many things to get PHP working, I eventually succumbed to downloading and installing WAMP.Loaded onto WinXP (x64)Now I have managed to get MyPHPAdmin working and I have also created a MySQL database - Great stuff!I though that perhaps I would not create the old "hello world" test file. (Called test.php)However, when I double click on the file - Nothing happens?It seems that .php files are not associated to any application?I have tried "localhost/test.php" but still no luck. Must I associate .php files to an app - if so - how (Since PHP is not an app listed in the options.)This brings me to another question - My test PC is not connected to the internet. EVERY time that I click a button to do something in MyPHPAdmin, I get a "Work Offline" dialogue box pop up. Is there a way to turn the darned thing off? Link to comment https://forums.phpfreaks.com/topic/31559-solved-myphpadmin-works-but-not-testphp/ Share on other sites More sharing options...
trq Posted December 22, 2006 Share Posted December 22, 2006 You must place your files within the web doc root. Which should be something like htdocs. As for associating php with an app, you'll want to associate it with a text editor like notepad or something. You can't simply double click a php file to have it interpreted. You must view it through a browser using eg; http;//localhost/test.php.As for the work offline thing, Ive no idea. Haven't used windows in years. Just look through IE's preferences and set it to default offline. Link to comment https://forums.phpfreaks.com/topic/31559-solved-myphpadmin-works-but-not-testphp/#findComment-146225 Share on other sites More sharing options...
phpgreenee Posted December 22, 2006 Author Share Posted December 22, 2006 Thanks ThorpeIt seems that I had the test file in the wrong folder.I had create htdocs in the apache folder, but WAMP does not work like that . I needed the "www" folder instead. Link to comment https://forums.phpfreaks.com/topic/31559-solved-myphpadmin-works-but-not-testphp/#findComment-146235 Share on other sites More sharing options...
trq Posted December 22, 2006 Share Posted December 22, 2006 yeah... anything windows has gotta be just that bit different. Link to comment https://forums.phpfreaks.com/topic/31559-solved-myphpadmin-works-but-not-testphp/#findComment-146238 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.