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.
Totally newb question
Moderator: General Moderators
Re: Totally newb question
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...
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...
Re: Totally newb question
Thank you infolock. I guess i need to learn more about apache2.
Re: Totally newb question
If you want to be able to just double click the file to edit it, just create a shortcut to it on your desktop.