PHP Errors... [Sustained Server]

Status
Not open for further replies.

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Are you guys willing to switch the allow_url_include on? Since, PHP 5.2 sets it to off as a default.
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Yeap, I did some intense testing and tried an array of methods of php including on my website is I determined that it's the PHP 5.2.0 disallows php include.

Ok! I got the problem. I solved it, thanks!
 
Last edited:

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
Re: PHP Errors... [Alpha Server]

Can you please tell us all how did you solve it???

Maybe it can help people in the future having the same problem as you.
 

misterspock

New Member
Messages
85
Reaction score
0
Points
0
Re: PHP Errors... [Alpha Server]

Alright.

Q: How can I call a script from a directory such as public_html -> include?
A: Most common use is <?PHP include('./include/blah.php') ?> Since, "." is the first level directory that you are calling.

Q: I want to call a script from the home directory, even though I surpassed that directory.
A: Use include(), but use a '../' to go up one level.
Example: <?PHP include('../include/blah.php') ?>

Q: How about to go through more directories?
A: For more directories you'd write "../../".
 
Last edited:
Status
Not open for further replies.
Top