difference between php4 and php5(versions)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
madhu
Forum Commoner
Posts: 82
Joined: Fri Mar 03, 2006 9:34 am

difference between php4 and php5(versions)

Post by madhu »

hi to all........

i have problem with PHP vesion....

plz solve my problem....

recently i installed PHP5, b4 am using PHP4.

but in that PHP5, some fetures of my project r not working , which r absolutely working in PHP4....

plz tell me the reason urgently....(plzzzzzzzzzzz it is very urgent)

is it sessions problem????

thanks in advance
madhu
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Re: difference between php4 and php5(versions)

Post by feyd »

via aol translation, madhu wrote:hi to all........

i have problem with PHP vesion....

please solve my problem....

recently i installed PHP5, before am using PHP4.

but in that PHP5, some fetures of my project are not working , which are absolutely working in PHP4....

please tell me the reason urgently....(please it is very urgent)

is it sessions problem????

thanks in advance
madhu
It's hard to say what the problem is if you don't post your code or some errors that are being logged/shown at least.
madhu
Forum Commoner
Posts: 82
Joined: Fri Mar 03, 2006 9:34 am

difference between php4 and php5(versions)

Post by madhu »

hi

here am giving the site url, plz c that.....


http://www.bsepaper.com/bsepaper/login.php(NOT WORKING)
http://203.199.211.212/thehindu/login.php(WORKING)

FOR BOTH SITES:
----------------
username:h@yahoo.com
password:12345678

n bsepaper, i installed php5,in hindu it is php4.

now problem is when u login, it will open the site, inthat click on that page which contains some articles.click on any article,in bsepaper it is not showing that article and it hindu it is displaying that article.

plz c n reply to me ASAP....

thanks in advance
madhu
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

Use full english sentences please - I can't read the aol language.

We are unable to provide specifics of what is wrong - you need to post code. No code, no solution. You should also check for some common settings - is register_globals, magic_quotes_gpc settings the same for each version?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: difference between php4 and php5(versions)

Post by Chris Corbyn »

madhu wrote:hi

here am giving the site url, plz c that.....


http://www.bsepaper.com/bsepaper/login.php(NOT WORKING)
http://203.199.211.212/thehindu/login.php(WORKING)

FOR BOTH SITES:
----------------
username:h@yahoo.com
password:12345678

n bsepaper, i installed php5,in hindu it is php4.

now problem is when u login, it will open the site, inthat click on that page which contains some articles.click on any article,in bsepaper it is not showing that article and it hindu it is displaying that article.

plz c n reply to me ASAP....

thanks in advance
madhu
Please can you stop using the AOLspeak? A good portion of our visitors are not native english speakers and it's hard to read. It certainly takes me twice as long to read, makes me think you're lazy and puts me off answering your thread constructively.
madhu
Forum Commoner
Posts: 82
Joined: Fri Mar 03, 2006 9:34 am

difference between php4 and php5(versions)

Post by madhu »

i dont know what u didnt understand in that message.............

any how, plz login to that sites.

then click on that pages...........

it is not working in bsepaper and it is working in hindu.

i think am clear in this issue.

plz give reply if u didnt understand
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

plz is not an english word. Check a dictionary - the spelling is "please".

Try to understand - I cannot access your first link, it times out for me as a network error. In the absence of any other way of finding a problem, we need to see the source code. It is difficult if not impossible to find problems without source code, or at a minimum the details of any and all error messages.

Two links is not enough.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: difference between php4 and php5(versions)

Post by Chris Corbyn »

madhu wrote:i dont know what u didnt understand in that message.............

any how, plz login to that sites.

then click on that pages...........

it is not working in bsepaper and it is working in hindu.

i think am clear in this issue.

plz give reply if u didnt understand
Seriously... stop using the AOLspeak... By that I mean: u, r, plz, cuz, hlp, n, b4.... Take this as a polite warning.
User avatar
coolaid
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 4:27 am

Post by coolaid »

hahaha, aolspeak...


one of the very common problems in swithing from 4 to 5 is the auto globals.

thats means go through your documents and replace $HTTP_SERVER_VARS with $_SERVER


if your using post data, dont use $input field, use $_POST['inputfield'

same with url variables, dont just use $url_var, use: $_GET['url_var']
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

My guess would be that the mysql extension isn't loaded in the PHP5 version.. But untill we get to see some code (and eventual errors/warnings) i'll return ENOCRYSTALBALL.
Post Reply