[PHP] Setting Different Temp Directory for Different Application Users

2007-06-23 Thread zareef
Hi All, I want to set different temp directory to every users of my application. Is it possible. TEMP_DIR is only configurable at system level, so I can do it only in PHP.INI or in apache as PHP_VALUE. Any Idea how this can be achieved using combination of things? Thanks in Advance. Zare

[PHP] Hi. I need your help here

2007-06-23 Thread J S
Hi. I came across your contact info at php.zend.com and was hoping you could help me out with this question. I recently installed Rubberwall10, a free software that protects from hotlinking and although I managed to installed the software correctly at my site, I came across the fact that when

Re: [PHP] Convert Date time into Seconds

2007-06-23 Thread kvigor
Cool, Like Ambien, It worked like a dream. "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 2007-06-23 at 21:29 -0500, kvigor wrote: >> Good Day, >> >> I'm chech if 24hrs has passed between these 2 datetimes: >> >> $dTime1 = 2007-06-21 11:08:09; >> >> $dTi

Re: [PHP] Convert Date time into Seconds

2007-06-23 Thread Robert Cummings
On Sat, 2007-06-23 at 21:29 -0500, kvigor wrote: > Good Day, > > I'm chech if 24hrs has passed between these 2 datetimes: > > $dTime1 = 2007-06-21 11:08:09; > > $dTime2 = 2007-06-22 07:08:09; > > I'd really like to convert the datetimes above into a format I can do > regular math them. $foo

[PHP] Convert Date time into Seconds

2007-06-23 Thread kvigor
Good Day, I'm chech if 24hrs has passed between these 2 datetimes: $dTime1 = 2007-06-21 11:08:09; $dTime2 = 2007-06-22 07:08:09; I'd really like to convert the datetimes above into a format I can do regular math them. Browsing around I've found the following code. But both weren't clear on

Re: [PHP] foreach() using current() strange beahvior

2007-06-23 Thread Nathan Nobbe
On 6/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: Regardless of additional documentation or not, I think it's rather poor choice of programming style to mix the foreach construct with the older, lower level, internal array manipulation and probing functions. I think that is what should be doc

Re: [PHP] foreach() using current() strange beahvior

2007-06-23 Thread Robert Cummings
On Sat, 2007-06-23 at 15:15 -0400, Nathan Nobbe wrote: > > in summary, COW or not; i think the documentation could be revised a bit to > clarify these subtleties. Regardless of additional documentation or not, I think it's rather poor choice of programming style to mix the foreach construct with t

Re: [PHP] foreach() using current() strange beahvior

2007-06-23 Thread Nathan Nobbe
Julien, i reproduced your experiment and got a different result on the first one. i found that the internal pointer does not seem to be affected if there is a check on the index of the internal pointer during iteration, but if there is no check on the index during iteration the pointer seems to

Re: [PHP] foreach() using current() strange beahvior

2007-06-23 Thread Robert Cummings
On Sat, 2007-06-23 at 19:15 +0200, Julien Pauli wrote: > Please consider this code : > > $a = array("One","Two","Three"); > > foreach ($a AS $k=>$v) { > } > > var_dump(current($a)); > // outputs boll(false); > > that's expected as foreach moves the internal array pointer, it's > documented. >

[PHP] foreach() using current() strange beahvior

2007-06-23 Thread Julien Pauli
Please consider this code : $v) { } var_dump(current($a)); // outputs boll(false); that's expected as foreach moves the internal array pointer, it's documented. now consider this : $v) { current($a); } var_dump(current($a)); // outputs string("One"); When using the internal pointer just by

Re: [PHP] Re: generate an etag header that apache can subsequentlyuse, how?

2007-06-23 Thread Jochem Maas
M. Sokolewicz wrote: > Hi Jochem, > > in your post I see: > Last-Modified: Fri, 22 Jun 2007 19:20:30 GMT > > and: > > -rw-r--r-- 1 apache apache 11924 Jun 22 21:20 foo.jpg > > Those two look like they're 2 hours off from eachother! Perhaps Apache > does some magic on the unix timestamp first?

Re: [PHP] Re:path finder

2007-06-23 Thread Tijnema
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > Sorry I have to correct it the above path works : > img > > src='http://www.mydomain.com/something/img/{$photoFileName}' > but I can see some of my photos! and when I right click on them > I see the properties : url://mydomain/img/26.jpg > size 2

