sir i am using xampp and want to know how to run php file except saving them in htdocs(root) folder of xampp.as i have used JSP and know how to put our jsp files anywhere and make them run by linking with a file (i.e not to save in root always).
Please Reply

yes, you can relocate it by editing the DocumentRoot setting in XAMPP\apache\conf\httpd.conf.
for example -
It should currently be: C:/xampp/htdocs

Change it to: C:/projects/sample etc

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.