Totally newb question

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
kostisben
Forum Newbie
Posts: 2
Joined: Tue Nov 04, 2008 4:20 pm

Totally newb question

Post by kostisben »

Hi all,

I just decided to to start learning php so i installed apache2 php and mysql on my windows machine following a tutorial.
If i create a new .php page, put it on my desktop it wont work. The only way i've found is to place it in my apache2>htdocs folder and then in the address bar wright http://localhost:8080/php_file_name.
How could i do it work directly from the desktop.
Ok, i guess i need a tutorial on something but i don't know what it is.

any help would be much appreciated

k.
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Re: Totally newb question

Post by infolock »

You can make this possible (god only knows why one would do this, but whatever) by editing your httpd.conf file and changing the htdocs path to point to your desktop.

It's RECOMMENDED to keep it in the original folder, not only to familiarize yourself with how Apache works as an installed server on windows (with getting used to the paths, and knowing what htdocs actually is), but also for keeping all your code in a cerntralized location instead of jumbled up with all the other garbage that sits on one's desktop...
kostisben
Forum Newbie
Posts: 2
Joined: Tue Nov 04, 2008 4:20 pm

Re: Totally newb question

Post by kostisben »

Thank you infolock. I guess i need to learn more about apache2.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Totally newb question

Post by onion2k »

If you want to be able to just double click the file to edit it, just create a shortcut to it on your desktop.
Post Reply