Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3224

how to run php files not in www folder? (no replies)

$
0
0
Windows 10
WampServer Version 3.0.6 64bit
Apache Version 2.4.23
PHP Version 5.6.25
MySQL Version 5.7.14

So I succesfully ran a php file by going to my web browser and typing in localhost/file.php
while the file.php was in the www folder of wampserver

the file is a simple connection to my a local db and it succeeds.

However I need the file.php to be in my project folder in visual studio and not in the www folder. do I need to use something other than localhost?
or do I need to use a different server name than localhost even though file.php and the server are both on the same machine?

Viewing all articles
Browse latest Browse all 3224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>