RE: [PHP] Session creation time

2005-09-19 Thread Stanislav Kuhn
session_start(); if (empty($_SESSION['start_time']) $_SESSION['start_time']=time(); echo $_SESSION['start_time']; -Original Message- From: Eli [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 13:21 To: php-general@lists.php.net Subject: [PHP] Session creation time How can I get th

[PHP] comparing references

2005-09-02 Thread Stanislav Kuhn
Hi guys, quick question I need to find out if two different variables are pointing to same place... example: $var1 = &my_array; $var2 = &my_array; I need to do: if ($var1 === $var2) but I don't want to compare it by data, array is gonna be quite big and condition used in loop quite often. I n

RE: [PHP] getting filenames from dir

2005-04-01 Thread Stanislav Kuhn
HI... Do you read php manual sometimes? ;o) just replace echo "$file\n"; by $my_file_array[]=$file; readdir (PHP 3, PHP 4 , PHP 5) readdir -- read entry from directory handle Description string readdir ( resource dir_handle) Returns the filename of the next file from the directory. The filen

RE: [PHP] A more ecconomical way with control statements??

2005-03-07 Thread Stanislav Kuhn
in the form: ... ... in the script ... foreach($_REQUEST['cookie_vars'] $var_name as $var_val) if (!empty($var)) setcookie("cookie[$var_name]", "$var_val"); ... Stan -Original Message- From: Ross Hulford [mailto:[EMAIL PROTECTED] Sent: 07 March 2005 12:59 To: php-general@lists.p

RE: [PHP] Re: Fatal error: Maximum execution time

2005-02-21 Thread Stanislav Kuhn
. -Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: 21 February 2005 15:04 To: php-general@lists.php.net Subject: [PHP] Re: Fatal error: Maximum execution time Stanislav Kuhn wrote: ... > > PHP Fatal error: Maximum execution time of 30 seconds exceeded in .php >

[PHP] Fatal error: Maximum execution time

2005-02-21 Thread Stanislav Kuhn
Hi guys, I've got a processing script which takes long time to finish. The script includes several others and is ran from command line(by cron). I've sent phpinfo from inside of processing to my email, here is the important part max_execution_time => 1800 => 0 max_input_time => 120 => 120 memory_l

[PHP] wrapper

2004-10-20 Thread Stanislav Kuhn
Hi everybody, i'm trying open url by fopen or file_get_content but always receive error message failed to open stream: no suitable wrapper could be found i know only about one php variable has to be set allow_url_fopen = On and it is. I run it on two different servers on first it works there is ph

Re: [PHP] Sessions vs. IE security

2004-08-25 Thread Stanislav Kuhn
Thanks guys for helps.. I've tried many that things and I found solution. Solution for me was set up Privacy Policy for our site... First time it didn't work because i haven't done Compact privacy policy witch is optional but IE requires it ;o) While compact policies are entirely optional for P3P-

[PHP] RE: [SPAM] Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Stanislav Kuhn
a? tnx. S. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: 24 August 2004 16:46 To: Stanislav Kuhn; [EMAIL PROTECTED] Subject: [SPAM] Re: [PHP] Sessions vs. IE security --- Stanislav Kuhn <[EMAIL PROTECTED]> wrote: > But problem is when I want to include my sctip

[PHP] Sessions vs. IE security

2004-08-24 Thread Stanislav Kuhn
Hi there, I have a problem and i can't find solution. Poblem is with security level of IE and using session. Normaly IE sending session id to server automatically, when you lift security level in IE to HIGH (i'm talking about version 6.x now) IE doesn't send session id atomatically to server. I c