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
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
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
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
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
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'
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
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
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
[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
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.
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:
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
[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;
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
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
[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:
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 - 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?
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 =
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
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,
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
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
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
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
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
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
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
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
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
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();
[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
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]
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
[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
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
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
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
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
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 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
Merry christmas!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Merry christmas to every PHP developer here!!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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();
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
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
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 =
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
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');
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
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
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.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 .
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
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
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 - 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
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:
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
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
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
66 matches
Mail list logo