Jump to content


phps internal functions


5 replies to this topic

#1 influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 24 August 2007 - 05:14 PM

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!

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

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?

#3 influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

Posted 24 August 2007 - 05:34 PM

str_split, thanks:)

#4 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

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.

#5 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 24 August 2007 - 06:14 PM

View Postinfluct, on Aug 24 2007, 11:34 PM, said:

str_split, thanks:)
There are many PHP4 versions of that function in the user comments as Demonslay mentioned.

#6 influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

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