faqts : Computers : Programming : Languages : PHP : General Information

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 10 people (80%) answered Yes
Recently 5 of 7 people (71%) answered Yes

Entry

Can I change the value of include_path dynamically (at execution time)? How do I restore it back to what it was?

May 23rd, 2000 13:24
Matt Gregory, LARB ILLA,


No, you cannot.  You can, however, set up a variable in your script 
which has the new** include path and then when you wish to include 
something concatinate the strings.
Why on earth would you want to change the include_path variable 
anyhow?  That would be a MAJOR security hole.  
**You can alter the include path anywhere <i>under</i> the include_path 
set in your setup/ini file.  This limitation is in place for security 
purposes.  And no, "..\\..\\..\\some_hacking_shell_script.php3" will 
not work.  :)