[PHP] PHP Sessions

2005-09-11 Thread Chris Wagner
hello, i recently started using PHP's sessions. i am finding that the sessions seem to "expire" after 20 or 30 minutes -- or, at least the variables which i set, within $_SESSION, are getting cleared after this relatively short amount of time. before calling session_start(), i do a few initializ

[PHP] checking for utilities/applications in the PATH

2004-08-25 Thread Chris Wagner
hi, i am trying to do a simple check for archiving utilities (zip, unzip, ...), to make sure they exist within the PATH, and are executable by PHP. i could not find a better way to do this through php, so i went ahead and did an exec('which ' . $utility, $output, $return_value); then, i check t

[PHP] triggering scripts through apache configuration

2004-06-18 Thread Chris Wagner
hello, wondering how you might go about triggering PHP scripts from an apache configuration file, for certain events... for instance, how might i trigger a script whenever a file was accessed within a given directory. and, would it be possible to know which file was accessed? if the above is po

[PHP] triggering php scripts...

2004-05-30 Thread Chris Wagner
hello, i am wondering if there is a good way to trigger a php script from a web page *without* sending the user to a new page or opening a new browser windows. for instance, suppose you wanted to make a button/link on a web page that, when clicked, would cause a database entry to be decremented.

[PHP] determining number of rows in a mysql table

2004-03-29 Thread Chris Wagner
this should be easy... how would one go about determining the number of rows in a mysql table, without actually wasting the time of querying for *. is this the best way? $result = mysql_query('SELECT * FROM tablename'); $num_rows = mysql_num_rows($result); does this actually take up time search

[PHP] Apache Config: php_value "auto_prepend_file" & "auto_append_file"

2004-03-12 Thread Chris Wagner
hi, i'm running a server with Fedora Core 1. this is using Apache 2.0.48 and PHP 4.3.4. i have my http server root at /var/www/html/. i have some virtual hosts setup. i've just installed phpMyAdmin 2.5.6. my problem lies within the auto_prepend_file and auto_append_file directives provided by