Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > Back to PHP and have some questions
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 15th November 16:29
maflatoun
External User
 
Posts: 1
Default Back to PHP and have some questions



Hi all,

I've been doing ASP.NET C# for 4 years now and that's around the same
# of years I've been away from PHP. But now I'm looking at this PHP
position that looks really interesting to me. However, I have some
unresolved questions setting up my own test enviroment having bunch of
sites relative to http://localhost with each site having it's own
subdirectories and an include file (ex. Site Navigation with images
that's accessible from any subdirectories).

Ex.
http://localhost/site1
http://localhost/site1/products
http://localhost/site1/images
http://loclahost/site1/myinclude/inc.php

http://localhost/site2
http://localhost/site2/products
http://localhost/site2/images
http://loclahost/site2/myinclude/inc.php

Now let's say my inc.php file has bunch of images in it stored in /
site1/images folder. How do I setup php / apache so that I can
reference my images from the inc.php file from any folder/subfolder.
For example if I use /images/image.jpg it would fail since it would
take me to the root of localhost/images which is wrong. How can I have
it so that it goes to site1?? Also, in IIS you can setup virtual
folders. How do you setup virtual sites http://localhost/site1?
http://localhost/site2?


My main concern is only on my local computer. Because on production
server referencing /images would resolve my issue.

Thank you
M.
  Reply With Quote


 


2 15th November 16:29
cem
External User
 
Posts: 1
Default Back to PHP and have some questions



Maybe you want to take a look at the rewrite module for apache.

Cheers,

Cem
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666