Till today I had to put all my projects in the same folder as I didn't know how the server would find them otherwise. Obviously, it is easier to keep each project in its own folder, and on the usb stick and not on the hard disk in case it dies on me.
A question on a Google group taught me how to do it.
Here is my summary:
1. I opened the file C:\WINDOWS\system32\drivers\et
127.0.0.1 localhost
to
127.0.0.1 localhost calendar
2. I opened the file ...\xampp\apache\conf\httpd.co
NameVirtualHost *:80
DocumentRoot "E:\programming\php programs\dx"
ServerName calendar
3. I copied all the files in my dx project to the folder
E:\programming\php programs\dx.
4. I restarted apache.
Vuaw! The file was found and did its job as when it was in its original folder. In short: it worked!
No comments:
Post a Comment