fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
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; }
-
yes it comes with your php5 download..it is normally found in this path.../etc/php5/php.ini
-
but what does the "heavy code" do?
-
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
-
you can set the global value for session cleanup higher than the default 24 minutes in your php.ini file.
-
can I ask what the purpose of the script running in the background is?
-
firstly, please remember to always encase your php code in code tags...helps with neatness and legibility.
-
can i see the code of both files please?
-
SELECT ... INTO OUTFILE 'file_name'
-
welcome to the site!
-
welcome mark!
-
welcome adam!
-
welcome!!
-
welcome..glad to have you here!
-
welcome..glad to have you here
-
welcome to phpfreaks..
-
welcome...
-
what I meant is that he should do what you suggested as well as what I did
-
-
$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
-
to my knowledge...browser/server cross communication is not possible
-
so if i am reading correctly...you remain logged/session remains true?
-
is your problem fixed?
-
looks like i posted at the same time you did...I may have misinterpreted what you are looking for..I will look at what you have
Asynchronous script
in PHP Coding Help
Posted
this is another method...which launches a new instance of the PHP interpreter as a backgounrd process..