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

Config Apache ou PHP



Posted by: mooldoo
March 28, 2010 06:31AM
Voilà,

Ma config: EasyPHP
# Apache/2.2.14 (Win32) PHP/5.3.2
# Version du client MySQL: mysqlnd 5.0.7-dev

J'ai voulu placer toutes mes bibliothèques dans un répertoire c:\...\mylibs\
J'ai créé un chemin virtuel: [localhost]

Quand j'utilise le chemin virtuel "[localhost]; dans la barre d'adresse du navigateur, j'accède à mes bibliothèques de fonctions sans pb.

Quand j'utilise le chemin virtuel dans ma page.php située dans un autre répertoire virtuel via require_once("/libs/..."), j'ai un "failed to open stream: No such file or directory".

En fouillant la toile, j'ai trouvé une solution intermédiaire et j'ai changé dans le php.ini la valeur de allow_url_include (initialement à Off)
allow_url_include=On

Du coup, require_once("[localhost];) me trouve le fichier (mais toujours pas require_once("/libs"))
Mais du coup, une autre erreur apparait :
Undefined index: HTTP_USER_AGENT

Quelqu'un a-t-il une idée ? Est-ce un pb connu,y a t il une solution ?
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
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.