RE: [SMARTY] discovering the full path on shared unix host
| From: | Hoffman, Geoffrey | Date: | Wed, 29 Jan 2003 14:49:05 +0000 |
| Subject: | RE: [SMARTY] discovering the full path on shared unix host | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7390@lists.php.net to get a copy of this message | ||
Graham, I didn't, but this would've helped. I'll keep your script handy now,
that's for sure.
I finally did figure out what the problem was - through the brute force
method - once I determined the full path to my files on the server (used
PHP's apache_lookup_uri() command) and got Smarty to initialize properly, I
realized that the include file containing my db, user, & passwd was not
getting included. No DB access, no pages. The host had all debugging turned
off, so I ended up var_dumping everything until I found the mysql error.
BTW, The 'linkalize' modifier is going to help me immensely too - thanks for
sharing, Nichlas Löfdahl!
I truly appreciate all the help from this list! In return I'm posting some
code that has made my job easier.
GY> Did you put
GY> ini_set('display_errors', TRUE);
GY> ini_set('error_reporting', E_ALL);
GY> at the start of your php script?