include, relative path



Hi everybody,

I'm having a stupid problem with the include command.
I looked around and I found some solutions but, I don't know why, they
don't work at all.

Briefly, this is the structure of my website:

mysite/libraries/db_details.php
mysite/registration/check.php

I need to connect to the database from the script "check.php", and the
details of the database are in "db_details.php", of course... ;-)

so, I have to include "db_details.php" from "check.php" script...

I'm under linux and I've tried so many different solutions without
success, maybe because of the PHP version (5.2.3)... and some
solutions I found were a bit old (2002, 2003) and so I thougth they
could not to work any more.

Here some of them,

ini_set("include_path",".:/libraries");

set_include_path('mysite/libraries/');

include('/..//libraries/db_details.php');

include("../registration/db_details.php");

include "db_details.php";

I'm fed up with that...

any help would very appreciated!!!

Thanks in advance

PS: I don't want to change php.ini settings because I couldn't do it
on my hosting server...
.



Relevant Pages

  • Re: Monitoring and Alerts
    ... settings network configuration, firewall configuration, and secure website ... Type the following command to re-register the WMI DLLs: ... |> Relay settings for Exchange SMTP Virtual Server: ... | we pursue the performance alerts issue further. ...
    (microsoft.public.windows.server.sbs)
  • Re: Antwort: Re: high paging and slow DB2-database. Please contro l my configur ation
    ... Updating environment settings for a partitioned DB2 ... installation ... parameters, enter the following command: ...
    (AIX-L)
  • Re: Unidata on Unix SP-ASSIGN ? command
    ... it performs a SETPTR operation using SP-ASSIGN syntax ... You can interrogate the current setting of any print unit assigned to ... SETPTR will show you the print settings on print ...
    (comp.databases.pick)
  • Re: SDSF - COMMAND INPUT ===> question
    ... Type the word SETTINGS on the command line, ... This will bring up the IPSF Settings panel: ... ISPF Settings ...
    (bit.listserv.ibm-main)
  • Re: Any way to Format "MsgBox()"
    ... Only if you change the master settings for the message box for all ... Add a Label control and a Text control as well as 2 command buttons. ... TextControlName = 1 ... Dim strMessage as String ...
    (microsoft.public.access.gettingstarted)