how to run php files not in www folder?
Posted by: tomixx1199 (---.hsd1.mi.comcast.net)
Date: October 12, 2016 12:40AM

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?



Edited 1 time(s). Last edit at 10/12/2016 12:44AM by tomixx1199.

Options: ReplyQuote
Re: how to run php files not in www folder?
Posted by: RiggsFolly (Moderator)
Date: October 12, 2016 10:24AM

See this document [forum.wampserver.com]

And create a Virtual Host pointing to any folder

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.