Jump to content

Overall global function


Gachl

Recommended Posts

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

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?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.