php-general Digest 18 Jul 2006 18:10:57 -0000 Issue 4246

2006-07-18 Thread php-general-digest-help
php-general Digest 18 Jul 2006 18:10:57 - Issue 4246 Topics (messages 239535 through 239552): Re: Name in HTML input 239535 by: Sameer N Ingole 239536 by: Ligaya Turmelle 239537 by: Sameer N Ingole 239538 by: weetat 239539 by: weetat 239540

Re: [PHP] Name in HTML input

2006-07-18 Thread Sameer N Ingole
weetat wrote: input name=FHK0924F0JG (2771890816)hostname[] type=hidden value=FHK0924F0JG (2771890816) Space in name. Remove it. -- Sameer N. Ingole http://weblogic.noroot.org/ --- Better to light one candle than to curse the darkness. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Name in HTML input

2006-07-18 Thread Ligaya Turmelle
weetat wrote: Hi all, I am using php 4.3.2 , mysql db and Red Hat Enterprise. I have some issue regarding the name in INPUT Tag in html , as shown below: a: input name=FOX08340027hostname[] type=hidden value=FOX08340027 b: input name=FHK0924F0JG (2771890816)hostname[] type=hidden

Re: [PHP] Name in HTML input

2006-07-18 Thread Sameer N Ingole
Sameer N Ingole wrote: weetat wrote: input name=FHK0924F0JG (2771890816)hostname[] type=hidden value=FHK0924F0JG (2771890816) Space in name. Remove it. oh, also remove '(' and ')' then check. -- Sameer N. Ingole http://weblogic.noroot.org/ --- Better to light one candle than to curse the

Re: [PHP] Name in HTML input

2006-07-18 Thread weetat
Hi , Thanks for your info. I am new in PHP , how to remove the the space and '(',')' ? Thanks Sameer N Ingole wrote: Sameer N Ingole wrote: weetat wrote: input name=FHK0924F0JG (2771890816)hostname[] type=hidden value=FHK0924F0JG (2771890816) Space in name. Remove it. oh, also

Re: [PHP] Name in HTML input

2006-07-18 Thread nicolas figaro
weetat a écrit : Hi , Thanks for your info. I am new in PHP , how to remove the the space and '(',')' ? hi, $newstring = str_replace( ,_,$string); $newstring = str_replace(,,_,$newstring) hope this'll help N F Thanks Sameer N Ingole wrote: Sameer N Ingole wrote: weetat wrote:

RE: [PHP] GD to database directly

2006-07-18 Thread Jay Blanchard
[snip] Kevin, you have more than once pointed out using a RAW format for operating the data system, what exactly do you mean? The database becomes the OS? If so, how do you set that up? It is something that I am not totally familiar with. [/snip] I did some research and went back to Kevin's

RE: [PHP] Name in HTML input

2006-07-18 Thread Jay Blanchard
[snip] Thanks for your info. I am new in PHP , how to remove the the space and '(',')' ? [/snip] Use the delete key. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name in HTML input

2006-07-18 Thread Sameer N Ingole
input name=FHK0924F0JG (2771890816)hostname[] type=hidden value=FHK0924F0JG (2771890816) Space in name. Remove it. oh, also remove '(' and ')' then check. This should be your second input tag. input name=FHK0924F0JG_2771890816hostname[] type=hidden value=FHK0924F0JG (2771890816)

[PHP] Sort Array

