Apply for Credit Card - Loans - Per Insurance - Bean Bag Toss Game - Debt Help

PDA

View Full Version : How to run code ?


mahiraj
Dec 5th 2007, 4:49 am
Hi All,

I have a site which has build in php4.0
I want to redesign my site.......
Now i work in php5.0.
can i run this code in php5.0...
i use wamp server.....
please tell me some instructions which i should keep in mind.......

Thank you;

nico_swd
Dec 5th 2007, 4:53 am
Most code written for PHP 4 will still work with PHP 5.

Here are some things you should know/Keep in mind.

www.php.net/manual/en/migration5.php

mahiraj
Dec 5th 2007, 5:29 am
means i will not need to change in code........

nico_swd
Dec 5th 2007, 5:31 am
Usually, not. Yet there are a few exceptions.

Try it out, and if there are problems, post them here, along with your code.

mahiraj
Dec 5th 2007, 5:37 am
some problems such as <? ?> and<?= ?> are not working.....

nico_swd
Dec 5th 2007, 5:51 am
This is not a PHP4/5 issue. The short tags can be enabled in php.ini


short_open_tag = On


They still work in PHP 5... but its usage is not recommended.