Date: 02/13/00
- Next message: 1tc <email protected>: "[PHPLIB] CHECK THIS OUT!!!"
- Previous message: Matto: "[PHPLIB] emalloc() error with oracle"
- Maybe in reply to: Alan Meadows: "[PHPLIB] Includes in subdirs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: "Alan Meadows" <clam <email protected>>
To: <phplib <email protected>>
Sent: Saturday, February 12, 2000 12:08 AM
Subject: [PHPLIB] Includes in subdirs
> How do I need to modify PHPLIB or my include statements so that I can
> include() files from the root of my web in subfolders?
Take a look in the php3.ini file. Here you can add to the php include path, the dirs which you want php to search in.
Alternatively if you don't have access to php3.ini you can use a .htaccess file in wwwdocs dir. You'll find info about this in the php manual.
Another thing, It's not a good Idea to place php files with database passwd information in areas accessible from public (webroot), make other dir's outside webroot and add them to php include path. Then you can place your secrets there. This can also be used to protect your code better if U'r using custom Copyrighted code :)
The reason for saying this is that if the php module of the webserver does'nt work one day (Do this happen?) then the php files will not be processed by php but and all the code will be shown in the client browser.
Best regards
Arne
P/S Does anyone hire webspace at www.digitalspace.net ? I have just done so, and a week after I ordered an MySQL account I still havent got it... And they don't respond to any support mails.
I'v even tried to call them several times, but there is only an answering machine saying : thanks for calling digitalspace, the office times are 8-5, if you hear this message in between it means that all the technicians are busy ..... and so on. Think I'v called them 10000 times and every time the same message.
>
> For example:
>
> if '/' has: header.inc, footer.inc
> and '/alan' has: index.php3 that tries to include() the above files.
>
> Currently, this just gives me an error:
> Warning: Failed opening '/header.php3' for inclusion in
> /usr/local/httpd/wwwdocs/alan/index.php3 on line 5
>
> I'd like for that error to go far, far away...
>
> Thanks,
> -Alan
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
>
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: 1tc <email protected>: "[PHPLIB] CHECK THIS OUT!!!"
- Previous message: Matto: "[PHPLIB] emalloc() error with oracle"
- Maybe in reply to: Alan Meadows: "[PHPLIB] Includes in subdirs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

