PHP and Oracle functions

Hello

I have an old web application coded in PHP, it was working with PHP 4 and Oracle 9i. It uses Oracle functions, not OCI8.

Now I have updated my softwares, now I have installed PHP 5 and Oracle 10g. Now it says Oracle functions are deprecated.

What I should do about it? I should change entire code to work with OCI8?

Is there a way to get Oracle functions working in Oracle 10g and PHP5?

Which one is problem Oracle 10g or PHP 5?

If I change PHP to PHP 4 it will work with Oracle 10g? or if I change Oracle 10g to Oracle 9i with PHP 5 it will work or I need to have old system (PHP 4 and Oralce 9i) to use Oracle functions in PHP?

Please advise, I want to make my sever up-to-date, what do you suggest?

Is there a way to convert my PHP code easily to work with OCI8 functions? How?

Thanks from now!
LVL 17
CSecurityAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hernst42Commented:
oci8 has more feature than oracle, but it should implement all function from oracle. So replace all occurences if the function ora_ with oci_ and with some luck your application should be portted to oci8.

So check which ora_ functions you use and compare the signature of the function with its oci_ part.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CSecurityAuthor Commented:
So I should change the code, yes? I tried changing ora_ to oci_ but I got a lot of errors and code not worked.

So I can't use Oracle 10g with PHP 5 with Oracle functions? Which part makes problem so I can use old version of it.

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.