ive run into a slight issue with a client, i run php 5, his server runs php 4.
do not tell me to upgrade, its not an option.
there is only 1 or 2 functions i need to use from php 5, so the simple thing would be to c&p into a functions file, problem is i don't know where to look for php's default functions! (things like str_replace)
thanks!
phps internal functions
Started by influct, Aug 24 2007 05:14 PM
5 replies to this topic
#1
Posted 24 August 2007 - 05:14 PM
#2
Posted 24 August 2007 - 05:32 PM
You can't just copy and paste functions like that o__O
You need to look at rebuilding the function in a php 4 friendly manor, aside from that you don't have an option. What functions are they?
You need to look at rebuilding the function in a php 4 friendly manor, aside from that you don't have an option. What functions are they?
#3
Posted 24 August 2007 - 05:34 PM
str_split, thanks:)
#4
Posted 24 August 2007 - 05:54 PM
Lol, PHP default functions are compiled into the parser itself, so you would only be able to get to them if you knew how to mess with C and source files and all the fun stuff... I think. I'm just learning C++, so I'm not sure how all the works and such.
Anyways, alot of PHP5 functions have a few PHP4 versions you can find in the comments for the function that users constantly create when they run into a similar dilemma.
Anyways, alot of PHP5 functions have a few PHP4 versions you can find in the comments for the function that users constantly create when they run into a similar dilemma.
#6
Posted 26 August 2007 - 05:39 PM
allright:) thanks for your help all!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
