Using Virtual Directories with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Using Virtual Directories with PHP

Post by Chris Corbyn »

Hi,

I'm using php 4.3.6 with microsoft IIS o my PC.

I created a virtual directory in IIS and tried to access it in my PHP script but I got errors about the driectory not existing.

I could however, use this directory and link to files in it etc with standard html.

Does anyone know why PHP won't read the virtual directory?

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

cause it technically doesn't exist... on disk..?
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post by dave420 »

Because you're using IIS, which is not great? :-P


*cough*APACHE*cough*
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Ok so is there any way I can get php to just read files on disk even if they're not in wwwroot?
I couldn't get apache to work and the only things I host from my PC are files I share with my brother so I was quite happy just to stick with IIS since it usually does what it should. I think I just didn't install apache correctly (or come to think of it I may not have uninstalled IIS first) so I should probably give it another go.

Thanks
dave420
Forum Contributor
Posts: 106
Joined: Tue Feb 17, 2004 8:03 am

Post by dave420 »

I'd seriously recommend installing Apache, as IIS (even though it does an admirable job) doesn't quite cut the mustard when using PHP. Apache is more complicated to get set up, but you only need to edit one file to get it working. Seeing as PHP has extra functionality when running under Apache, if you really want to get to grips with the language, Apache is the only way to do it.

I'm sure you can get lots of help on these forums for installing Apache on windows. :)

good luck!
Post Reply