[PHP] Re: Sessions on Win2k

2004-02-11 Thread memoimyself
Hello Don, On 11 Feb 2004 at 11:19, Donpro wrote: I've searched the archives and note that many have probelms using session on a Win2K server. I am getting a Undefined index: sessions in D:\inetpub\mydomain\www\forms\formmail\formmail.php on line 768 error. Line 768 is:

[PHP] Re: array data

2004-02-11 Thread memoimyself
Hello Imran, On 12 Feb 2004 at 1:17, Imran Asghar wrote: Hi, Is not working, is it correct way File1.php ? $colors = array('red','blue','green','yellow'); ? form action=file2.php method=post input type=hidden type name=colors value=?=$colors? /fomr

[PHP] Please help me understand gmmktime()

2004-02-11 Thread Richard Day
Hello: Environment: Linux server PHP 4.3.4 This code: echo 'br'.strftime('%T %Z',mktime()).', Timestamp='.mktime(); echo 'br'.strftime('%T GMT',gmmktime()).', Timestamp='.gmmktime(); yields this result: 23:52:08 EST, Timestamp=1076475128 18:52:08 GMT,

[PHP] Re: Zlib - Insert files?

2004-02-11 Thread Markus Fischer
Hi, basically, gzip is only about compression of data. If you want compress more than one file at once, you need to put it into an archive before, e.g. a tar archive. Then you can compress this tar-Archive (single file) width gzip. HTH, - Markus -- PHP General Mailing List

[PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
I'm running PHP 5.0b3, so I'm not sure whether this is an issue with the version of PHP I'm running. I've got a select field in a form that is allowing multiple selects: select name=modules size=10 multiple=multiple id=modules style=height: 150px; option value=2 selected=selectedBanner

Re[4]: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-11 Thread Richard Davey
Hello Tony, Wednesday, February 11, 2004, 9:16:18 PM, you wrote: TDS That was the problem. The PHP book I have doesn't mention $_GET or $_POST. TDS The exercises right from the beginning use register_globals. I didn't TDS realise they were turned off by default. Whoever wrote that book ought

Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Richard Davey
Hello Ben, Wednesday, February 11, 2004, 9:22:33 PM, you wrote: BR Am I doing something wrong? Yup :) It needs to be: select name=modules[] ... Note the change in name from modules to modules[] -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General

Re: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Ben Ramsey
Ah-ha! I missed that, and I always do. Let's hope I don't anymore. While we're on the subject, why is PHP set up this way? Why can't it just add the elements to the array automatically, since adding the square brackets to one's HTML form name is not a standard practice? Richard Davey wrote:

[PHP] Re: replace ' with

2004-02-11 Thread Kim Steinhaug
Depending on the use you might also want to look at this one : htmlentities() If working with mySQL inserts consider this aswell : mysql_escape_string() And finally, javascripts in HTML doesnt like either the ' or the equivilant htmlentities. I just wash them away direkt if i need to output

RE: [PHP] uploaded files are corrupted

2004-02-11 Thread Pablo Gosse
snip I have a script that allows the user to browse his/her local hard drive for a file and email it as an attachment. Text files come through OK but any binary type file, e.g., JPEG or PDF arrive broken. JPEG will show as a red X in my browser and Adobe will complain about the PDF. I don't

Re[2]: [PHP] mutliple select form not passing multiple values

2004-02-11 Thread Richard Davey
Hello Ben, Wednesday, February 11, 2004, 9:38:38 PM, you wrote: BR Ah-ha! I missed that, and I always do. Let's hope I don't anymore. BR While we're on the subject, why is PHP set up this way? Why can't it BR just add the elements to the array automatically, since adding the BR square

[PHP] form array

2004-02-11 Thread Matthew Oatham
Hi, I have a form on page1 that i want to submit to another php page - page2 the form has the fields input type=hidden name=image[one] value=one input type=hidden name=image[two] value=two input type=hidden name=image[three] value=three Basically I want to have these form field values as an

RE: [PHP] form array

