[PHP] Line Number function?

2003-02-01 Thread Benjamin Smith
PHP keeps track of what line# is being executed, so that when there's an 
error (say in pg_exec() ) it reports what line the error occured on. 

This appears to happen even during runtime (not just during compilation). 

For example: 
-

--

This would result in a pg_exec error ~ line 7. PHP tracks this, even though 
the error is during runtime, not during the precompile. 

Is there a function where I can access this information? Something like 
"get_line();" or something? 

This would be REALLY HANDY for debugging large projects... 

-Ben 

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




[PHP] Turn off PHP for certain directories?

2003-02-01 Thread Benjamin Smith
Is it possible (using an apache directive, perhaps?) to turn off php parsing 
for certain directories within a site? (but not others?) 

I picture something like (in httpd.conf) 


 AllowOverride All
 Options FollowSymLinks
 NoParsePHP


Can this be done? How? Perhaps as a php_value entry in the  
directive? 

Thanks,

-Ben 

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