Different location for php files?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Different location for php files?

Postby carlhussey » 19. April 2012 17:49


Here is my situation. I am able to run the server from a flash drive as intended but the computer I'm running it on doesn't allow media (flash drives) to be written to. So I'm not able to edit and make changes to my php files because i cant save them back on the flash drive.

Is there any way to have any php file ran from the computer pass through the server? For example if i had a folder on the desktop, i could have all my php files in there and they would be editable etc. I just would need to get those to run through the php server.

Is something like this possible?
Posts: 1
Joined: 19. April 2012 17:45
Operating System: XP

Re: Different location for php files?

Postby Altrea » 19. April 2012 20:33

Hi carlhussey,

well, there are some possibilities to redefine the DocumentRoot or folder where files where searched by apache.
But does this makes sense to have a portable webserver stack on flash drive and script files on local computer?

btw: loading sourcefiles from the desktop is not recommend because this folder includes whitespaces and maybe specialchars. You should (if you really want to do this) choose a folder without such chars, like C:\Web or something like that.

best wishes,
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
AF Moderator
Posts: 8241
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests