[PHP] Request form duplicate names

2003-12-19 Thread Terence
Dear All, Is there a way to request form fields which have the same name using POST? I generate dynamic checkboxes all with the same name, but with different values input type'checkbox' name='id' value'1' input type'checkbox' name='id' value'7' input type'checkbox' name='id' value'78' etc I

Re: [PHP] Request form duplicate names

2003-12-19 Thread Frédéric HARDY
Try input type'checkbox' name='id[]' value='1' So in your script : $ids = $POST['name']; $first_id = $POST['name'][0]; Best regards, Fred === Frederic HARDYEmail: [EMAIL PROTECTED] HEXANET SARL

RE: [PHP] Changing languages

2003-12-19 Thread Ford, Mike [LSS]
On 19 December 2003 01:27, Cesar Aracena wrote: Hi all, I have an issue here. I'm making a english/spanish site and want the browser to remember their preference with a cookie. The first time a visitor comes into the site, they will be taken to the english part (www.site.com/eng/) and when

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Marek Kilimajer
Haseeb Iqbal wrote: how can i do that? btw the script runs on a local machine but updates the records on a webserver i mean live server. this is also a factor for the timeout. the script was running smoothly for 24000 recods before but now it suddenly timeout after 800records. i dont know what is

Re: [PHP] $_POST[]

2003-12-19 Thread Justin French
On Friday, December 19, 2003, at 05:44 PM, Burrito Warrior wrote: That practice $_POST[formReviewBy] should be discouraged. That kind of practice is nearly as bad as magic numbers. I think you'll find I *was* discouraging it. Justin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Request form duplicate names

2003-12-19 Thread Justin French
On Friday, December 19, 2003, at 08:41 PM, Terence wrote: Is there a way to request form fields which have the same name using POST? I generate dynamic checkboxes all with the same name, but with different values input type'checkbox' name='id' value'1' input type'checkbox' name='id' value'7'

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Haseeb Iqbal
i tried this but to noavail. anyother sugestion really this problem is really annoying me now Haseeb - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Haseeb Iqbal [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 19, 2003 10:23 PM Subject: Re: [PHP] Re: Script

RE: [PHP] Request form duplicate names

2003-12-19 Thread Wouter van Vliet
input type='checkbox' name='id[]' value='1' :P On vrijdag 19 december 2003 11:10 Frédéric HARDY told the butterflies: Try input type'checkbox' name='id[]' value='1' So in your script : $ids = $POST['name']; $first_id = $POST['name'][0]; Best regards, Fred

[PHP] Re: PHP Template Function

2003-12-19 Thread rush
Cameron B. Prince [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Basically, a directory was defined within the webserver to have a PerlHandler, Embperl::Object. When any page in or under that directory is called, Embperl::Object would look for template files in the current directory

RE: [PHP] Re: Script timeout Problem

2003-12-19 Thread Jay Blanchard
[snip] i tried this but to noavail. anyother sugestion really this problem is really annoying me now [/snip] If it is the script timing out place this at the beginning of the script. (I do this with scripts that update and insert millions of records) set_time_limit(0); See

[PHP] Php Windows server

2003-12-19 Thread E. Ricardo Santos
Somebody could say to me if something special exists to form for the treatment of the sessions in a Php Windows server? I have a code that works perfectly in Apache, nevertheless, when executing it in a Windows server the sessions do not activate. I am using php 4.3.3 like ISAPI.

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Marek Kilimajer
Haseeb Iqbal wrote: i tried this but to noavail. anyother sugestion really this problem is really annoying me now Haseeb The browser might be timing out. You should regulary send out some dummy output and flush() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] $_POST[]

2003-12-19 Thread David T-G
Burrito Warrior -- ...and then Burrito Warrior said... % % That practice $_POST[formReviewBy] should be discouraged. That kind % of practice is nearly as bad as magic numbers. What are magic numbers? Surely you don't mean the file recognition codes in /etc/magic for use by file(1) under

RE: [PHP] $_POST[]

2003-12-19 Thread Jay Blanchard
[snip] What are magic numbers? Surely you don't mean the file recognition codes in /etc/magic for use by file(1) under *NIX... [/snip] Magic numbers are hard coded numbers that are not referrenced by a variable i.e. $thisNumber = (4 == $magic)? do stuff: do other stuff; should be $var = 4;

[PHP] CRON throws error, but no command line problems

2003-12-19 Thread Jay Blanchard
Good morning group! I am running PHP 4.3.4RC1 on a FreeBSD sevrer that recently came online as an upgrade from another server. (previous PHP version was 4.1.n) Via a CRON job I am running a script that was working fine to ftp another server, download some files, and then process those files. Here

Re: [PHP] CRON throws error, but no command line problems

2003-12-19 Thread David OBrien
This is usually a DNS error. It's telling you it can't find an IP address for the given hostname -Dave At 08:57 AM 12/19/2003, Jay Blanchard wrote: Good morning group! I am running PHP 4.3.4RC1 on a FreeBSD sevrer that recently came online as an upgrade from another server. (previous PHP

RE: [PHP] CRON throws error, but no command line problems

2003-12-19 Thread Jay Blanchard
[snip] This is usually a DNS error. It's telling you it can't find an IP address for the given hostname [/snip] I knew that, but it does just fine if I run the script from the command line. No errors at all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Script timeout Problem

2003-12-19 Thread Jas
Ok, I posted an example in the body of this for your time out limits but here it is again... At the end of each of your SQL statements for UPDATE or INSERT simply add ...LIMIT 2000; That should limit the updating or inserting of database records until the page is refreshed to add more... HTH

php-general Digest 19 Dec 2003 15:24:13 -0000 Issue 2482

2003-12-19 Thread php-general-digest-help
php-general Digest 19 Dec 2003 15:24:13 - Issue 2482 Topics (messages 172994 through 173020): Re: Best way to store data. 172994 by: John W. Holmes 172995 by: Sn!per Re: Countries, cities, states database 172996 by: Thomas Svenson Re: Post New Email to Website?

[PHP] mysql update query

2003-12-19 Thread Enda
Hi guys Bit of a problem I'm having here with an update query on a PHP/MySQL site: This is the db query I execute: $result6=mysql_query(UPDATE $WorkTable SET Price=$CallCost WHERE (A_Number = $A_Number AND StartDateTime = $D_Full AND Duration=$Duration AND SMSDestinationName =

RE: [PHP] mysql update query

2003-12-19 Thread Jonathan Wilkes
Hi Enda, Does your table have an index per record ? If so, your WHERE clause could just use the index and thus be far simpler, if A_Number is an indexed field, then UPDATE cdr200311 SET Price=0.225 WHERE A_Number = 61210146 Alternatively, try removing the () around the WHERE Darka

Re: [PHP] mysql update query

2003-12-19 Thread Richard Davey
Hello Enda, Friday, December 19, 2003, 4:32:44 PM, you wrote: E which returns the following SQL query: E UPDATE cdr200311 SET Price=0.225 WHERE (A_Number = 61210146 AND E StartDateTime = 2003110216502400 AND Duration=15.0167 AND SMSDestinationName E = '1010') E The query executes successfully,

Re: [PHP] Php Windows server

2003-12-19 Thread Neil Freeman
You will need to ensure that the session save path is set to a valid directory: e.g. session.save_path = C:/Temp Neil E. Ricardo Santos wrote: *** This Email Has Been Virus Swept *** Somebody could say to

[PHP] Setting the environment PATH

2003-12-19 Thread Morten
Hi, I need to add /usr/local/bin to the PATH used by my PHP web application. How? Br, Morten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] server behavior menu/list in windows server

2003-12-19 Thread E. Ricardo Santos
I have a dynamic table to update registries. In this table there are fields to relate to other tables.Therefore, I create select to show them. These behaviors of server, perfectly work in the servant apache but in the one of Windows, simply n shows nothing to me in the pagina. When exempt

RE: [PHP] mysql update query

2003-12-19 Thread Enda
Yes I would prefer to do this... problem is that the final table will be populated from a monthly csv file supplied from an external source. this file could have several hundred occurences of each value of A_Number and other fields so the only way to have it as unique is to use several of the

Re: [PHP] mysql update query

2003-12-19 Thread Enda
I used single.. just deleted all records except 1 from the table and changed the query to have just one WHERE condition $result6=mysql_query(UPDATE $WorkTable SET Price=$CallCost WHERE A_Number = $A_Number); this worked... so looks like i'm going to have to rewrite the import bit! unless of

[PHP] preg_replace help

2003-12-19 Thread Ben
I am trying to build a pattern to do the following: - Find all occurences of HREF= and SRC= except those that include the HTTP:// in their path - Insert my own domain string (e.g.: http://www.my_domain.com) So has an example the input string would be : $val = ' A

RE: [PHP] mysql update query

2003-12-19 Thread Jonathan Wilkes
just had a thought, what happens when you have only 2 records in the database, does it work, is it possible that you may have had 2 identical records in the first instance, hence it not working ? ignore my idiotic comment, it's friday, it's late and I have 2 weeks off (only 10 minutes to

[PHP] preg_replace help

2003-12-19 Thread Ben
I am trying to build a pattern to do the following: - Find all occurences of HREF= and SRC= except those that include the HTTP:// in their path - Insert my own domain string (e.g.: http://www.my_domain.com) So has an example the input string would be : $val = 'A

[PHP] URL regex

2003-12-19 Thread Evan Nemerson
Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- Truth, like gold, is to be obtained not by its growth, but by washing away from it all that is not gold. -Leo Nikolaevich Tolstoy -- PHP

[PHP] Login to another box on network server to retrieve file

2003-12-19 Thread Jay Blanchard
Stumped am I. I need to ftp to another box on my network... $ftp_server = doohickey; $ftp_user = root; $ftp_pass = roots_pass; // connect to ftp server $ftpc = ftp_connect($ftp_server); if(!ftp_login($ftpc, $ftp_user, $ftp_pass)){ echo Could not login to $ftp_server !\n; exit();

RE: [PHP] CRON throws error, but no command line problems SOLVED

2003-12-19 Thread Jay Blanchard
[snip] This is usually a DNS error... I knew [/snip] Turns out the error was on the other end of the connection. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL regex

2003-12-19 Thread Evan Nemerson
On Friday 19 December 2003 11:22 am, Evan Nemerson wrote: Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. Okay finally found this: http://www.regexp.org/msg.php?uid=512 wow. Seriously- wow. -- Evan Nemerson [EMAIL PROTECTED]

Re: [PHP] URL regex

2003-12-19 Thread Rolf Brusletto
Evan Nemerson wrote: On Friday 19 December 2003 11:22 am, Evan Nemerson wrote: Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. Okay finally found this: http://www.regexp.org/msg.php?uid=512 wow. Seriously- wow. -- Evan Nemerson [EMAIL

RE: [PHP] Login to another box on network server to retrieve file (SOLVED)

2003-12-19 Thread Jay Blanchard
[snip] PHP Warning: ftp_login(): Login incorrect. in /usr/home/jblanchard/commcode_repair/commCodeRepair.php on line 35 Could not login to doohickey ! [s/snip] Embarassed am I. Too much eggnog at the luncheon this day Turns out that root was not allowed ftp privs on the server I was trying

Re: [PHP] Login to another box on network server to retrieve file (SOLVED)

2003-12-19 Thread Rolf Brusletto
Jay Blanchard wrote: [snip] PHP Warning: ftp_login(): Login incorrect. in /usr/home/jblanchard/commcode_repair/commCodeRepair.php on line 35 Could not login to doohickey ! [s/snip] Embarassed am I. Too much eggnog at the luncheon this day Turns out that root was not allowed ftp privs on the

[PHP] sessions simply don't work

2003-12-19 Thread ken lee
I'm getting this message all the the time I try to start a session with session_start. Cannot send session cookie - headers already sent It's the first line of code in the file. I'm even getting the error with a single session_start() function on its own in a file. It fails on Apache on my

RE: [PHP] sessions simply don't work

2003-12-19 Thread jon
Maybe you should post the first few lines of your code... -- jon -Original Message- From: ken lee [mailto:[EMAIL PROTECTED] Sent: Friday, December 19, 2003 1:18 PM To: [EMAIL PROTECTED] Subject: [PHP] sessions simply don't work I'm getting this message all the the time I try

Re: [PHP] sessions simply don't work

2003-12-19 Thread Brad Pauly
On Fri, 2003-12-19 at 13:18, ken lee wrote: I'm getting this message all the the time I try to start a session with session_start. Cannot send session cookie - headers already sent It's the first line of code in the file. I'm even getting the error with a single session_start() function

Re: [PHP] sessions simply don't work

2003-12-19 Thread Peter Walter
Ken, I had exactly the same problem and it really stumped me for a while. Check your php start and end tags carefully - even a single space before or after the ?php ? tags (before the session_start() ) will cause this problem. Check any included files before the session_start(). Peter Brad

[PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
PHP Version 4.2.2 Apache 2 RH 9 The problem is that session files in the /tmp directory are completely cleared out at random intervals of time. We assume that the randomness is due to our session.gc_probability setting of 1 causing it to run for 1% of new sessions. What we don't understand is

[PHP] Christmas

2003-12-19 Thread Eric Bolikowski
Merry christmas!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Christmas

2003-12-19 Thread Eric Bolikowski
Merry christmas to every PHP developer here!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PEAR::SOAP using PHP...please help!

2003-12-19 Thread Sam Masiello
I have posted this question to both the PHP SOAP and the PEAR General lists and have not received a reply on either list (not a very responsive group, I guess :) ) so I thought I would try to reach a larger audience in hopes that perhaps one of you out there might be able to help. Any assistance

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Marek Kilimajer
What filesystem and OS is this? Anthony Kaufman wrote: PHP Version 4.2.2 Apache 2 RH 9 The problem is that session files in the /tmp directory are completely cleared out at random intervals of time. We assume that the randomness is due to our session.gc_probability setting of 1 causing it to run

RE: [PHP] Christmas

2003-12-19 Thread Chris W. Parker
Eric Bolikowski mailto:[EMAIL PROTECTED] on Friday, December 19, 2003 2:28 PM said: Merry christmas to every PHP developer here!!! You too. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
Redhat 9 kernel 2.4.20-18.9bigmem ext3 fs Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What filesystem and OS is this? Anthony Kaufman wrote: PHP Version 4.2.2 Apache 2 RH 9 The problem is that session files in the /tmp directory are completely cleared

[PHP] include files

2003-12-19 Thread Todd
Hi, Is it possible under PHP4 to get the name of the file that a function was called from? To clarify, here's an example of what I'd like to do: --- main.php --- ?php include('include.php'); function foo(){ $include_file=file_that_called_foo();

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Tony Crockford
On Fri, 19 Dec 2003 13:37:06 -0800, Anthony Kaufman wrote: PHP Version 4.2.2 Apache 2 RH 9 The problem is that session files in the /tmp directory are completely cleared out at random intervals of time. We assume that the randomness is due to our session.gc_probability setting of 1 causing it

RE: [PHP] include files

2003-12-19 Thread Chris W. Parker
Todd mailto:[EMAIL PROTECTED] on Thursday, December 18, 2003 9:57 AM said: Is it possible under PHP4 to get the name of the file that a function was called from? To clarify, here's an example of what I'd like to do: [snip] Does anyone know of a way to do this? I've tried several

Re: [PHP] Setting the environment PATH

2003-12-19 Thread Tom Rogers
Hi, Saturday, December 20, 2003, 2:36:40 AM, you wrote: M Hi, I need to add /usr/local/bin to the PATH used by my PHP web M application. How? M Br, M Morten with getenv() and putenv() on a page by page basis $newpath ='/usr/local/bin'; $current_path = getenv('PATH'); $newpath =

Re: [PHP] session / garbage collection problem

2003-12-19 Thread Anthony Kaufman
Well, we host our own so what I was thinking wouldn't quite work for your situation. However, I've seen a method that I think would work pretty well for you. Basically, you store all the data you want to be persistant between requests in a database. You could use the session id you get from the

Re: [PHP] include files

2003-12-19 Thread Marek Kilimajer
See function debug_backtrace(), it's available since 4.3.3 Todd wrote: Hi, Is it possible under PHP4 to get the name of the file that a function was called from? To clarify, here's an example of what I'd like to do: --- main.php --- ?php include('include.php');

[PHP] ISAPI and Header function problem

2003-12-19 Thread Astron of BrOnX
Hi everyone, i have installed Php as ISAPI module and header(Location : xxx.php) is not working? And not redirect to xxx.php... But if you use Php as CGI there isnt any problem.. Does anyone know about this problem? Thank you for interest. -- PHP General Mailing List (http://www.php.net/) To

[PHP] HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
Good, I follow with Windows ISAPI PHP Server: Now the IIS, in the card: ISAPI FILTERS show me php with arrow red and downwards. It says NOT LOADED. Somebody knows so that this can happen? The archives and declarations is correct, just as route a phpîsapi.dll. I have returned to form the IIS

[PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread Astron of BrOnX
Hi, here is the steps, 1 . Copy all php_*.dll from extentions dir to c:\windows\system32 2 . Copy phpîsapi.dll to c:\windows\system32 3 . Copy php4ts.dll to c:\windows\system32 4 . Copy php.ini to c:\windows\system32 5. go ISAPI Filters and add .php (c:\windows\system32\phpisapi.dll) 6. go

[PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread E. Ricardo Santos
php.ini in system32 too? Astron Of Bronx [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hi, here is the steps, 1 . Copy all php_*.dll from extentions dir to c:\windows\system32 2 . Copy phpîsapi.dll to c:\windows\system32 3 . Copy php4ts.dll to c:\windows\system32 4 .

[PHP] html or php to pdf whith pdflib?

2003-12-19 Thread E. Ricardo Santos
Hello, somebody knows like turning a file HTML or php to pdf by means of pdflib but without having to write line to line? that is, a file already existing php or HTML, can be turned with pdflib? This I ask it because to where it studies pdflib, exit pdf is due to write line by line

Re: [PHP] Re: HELP!! ISS does not load the ISAPI of PHP

2003-12-19 Thread John W. Holmes
Astron of BrOnX wrote: Hi, here is the steps, 1 . Copy all php_*.dll from extentions dir to c:\windows\system32 2 . Copy phpsapi.dll to c:\windows\system32 3 . Copy php4ts.dll to c:\windows\system32 4 . Copy php.ini to c:\windows\system32 5. go ISAPI Filters and add .php

[PHP] Turck MMcache compiling

2003-12-19 Thread Ryan A
Hi, Holiday greetz to everyone, heres a card for ya: http://www.jumac.com/free-birthday-christmas-holiday-greetings/upcardme.php?step=pickupid=2k03596bb8f8/Php list/[EMAIL PROTECTED] and now...my problem :-D : We just took a dedicated server (Linux) and want to install Turck MMCache for PHP

php-general Digest 20 Dec 2003 04:55:25 -0000 Issue 2483

2003-12-19 Thread php-general-digest-help
php-general Digest 20 Dec 2003 04:55:25 - Issue 2483 Topics (messages 173021 through 173062): mysql update query 173021 by: Enda 173022 by: Jonathan Wilkes 173023 by: Richard Davey 173027 by: Enda 173028 by: Enda 173030 by: Jonathan Wilkes

RE: [PHP] Merry Chrismas

2003-12-19 Thread Ryan A
Hey, And a very Merry Christmas to you too...think I dont mean it? Check this out: www.jumac.com/free-birthday-christmas-holiday-greetings/upcardme.php?step=pi ckupid=2k03596bb8f8 Cheers, -Ryan A -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] form variables

2003-12-19 Thread Nitin
hi all, i've an application, where i'm receiving variables from an html form and process them in the script. depending on the values, i may want to get some extra information from user through another form. now, problem is how can i keep the vaiables received from the first form, without

Re: [PHP] form variables

2003-12-19 Thread Robert Cummings
On Sat, 2003-12-20 at 01:29, Nitin wrote: hi all, i've an application, where i'm receiving variables from an html form and process them in the script. depending on the values, i may want to get some extra information from user through another form. now, problem is how can i keep the

Re: [PHP] form variables

2003-12-19 Thread Nitin
thanx for a quick reply and i'm sorry for it was so dumb qu nitin - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Nitin [EMAIL PROTECTED] Cc: PHP-General [EMAIL PROTECTED] Sent: Saturday, December 20, 2003 11:59 AM Subject: Re: [PHP] form variables On Sat, 2003-12-20