Re: [PHP] SESSION array problems

2008-10-01 Thread Jim Lucas
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0] => 6156 [1] => 7030 [2] =>

Re: [PHP] Re: Questions regarding limits of processes launched bysystem, exec,passthru ...

2008-10-01 Thread Valentin Schmid - ICSurselva AG
Hello Thodoris, > >> Hello all again, >> >> It seems that Problem can only be solved by one of the following ways: >> >> 1. Don't use mod_php; use CGI or FastCGI instead. Then it would be >>possible to limit the resources via RLimitCPU / RLimitMEM. >> > > I haven't tried that but as I have n

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
tedd wrote: At 3:41 PM -0400 10/1/08, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key => $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo "$last, $first"; } Jay: Close, it produced: Array, Array Array, Array Array, Array

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
Nathan Rixham wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0] => 6156 [1] => 7

Re: [PHP] Mailing List fun

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 16:52 -0400, Jason Pruim wrote: > On Oct 1, 2008, at 4:36 PM, Daniel Brown wrote: > > > On Wed, Oct 1, 2008 at 4:33 PM, tedd <[EMAIL PROTECTED]> wrote: > >> > >> The term "web-safe" when applied to images was a misnomer -- there > >> was no > >> such thing. > >> > >> It ori

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0] => 6156 [1] => 7030 [2] =>

Re: [PHP] SESSION array problems

