Page 1 of 1

Php 5.1

Posted: Mon Nov 07, 2005 10:34 am
by lisamarie_tt
Hi,

I'm pretty new to php and never had to setup or configure it before. My current machine has php 4 and i'd like to install and configure php 5. I've read other forum posts on this matter but i still need some assistance.

Firstly my reason for converting to php5.1 is to use the PDO functions for connection and exectuion of prepared statements on a DB2 database, especailly for procedure calls, which does not seem to work in php 4.

My concern is will all my other php 4 projects still work on successful completion of installtion of php 5.

How exactly do i install php 5? I've downloaded the version and pulled it onto my root in an php5 folder. Where do i go from here?

Posted: Mon Nov 07, 2005 10:38 am
by Chris Corbyn
Are you installing it on Linux or Windows?

Also, is the HTTP server Apache or something else?

About the compatibility issues.

Most things PHP4 will just work in PHP5. Most of the changes in PHP5 are OOP based, and are mostly backwards compatible. There are a few function changes too such as paramaters being in different orders but nothing enough to cause you to have completely re-write an application.

Posted: Mon Nov 07, 2005 11:27 am
by lisamarie_tt
Hi,

HTTP Server - Apache 2.0
Current PHP - 4.0
Intended Installation - 5.1

I'm having extreme difficulity finding documentation for installation and configuration on php 5.1. Ant resources in this avenue would be great.

Posted: Mon Nov 07, 2005 1:40 pm
by foobar
lisamarie_tt wrote:Hi,

HTTP Server - Apache 2.0
Current PHP - 4.0
Intended Installation - 5.1

I'm having extreme difficulity finding documentation for installation and configuration on php 5.1. Ant resources in this avenue would be great.
d11wtq wrote:Are you installing it on Linux or Windows?

Posted: Tue Nov 08, 2005 7:30 am
by lisamarie_tt
Sorry about that - Windows.

I've scrathced the 5.1 installtion and was able to successfully install php 5.0.5. What I would really like to achieve is a connection to a DB2 database to run a prepared statement call to a stored procedure.

On reading online docs i relaised that this could not be done with PHP 4 for I decided to upgrade there were two options available:
1 - install 5.1 which had PDO built in
2 - install 5.0.5 and manually install PDO

I opted for installation 2. My problem now is confguring pear.
I'm trying to do the maual installtion of the PDO library but when i run the command pear install PDO i'm getting the error - No release with state equal to: 'stable' found for 'PDO'

I'm trying to do the maual installtion of the PDO library but when i run the command pear install PDO_ODBC i'm getting the error - [No release with state equal to: 'stable' found for 'PDO_ODBC'

where do i go from here. Is there another way to setup the PDO library. I a bit lost.

Regards,