php-general Digest 1 Jul 2009 12:20:36 -0000 Issue 6205

2009-07-01 Thread php-general-digest-help
php-general Digest 1 Jul 2009 12:20:36 - Issue 6205 Topics (messages 294769 through 294789): Re: check a variable after EACH function 294769 by: Shawn McKenzie 294774 by: Paul M Foster 294778 by: Phpster 294780 by: Paul M Foster 294784 by: Nisse

[PHP] my first order job on manages jobs

2009-07-01 Thread Suresh Gupta VG
Hi List, This is the first job chain I am creating using manages job chains. I am trying to create 2 order jobs, 1 order and one jobchain. First I created an orderjob and named it and tried to edit it. A new window displayed with the properties of that order job. I choose executable file from

Re: [PHP] PHP 5.3.0 Released!

2009-07-01 Thread Michael A. Peters
Michael A. Peters wrote: http://www.clfsrpm.net/php53/ I just have to try to rebuild some of the pecl modules, and test it to make sure the build doesn't segfault or give me the finger or anything rude like that before I upload the src.rpm. Ugh - limited testing shows the interpreter

[PHP] Re: check a variable after EACH function

2009-07-01 Thread Nisse Engström
On Tue, 30 Jun 2009 18:31:54 -0500, Flint Million wrote: Suppose I have some kind of check variable - say for example $abort_now. Or it could be a function. Something to be evaluated to a value. I want to execute a block of statements, but after EACH statement executes, check the value of

Re: [PHP] exasperated again - shot in the foot

2009-07-01 Thread Stuart
2009/7/1 PJ af.gour...@videotron.ca: Jay Blanchard wrote: [snip] Use the OOP interface to mysqli or PDO and these problems don't happen [/snip] Either that or include a modicum of error checking in your code. OK, Ok, I feel stupid enough already. I'm not sure I want to get in that

Re: [PHP] my first order job on manages jobs

2009-07-01 Thread Stuart
2009/7/1 Suresh Gupta VG sures...@zensar.com: Hi List, This is the first job chain I am creating using manages job chains. I am trying to create 2 order jobs, 1 order and one jobchain. First I created an orderjob and named it and tried to edit it. A new window displayed with the

Re: [PHP] PHP 5.3.0 Released!

2009-07-01 Thread Michael A. Peters
Michael A. Peters wrote: Michael A. Peters wrote: http://www.clfsrpm.net/php53/ I just have to try to rebuild some of the pecl modules, and test it to make sure the build doesn't segfault or give me the finger or anything rude like that before I upload the src.rpm. Ugh - limited testing

Re: [PHP] exasperated again - shot in the foot

2009-07-01 Thread Lester Caine
Stuart wrote: 3) Google/Bing it (yeah, Bing's never gonna catch on like that!) Of cause it would be nice to see the Bing clockwork toys that run it ... I couldn't help giggle when they announced they were naming it after a toy manuafacturer :) -- Lester Caine - G8HFL

[PHP] Re: Cleaning up automatically when leaving a page

2009-07-01 Thread Al
Mary Anderson wrote: Hi all, I have a php application for which I have a page which creates temporary junk and puts it into a persistent store (in this case a postgres database, but that is beside the point.) I have a Save button which puts the stuff I really want into the

RE: [PHP] Re: Push an Array, Comma separated.

2009-07-01 Thread Ford, Mike
-Original Message- From: Louie Miranda [mailto:lmira...@gmail.com] Sent: 01 July 2009 04:19 To: php-general@lists.php.net Subject: Re: [PHP] Re: Push an Array, Comma separated. This is what I did. And it worked. $saveFiles = array(); $arrSize=sizeof($saveFiles);

Re: [PHP] Re: check a variable after EACH function

2009-07-01 Thread Andrew Ballard
2009/7/1 Nisse Engström news.nospam.0ixbt...@luden.se: On Tue, 30 Jun 2009 18:31:54 -0500, Flint Million wrote: Suppose I have some kind of check variable - say for example $abort_now. Or it could be a function. Something to be evaluated to a value. I want to execute a block of statements,

[PHP] Re: my first order job on manages jobs