Re: [PHP] Re: path finder

2007-06-23 Thread Tijnema
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > When I test my photo album in my IIS testing server relative path in the following > > > code works fine : > > > > >echo " > border='0' /> "; > > > > >but whe

[PHP] Re:path finder

2007-06-23 Thread elk dolk
> Sorry I have to correct it the above path works : > img > > src='http://www.mydomain.com/something/img/{$photoFileName}' > but I can see some of my photos! and when I right click on them > I see the properties : url://mydomain/img/26.jpg > size 2976 bytes > dim 120x160 > > when I right click on

[PHP] Re: path finder

2007-06-23 Thread elk dolk
> > On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > When I test my photo album in my IIS testing server relative path in the following > > > code works fine : > > > > >echo " > border='0' /> "; > > > > >but when I upload it to the web server I don't see my pho

Re: [PHP] Re: path finder

2007-06-23 Thread Tijnema
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > Hi all, > > When I test my photo album in my IIS testing server relative path in the following > > code works fine : > > >echo " b

[PHP] Re: path finder

2007-06-23 Thread elk dolk
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > > Hi all, > > When I test my photo album in my IIS testing server relative path in the > > following > > code works fine : > > >echo " > height='160' > border='0' /> "; > > >but

Re: [PHP] Re: path finder

2007-06-23 Thread Tijnema
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > Hi all, > When I test my photo album in my IIS testing server relative path in the following > code works fine : >echo " "; >but when I upload it to the web server I don't see my pho

[PHP] Re: path finder

2007-06-23 Thread elk dolk
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: > Hi all, > When I test my photo album in my IIS testing server relative path in the > following > code works fine : >echo " height='160' border='0' /> "; >but when I upload it to the web server I don't see my photos, my /home

Re: [PHP] path finder

2007-06-23 Thread Tijnema
On 6/23/07, elk dolk <[EMAIL PROTECTED]> wrote: Hi all, When I test my photo album in my IIS testing server relative path in the following code works fine : echo " "; but when I upload it to the web server I don't see my photos, my /home directory on the web server contains public_f

[PHP] path finder

2007-06-23 Thread elk dolk
Hi all, When I test my photo album in my IIS testing server relative path in the following code works fine : echo " "; but when I upload it to the web server I don’t see my photos, my /home directory on the web server contains public_ftp and public_html where my web site is store

Re: [PHP] Problems with matrix

2007-06-23 Thread Jochem Maas
Andres Rojas wrote: > Hi all, > > I'm new in PHP programming and I have a problem with this script. I need > to read a large file around 2Mb and several lines (28000). All start Ok, > but suddenly the script stop without message error. 1. check your error log (apache error log probably) 2. check

Re: [PHP] generate an etag header that apache can subsequently use, how?

2007-06-23 Thread Jochem Maas
Richard Heyes wrote: > Jochem Maas wrote: > >> but ... I need more speed ... > > Don't we all? Try these: > > 1. stat() is slow, try not to use it ack. > 2. Don't pass images through PHP if at all possible for dynamically, resampled images: I only do this on the initial request - php generate

Re: [PHP] generate an etag header that apache can subsequently use, how?

2007-06-23 Thread Richard Heyes
Jochem Maas wrote: but ... I need more speed ... Don't we all? Try these: 1. stat() is slow, try not to use it 2. Don't pass images through PHP if at all possible 3. Get Fiddler (www.fiddlertool.com) - It will let you see the HTTP response headers. It will show what's actually being reques

Re: [PHP] Re: generate an etag header that apache can subsequentlyuse, how?

2007-06-23 Thread M. Sokolewicz
Hi Jochem, in your post I see: Last-Modified: Fri, 22 Jun 2007 19:20:30 GMT and: -rw-r--r-- 1 apache apache 11924 Jun 22 21:20 foo.jpg Those two look like they're 2 hours off from eachother! Perhaps Apache does some magic on the unix timestamp first? Just a thought there. - Tul Jochem Maas

Re: [PHP] Small LAMP install/distro

2007-06-23 Thread Crayon Shin Chan
On Saturday 23 June 2007 04:29, Tijnema wrote: > > 3) This is basically the same as point 1, but I think it's still > > worth making. I don't know about anyone else, but this is 1 of 14 > > lists I subscribe to. Keeping track of what's happening in all > > current threads in all those lists is not