Re: include, relative path



On 2008-04-30, No_One <no_one@xxxxxxxxxxxx> wrote:
PS: I don't want to change php.ini settings because I couldn't do it
on my hosting server...


did you try

include ("/mysite/libraries/db_details.php");

if using Linux, get the full path by going to the commandline and

echo $PATH

/home/mywebsite/myhtml etc etc.

Don't forget the first forward slash.

ken




should be :

echo $HOME


ken
.



Relevant Pages

  • Re: Sound card?
    ... Cannot find the word 'linux' on their ste, ... people that say soundcards are as good as test instruments. ... found is the switcher makes AM noise. ... echo "Getting max amplitude." ...
    (sci.electronics.design)
  • Re: Accessing the internet with Ubuntu
    ... I am both new to groups and linux, ... If you are having to use windows to access Usenet: ... If using linux for usenet access, su - root, copy script text into xx ... echo "You need to be root to run $0" ...
    (alt.os.linux)
  • Re: slow net in ubuntu
    ... If you are having to use windows to access Usenet: ... If using linux for usenet access, su - root, copy script text into xx ... echo "You need to be root to run $0" ...
    (comp.os.linux.networking)
  • Re: Troubleshooting connection loss (novice question)
    ... If you are having to use windows to access Usenet: ... If you do not want some malware writting to linux. ... If using linux for usenet access, su - root, copy script text into xx ... echo "You need to be root to run $0" ...
    (comp.os.linux.networking)
  • Re: Bulk conversion
    ... Leonard A. wrote... ... documents to 2007 leaving nothing for my end-users to be confused about. ... If the ofc.exe program accepts filenames on its commandline, ... @echo off ...
    (microsoft.public.office.misc)