DeluXe Network Forums
March 20, 2010, 02:02:20 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Please do not add ads in your signature!
 
   Home   Help Search Members Login Register  
Poll
Question: php 5 or php 4 ?
php5 - 0 (0%)
I like the current php4 - 0 (0%)
Total Voters: 24

Pages: 1 [2] 3
  Print  
Author Topic: PHP 5.2.x Or PHP 4.7.x  (Read 7559 times)
grayen
Newbie
*

Honor: 0
Offline Offline

Posts: 8


View Profile
« Reply #15 on: June 05, 2007, 12:59:30 pm »

Quote
but some scripts might not work anymore (including this forum)

It's the same as it was with updating PHP3, a huge difference. And i think you need to move on. If some of the scripts won't work anymore, then i just means they are outdated. Try to find a new free forum (there are plenty of them) or modify your old scripts.

Their are many reasons why you should update your PHP version.
  • Good support for OOP (Object-oriented programming). In php 4 it was as good as nothing. Not at all what OOP is designed for. Now with PHP 5 you will have the same level of OOP as many other languages. If you learned how to use OOP in PHP5 you cannot script without it.
  • Good support for OOP (Object-oriented programming). In php 4 it was as good as nothing. Not at all what OOP is designed for. Now with PHP 5 you will have the same level of OOP as many other languages. If you learned how to use OOP in PHP5 you cannot script without it.
  • PDO functions will be availible.
  • Many functions will be added.
  • Functions like autoload are availible and really handy!
  • Finaly good XML support in PHP. I use it to generate html and it works great. I liked DOM in javascript. And now it is availible in PHP! Just perfect. All my form's are generated with this class.
  • And much much more.
Logged
Michael
Administrator
Hero Member
*****

Honor: 11
Offline Offline

Germany Germany

Posts: 3256



View Profile WWW
« Reply #16 on: June 08, 2007, 10:57:52 pm »

this poll will close in 8 days then I will make a decision
Logged
grayen
Newbie
*

Honor: 0
Offline Offline

Posts: 8


View Profile
« Reply #17 on: June 11, 2007, 04:36:50 pm »

Personally I think that scripts that won't work on PHP5 anymore but only work on PHP4 are less then the scripts that only work at PHP5, because PHP5 is designed on a way that PHP4 still should work. So what you sad about this forum, is that really true (because I have never heard of any PHP4 script that didn't work correct in PHP5 unless they are just really bad coded)?
Logged
Michael
Administrator
Hero Member
*****

Honor: 11
Offline Offline

Germany Germany

Posts: 3256



View Profile WWW
« Reply #18 on: June 11, 2007, 08:42:07 pm »

I don't mind about this forum when we will make a switch, there are some converters and patches so it's php5 compatible. I will make a big announcement before the migration.
Logged
shaq
Hero Member
*****

Honor: 6
Offline Offline

Poland Poland

Posts: 1678


sharp dressed man


View Profile
« Reply #19 on: June 15, 2007, 12:48:02 am »

:'( what about gd?
Logged

omg i love the POST button <3
jjb123
Global Moderator
Hero Member
*****

Honor: 2
Offline Offline

United States United States

Posts: 1493


View Profile WWW
« Reply #20 on: June 15, 2007, 03:19:04 am »

Uses to much server resources to use GD.
Logged

WebCM
Jr. Member
**

Honor: 2
Offline Offline

Poland Poland

Posts: 59


View Profile WWW
« Reply #21 on: June 17, 2007, 08:13:52 am »

Do not use GD but optimize your (x)HTML, JS, CSS. Smiley The browser caches images, CSS, JS files unless you don't refresh page (F5). Previous and next pages are also stored - but if your site is downloaded again after "Back" clicking, use the following PHP code before <html>:
Code:
Header('Cache-control: public');
If you don't use PHP on some of your pages (e.g. documents, listings), set their extention to .html. Smiley

I'm looking forward to PHP5. Smiley Heavy functions can be disabled. It's important to be enabled: MySQLi. Optional: SQLite, PDO.
Logged

Do not install scripts that use huge amounts of RAM and CPU power!
Nie instalujcie zasobożernych skryptów na serwerze dHost!
grayen
Newbie
*