2004-02-11 Thread Martin Towell
Matthew, use $_POST/$_GET/$_REQUEST (depending on your form method) and foreach() eg: foreach($_POST['image'] as $key=$value) { echo $key - $valuebr\n; } Martin -Original Message- From: Matthew Oatham [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 February 2004 11:29 AM

[PHP] I think this is a mysql question

2004-02-11 Thread Ronald Ramos
How can I use PHP to compute the difference between two dates(with time)? Let's say in mysql, I have field 1, login, and on field 2, I have logout. How can I compute the diffrence between login and logut and output it on field 3 let's say totaltime. Is this a mysql question? Or can PHP actually

[PHP] Re: I think this is a mysql question

2004-02-11 Thread Justin Patrin
Ronald Ramos wrote: How can I use PHP to compute the difference between two dates(with time)? Let's say in mysql, I have field 1, login, and on field 2, I have logout. How can I compute the diffrence between login and logut and output it on field 3 let's say totaltime. Is this a mysql question?

[PHP] PHP FILE SIZE LIMIT

2004-02-11 Thread Matthew Oatham
hi is there a limit to the filesize of a php ? I know tomcat had limits on the file size of jsps. My problem is I have a 13kb php file when I add some more lines of code to it the html output becomes currupt - it could well be bad html but I cant find it so thought I would ask this question?

[PHP] Re: date() funtion language

2004-02-11 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i had problems with locale i think its safer to make a dayname and monthname array, and use getdate(), than build the string yourself like: ? $wdayname_array = array('Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado');

Re: [PHP] [Q]PHP not taking input values from forms

2004-02-11 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 time() is only echo'ed if $_POST['submit'] is something on this case maybe he has a really old version of php... $HTP_POST_VARS...? do what Richard Davey is saying, ?=phpinfo()? on the top Richard Davey wrote: Hello Dan, Wednesday, February 11,

Re: [PHP] A dumb question

2004-02-11 Thread Paul Furman
Chris W. Parker wrote: Chris W. Parker on Wednesday, February 11, 2004 11:45 AM said: I think in this is what's called a reference. Sounds like that's simply a way of making an alias for a variable: http://us2.php.net/manual/en/language.references.php -- PHP General Mailing List

Re: [PHP] Newbie questions

2004-02-11 Thread Jason Wong
On Thursday 12 February 2004 01:03, James Marcinek wrote: I have a couple of questions I'd like to ask: 1.) Are there built in libraries to connect to DB2? Nothings clear from the documentation I've read. I see that there's libraries for Oracle, Informix, MySQL. Apparently so, ask google.

[PHP] Re: PHP FILE SIZE LIMIT

2004-02-11 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 everything has a limit, but im sure in this case you are under it big time ive seen ppl running 1-2megs scripts hehe Matthew Oatham wrote: hi is there a limit to the filesize of a php ? I know tomcat had limits on the file size of jsps. My

Re: [PHP] Newbie questions

2004-02-11 Thread John Nichel
Jason Wong wrote: snip Anything else anyone could tell me would be great! Depends on what you want to know. Almost every problem that you will come across will be covered in: - the php manual - the list archives - google Don't forget about Mr. Holmes. I betcha he's got php scribbled all

RE: [PHP] Re: I think this is a mysql question

2004-02-11 Thread Ronald Ramos
create table oras( NameVARCHAR(30), TimeIn DATETIME, TimeOut DATETIME, Total DATETIME ); insert into oras values('Nhadie','2004-10-10 10:10:00','2004-11-11 12:12:00','TIMEDIFF(TimeIn,TImeOut)'); Hi, Are those correct? Because the value on the Total field is 000-00-00 00:00:00. I think

[PHP] weird header() (bug may be)

2004-02-11 Thread adwinwijaya
Hello php-generaler's , I have a script like this : if($foo == 'something'){ header('Location:to_another_page.php') ; }else { do another thing in here } header('Location:to_previous_page.php'); I got a problem ... when $foo == 'something' .. it wont redirect me

php-general Digest 12 Feb 2004 06:20:40 -0000 Issue 2585

2004-02-11 Thread php-general-digest-help
php-general Digest 12 Feb 2004 06:20:40 - Issue 2585 Topics (messages 177436 through 177477): Re: [Q]PHP not taking input values from forms 177436 by: Richard Davey 177437 by: John Nichel 177440 by: Dan Aloma 177441 by: Richard Davey 177442 by: Dan

[PHP] Re: weird header() (bug may be)

2004-02-11 Thread Eric Bolikowski
Headers have to be pretty accurate, or it will cause trouble. And your redirect header is not quite correct. It should be this: header(Location: another_page.php); and NOT header(Location:another_page.php); What you need here is a space between Location: and the URL. Adwinwijaya [EMAIL

Re: [PHP] Re: weird header() (bug may be)

2004-02-11 Thread Jason Wong
On Thursday 12 February 2004 14:40, Eric Bolikowski wrote: Headers have to be pretty accurate, or it will cause trouble. And your redirect header is not quite correct. It should be this: header(Location: another_page.php); and NOT header(Location:another_page.php); What you need here is a

Re: [PHP] weird header() (bug may be)

2004-02-11 Thread joel boonstra
On Thu, Feb 12, 2004 at 05:20:29PM +1100, adwinwijaya wrote: Hello php-generaler's , I have a script like this : if($foo == 'something'){ header('Location:to_another_page.php') ; }else { do another thing in here } header('Location:to_previous_page.php');

Re: [PHP] weird header() (bug may be)

2004-02-11 Thread Chris Shiflett
--- adwinwijaya [EMAIL PROTECTED] wrote: if($foo == 'something'){ header('Location:to_another_page.php') ; }else { do another thing in here } header('Location:to_previous_page.php'); I got a problem ... when $foo == 'something' .. it wont redirect me

[PHP] Re: PHp Books

2004-02-11 Thread rush
Rajani Anand Iyer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone recommend some good books on PHP Advanced topics. here is my (amazon) list http://www.templatetamer.org/index.php?RecommendedBooks rush -- http://www.templatetamer.com/ -- PHP General Mailing List

[PHP] please test PEAR DB 1.6.0RC6

2004-02-11 Thread Daniel Convissor
Hello Yet Again: Sorry to be crying wolf so many times over the past week, but another release of PEAR DB was made yesterday, 1.6.0RC6. The biggest improvement in this release is better mapping of error codes. Several DBMS's now properly report duplicate key constraint violations as

<    1   2