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... --- Love Letter acquaintances)) { ?> Dear name?>, I really enjoy your company and I would love to meet you again. I had a

[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... --- Love Letter acquaintances)) { ?> Dear name?>, I really enjoy your company and I would love to meet you again. I had a lot of fun last time and I

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] 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 th

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 st

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] 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 fo

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.

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. >

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 c

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 funct

[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: Fata

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] 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 differ

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 sep

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: > 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 suppouse

[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] 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("Countr

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" =>

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("

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]>; Sent: Tues

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("Coun

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"),

[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"), "TB

Re: [PHP] Name in HTML input

2006-07-18 Thread Sameer N Ingole
value="FHK0924F0JG (2771890816)"> Space in name. Remove it. oh, also remove '(' and ')' then check. This should be your second input tag. value="FHK0924F0JG (2771890816)"> Read http://php.net/variables .. to know why it didn't work.. -- Sameer N. Ingole http://weblogic.noroot.org/ -

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] 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 origi

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] 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: value="FHK0924F0JG (2771890816)"> Space in name. Remove it. oh, also remove '(' and ')' then check. -- PHP General Mailing