[PHP] different value in array

2006-07-28 Thread weetat
Hi all, I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2 elements If value different

[PHP] include defer from cli to apache

2006-07-28 Thread Martin Marques
I' trying to include files from a script which will be executed from CLI via cron. Now, if I execute the script from the command line it works OK, but when it's executed via cron I fails to include a file, which is being included via and include from the script. It looks like when including a

Re: [PHP] fopen: space character in filename

2006-07-28 Thread Stut
Christian Calloway wrote: > this seems like an easy question, but I could sure as hell couldn't find any > responces to it through initial searched. I am running php on an XP system > and I need to open a file contained with a set of directories which may or > may not have a space character; so

RE: [PHP] POST on redirects?

2006-07-28 Thread Brady Mitchell
Use sessions. Store the variables you need in the session, then redirect. After redirect get the values you need from the session. http://us3.php.net/manual/en/ref.session.php Brady > -Original Message- > From: Tony Di Croce [mailto:[EMAIL PROTECTED] > Sent: Friday, July 28, 2006 2:5

Re: [PHP] fopen: space character in filename

2006-07-28 Thread Robert Cummings
On Fri, 2006-07-28 at 17:27, Robert Cummings wrote: > On Fri, 2006-07-28 at 16:55, Christian Calloway wrote: > > Hello all, > > > > this seems like an easy question, but I could sure as hell couldn't find > > any > > responces to it through initial searched. I am running php on an XP system > >

Re: [PHP] fopen: space character in filename

2006-07-28 Thread Robert Cummings
On Fri, 2006-07-28 at 16:55, Christian Calloway wrote: > Hello all, > > this seems like an easy question, but I could sure as hell couldn't find any > responces to it through initial searched. I am running php on an XP system > and I need to open a file contained with a set of directories which

[PHP] Re: fopen: space character in filename

2006-07-28 Thread Jo�o C�ndido de Souza Neto
Did you read this? http://br.php.net/manual/en/function.fopen.php ""Christian Calloway"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hello all, > > this seems like an easy question, but I could sure as hell couldn't find > any responces to it through initial searched. I am

[PHP] fopen: space character in filename

2006-07-28 Thread Christian Calloway
Hello all, this seems like an easy question, but I could sure as hell couldn't find any responces to it through initial searched. I am running php on an XP system and I need to open a file contained with a set of directories which may or may not have a space character; so for example: fopen ("

[PHP] POST on redirects?

2006-07-28 Thread Tony Di Croce
In a couple of my scripts, I do something like the following when I detect an improperly submitted form: **if( !valid_string( $_POST['firstname'] ) ) { $return_url = "https://www.abc.com/checkout_phase1.php?error=FirstName Required"; header( "location: $return_url" ); exit(0

[PHP] Postcode proximity classes

2006-07-28 Thread Dave Goodchild
Hi all. I am about to start writing an events listing application (nationwide) and want users to be able for example to specify events within a 5, 10 and 15 mile radius of their postcode. Does anyone know of a set of classes/library that can provide this, would rather not fork out on a bespoke pie

[PHP] mb_substr()

2006-07-28 Thread tedd
Hi gang: From another list, a person posted: "I want to use PHP's mb_substr() function to grab the first letter of a UTF-8 encoded word (in Czech) being pulled out of MySQL. If I use the plain substr() the data gets garbled and I get a ? symbol in the browser. My host says that in order to ge

Re: [PHP] compare values in 2 array

2006-07-28 Thread weetat
Hi John & all, Thanks for your info. I have 2 array which populated from MYSQL as shown below : My program will update status in the temporary table according to compare of 2 arrays, for example from 2 array below: in $temptablearr = there 3 elements in $currenttablearr = there 2

Re: [PHP] APC - problems with CLI & odd return values from apc_clear_cache()

2006-07-28 Thread Jon Anderson
Just replying to the list on this one 'cause I'm pretty sure you're on it. :-) AFAIK, with many caches the web server cache and CLI caches are exclusive to each process. The APC manual seems to suggest that the CLI cache is not connected to the web server cache: From: http://ca.php.net/manua

[PHP] non blocking fsockopen

2006-07-28 Thread clive
I know in PHP 5 you can use stream_socket_client() and set the flag to STREAM_CLIENT_ASYNC_CONNECT|STREAM_CLIENT_CONNECT which opens the socket in a non blocking mode. in php 4 you can use fsockopen and then set the socket to non blocking. The problem with this is that the fsockopen blocks unt

Re: [PHP] APC - problems with CLI ... could it be down to an install of SElinux?

2006-07-28 Thread Jochem Maas
Jochem Maas wrote: > hi people, > > PHP version: 5.1.1 (last built: Dec 28 2005 16:03:22) > APC version: 3.8.10 > Apache version: 2.0.54 (last built: Dec 29 2005 14:04:16) > OS: debian freudian slip; I wish it was debian, it's actually a red hat machine, dmesg gives t

Re: [PHP] compare values in 2 array

2006-07-28 Thread John Wells
On 7/28/06, weetat <[EMAIL PROTECTED]> wrote: I need to compare values in array which populated by database , below is the code : Without mentioning how your code performs some unnecessary actions, and is also full of errors, here's the idea of what you want (untested): [code] // assume at fir

[PHP] APC - problems with CLI & odd return values from apc_clear_cache()

2006-07-28 Thread Jochem Maas
hi people, PHP version:5.1.1 (last built: Dec 28 2005 16:03:22) APC version:3.8.10 Apache version: 2.0.54 (last built: Dec 29 2005 14:04:16) OS: debian I have a script that runs via the cmdline, it's used to import/update data in a database, after the script is run the APC

[PHP] running commands sequentially in background with exec($commands_in_background)

2006-07-28 Thread Dasdan
I want to execute a couple of linux commands from a php script 'sequentially in background'. I want to run them in background so the php script doesn't hang while the linux commands are running. example: first i create a lock file with php $lockfile_path : /home/web/...blablabla.../test

[PHP] compare values in 2 array

2006-07-28 Thread weetat
Hi all , I am using PHP 4.3.2 and MYSQL DB. I need to compare values in array which populated by database , below is the code : $temp_tbl = array(); while ($row = $temptbl_result->fetchRow(DB_FETCHMODE_ASSOC)){ $rs_chasis_serialno = $row['serial_no']; $rs_card_serial_no =