PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Relative path in require_once
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Relative path in require_once

Réponse
 
LinkBack Outils de la discussion
Vieux 22/01/2008, 07h29   #1
Zeba
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Relative path in require_once

Hi !

I have been given a php codebase. For now I have installed php plugin
into my eclipse so that I can work with my java files at the same
time.

My problem is this:
All the php files in the codebase are given in the following pattern:

require_once ('cg_ajax/BaseAjax.php');

Eclipse gives me a warning that the include filename doesn't exist. If
I change it to

require_once ('BaseAjax.php');

the warning goes. How can I correct this ? Do I have to make some
change to my php.ini file, or to the eclipse settings, or some other
config changes ( since I believe the codebase is working
elsewhere ) The warning is there all over so i can't change the
path given in the require !!


Pls !!!!!
Thanks !
Zeba

  Réponse avec citation
Vieux 22/01/2008, 09h08   #2
C. (http://symcbean.blogspot.com/)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Relative path in require_once

On 22 Jan, 07:29, Zeba <coolz...@gmail.com> wrote:
> Hi !
>
> I have been given a php codebase. For now I have installed php plugin
> into my eclipse so that I can work with my java files at the same
> time.
>
> My problem is this:
> All the php files in the codebase are given in the following pattern:
>
> require_once ('cg_ajax/BaseAjax.php');
>
> Eclipse gives me a warning that the include filename doesn't exist. If
> I change it to
>
> require_once ('BaseAjax.php');
>
> the warning goes. How can I correct this ? Do I have to make some
> change to my php.ini file, or to the eclipse settings, or some other
> config changes ( since I believe the codebase is working
> elsewhere ) The warning is there all over so i can't change the
> path given in the require !!


Change include_path in php.ini to point to the directory containing
cg_ajax (or add it)

C.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h16.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10782 seconds with 10 queries