Gachl Posted February 5, 2010 Share Posted February 5, 2010 Hi people! I'm using a script that requires the function sys_get_temp_dir but unfortunately this function is available on PHP5.2.1 and I'm using 5.2.0 and I can't update it to a newer version via apt. My solution is to write the sys_get_temp_dir function by myself so the script uses mine. But instead of parsing third-party-scripts for possibilities to include that function I want to make it global so I don't have to include it at all. Is there any way to do this? Maybe I can include .php files with the php.ini so they're available for all php scripts? Link to comment https://forums.phpfreaks.com/topic/191047-overall-global-function/ Share on other sites More sharing options...
trq Posted February 5, 2010 Share Posted February 5, 2010 unfortunately this function is available on PHP5.2.1 and I'm using 5.2.0 and I can't update it to a newer version via apt 5.3 is available via http://dotdeb.org Is there any way to do this? Maybe I can include .php files with the php.ini so they're available for all php scripts? Have you looked in the php.ini file? Did you miss the auto_prepend_file directive? Link to comment https://forums.phpfreaks.com/topic/191047-overall-global-function/#findComment-1007395 Share on other sites More sharing options...
Gachl Posted February 5, 2010 Author Share Posted February 5, 2010 Have you looked in the php.ini file? Did you miss the auto_prepend_file directive? seems like my php.ini doesn't have that directive. It seems to do what I need, thank you very much! Link to comment https://forums.phpfreaks.com/topic/191047-overall-global-function/#findComment-1007398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.