Honor: 0
Offline Offline

Posts: 8


View Profile
« Reply #22 on: June 17, 2007, 11:02:27 am »

I find the following the most important in PHP5:
  • PDO
  • DOMDocument
Logged
Michael
Administrator
Hero Member
*****

Honor: 11
Offline Offline

Germany Germany

Posts: 3256



View Profile WWW
« Reply #23 on: June 17, 2007, 02:19:22 pm »

ok php5 is coming Smiley (this will take some time)
Logged
Jack McKalling
Full Member
***

Honor: 0
Offline Offline

Netherlands Netherlands

Posts: 212


Love Eternally.


View Profile WWW
« Reply #24 on: June 18, 2007, 07:29:59 pm »

Cool Smiley I am looking forward for this upgrade.
Actually, it comes quite convenient; a little while ago I stopped developing a certain technology because this version did not have sufficient support for XML.
Now I can resume  Cheesy

I am for the idea that there would be a switch in the user profile. And I think that all user accounts should have 4 for standard, while we all have coded in that version for now. So we have the oppurtunity to upgrade ourselves when and if we want to.

Though, with this update, I hope the error reporting system will update too. I keep getting frustrated about those errors which I don't get, sometimes the updated code is so big that manually tracing the bug is too hard. Once again, maybe a central platform (password protected, which saved in session) from which a certain page can be called, which will get errors showed?
Logged

Call me Jack
WebCM
Jr. Member
**

Honor: 2
Offline Offline

Poland Poland

Posts: 59


View Profile WWW
« Reply #25 on: June 18, 2007, 10:49:44 pm »

Is PHP4 really needed? It can be run from e.g. CGI but 2 versions can slow the server. In my opinion, only PHP5 should be running after the upgrade.

If a lot of users complain that their need PHP4 and they can't update their scripts, that version could be also run.
« Last Edit: June 18, 2007, 10:50:31 pm by WebCM » Logged

Do not install scripts that use huge amounts of RAM and CPU power!
Nie instalujcie zasobożernych skryptów na serwerze dHost!
grayen
Newbie
*

Honor: 0
Offline Offline

Posts: 8


View Profile
« Reply #26 on: June 19, 2007, 07:34:08 am »

I agree with WebCM. I find one thing really strange.. why are so many people afraid of their script get broken. It shouldn't break, because normaly PHP4 scripts can run on a PHP5 server.

Is error reporting off? Ow.. that's one of the most important features of PHP and really necessary for a scripter. Why should you turn it off? as a scripter you can simply turn it off by yourself if you didn't needed it.

http://nl2.php.net/error_reporting
Logged
shaq
Hero Member
*****

Honor: 6
Offline Offline

Poland Poland

Posts: 1678


sharp dressed man


View Profile
« Reply #27 on: June 19, 2007, 10:02:25 am »

at last! php 5! thx michael i'll love it <3
Logged

omg i love the POST button <3
Jack McKalling
Full Member
***

Honor: 0
Offline Offline

Netherlands Netherlands

Posts: 212


Love Eternally.


View Profile WWW
« Reply #28 on: June 19, 2007, 08:19:08 pm »

Quote
Is error reporting off? Ow.. that's one of the most important features of PHP and really necessary for a scripter. Why should you turn it off? as a scripter you can simply turn it off by yourself if you didn't needed
But I didn't!
It is defaultly off at the host, I can't even turn it back on per script Sad
You are absolutely totally right, it is necessary, tell the hostmaster Tongue
« Last Edit: June 19, 2007, 08:20:54 pm by Dan The Prof » Logged

Call me Jack
grayen
Newbie
*

Honor: 0
Offline Offline

Posts: 8


View Profile
« Reply #29 on: June 19, 2007, 08:27:32 pm »

@shaq

Quote
at last! php 5! thx michael i'll love it <3

Where? when i visit my website here on dhost with the php function phpinfo() on it, it shows the following:

Quote
PHP Version 4.4.7

@Dan The Prof

Quote
Why should you turn it off?

The question was meant for the webmaster, not you Tongue.
Logged
Pages: 1 [2] 3
  Print  
 
Jump to:  

 

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.658 seconds with 18 queries.