introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Plusieurs sites



Posted by: Joseph72
March 14, 2008 01:32PM
Bonjour

Voilà, j'ai plusieurs sites avec easyphp
www/site1 www/site2 www/site3

Je voudrais utiliser les chemins absolus pour les lien, images, js, etc...
Par exemple
img src="/images/lapin.jpg
dans site 1, devrait faire référence à www/site1/images/lapin.jpg

Bien sûr par défaut / ramène à www et non site1. Donc ma question est, est-ce qu'il possible de gérer ce cas ?
Options: ReplyQuote
Posted by: phpcore
December 16, 2008 02:08PM
src="/images/lapin.jpg"

devient:

src="[<] echo $_SERVER['HTTP_HOST'];?>/site1/images/lapin.jpg"
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.