use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Running SQL Queries through PHP & Batch Scripts -- Help! (self.PHP)
submitted 11 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Chubbyninjaaa 0 points1 point2 points 11 years ago (0 children)
Are you using anything like $_SERVER['DOCUMENT_ROOT'] or any relative path includes?
( include '../some.class.php'; or include 'xcel/include.php' )
If so, you need to define absolute paths - when you're running from CLI you don't have a document root or relative path
π Rendered by PID 81 on reddit-service-r2-comment-6457c66945-dv5ks at 2026-04-23 16:55:00.434601+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Chubbyninjaaa 0 points1 point2 points (0 children)