Jump to content

requiring from another directory below current...?


AbydosGater

Recommended Posts

Emm hi,
Just another noobie question from me,
I know that when you require a php file you have to use the short path .. ie: /config.php
But if your in another directory above where that file is, you cant require using the whole domain duh.. for obvious reasons..
But is there an way say if i have my config.php in my top directory, and i want to require it in my /members/... how would i go about doing this?
can i use the full path.. ie: /public_html/config.php ??

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.