2008-10-01 Thread Henrik Hudson
On Wednesday 01 October 2008, tedd <[EMAIL PROTECTED]> sent a missive stating: > At 2:43 PM -0500 10/1/08, Afan Pasalic wrote: > >just tested. works fine > > > > > > > >$_SESSION = array( > > '6156' => array( > > 'first_name'=> 'Diane', > >

Re: [PHP] SESSION array problems

2008-10-01 Thread Afan Pasalic
tedd wrote: > At 2:43 PM -0500 10/1/08, Afan Pasalic wrote: >> just tested. works fine >> >> >> >> $_SESSION = array( >> '6156' => array( >> 'first_name'=> 'Diane', >> 'last_name' => 'Cable'), >> '7030' => array( >>

Re: [PHP] SESSION array problems

2008-10-01 Thread Shawn McKenzie
tedd wrote: > At 2:43 PM -0500 10/1/08, Afan Pasalic wrote: >> just tested. works fine >> >> >> >> $_SESSION = array( >> '6156' => array( >> 'first_name'=> 'Diane', >> 'last_name' => 'Cable'), >> '7030' => array( >>

Re: [PHP] SESSION array problems

2008-10-01 Thread tedd
At 2:43 PM -0500 10/1/08, Afan Pasalic wrote: just tested. works fine $_SESSION = array( '6156' => array( 'first_name'=> 'Diane', 'last_name' => 'Cable'), '7030' => array( 'first_name'=>

Re: [PHP] Mailing List fun

2008-10-01 Thread Jason Pruim
On Oct 1, 2008, at 4:36 PM, Daniel Brown wrote: On Wed, Oct 1, 2008 at 4:33 PM, tedd <[EMAIL PROTECTED]> wrote: The term "web-safe" when applied to images was a misnomer -- there was no such thing. It originally pertained to certain colors that were consider staples of browsers, such as

Re: [PHP] Mailing List fun

2008-10-01 Thread tedd
At 4:36 PM -0400 10/1/08, Daniel Brown wrote: On Wed, Oct 1, 2008 at 4:33 PM, tedd <[EMAIL PROTECTED]> wrote: The term "web-safe" when applied to images was a misnomer -- there was no such thing. It originally pertained to certain colors that were consider staples of browsers, such as red,

Re: [PHP] Mailing List fun

2008-10-01 Thread Daniel Brown
On Wed, Oct 1, 2008 at 4:33 PM, tedd <[EMAIL PROTECTED]> wrote: > > The term "web-safe" when applied to images was a misnomer -- there was no > such thing. > > It originally pertained to certain colors that were consider staples of > browsers, such as red, white, blue, cornflowerblue, and so. I thi

RE: [PHP] Mailing List fun

2008-10-01 Thread tedd
At 3:54 PM -0400 10/1/08, Robert Cummings wrote: On Wed, 2008-10-01 at 19:48 +0100, Ashley Sheridan wrote: On Wed, 2008-10-01 at 14:12 -0400, Robert Cummings wrote: > I believe jpg is lossless if you choose 100% quality. > > Cheers, > Rob. > -- > http://www.interjinn.com > Application an

Re: [PHP] SESSION array problems

2008-10-01 Thread tedd
At 2:38 PM -0500 10/1/08, Afan Pasalic wrote: main reason - if you sort by first or last name you will lose "index". this way is index always "linked" to first/last name. Your point is well taken, but I'm not sorting this. True, the arrays have a common index, which is 0, 1, 2, 3 ... [us

RE: [PHP] Mailing List fun

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 21:11 +0100, Ashley Sheridan wrote: > > There are two types of JPEG, the normal ones, and the new 2000 format. > JPEG 2000 I believe supports CMYK and lossless compression, but the > images do not display on any browser I know of. This has caused a lot of > problems with CMS's

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
At 3:41 PM -0400 10/1/08, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key => $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo "$last, $first"; } Jay: Close, it produced: Array, Array Array, Array Array, Array

RE: [PHP] Mailing List fun

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 15:54 -0400, Robert Cummings wrote: > On Wed, 2008-10-01 at 19:48 +0100, Ashley Sheridan wrote: > > On Wed, 2008-10-01 at 14:12 -0400, Robert Cummings wrote: > > > I believe jpg is lossless if you choose 100% quality. > > > > > > Cheers, > > > Rob. > > > -- > > > http://www.

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
At 2:40 PM -0500 10/1/08, Shawn McKenzie wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array (

Re: [PHP] Mailing List fun

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 14:53 -0400, Daniel Brown wrote: > On Wed, Oct 1, 2008 at 2:48 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > Unless it's a JPEG 2000 (which isn't web-safe) then it's lossy, even at > > 100% quality. The nature of the algorithm is such that there is always > > loss invol

Re: [PHP] Mailing List fun

2008-10-01 Thread Jay Moore
Robert Cummings wrote: On Wed, 2008-10-01 at 19:48 +0100, Ashley Sheridan wrote: On Wed, 2008-10-01 at 14:12 -0400, Robert Cummings wrote: I believe jpg is lossless if you choose 100% quality. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP Unless it's a

Re: [PHP] Mailing List fun

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 14:53 -0400, Daniel Brown wrote: > On Wed, Oct 1, 2008 at 2:48 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > Unless it's a JPEG 2000 (which isn't web-safe) then it's lossy, even at > > 100% quality. The nature of the algorithm is such that there is always > > loss invol

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
Shawn McKenzie wrote: > tedd wrote: >> Hi gang: >> >> Apparently, there's something going on here that I don't understand -- >> this happens far too often these days. >> >> Here's a print_r($_SESSION); of the session arrays I'm using: >> >> [user_id] => Array >> ( >> [0] =>

RE: [PHP] Mailing List fun

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 19:48 +0100, Ashley Sheridan wrote: > On Wed, 2008-10-01 at 14:12 -0400, Robert Cummings wrote: > > I believe jpg is lossless if you choose 100% quality. > > > > Cheers, > > Rob. > > -- > > http://www.interjinn.com > > Application and Templating Framework for PHP > Unless i

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Afan Pasalic
tedd wrote: >> What about: >> >> foreach ($_SESSION['user_id'] as $key => $value) >> { >> $last = $_SESSION['last_name'][$key]; >> $first = $_SESSION['first_name'][$key]; >> echo "$last, $first"; >> } > > Jay: > > Close, it produced: > > Array, Array > Array, Array > Array, Array > > Ch

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 15:41 -0400, tedd wrote: > >What about: > > > >foreach ($_SESSION['user_id'] as $key => $value) > >{ > > $last = $_SESSION['last_name'][$key]; > > $first = $_SESSION['first_name'][$key]; > > echo "$last, $first"; > >} > > Jay: > > Close, it produced: > > Array,

Re: [PHP] SESSION array problems

2008-10-01 Thread Afan Pasalic
tedd wrote: > Hi gang: > > Apparently, there's something going on here that I don't understand -- > this happens far too often these days. > > Here's a print_r($_SESSION); of the session arrays I'm using: > > [user_id] => Array > ( > [0] => 6156 > [1] => 7030 >

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Stut wrote: > On 1 Oct 2008, at 11:40, Per Jessen wrote: > >> Alain Roger wrote: >> >>> how can i get the 'name' value for each row in this session stored >>> array ? thx. >> >> You haven't stored an array in the session, you've tried to store an >> object of class CBreadcrumb. Which AFAIK isn't

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
tedd wrote: > Hi gang: > > Apparently, there's something going on here that I don't understand -- > this happens far too often these days. > > Here's a print_r($_SESSION); of the session arrays I'm using: > > [user_id] => Array > ( > [0] => 6156 > [1] => 7030

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
What about: foreach ($_SESSION['user_id'] as $key => $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo "$last, $first"; } Jay: Close, it produced: Array, Array Array, Array Array, Array Cheers, tedd -- --- http://sperlin

Re: [PHP] SESSION array problems

2008-10-01 Thread Afan Pasalic
tedd wrote: > Hi gang: > > Apparently, there's something going on here that I don't understand -- > this happens far too often these days. > > Here's a print_r($_SESSION); of the session arrays I'm using: > > [user_id] => Array > ( > [0] => 6156 > [1] => 7030 >

Re: [PHP] Re: problem with slash / characters

2008-10-01 Thread Tanner Postert
figured it out. later on in the code theres some formatting for a specific values that the address_2 field was accidentally falling into. On Wed, Oct 1, 2008 at 12:24 PM, Tanner Postert <[EMAIL PROTECTED]>wrote: > just did some further testing, and even if I remove the special characters, > the

[PHP] Re: SESSION array problems

2008-10-01 Thread Jay Moore
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0] => 6156 [1] => 7030 [2] =>

Re: [PHP] Re: problem with slash / characters

2008-10-01 Thread Tanner Postert
just did some further testing, and even if I remove the special characters, the 3rd character in that string becomes a 1. I change it to Company XYZ, and it looks right when its assigned to the array the first time, and on the next iteration of the loop. but after that, it looks lke Co1pany XYZ.

Re: [PHP] Re: problem with slash / characters

2008-10-01 Thread Tanner Postert
very, strange. if I change it to c / o Company XYZ ( with spaces between each character) it becomes: c 1 o Company XYZ. if I change it to c#o Company XYZ it becomes c1o Company XYZ On Wed, Oct 1, 2008 at 12:16 PM, Al <[EMAIL PROTECTED]> wrote: > > > Tanner Postert wrote: > >> ignore previous. so

Re: [PHP] problem with slash / characters

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 12:02 -0700, Tanner Postert wrote: > ignore previous. sorry. > > I'm trying to display values from a database, the values come from the > database like this: > > [0] => Array > ( >[id] => 5 >[order_id] => 10 >[key] => ship_to_name >[value] => John Anderson >

[PHP] Re: problem with slash / characters

2008-10-01 Thread Al
Tanner Postert wrote: ignore previous. sorry. I'm trying to display values from a database, the values come from the database like this: [0] => Array ( [id] => 5 [order_id] => 10 [key] => ship_to_name [value] => John Anderson ) [1] => Array ( [id] => 6 [order_id] => 10 [k

[PHP] problem with slash / characters

2008-10-01 Thread Tanner Postert
ignore previous. sorry. I'm trying to display values from a database, the values come from the database like this: [0] => Array ( [id] => 5 [order_id] => 10 [key] => ship_to_name [value] => John Anderson ) [1] => Array ( [id] => 6 [order_id] => 10 [key] => ship_to_address

RE: [PHP] Mailing List fun 0T?

2008-10-01 Thread Boyd, Todd M.
> -Original Message- > From: Daniel Brown [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2008 1:54 PM > To: [EMAIL PROTECTED] > Cc: Robert Cummings; Boyd, Todd M.; php-general@lists.php.net > Subject: Re: [PHP] Mailing List fun > > On Wed, Oct 1, 2008 at 2:48 PM, Ashley Sheridan

Re: [PHP] Mailing List fun

2008-10-01 Thread Daniel Brown
On Wed, Oct 1, 2008 at 2:48 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > Unless it's a JPEG 2000 (which isn't web-safe) then it's lossy, even at > 100% quality. The nature of the algorithm is such that there is always > loss involved, which is why it's best to work on photos that are not in > J

[PHP] SESSION array problems

2008-10-01 Thread tedd
Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0] => 6156 [1] => 7030 [2] => 656

Re: [PHP] problem with slash / characters

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 11:40 -0700, Tanner Postert wrote: > I'm pulling a value from a database, and adding it to an array. > > The values come from the database like this: > > [0] Erm... I think you may need to repost this question! Ash www.ashleysheridan.co.uk

RE: [PHP] Mailing List fun

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 14:12 -0400, Robert Cummings wrote: > I believe jpg is lossless if you choose 100% quality. > > Cheers, > Rob. > -- > http://www.interjinn.com > Application and Templating Framework for PHP Unless it's a JPEG 2000 (which isn't web-safe) then it's lossy, even at 100% quality

Re: [PHP] Re: photo file size

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 18:00 +0100, Nathan Rixham wrote: > elk dolk wrote: > > > > Hi All, > > > > I have some photos with different file sizes like 100KB 125KB 200KB ,… > > I want to shrink them and reduce the > > file size to Max 60KB without sacrificing image > > quality and size! > > > >

[PHP] problem with slash / characters

2008-10-01 Thread Tanner Postert
I'm pulling a value from a database, and adding it to an array. The values come from the database like this: [0]

RE: [PHP] Mailing List fun

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 12:00 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Robert Cummings [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 01, 2008 11:57 AM > > To: Boyd, Todd M. > > Cc: php-general@lists.php.net > > Subject: RE: [PHP] Mailing List fun > > > > On Wed,

RE: [PHP] Re: photo file size

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 11:57 -0500, Boyd, Todd M. wrote: > > I was under the impression that .png files were "lossless"? Maybe I'm > wrong... but the .png files I manipulate in a few of my projects are almost > always larger than their other-format counterparts. I've only used .png in > the past

[PHP] Re: table with paging and sorting

2008-10-01 Thread Nathan Rixham
Alain Roger wrote: i used in the past a former version of Pear package to create table with pagination and sorting. i would like to know if there are some other solution (free) to do something like this... on the clientside you have YUI Tables for the html/js solution and Flex Datagrids if yo

[PHP] table with paging and sorting

2008-10-01 Thread Alain Roger
sorry here is the link http://i220.photobucket.com/albums/dd277/alainroger/development/example-table.gif -- Forwarded message -- From: Alain Roger <[EMAIL PROTECTED]> Date: Wed, Oct 1, 2008 at 7:34 PM Subject: table with paging and sorting To: PHP General List Hi, i used in th

[PHP] table with paging and sorting

2008-10-01 Thread Alain Roger
Hi, i used in the past a former version of Pear package to create table with pagination and sorting. i would like to know if there are some other solution (free) to do something like this one : http://s220.photobucket.com/albums/dd277/alainroger/development/?action=view¤t=example-table.gif"; targe

RE: [PHP] photo file size

2008-10-01 Thread Boyd, Todd M.
> -Original Message- > From: elk dolk [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2008 11:26 AM > To: php-general@lists.php.net > Subject: [PHP] photo file size > > Hi All, > > I  have some photos with  different file sizes like 100KB 125KB 200KB > ,... > I  want to shrink th

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Larry Brown
how about: $bci = $_SESSION['bc']; foreach($bci->crumb as myCrumb) { echo "value['name'] :".$myCrumb['name'].""; echo "value['link'] :".$myCrumb['link'].""; echo "value['id'] : ".$myCrumb['id'].""; } You are wanting to loop through the crumbs rather than looping objects. There is onl

Re: [PHP] Robert Cummings

2008-10-01 Thread Daniel Brown
On Wed, Oct 1, 2008 at 1:08 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Nah, nothing so exotic :) Sarah and I have been keeping to a > Scottish/Irish naming scheme. We currently have Keiran (newborn), Fiona > (2.5 years), and Colin (~5 years). Ah, good Gaelic names. Go mbeannaí Dia pái

Re: [PHP] Robert Cummings

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 07:41 +0800, paragasu wrote: > i don't wan't to go off without saying congrats to Rob too! > congrats Rob.. i am quite amazed that PHP mailing list is the first > thing in your mind > after receiving that news. Well not the first thing... but one does need to relax and I find

Re: [PHP] Mailing List fun

2008-10-01 Thread Daniel Brown
On Wed, Oct 1, 2008 at 12:56 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> >> Se la vi. > > I'm sure you mean "C'est la vie!" here, unless that isn't French :) He was referring to the editor, Vi. In a language known as Peachpese, it is directly-translated as "see the editor." And, in the

Re: [PHP] Robert Cummings

2008-10-01 Thread Robert Cummings
On Tue, 2008-09-30 at 17:59 -0500, Ray Hauge wrote: > Daniel Brown wrote: > > All: > > > > What was pointed as a passing mention in one thread I thought was > > worth note in a thread of its own. As quoted by Rob: > > > >> BTW, while we're off topic... my wife delivered our third child (

[PHP] Re: photo file size

2008-10-01 Thread Nathan Rixham
elk dolk wrote: Hi All, I have some photos with different file sizes like 100KB 125KB 200KB ,… I want to shrink them and reduce the file size to Max 60KB without sacrificing image quality and size! amazon s3 -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex +

RE: [PHP] Mailing List fun

2008-10-01 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2008 11:57 AM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] Mailing List fun > > On Wed, 2008-10-01 at 11:50 -0500, Boyd, Todd M. wrote: > > > -Original Mess

Re: [PHP] Robert Cummings

2008-10-01 Thread Robert Cummings
On Tue, 2008-09-30 at 18:01 -0400, Daniel Brown wrote: > On Tue, Sep 30, 2008 at 5:43 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > Thanks for the congrats. No need to visit the hospital, this time round > > my wife was able to get a midwife and so the baby was delivered in the > > comfort

RE: [PHP] Re: photo file size

2008-10-01 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2008 11:54 AM > To: Maciek Sokolewicz > Cc: [EMAIL PROTECTED]; php-general@lists.php.net > Subject: Re: [PHP] Re: photo file size > > On Wed, 2008-10-01 at 18:34 +0200, Maciek Sokolewicz w

RE: [PHP] Mailing List fun

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 11:50 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Wolf [mailto:[EMAIL PROTECTED] > > ---8<--- snip! > > Yeah... if you put OT anywhere in the topic, it rejects it automagically. I > wondered why people were using zero-T (0T) instead; now I know. :)

RE: [PHP] photo file size

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 09:44 -0700, Warren Vail wrote: > The GD library has a number of functions that alter the size of an image, > and converting from one file type to another can sometimes be used to reduce > file size without reducing image size, but to do so it must give up detail > (i.e. image

Re: [PHP] Re: photo file size

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 18:34 +0200, Maciek Sokolewicz wrote: > elk dolk wrote: > > > > > > > > Hi All, > > > > I have some photos with different file sizes like 100KB 125KB 200KB ,… > > I want to shrink them and reduce the > > file size to Max 60KB without sacrificing image > > quality and s

RE: [PHP] Mailing List fun

2008-10-01 Thread Boyd, Todd M.
> -Original Message- > From: Wolf [mailto:[EMAIL PROTECTED] ---8<--- snip! Yeah... if you put OT anywhere in the topic, it rejects it automagically. I wondered why people were using zero-T (0T) instead; now I know. :) Seems kind of strange that going through the effort of flagging your

Re: [PHP] script hangs on curl_exec

2008-10-01 Thread Rene Veerman
Robert Cummings wrote: On Wed, 2008-10-01 at 17:31 +0200, Rene Veerman wrote: I have a script that uses curl to call a worker function on another server. For small workloads, it works just fine. But when my script processes a large zip-file and updates some status files, curl_exec never ret

Re: [PHP] script hangs on curl_exec

2008-10-01 Thread Robert Cummings
On Wed, 2008-10-01 at 17:31 +0200, Rene Veerman wrote: > I have a script that uses curl to call a worker function on another server. > For small workloads, it works just fine. > > But when my script processes a large zip-file and updates some status > files, curl_exec never returns the result dat

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Thodoris
This is what i did afterall, but when i unserialize it like this way: $bci = unserialize($_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$key; echo ""; } i get absolutely the same result as the code below. in fact $key returns me the 2 variables memb

RE: [PHP] photo file size

2008-10-01 Thread Warren Vail
The GD library has a number of functions that alter the size of an image, and converting from one file type to another can sometimes be used to reduce file size without reducing image size, but to do so it must give up detail (i.e. image quality). This is what is meant by the expression, "There is

[PHP] photo file size

2008-10-01 Thread elk dolk
>Without sacrificing size AND quality? So you don't want to lose enough >data to get to a max 60KB amount, without actually losing data... wow, >that won't be easy; or even better, it will probably not even be >possible. Changing formats makes the size smaller, but always loses some >detail/mod

[PHP] Mailing List fun

2008-10-01 Thread Wolf
Subject:OT: Mail service Restored Who'd have thunk that a person who messes up a Time Warner account and WORKS in Time Warner can disable your email accounts. Not only that, but when they finally figure out what happened (3 phone calls, over an hour on the phone with them), they are

[PHP] Re: photo file size

2008-10-01 Thread Maciek Sokolewicz
elk dolk wrote: Hi All, I have some photos with different file sizes like 100KB 125KB 200KB ,… I want to shrink them and reduce the file size to Max 60KB without sacrificing image quality and size! Without sacrificing size AND quality? So you don't want to lose enough data to get to a

[PHP] photo file size

2008-10-01 Thread elk dolk
Hi All, I  have some photos with  different file sizes like 100KB 125KB 200KB ,… I  want to shrink them and reduce the file size to Max 60KB  without sacrificing image quality and size! PHP should have a solution for reducing the size of files in Batch. Please comment. thanks

RE: [PHP] mysql_query() vs query_database()

2008-10-01 Thread Jay Blanchard
[snip] RE: mysql_query() vs query_database() What is the differences between mysql_query and query_database? Are both compatible with PHP 5 and MySQL 5? Is one faster than the other? [/snip] query_database appears to be someone's function for generic database queries and is not a part of the PHP

[PHP] mysql_query() vs query_database()

2008-10-01 Thread Keith Spiller
Hi, RE: mysql_query() vs query_database() What is the differences between mysql_query and query_database? Are both compatible with PHP 5 and MySQL 5? Is one faster than the other? Thank you for your help. Keith

[PHP] script hangs on curl_exec

2008-10-01 Thread Rene Veerman
I have a script that uses curl to call a worker function on another server. For small workloads, it works just fine. But when my script processes a large zip-file and updates some status files, curl_exec never returns the result data even though the called script does send it. Any ideas? --

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Alain Roger
> > >> later on i try to use the content of this array, bt without success. >>> Here is what i do: >>> >>> $bci = array($_SESSION['bc']); >>> array_push($bci,$_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$bci[$key]['name']; echo ""; } >>>

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Alain Roger
On Wed, Oct 1, 2008 at 2:43 PM, Frank Arensmeier <[EMAIL PROTECTED]> wrote: > 1 okt 2008 kl. 12.31 skrev Alain Roger: > > ... > >> >>> > later on i try to use the content of this array, bt without success. >> Here is what i do: >> >> $bci = array($_SESSION['bc']); >> >>> array_push($bci,$_SESSION

Re: [PHP] Sterilizing regexp

2008-10-01 Thread Eric Butera
On Wed, Oct 1, 2008 at 2:53 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Frank Stanovcak wrote: > >> I've got to pass about 9 or 10 calls to it, some of which will be >> arrays, and I have to do it from several different places. Felt this >> was a bit more elegant than hard coding the pregmatches u

Re: [PHP] Sterilizing regexp

2008-10-01 Thread tedd
At 8:53 AM +0200 10/1/08, Per Jessen wrote: Code elegance is usually in the eye of the beholder, but personally I would have stuck to a set of hardcoded preg_matches(). /Per Jessen, Zürich I agree, however with this caveat: Code elegance is in the eye of the beholder. It is usually painful a

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Frank Arensmeier
1 okt 2008 kl. 12.31 skrev Alain Roger: ... later on i try to use the content of this array, bt without success. Here is what i do: $bci = array($_SESSION['bc']); array_push($bci,$_SESSION['bc']); foreach($bci as $key=>$value) { echo "bci : ".$bci[$key]['name']; echo ""; } how can i

Re: [PHP] Re: PHP + Cron jobs

2008-10-01 Thread Per Jessen
Waynn Lue wrote: > Oh, I thought having one for cgi and one for cli was common. Do people > generally run only one, regardless of whether they're hitting it from > a webserver or running it from the commandline? I think the general setup is a php cli executable in /usr/bin/php and the php apache

[PHP] Re: PHP + Cron jobs

2008-10-01 Thread Waynn Lue
Oh, I thought having one for cgi and one for cli was common. Do people generally run only one, regardless of whether they're hitting it from a webserver or running it from the commandline? Thanks, Waynn On 10/1/08, Per Jessen <[EMAIL PROTECTED]> wrote: > Waynn Lue wrote: > >> Right, and I am, so

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Stut
On 1 Oct 2008, at 11:40, Per Jessen wrote: Alain Roger wrote: how can i get the 'name' value for each row in this session stored array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported. It is supported but y

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Alain Roger wrote: > how can i get the 'name' value for each row in this session stored > array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported. /Per Jessen, Zürich -- PHP General Mailing List (http://www.p

Re: [PHP] PHP + Cron jobs

2008-10-01 Thread Per Jessen
Waynn Lue wrote: > Right, and I am, so I stayed away from that solution. My next > attempt was to specify /usr/local/bin/php in the cron job, but that > led to a problem because of the include paths. Now that I specific > the full path, evidently the include path no longer is relative to the > d

[PHP] store array into session variable and get it back later

2008-10-01 Thread Alain Roger
Hi, i have a 2 dim array defined as following: class CBreadcrumb > { > // array holding the complete Breadcrumb > var $crumb = array(); > > /* > * Constructor > */ > function CBreadcrumb() > { > > } > > /* > * Add new stage > */ > function Add($

Re: [PHP] PHP + Cron jobs

2008-10-01 Thread Waynn Lue
On Mon, Sep 29, 2008 at 9:34 AM, Richard Lynch <[EMAIL PROTECTED]> wrote: > If you are running PHP as CGI, replacing the CGI with CLI could be > problematic down the road... > > Right, and I am, so I stayed away from that solution. My next attempt was to specify /usr/local/bin/php in the cron jo

Re: [PHP] Robert Cummings

2008-10-01 Thread Thodoris
O/H Robert Cummings ??: On Tue, 2008-09-30 at 14:17 -0400, Wolf wrote: Daniel Brown <[EMAIL PROTECTED]> wrote: All: What was pointed as a passing mention in one thread I thought was worth note in a thread of its own. As quoted by Rob: BTW, while we're off top