Jump to content

fugix

Members
  • Posts

    1,483
  • Joined

  • Last visited

Posts posted by fugix

  1. you could launch a background process

    function launchBackgroundProcess($call) {
         // Windows
        if(is_windows()){
            pclose(popen(’start /b ‘.$call.”, ‘r’));
        }
         // Some sort of UNIX
        else {
            pclose(popen($call.‘ /dev/null &’, ‘r’));
        }
        return true;
    }
    
    function is_windows(){
        if(PHP_OS == ‘WINNT’ || PHP_OS == ‘WIN32′){
            return true;
        }
        return false;
    }

     

  2. or you can use

    ini_set("session.gc_maxlifetime", "18000"); 

     

    which will increase the max lifetime of a session to whatever time you set. However I believe that this script must be placed in every file that you wish to increase the expiration time on

     

  3. $query = mysql_query("select * from table_name where image_id1 !=''");
    while ($row = mysql_fetch_assoc($query))  {
    
       $image = $row['image_id1'];
    }

     

    that will grab all of the rows where the image_id1 column is not blank..as to the other part of you question please explain further

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.