logo       

RE: [SMARTY] discovering the full path on shared unix host: msg#00414

php.smarty.general

Subject: RE: [SMARTY] discovering the full path on shared unix host

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?


--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise