Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: PHP Versions

  1. #1
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    PHP Versions

    Any one with an accepted application for PHP version 3 will need to re-apply for an application for v3. Everyone with an upgrade to v3 has been set to use v2.

    If you have any problems with this, please post here and I will help you.

    Sorry for the inconvenience.

  2. #2
    Tomcenc is offline x10Hosting Member Tomcenc is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Antwerp, Belgium
    Posts
    57

    Re: PHP Versions

    I have an application pending a few days already and it still hasn't been upgraded. What's odd it says
    Your application for PHP v was accepted and your account is pending a PHP version upgrade.
    Mind "for PHP v" instead of "for PHP v3"
    My account name is tomcenc on absolut

  3. #3
    sky0r is offline x10Hosting Member sky0r is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    8

    Re: PHP Versions

    I'm running MyBB and as I know there is no other chance to run it without the upgrade to Advanced.
    Can I have PHPv3 too?

  4. #4
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: PHP Versions

    Tomcenc: That looks like it may be a bug with the system. It'll be looked into later today when I have the time to.

    Everyone else: Do not post here asking for a change, it just wastes time. Request an upgrade the correct way.

    About MyBB: Like everyone has been saying, MyBB requires exec() and eval() in order to run. Eval() is disabled only in v1 of PHP, not in v2. Exec() is disabled in v1 and v2.

    We will not give out PHP v3 to anyone in order for them to use MyBB, only v2.

    This means that in order to use MyBB with v2 you'll need to disable the use of exec() within it.


    If you want MyBB to work:

    Within ./global.php..

    Replace this:
    Lines 371 through 385
    PHP Code:
    // Load Limiting
    if(strtolower(substr(PHP_OS03)) !== 'win')
    {
            if(
    $uptime = @exec('uptime'))
            {
                    
    preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/"$uptime$regs);
                    
    $load $regs[1];
                    
    // User is not an administrator and the load limit is higher than the limit, show an error
                    
    if($mybb->usergroup['cancp'] != "yes" && $load $mybb->settings['load'] && $mybb->settings['load'] > 0)
                    {
                            
    error($lang->error_loadlimit);
                    }
            }

    With this:
    PHP Code:
    // Load Limiting
    if(strtolower(substr(PHP_OS03)) !== 'win')
    {
            if (
    function_exists('exec')) {
                    if (
    $uptime exec('uptime')) {
                            
    preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/"$uptime$regs);
                            
    $load $regs[1];
                            
    // User is not an administrator and the load limit is higher than the limit, show an error
                            
    if($mybb->usergroup['cancp'] != "yes" && $load $mybb->settings['load'] && $mybb->settings['load'] > 0)
                            {
                                    
    error($lang->error_loadlimit);
                            }
                    }
            }

    I also found the use of exec() within inc/functions.php. I'm not sure if that is going to cause a problem as well. If I does let me know.
    Last edited by Bryon; 11-03-2007 at 04:11 PM.

  5. #5
    arthur_pham is offline x10Hosting Member arthur_pham is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    1

    Re: PHP Versions

    Hi,

    I am having a problem is that. My wesite is trying to feed resources from other internet like Yahoo News.

    So I have to use file_get_contents() to access the content returned. But it says:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/...

    Is there any way to get out of this.

    Thank you.

    Regards,

    Arthur Pham

  6. #6
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: PHP Versions

    Upgrade your version of PHP to v2.

  7. #7
    aron4588 is offline x10 Sophmore aron4588 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    106

    Re: PHP Versions

    thank Bryon i was wondering why i was move down to v2 i already rereply for it thx alot

  8. #8
    wjiang is offline x10Hosting Member wjiang is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    2

    Re: PHP Versions

    Hi, I'm new around here... I was wondering, is there somewhere where I can find a list of exactly what's been disabled for each level of PHP or something?

  9. #9
    aron4588 is offline x10 Sophmore aron4588 is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    106

    Re: PHP Versions

    login at x10hosting.com/login and read wat each php level does

  10. #10
    wjiang is offline x10Hosting Member wjiang is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    2

    Re: PHP Versions

    I tried that before - it's not that helpful. Like it never told me that phpinfo() was disabled. It only really refers to exec(), eval(), include(), fopen() and mail() specifically. All others are generically referred to as 'bad functions'. Never mind then, I suppose I could just try and use other functions and see if the server throws a warning.
    Last edited by wjiang; 11-04-2007 at 06:57 PM.

Closed Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  3. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM
  4. What Apache / PHP / MySQl etcetera versions.
    By lambada in forum Free Hosting
    Replies: 2
    Last Post: 09-02-2006, 08:24 AM

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