2006-07-18 Thread weetat
Hi I have the array below : How to sort the array by Model and Country? Thanks array( TBA0123456 = array(Country=Singapore,Model=WS8234), TBA0123458 = array(Country=Indonesia,Model=WS2234), TBA0123459 = array(Country=Vietnam,Model=WS7234), TBA0123452 =

RE: [PHP] Sort Array

2006-07-18 Thread Jay Blanchard
[snip] I have the array below : How to sort the array by Model and Country? Thanks array( TBA0123456 = array(Country=Singapore,Model=WS8234), TBA0123458 = array(Country=Indonesia,Model=WS2234), TBA0123459 = array(Country=Vietnam,Model=WS7234), TBA0123452 =

RE: [PHP] Sort Array

2006-07-18 Thread tg-php
Actually it's going to be a little more complicated than a 'ksort' here I think. ksort on the main array is going to give you: array ( TBA0123451 = array(Country=Germany,Model=WS6234), TBA0123452 = array(Country=England,Model=WS1234), TBA0123456 = array(Country=Singapore,Model=WS8234),

Re: [PHP] Sort Array

2006-07-18 Thread Andrew Brampton
ksort won't do what he wants... Look at usort, and something like this: function cmp($a, $b) { return strcmp($a['Country'], $b['Country']); } usort($array, cmp); Andrew - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: weetat [EMAIL PROTECTED];

Re: [PHP] Sort Array

2006-07-18 Thread Jochem Maas
Jay Blanchard wrote: [snip] I have the array below : How to sort the array by Model and Country? Thanks array( TBA0123456 = array(Country=Singapore,Model=WS8234), TBA0123458 = array(Country=Indonesia,Model=WS2234), TBA0123459 = array(Country=Vietnam,Model=WS7234),

RE: [PHP] Sort Array

2006-07-18 Thread Jay Blanchard
[snip] Jay Blanchard wrote: [snip] I have the array below : How to sort the array by Model and Country? Thanks array( TBA0123456 = array(Country=Singapore,Model=WS8234), TBA0123458 = array(Country=Indonesia,Model=WS2234), TBA0123459 = array(Country=Vietnam,Model=WS7234),

Re: [PHP] Sort Array

2006-07-18 Thread Miles Thompson
At 10:51 AM 7/18/2006, weetat wrote: Hi I have the array below : How to sort the array by Model and Country? Thanks array( TBA0123456 = array(Country=Singapore,Model=WS8234), TBA0123458 = array(Country=Indonesia,Model=WS2234), TBA0123459 = array(Country=Vietnam,Model=WS7234),

[PHP] pg_query and COPY in transaction

2006-07-18 Thread Luis Magaña
I have the following code: pg_query($conn,BEGIN TRANSACTION; DELETE FROM codigo_postal; COPY codigo_postal(codigo_postal,asentamiento,tipo_asentamiento,municipio,estado) FROM '$tmpfname2' DELIMITER '|'; COMMIT); It is suppoused as I understand it, that if an error

Re: [PHP] pg_query and COPY in transaction

2006-07-18 Thread Jochem Maas
Luis Magaña wrote: I have the following code: pg_query($conn,BEGIN TRANSACTION; DELETE FROM codigo_postal; COPY codigo_postal(codigo_postal,asentamiento,tipo_asentamiento,municipio,estado) FROM '$tmpfname2' DELIMITER '|'; COMMIT); It is suppoused as I

Re: [PHP] pg_query and COPY in transaction

2006-07-18 Thread Luis Magaña
It is a PHP question because the Postgres querys do work, I ran them directly on the postgres server and there is no problem, but if you use pg_query then it does not work, and pg_query is a PHP function, is it no t? Any way, I've tried already giving each query in separate function calls, and it

Re: [PHP] pg_query and COPY in transaction

2006-07-18 Thread Jochem Maas
Luis Magaña wrote: It is a PHP question because the Postgres querys do work, I ran them directly on the postgres server and there is no problem, but if you use pg_query then it does not work, and pg_query is a PHP function, is it no t? Any way, I've tried already giving each query in

[PHP] Different php.ini files for different apache processes on one server

2006-07-18 Thread spam
Hi, suppose you had several directories a, b and c where in each directory you had an Apache http.conf file. For each directory Apache gets started with the http.conf (and other conf files) in that directory. PHP is used a an Apache module. How can I have a different php.ini file for each

Re: [PHP] Different php.ini files for different apache processes on one server

2006-07-18 Thread Jochem Maas
(Karl Pflästerer) wrote: Hi, suppose you had several directories a, b and c where in each directory you had an Apache http.conf file. For each directory Apache gets started with the http.conf (and other conf files) in that directory. PHP is used a an Apache module. How can I have a

[PHP] User defined function problem

2006-07-18 Thread Stephen Lake
Hey Guys and Gals, I am having a small problem with a user defined function, I placed it in a config file and it works as expected, but the problem seems to arise only when I try to use my login script for a members area I am redeveloping. The error message that comes up is the following:

Re: [PHP] User defined function problem

2006-07-18 Thread Jon Anderson
This would be the simplest work-around I can think of. In your config script, wrap an if around your function call: if (!function_exists('clean_sql')) { function clean_sql() { ... } } jon Stephen Lake wrote: Hey Guys and Gals, I am having a small problem with a user defined

Re: [PHP] User defined function problem

2006-07-18 Thread Jon Anderson
Oh, and the other obvious thing that I omitted would be to try using either the include_once() and require_once() functions wherever you include() or require() config.php. jon Stephen Lake wrote: Hey Guys and Gals, I am having a small problem with a user defined function, I placed it in a

Re: [PHP] Different php.ini files for different apache processes on one server

2006-07-18 Thread Michael B Allen
On Tue, 18 Jul 2006 20:44:35 +0200 [EMAIL PROTECTED](Karl Pflästerer) wrote: Hi, suppose you had several directories a, b and c where in each directory you had an Apache http.conf file. For each directory Apache gets started with the http.conf (and other conf files) in that directory. PHP

Re: [PHP] User defined function problem

2006-07-18 Thread Stephen Lake
Thanks Jon, That did the trick nicely, not sure why I didn't think of it myself but is glad for the reminder of what that function is for. :) Best Regards, Steve Jon Anderson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This would be the simplest work-around I can think of. In

Re: [PHP] User defined function problem

2006-07-18 Thread Jochem Maas
what Jon said. but note it's better to stick your functions into a seperate 'funcs' file and include_once() or require_once() that instead. at some stage you'll have so many functions you may want to split them up into seperate 'funcs' files depending on what they do (and/or what they are used

Re: [PHP] Name in HTML input

2006-07-18 Thread Ligaya Turmelle
Jay Blanchard wrote: [snip] Thanks for your info. I am new in PHP , how to remove the the space and '(',')' ? [/snip] Use the delete key. LOL -- life is a game... so have fun. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pg_query and COPY in transaction

2006-07-18 Thread Chris
Luis Magaña wrote: I have the following code: pg_query($conn,BEGIN TRANSACTION; DELETE FROM codigo_postal; COPY codigo_postal(codigo_postal,asentamiento,tipo_asentamiento,municipio,estado) FROM '$tmpfname2' DELIMITER '|'; COMMIT); Separate them out as a first

[PHP] forcing a script to run on page unload

2006-07-18 Thread jekillen
Hi: I have a web application that creates files and directories to save info for a user. If the user decides to link to another page or site altogether I want to run a script that will clean up after him or her but won't interfere with where they are going. It will eventually expand to asking

Re: [PHP] forcing a script to run on page unload

2006-07-18 Thread Paul Scott
On Tue, 2006-07-18 at 21:32 -0700, jekillen wrote: in a site that I visit occasionally. Even if I quit the browser it still manages to delay the exit of the browser. But I don't remember whether it was one of my books on php or the php manual that this is in. Can someone point me in the

[PHP] PHP Love Letter

2006-07-18 Thread Martin Alterisio
Been quiet too much... *This time, I seriously advise against running this piece of code unless you know what you're doing* Enjoy... --- html head titleLove Letter/title /head body ?php if (in_array($me, $her-acquaintances)) { ? pDear ?=$her-name?,/p pI really enjoy your company and I

Re: [PHP] PHP Love Letter

2006-07-18 Thread Ligaya Turmelle
Martin Alterisio wrote: Been quiet too much... *This time, I seriously advise against running this piece of code unless you know what you're doing* Enjoy... --- html head titleLove Letter/title /head body ?php if (in_array($me, $her-acquaintances)) { ? pDear ?=$her-name?,/p pI