php4 and php5 - whats the best way?
Posted: Thu Nov 30, 2006 4:43 pm
I’m in a rather strange predicament. I’ve got some php5 files I need run from a php4 system. If my php5 files were actually php4, I would just include or require them in my php4 files and everything would be great.
My server allows both php4 and php5, as long as the php5 files are named with a php5 extension.
Is there a way to eval or exec php5 scripts from a php4 file? If so, how would I pass values to it? I suppose I could curl or fsockopen but that sounds messy.
I really wish those files weren’t php5 but they need the php5 soap functions. The content management system I’m incorporating it with is all php4 and it doesn’t support php5.
Any help would be greatly appreciated!
Thanks!!!
My server allows both php4 and php5, as long as the php5 files are named with a php5 extension.
Is there a way to eval or exec php5 scripts from a php4 file? If so, how would I pass values to it? I suppose I could curl or fsockopen but that sounds messy.
I really wish those files weren’t php5 but they need the php5 soap functions. The content management system I’m incorporating it with is all php4 and it doesn’t support php5.
Any help would be greatly appreciated!
Thanks!!!