2009-07-01 Thread Shawn McKenzie
Suresh Gupta VG wrote: Hi List, This is the first job chain I am creating using manages job chains. I am trying to create 2 order jobs, 1 order and one jobchain. First I created an orderjob and named it and tried to edit it. A new window displayed with the properties of that order job.

Re: [PHP] exasperated again - shot in the foot

2009-07-01 Thread Shawn McKenzie
Lester Caine wrote: Stuart wrote: 3) Google/Bing it (yeah, Bing's never gonna catch on like that!) Of cause it would be nice to see the Bing clockwork toys that run it ... I couldn't help giggle when they announced they were naming it after a toy manuafacturer :) OT, but the first time I

[PHP] Select and compare problems still ...

2009-07-01 Thread Miller, Terion
Why doesn't this work? $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress' ; $result = mysql_query($query) or die(mysql_error()); echo $result; $row = mysql_fetch_array ($result); $sql = INSERT INTO `restaurants` (name, address,

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Phpster
On Jul 1, 2009, at 10:56 AM, Miller, Terion tmil...@springfi.gannett.com wrote: Why doesn't this work? $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress' ; $result = mysql_query($query) or die(mysql_error()); echo $result; $row =

[PHP] Problems with unit tests

2009-07-01 Thread Bob McConnell
I am using test-harness.php (PHP TAP Test Harness 1_0_0_BETA) and test-more.php to write some unit tests for several libraries of functions. These tests need to run from a MS-Windows CLI so they can be run on our desktops for now and can be added to the automated build process later. I have

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Andrew Ballard
On Wed, Jul 1, 2009 at 10:56 AM, Miller, Teriontmil...@springfi.gannett.com wrote: Why doesn't this work?    $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress'   ; $result = mysql_query($query) or die(mysql_error());  echo $result;     $row =

[PHP] Split up Date Range

2009-07-01 Thread Matt Neimeyer
I haven't been able to find anything by googling... Does anyone know of any libraries that will split up date ranges? We've got a project where Date Of Attendance is moving from a single type in character field to an automatically built field based on a DateBegin date field and a DateEnd date

Re: [PHP] Split up Date Range

2009-07-01 Thread Ashley Sheridan
On Wednesday 01 July 2009 16:25:29 Matt Neimeyer wrote: I haven't been able to find anything by googling... Does anyone know of any libraries that will split up date ranges? We've got a project where Date Of Attendance is moving from a single type in character field to an automatically built

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Miller, Terion
On 7/1/09 10:06 AM, Phpster phps...@gmail.com wrote: On Jul 1, 2009, at 10:56 AM, Miller, Terion tmil...@springfi.gannett.com wrote: Why doesn't this work? $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress' ; $result = mysql_query($query)

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Andrew Ballard
On Wed, Jul 1, 2009 at 11:23 AM, Andrew Ballardaball...@gmail.com wrote: On Wed, Jul 1, 2009 at 10:56 AM, Miller, Teriontmil...@springfi.gannett.com wrote: Why doesn't this work?    $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress'   ; $result =

Re: [PHP] Split up Date Range

2009-07-01 Thread Adam Shannon
It would be easier to standardize the input so you only have to run one regular expression check to validate and then split the data up. On Wed, Jul 1, 2009 at 10:33 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wednesday 01 July 2009 16:25:29 Matt Neimeyer wrote: I haven't been able

[PHP] Re: cannot figure out permissions for fopen/fwrite

2009-07-01 Thread Shawn McKenzie
Shawn McKenzie wrote: Mari Masuda wrote: Hello, This is probably a dumb newbie question. I am running PHP 5.2.5 and Apache 2.2.8 on my Mac Book Pro OS X 10.4.11. I compiled PHP and Apache from source a while ago (as opposed to using the built-in web server that is included w/ Mac OS X).

Re: [PHP] Re: cannot figure out permissions for fopen/fwrite

2009-07-01 Thread Mari Masuda
On Jul 1, 2009, at 12:20, Shawn McKenzie wrote: Shawn McKenzie wrote: Mari Masuda wrote: Hello, This is probably a dumb newbie question. I am running PHP 5.2.5 and Apache 2.2.8 on my Mac Book Pro OS X 10.4.11. I compiled PHP and Apache from source a while ago (as opposed to using the

Re: [PHP] Re: cannot figure out permissions for fopen/fwrite

2009-07-01 Thread Shawn McKenzie
Mari Masuda wrote: On Jul 1, 2009, at 12:20, Shawn McKenzie wrote: Shawn McKenzie wrote: Mari Masuda wrote: Hello, This is probably a dumb newbie question. I am running PHP 5.2.5 and Apache 2.2.8 on my Mac Book Pro OS X 10.4.11. I compiled PHP and Apache from source a while ago (as

Re: [PHP] Re: cannot figure out permissions for fopen/fwrite

2009-07-01 Thread Mari Masuda
On Jul 1, 2009, at 12:54, Shawn McKenzie wrote: Mari Masuda wrote: On Jul 1, 2009, at 12:20, Shawn McKenzie wrote: Shawn McKenzie wrote: Mari Masuda wrote: Hello, This is probably a dumb newbie question. I am running PHP 5.2.5 and Apache 2.2.8 on my Mac Book Pro OS X 10.4.11. I

[PHP] Call for testing: New PHP 5.3 debian packages

2009-07-01 Thread sean finney
(Please excuse the gratuitous cross-post) Now that PHP 5.3 has been officially released[1], the Debian PHP packaging team would like to announce the availability of PHP 5.3 packages for initial public testing. The packages are currently available for both amd64 and i386 users of

[PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Pablo Viquez
Hi, I just downloaded the new stable version of PHP 5.3 and I couldnt find the php5apache2_2.dll file. Is the apache module on windows no longer supported? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Jonathan Tapicer
What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there... On Wed, Jul 1, 2009 at 7:31 PM, Pablo Viquezpviq...@pabloviquez.com wrote: Hi, I just downloaded the new stable version of PHP 5.3 and I couldnt find the php5apache2_2.dll file. Is the apache module on windows no

Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Adam Shannon
Yes, you need to use the V6 installer, I did the same thing with the V9 and it won't work. Only after uninstalling PHP did I see that line of text saying which one to use... On Wed, Jul 1, 2009 at 5:54 PM, Jonathan Tapicer tapi...@gmail.com wrote: What version, VC6 or VC9, TS or NTS? I use VC6

[PHP] removing an array from a compound array

2009-07-01 Thread Andres Gonzalez
I have a compound array, that is, an array of an array of an array, etc, that is about 5 arrays deep. I currently search thru all of these arrays, and based on some criteria, I want to delete one of the arrays (along with all of its sub-arrays) in the middle. What is the easiest way to delete

Re: [PHP] Apache module PHP 5.3 on Windows

2009-07-01 Thread Pablo Viquez
Sorry my mistake, I was looking in the wrong built. Thank you! - Original Message - From: Adam Shannon a...@ashannon.us Newsgroups: php.general To: Jonathan Tapicer tapi...@gmail.com Cc: Pablo Viquez pviq...@pabloviquez.com; php-general@lists.php.net Sent: Wednesday, July 01, 2009

Re: [PHP] exasperated again

2009-07-01 Thread Jim Lucas
PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it works, returns the correct id, but when I try it in a test pages, nothing in the world gets it to work. This is rather frustrating, again: THIS WORKS IN ANOTHER PAGE; IN THE TEST PAGE ID DOES NOT. $sql =

Re: [PHP] exasperated again

2009-07-01 Thread Maximiliano Churichi
2009/6/30 PJ af.gour...@videotron.ca: Could somebody please explain to me what is wrong with this code? In my script it works, returns the correct id, but when I try it in a test pages, nothing in the world gets it to work. This is rather frustrating, again: THIS WORKS IN ANOTHER PAGE; IN THE

[PHP] PHP --info giving segmentation fault

2009-07-01 Thread Vivek Katakam
 Hi All, I am using CentOS 5.3-x8664.  I installed PHP and Apache httpd. The following are the version informations present on the system: #httpd -v Server version: Apache/2.2.3 # php -v PHP 5.1.6 (cli) (built: Jan 21 2009 01:45:01) The problem is when accessing through web page it is giving

[PHP] PHP Raw-listing Problem

2009-07-01 Thread Parham Doustdar
Hi there everyone, First of all, let me thank you for your always-present help in this list; I (as a newbie) appreciate it very much! :) However, pardon me for I need to trouble you with another piece of text that doesn't do what it should do: I need to parse the raw-listing of an FTP into it's