![]() |
require problem with absolut paths
Hi everyone
I'm working on a small php application that stores adresses in a mysql database. I'm using a class for printing HTML code. So I need to include several files in several files:-D the problem is, that i cannot use absolut paths with require or include. I tried to define a constant and use it like a document root. PHP Code:
Sry for my crappy english ncorpse |
Quote:
PHP Code:
|
By the way, you cant require directories. you should only use require/include for php files.
Now if you want to set an include path, just do this PHP Code:
|
If you need to require a whole directory of files, and I mean *all* the files in that directory, you could do something akin to this:
PHP Code:
-m |
Quote:
No I'm not looking for including a whole directory of files:-) How can i use this construct inside of this? PHP Code:
ncorpse |
Code:
|
Quote:
PHP Code:
Do I need to do something with the php include paths? |
Quote:
|
Quote:
Now it's working |
| All times are GMT. The time now is 05:25 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0