+ Reply to Thread
Results 1 to 9 of 9

Thread: Could x10 upgrade PHP to 5.3?

  1. #1
    welch's Avatar
    welch is offline x10Hosting Member welch is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Stephenville, Texas, USA
    Posts
    18

    Could x10 upgrade PHP to 5.3?

    At the current version (5.2.6), the function strstr() doesn't allow me to use the optional true or false statement to read strings as I do in some of my scripts and would be very beneficial. Just curious as to see if this might happen or if I'll need to work around it.

    Thanks!

  2. #2
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: Could x10 upgrade PHP to 5.3?

    It probably does, however an administrator may have disabled it for securty reasons
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Could x10 upgrade PHP to 5.3?

    You may need to upgrade your php in the account panel

  4. #4
    themasterrocker Guest

    Re: Could x10 upgrade PHP to 5.3?

    You need to upgrade you're PHP to intermediate via the Account Management Panel which can be found here. www.x10hosting.com/login at the bottom click intermediate PHP and explain why you need it.

  5. #5
    welch's Avatar
    welch is offline x10Hosting Member welch is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Stephenville, Texas, USA
    Posts
    18

    Re: Could x10 upgrade PHP to 5.3?

    I am already at the Intermediate level of PHP access :\

    I get the error that I'm using too many parameters for strstr() and I've already done a lot of work to make sure it is not my error.

    I'm using it like this:

    if (strstr($data, "://", true) == "http") { /* code */ }

    to check if the string "$data" is a URL that starts with http and it won't allow me to use that last true/false statement that, in the PHP manual, says is there as of version 5.3.0.

    (The value "true" should make it so it gets the string before the occurrence of "://")

    Thanks for the help thus far! This is quite the hassle currently as I'm building a lot of code on this particular function.

    EDIT: http://us.php.net/manual/en/function.strstr.php is the location of strstr() in the PHP manual where this is mentioned. Apologies for the lack of thoroughness in the original post.
    Last edited by welch; 10-29-2008 at 11:05 PM. Reason: Thoroughness

  6. #6
    AttackBunnyPro is offline x10Hosting Member AttackBunnyPro is an unknown quantity at this point
    Join Date
    Jul 2008
    Posts
    26

    Re: Could x10 upgrade PHP to 5.3?

    Welch is correct; the third parameter was added in 5.3.0. Thus, one can't use it unless x10 upgrades

  7. #7
    welch's Avatar
    welch is offline x10Hosting Member welch is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Stephenville, Texas, USA
    Posts
    18

    Re: Could x10 upgrade PHP to 5.3?

    Even though this particular function still will not work as desired, I have since replaced this with the strpos() function to check for an occurrence of "http://" and check if the value is not false.

    However, a lot of updates have been done in version 5.3.x so I'd still recommend the update if at all possible.

    Thanks,
    GrapeJuice

  8. #8
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Could x10 upgrade PHP to 5.3?

    I will ask an admin for you when it is gonna be installed. I myself had no idea php 5.3 was out lol :D.

    Ok I have an answer:

    Since php 5.3 is in Alpha1 stage it would be unsecure to install on a live environement. Alpha releases is only made for personal testing purposes only.

    When php 5.3 gets final, it needs to get beta first too, then they gonna think about updating it.
    The normal way a software is released is Alpha>Beta>RC>Final
    Last edited by galaxyAbstractor; 10-30-2008 at 04:55 AM.

  9. #9
    welch's Avatar
    welch is offline x10Hosting Member welch is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Stephenville, Texas, USA
    Posts
    18

    Re: Could x10 upgrade PHP to 5.3?

    ahhh I see. My mistake! I had thought it to be a final release to be documented so quickly!

    Thanks for the review of my issue though this has been more helpful than I thought it would be. I'll definitely hang around and try to help people out on the forums.

+ Reply to Thread

Similar Threads

  1. Pending PHP upgrade...
    By tjohnso7 in forum Free Hosting
    Replies: 2
    Last Post: 03-11-2008, 07:25 AM
  2. PHP Upgrade
    By notnam in forum Free Hosting
    Replies: 2
    Last Post: 03-11-2008, 07:23 AM
  3. Replies: 3
    Last Post: 03-10-2008, 12:22 PM
  4. Noticia De upgrade PHP espaņol
    By figu120 in forum General
    Replies: 2
    Last Post: 11-22-2007, 04:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers