Jump to content

[SOLVED] MyphpAdmin works but not test.php


phpgreenee

Recommended Posts

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

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.

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.