PHP Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jman
    Already an AI veteran
    • Sep 2003
    • 22838

    #1

    PHP Question

    Moving an old site for a friend that was made in php4 and I was suggested to upgrade to php5.

    How easy is this to do and how long should it take for a programer?

    Small mainstream site.
    Orkestrait NSFW AI
    FantasyXXX.AI
    Email: [email protected] TG: @jman1216
  • ipolic
    Confirmed User
    • Nov 2003
    • 1486

    #2
    You say small mainstream site, but that depends how small. I think we need measurements here. What you think is small, someone else might consider big.

    Comment

    • AIbenjamink
      Confirmed User
      • Jan 2009
      • 420

      #3
      What are you thinking about upgrading, the PHP version on your server or your code?
      Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

      Comment

      • Jman
        Already an AI veteran
        • Sep 2003
        • 22838

        #4
        Originally posted by AIbenjamink
        What are you thinking about upgrading, the PHP version on your server or your code?
        The code
        Orkestrait NSFW AI
        FantasyXXX.AI
        Email: [email protected] TG: @jman1216

        Comment

        • Jman
          Already an AI veteran
          • Sep 2003
          • 22838

          #5
          Originally posted by ipolic
          You say small mainstream site, but that depends how small. I think we need measurements here. What you think is small, someone else might consider big.
          Can you hit me up on ICQ, this site is part of a huge worldwide company specialized in vacatoin resorts and I do not want to link their url on GFY.

          Thanks
          Orkestrait NSFW AI
          FantasyXXX.AI
          Email: [email protected] TG: @jman1216

          Comment

          • cyco_cc
            Confirmed User
            • Oct 2008
            • 344

            #6
            I'd bet that 99+% of the code written for PHP 4 will work with PHP 5. IIRC (I don't really work with PHP, just .NET--don't hate), the main things added to PHP 5 was some actual OOP constructs that made sense and some syntactic sugar. I'm probably horribly understating the platform upgrade, but still, your procedural code is probably all going to work just fine in PHP 5.

            There might be some functions that are deprecated but they'll still "work". Long story short, it's probably just a matter of upgrading the version of PHP your server is running.

            Comment

            • Jman
              Already an AI veteran
              • Sep 2003
              • 22838

              #7
              Great info and thanks Benjamin for taking the time to chat with me on ICQ. Glad I made this post ;-)
              Orkestrait NSFW AI
              FantasyXXX.AI
              Email: [email protected] TG: @jman1216

              Comment

              • AIbenjamink
                Confirmed User
                • Jan 2009
                • 420

                #8
                Originally posted by Jean-Francois
                Great info and thanks Benjamin for taking the time to chat with me on ICQ. Glad I made this post ;-)
                Not a problem Jean-Francois, Good luck!
                Benjamin : [email protected] : 405-243-447 : www.AdultInterface.com

                Comment

                • redwhiteandblue
                  Bollocks
                  • Jun 2007
                  • 2793

                  #9
                  Originally posted by Jean-Francois
                  The code
                  Are you saying that the code is written in PHP4 but the version running on the server is PHP5?
                  Interserver unmanaged AMD Ryzen servers from $73.00

                  Comment

                  • adendreams
                    Confirmed User
                    • Jul 2009
                    • 1887

                    #10
                    Nice. good explanation...

                    ICQ : 567-816-270
                    Aden - Your Content Shooter Superfreak
                    ADEN CONTENT · HD Video · Ex-GF · Am Content · Pro Content · PHP Programming · Package Deals
                    • Skype or ICQ available on request •

                    Comment

                    • HomerSimpson
                      Too lazy to set a custom title
                      • Sep 2005
                      • 13826

                      #11
                      Originally posted by Jean-Francois
                      The code
                      code is backward compatible
                      so no changes are really needed...
                      Make a bank with Chaturbate - the best selling webcam program
                      Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

                      PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

                      Comment

                      • Jman
                        Already an AI veteran
                        • Sep 2003
                        • 22838

                        #12
                        Originally posted by redwhiteandblue
                        Are you saying that the code is written in PHP4 but the version running on the server is PHP5?
                        Yup that is the case, again thanks y'all
                        Orkestrait NSFW AI
                        FantasyXXX.AI
                        Email: [email protected] TG: @jman1216

                        Comment

                        • GrouchyAdmin
                          Now choke yourself!
                          • Apr 2006
                          • 12085

                          #13
                          As already mentioned, almost anything written halfway decently for PHP4 (Using superglobals, very primitive OOP, if at all, not relying on inherited variables) will work fine with PHP5 up through 5.1.x.

                          They've decided to do some rather stupid shit since like killing the only sane regex library in 6.x, so you may get a few deprecation warnings, but you probably won't need to worry until at least 2011 for that.

                          Comment

                          • nation-x
                            Confirmed User
                            • Mar 2004
                            • 5370

                            #14
                            Originally posted by GrouchyAdmin
                            As already mentioned, almost anything written halfway decently for PHP4 (Using superglobals, very primitive OOP, if at all, not relying on inherited variables) will work fine with PHP5 up through 5.1.x.

                            They've decided to do some rather stupid shit since like killing the only sane regex library in 6.x, so you may get a few deprecation warnings, but you probably won't need to worry until at least 2011 for that.
                            yeah... I used ereg alot. Another thing to mention is that some developers had a bad habit of using short tags which are disabled by default in php 5

                            <? <-- short tag
                            <?php <-- long tag

                            Comment

                            Working...