Now let see were we put our script file
Open #this_pc ->c->xampp->htdocs
Or
C:\xampp\htdocs
folder is your #server_root.
When you open this folder you see lot of files including #index.php
This #index.php means when you type http://loclalhost on your browser it is the file that loaded.
Next inside #htdocs folder we oper new folder to store our projects or codes
And now we make it #xampp #serverroot #Document\root
now
➊now create new folder inside htdocs folder call it #myweb
➋ next double click on xampp then click on #config in the first line then choose #Apache(httpd.conf) from the list
When it opens on notpad click on
Ctrl+F then type DocumentRoot
Then click on find next
Then change
DocumentRoot "/xampp/htdocs"
Into
DocumentRoot "/xampp/htdocs/myweb"
Then Ctrl+s and close notepad
Then restart apache on xampp
now go to your browser and type #http://localhost and hit enter
we have changed our document root.
Open #this_pc ->c->xampp->htdocs
Or
C:\xampp\htdocs
folder is your #server_root.
When you open this folder you see lot of files including #index.php
This #index.php means when you type http://loclalhost on your browser it is the file that loaded.
Next inside #htdocs folder we oper new folder to store our projects or codes
And now we make it #xampp #serverroot #Document\root
now
➊now create new folder inside htdocs folder call it #myweb
➋ next double click on xampp then click on #config in the first line then choose #Apache(httpd.conf) from the list
When it opens on notpad click on
Ctrl+F then type DocumentRoot
Then click on find next
Then change
DocumentRoot "/xampp/htdocs"
Into
DocumentRoot "/xampp/htdocs/myweb"
Then Ctrl+s and close notepad
Then restart apache on xampp
now go to your browser and type #http://localhost and hit enter
we have changed our document root.