Php 5.1

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
lisamarie_tt
Forum Commoner
Posts: 32
Joined: Fri Jul 15, 2005 8:20 am

Php 5.1

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
lisamarie_tt
Forum Commoner
Posts: 32
Joined: Fri Jul 15, 2005 8:20 am

Post 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.
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post 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?
lisamarie_tt
Forum Commoner
Posts: 32
Joined: Fri Jul 15, 2005 8:20 am

Post 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,
Post Reply