Re: [PHP] Why won't this work?

2002-07-19 Thread René Moonen
snip $mode = entrance; if ($mode == entrance) { /snip I suppose you added the first line ($mode = entrance; ) for testing purposes during debugging, but in order for the script to work you should now remove it, because now $mode will always have

Re: [PHP] Why won't this work?

2002-07-19 Thread René Moonen
hmm... seems a MySQL topic. I suppose that your table is filled with correct data at some other point. So what you need is a count query that returns *one* result and not all records in that table. You do not want a *while* loop in your PHP script, because that would show a list of unique ips.

RE: [PHP] Why won't this work?

2002-07-19 Thread joakim . andersson
From: René Moonen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 11:01 AM $result = mysql_query(SELECT COUNT(DISTINCT IP) AS ips FROM ma_counter); You _might_ need to add GROUP BY ip (without quotes) to the end of that query. Disclaimer: code not tested. You might want to check

Re: [PHP] Why won't this work?

2002-07-19 Thread René Moonen
Well if you *know* your query only returns one row or you are just interessed in the first row, just forget about the while construction $result = mysql_query(SELECT id FROM ma_users WHERE user='$PHP_AUTH_USER'); $id=mysql_fetch_row($result) print $id; Good luck René John Wulff wrote:

Re: [PHP] Why won't this work?

2002-07-19 Thread René Moonen
Eh.. probably should be: $result = mysql_query(SELECT id FROM ma_users WHERE user='$PHP_AUTH_USER'); $row=mysql_fetch_row($result) print $row['id']; René René Moonen wrote: Well if you *know* your query only returns one row or you are just interessed in the first row, just forget about

Re: [PHP] why my php can not get values from Form?

2002-07-18 Thread Thomas Edison Jr.
Simple.. just edit your php.ini file in your windows directory. Search for register_globals .. it will have Off in front of it.. switch it to On T. Edison jr. --- ram friend [EMAIL PROTECTED] wrote: hello, I have just installed apache+php4, but my php can not get values from form? what's

RE: [PHP] why my php can not get values from Form?

2002-07-18 Thread skeller
I have just installed apache+php4, but my php can not get values from form? what's wrong? Before you can use the variables, you have to make the accessible to PHP. Try putting this at the top of your welcome.php file: ? extract($HTTP_POST_VARS); ? -- The Health TV Channel,

Re: [PHP] why my php can not get values from Form?

2002-07-17 Thread Jadiel Flores
Probably you don't have the Register Global turned on in your php.ini, try using $_GET['usernm'] and $_GET['passwd'] or change your php.ini At 01:41 p.m. 07/18/2002 +0800, you wrote: hello, I have just installed apache+php4, but my php can not get values from form? what's wrong? following is

RE: [PHP] why my php can not get values from Form?

2002-07-17 Thread Balaji Ankem
Enable Rigister_globals to On in php.ini file and then try. Best Regards Balaji -Original Message- From: ram friend [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] why my php can not get values from Form? hello, I have just

RE: [PHP] Why is this code hanging?

2002-07-02 Thread John Holmes
You're not incrementing $count within your while loop. So it's staying at zero the whole time... ---John Holmes... -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Why is this code hanging?

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Leif K-Brooks
Oops, sorry for the dumb problem... John Holmes wrote: You're not incrementing $count within your while loop. So it's staying at zero the whole time... ---John Holmes... -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 4:31 AM To:

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Chris Hewitt
Leif, I think you are missing a $count++ somewhere. Its a mistake I commonly make... HTH Chris Leif K-Brooks wrote: I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 16:31, Leif K-Brooks wrote: I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30 seconds. The error is on line 18. Any ideas? My code: ?php print

Re: [PHP] Why isn't this working?

2002-06-28 Thread Jason Wong
On Friday 28 June 2002 21:05, JJ Harrison wrote: Please think of a more descriptive subject. Here is my code: $query = UPDATE poll_options SET votes + 1; mysql_query($query); All where conditions have were removed to try and fix the problem How isn't it working? -- Jason Wong -

RE: [PHP] Why isn't this working?

2002-06-28 Thread Cal Evans
Have you tried: $query = UPDATE poll_options SET votes = votes + 1; * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: JJ Harrison [mailto:[EMAIL PROTECTED]] Sent: Friday, June 28, 2002 8:05 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Why does the mail() function hang ?!?

2002-05-31 Thread Jay Blanchard
Did you check your error log? -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 9:43 AM To: [EMAIL PROTECTED] Subject: [PHP] Why does the mail() function hang ?!? I'm using the mail() function, it sends the message properly but the page

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-30 Thread Yasuo Ohgaki
Go to your php.ini and turn on full error reporting.you'll get warning message if you do not initialize varsas of php4.2.1 Small correction. Most version of PHP3/4 (if not all) can raise E_NOTICE error. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Ed Gorski
Go to your php.ini and turn on full error reporting.you'll get warning message if you do not initialize varsas of php4.2.1 ed At 08:11 PM 5/29/2002 +0100, Andy Arbon wrote: Hello, In general I find PHP great to work with, but the number one thing that causes bugs for me is the fact

Re: [PHP] Why is there no OPTION EXPLICIT equivalent?

2002-05-29 Thread Andrew Brampton
You can put your error level up to show you when you try to use a varible that hasn't be initalised yet, I tend to do that to ensure good coding, and that I don't mistype varibles etc Andrew - Original Message - From: Andy Arbon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

Re: [PHP] Why would this command just Die!

2002-05-20 Thread Rasmus Lerdorf
Change your die() call to this: die(mysql_error()) so you can actually see what is going on. -Rasmus On Mon, 20 May 2002, Php Developers wrote: This command just dies! I have checked sql connection ... ok the insert into line ... ok Pfft it just don't wanna work ?php

Re: [PHP] Why would this command just Die!

2002-05-19 Thread Julie Meloni
PD ?php PD $answers=$band, $middlename, $pot; PD $date=date (l dS of F Y h:i:s A); PD $sql = INSERT INTO prizeline (id, email, name, address, answers, date) VALUES ('', '$email', '$name', '$address', '$answers', '$date'); PD echo $sql; PD mysql_query($sql) or die (There has been an

RE: [PHP] Why would this command just Die!

2002-05-19 Thread David Freeman
INSERT INTO prizeline (id, email, name, address, answers, date) VALUES ('', '[EMAIL PROTECTED]', 'newman', '12 Newman ave Auckland', 'In Season, James, John', 'Monday 20th of May 2002 10:22:05 AM')There has been an error If you want 'id' to be assigned by the database (I'm assuming

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-26 Thread Jim
Your problem doesn't have anything to do with PHP. The error says that libgd doesn't offer freetype support, so you need to get a more current version of gd. Regards, Jim Heffner No idea, check your config.log and see why it is failing. On Thu, 25 Apr 2002, zhaoxd wrote: Whatever I

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread Jason Wong
On Thursday 25 April 2002 10:08, zhaoxd wrote: ? //define the type of inputting picture; Heder(content-type:image/png); Is this a typo? Should be Header(...). //create picture $pic=imagecreate(240,30); //define color $black=imagecolorallocate($pic,0,0,0);

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread Rasmus Lerdorf
It works fine. Spell Header() right, or remove the header altogether so you can see the error message. I predict you will see a message telling you it couldn't open the font file. -Rasmus On Thu, 25 Apr 2002, zhaoxd wrote: hello,all: I have already installed gd-1.8.4 in php-4.1.2 with

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread zhaoxd
? //define the type of inputting picture; Heder(content-type:image/png); Is this a typo? Should be Header(...). Sorry, I did a wrong copy.But when I cut this line,it output a warning words: libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-24 Thread zhaoxd
Whatever I tried ,it is also useless,why? This time I compile it with freetype-1.3.1.when I used the test code , it also said libgd was not built with FreeType font support in /usr/local/apache/htdocs/test.php on line 14. Would you mind tell me how you do this? I just wanna support

Re: [PHP] Why is imageTTFtext function useless?(again)

2002-04-24 Thread Rasmus Lerdorf
No idea, check your config.log and see why it is failing. On Thu, 25 Apr 2002, zhaoxd wrote: Whatever I tried ,it is also useless,why? This time I compile it with freetype-1.3.1.when I used the test code , it also said libgd was not built with FreeType font support in

Re: [PHP] Why does this not work??

2002-04-22 Thread Richard Archer
At 10:28 PM + 22/4/02, Jeffrey Means wrote: In using the setcookie function I can not set a cookie if I specify a time period. ie. setcookie(Cookie_Name, Cookie_Value, time()+30); will not set a cookie, but setcookie(Cookie_Name, Cookie_Value); does work. What am I dooing wrong?? 30

RE: [PHP] Why isn't this working? :(

2002-04-22 Thread Martin Towell
Can someone try to figure out what's wrong with my code? What are you expecting, and what are you seeing? -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Why isn't this working? :( I have a

Re: [PHP] Why isn't this working? :(

2002-04-22 Thread Richard Archer
At 9:11 PM -0400 22/4/02, Leif K-Brooks wrote: At 9:11 PM -0400 22/4/02, Leif K-Brooks wrote: I have a site where users can sign up. I have had huge problems with people using auto-signups, so I tried to stop them with an authentication image. Someone has since gotten around that. I highly

Re: [PHP] Why isn't this working? :( - I found my solution!

2002-04-22 Thread Leif K-Brooks
Thanks for everyone's help. I just figured out was wrong. I wasn't checking if a code was being returned. So all he had to do was chenge the codeid field to a non-existant code. Lol. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread Jan Peuker
GIF is licensed by Unisys(it is a compuserve format). This is very expensive, so it has been cut out of php. Solution: a) use PNG b) get an old version of php. regars, Jan Peuker P.S.: In future, please don't post 3 times using courier-extrabig. - Original Message - From: zhaoxd

Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread Jason Wong
On Friday 19 April 2002 15:06, zhaoxd wrote: I have installed gd-1.8.4 in apache server without any problems.To check if the gd can work,I write some codes in php like this: ? Header(Content-type: image/gif); $im = imagecreate(40,30); $black = ImageColorAllocate($im, 0,0,0); $white =

Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd
On Friday 19 April 2002 15:06, zhaoxd wrote: I have installed gd-1.8.4 in apache server without any problems.To check if the gd can work,I write some codes in php like this: ? Header(Content-type: image/gif); $im = imagecreate(40,30); $black = ImageColorAllocate($im,

Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread Jason Wong
On Friday 19 April 2002 15:41, zhaoxd wrote: But this time,when I use imagepng function instead imagegif funtion,the result is not right ,either! The warning message displayed also,which is bWarning/b: ImagePng: No PNG support in this PHP build in b/usr/local/apache/htdocs/index.php/b

Re: [PHP] Why my gd can not work?help please!!!

2002-04-19 Thread zhaoxd
, 15, 20, 20, 35, 190, $white); imagestring($im, 5, 4, 10, Graph TEST!!, $white); ImagePNG($im); ImageDestroy($im); ? - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 19, 2002 3:46 PM Subject: Re: [PHP] Why my gd can not work?help

Re: [PHP] Why?

2002-03-28 Thread bvr
2. Definition and Etymology bar /bar/ n. [JARGON] 1. The second metasyntactic variable, after foo and before baz. Suppose we have two functions: FOO and BAR. FOO calls BAR 2. Often appended to foo to produce foobar. foo /foo/ 1. interj. Term of disgust. 2.

Re: [PHP] Why using this? When....

2002-03-25 Thread Erik Price
On Monday, March 25, 2002, at 09:31 AM, ...::: Rober2.com :::... wrote: What's really the meaning with whatever.php?page=1 when you are NOT using a db? Just cuz it looks cool? Or is there a better reason? -Cuz you could do a href=whatever.htm instead of blabla.php?page=1 (having

RE: [PHP] Re:[PHP] Why?

2002-03-25 Thread Rick Emery
I'm ex-USAF. FUBAR means Fucked-Up Beyond All Repair -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 9:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Re:[PHP] Why? 25/03/2002 3:01:36 PM FBAR was a term used in the second world war. It turned

Re: [PHP] Why using this? When....

2002-03-25 Thread ...::: Rober2.com :::...
Ok, I get it. Exepet passing information there isn't other meaning right? ... Erik Price [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday, March 25, 2002, at 09:31 AM, ...::: Rober2.com :::... wrote: What's really the meaning

Re: [PHP] Why using this? When....

2002-03-25 Thread Erik Price
On Monday, March 25, 2002, at 09:49 AM, ...::: Rober2.com :::... wrote: Ok, I get it. Exepet passing information there isn't other meaning right? Hm? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Why?

2002-03-24 Thread Zak Greant
On March 31, 2002 04:39, Alberto Wagner wrote: Why everyone uses $foo or $foobar as examples? http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo --zak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Why?

2002-03-24 Thread Martin Towell
could also use $blah, $test, $temp, $xxx, etc, but it's what a lot of are used to, I guess -Original Message- From: Zak Greant [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:16 PM To: Alberto Wagner; Php General Mailling List Subject: Re: [PHP] Why? On March 31, 2002 04:39

Re: [PHP] Why?

2002-03-24 Thread maxwello
See also: http://www.tuxedo.org/~esr/jargon/html/entry/metasyntactic-variable.html Maxwell Why everyone uses $foo or $foobar as examples? http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re:[PHP] Why?

2002-03-24 Thread Liam
25/03/2002 3:01:36 PM FBAR was a term used in the second world war. It turned into FUBAR for better pronounciation. FUBAR turned into FOO BAR FBAR stands for: Fucked Beyond All Recognition I hope you find this completely unrelated snippet of trivial knowledge amusing, as I certainly do :-)

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
if( $line[1]='$bruker' and $line[2]='$passord') {echo hei $bruker.;} else {echo FEIL;} -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:15 AM To: [EMAIL PROTECTED] Subject: [PHP] why doesnt this work??? this script receives

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
nope... that did not do the trick... -Chris Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if( $line[1]='$bruker' and $line[2]='$passord') {echo hei $bruker.;} else {echo FEIL;} -Original Message- From: chris

Re: [PHP] why doesnt this work???

2002-03-20 Thread R'twick Niceorgaw
You need two = signs for comparision not just one . Also I think you need to enclose the variables in double quote. if( $line[1]==$bruker and $line[2]==$passord) echo hei $bruker.; else echo FEIL; -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
Hi, I am not an expert, but try if( $line[0]='$bruker' and $line[1]='$passord') {echo hei $bruker.;} else {echo FEIL;} atb Lars -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 14:22 To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
It still just comes out blank when the vars is wrong R'Twick Niceorgaw [EMAIL PROTECTED] wrote in message 020501c1d01b$11eb1d00$[EMAIL PROTECTED]">news:020501c1d01b$11eb1d00$[EMAIL PROTECTED]... You need two = signs for comparision not just one . Also I think you need to enclose the

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? You need two = signs for comparision not just one . Also I think you need to enclose the variables in double quote. if( $line[1]==$bruker and $line[2

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? nope... that did not do the trick... -Chris Rick Emery [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... if( $line[1]='$bruker' and $line[2]='$passord') {echo hei $bruker.;}

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? You need two = signs for comparision not just one . Also I think you need to enclose the variables in double quote. i

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
PROTECTED]] Sent: Wednesday, March 20, 2002 8:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? it all works just fine exept that when the vars is wrong i get a blank page...wich means that the else echo doesnt work for some reason... and if i use == the correct vars become wrong

Re: [PHP] why doesnt this work???

2002-03-20 Thread chris
Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? it all works just fine exept that when the vars is wrong i get a blank page...wich means that the else echo doesnt work for some reason...

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
Stampe -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 20 March 2002 14:30 To: 'chris'; [EMAIL PROTECTED] Subject: RE: [PHP] why doesnt this work??? First: you need == not = to test equivalence. Second, use not '; otherwise $vars will not expand if( $line[1]==$bruker

RE: [PHP] why doesnt this work???

2002-03-20 Thread Rick Emery
, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all of the sugestions but the one that works best is the one i startet with... but that one does not work 100% either...im so confused my head is about to fall

RE: [PHP] why doesnt this work???

2002-03-20 Thread Collins, Robert
Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all

RE: [PHP] why doesnt this work???

2002-03-20 Thread Stampe, Lars
:[EMAIL PROTECTED]] Sent: 20 March 2002 14:41 To: [EMAIL PROTECTED] Subject: Re: [PHP] why doesnt this work??? Thanx for all the help guys, but i have tried all of the sugestions but the one that works best is the one i startet with... but that one does not work 100% either...im so confused my head

Re: [PHP] why doesnt this work???

2002-03-20 Thread Joel Boonstra
Hello, I read a ton of replies to this already, and there was a lot of good advice. However, it should be worth noting (and I don't think anyone did already) that you have a misspelling in this code: snip $password = ; // . . . $query = select * from medlemmer where bruker =

Re: [PHP] why doesnt this work???

2002-03-20 Thread Tom Rogers
Hi Try this: $query = select * from medlemmer where bruker = '$bruker' and passord ='$passord'; $result = mssql_query( $query ); while($line = mssql_fetch_row($result)): if( $line[bruker] == $bruker $line[password] == $passord) echo hei $bruker.; else echo FEIL; endwhile; Tom

RE: [PHP] Why session is not deleted ???

2002-03-07 Thread Sven Jacobs
I've the same problem here If i do logout it doesn't doe a session_destroy :( -Original Message- From: Beta [mailto:[EMAIL PROTECTED]] Sent: jeudi 7 mars 2002 18:54 To: [EMAIL PROTECTED] Subject: [PHP] Why session is not deleted ??? Firstly i create a session, After that when i close

Re: [PHP] Why session is not deleted ???

2002-03-07 Thread Andrey Hristov
Yes. If you know what is garbage collector then you will understand why it is there. The GC is started from time to time and cleans expired session data. Best regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com On Thursday 07 March 2002 07:54 pm, you wrote: Firstly i create a

Re: [PHP] Why Remember Session ??

2002-02-25 Thread William Lovaton
Well, you have to destroy the session... see session_destroy() I never tried this, but you can call a PHP script on the onUnLoad event of the body page... so when the window is closed, it calls a given script and this script destroy the session. William. El lun, 25-02-2002 a las 12:29, Beta

Re: [PHP] why AddType not working for me as expected?

2002-02-12 Thread Erik Price
On Tuesday, February 12, 2002, at 05:23 PM, Peter J. Schoenster wrote: Hi, Given that it doesn't seem I can use PHP as a wrapper, I tried the following: AddType application/x-httpd-php .htm .html And oddly that did not work (seems to become an unknown type, gives me the option to

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread mike cullerton
on 2/4/02 11:32 AM, Peter J. Schoenster at [EMAIL PROTECTED] wrote: Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? not sure if this is it or not, but from the manual

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 10:32, Peter J. Schoenster wrote: Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? Thanks, Peter This function cut-and-pasted? If so, then you may have fallen

Re: [PHP] why isn't this working? (many questions inside)

2002-01-28 Thread Dennis Moore
Just curious, why not use FTP for such a large file? /dkm - Original Message - From: Wei Weng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 28, 2002 8:39 PM Subject: [PHP] why isn't this working? (many questions inside) First, I am running (currently) php 4.0.6

Re: [PHP] why isn't this working? (many questions inside)

2002-01-28 Thread Robin Chen
Maybe your script timed out before it could finish. Try set_time_limit(0) Another possibility is that your browser gave up. You may need 4GB of disk cache because browsers usually save all files in cache before copying them to the place you designate. Robin Wei Weng wrote: First, I am

RE: [PHP] Why while doesn't work?

2002-01-24 Thread Matt Schroebel
If you only want the associative array, just use mysql_fetch_array($result). If you're using the constant MYSQL_ASSOC, uppercase it, and don't quote it. Although the table con_inf in db sbwresearch contains 3 records with username as the first column, the following short script generates a

Re: [PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Michael Sims
At 12:16 PM 12/23/2001 -0800, Ben Ocean wrote: Hi; I get this error when I try to restart Apache: Syntax error on line 236 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/libexec/libphp4.so into server: /etc/httpd/libexec/libphp4.so The above file does, of course, exist. I'm running RH71

Re: [PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Ben Ocean
At 02:32 PM 12/23/01 -0600, you wrote: At 12:16 PM 12/23/2001 -0800, Ben Ocean wrote: Hi; I get this error when I try to restart Apache: Syntax error on line 236 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/libexec/libphp4.so into server: /etc/httpd/libexec/libphp4.so The above file

Re: [PHP] Why Can't I Get PHP to Work with MySQL??

2001-12-23 Thread Brian Clark
* Ben Ocean ([EMAIL PROTECTED]) [Dec 23. 2001 16:45]: ./configure --with-apxs=/etc/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-kerberos=/usr/kerberos --with-ldap=/usr/local/openldap So, what gives? I've googled this one and it appears there's a lot of folks with this question

Re: [PHP] Why don't ...

2001-12-17 Thread Yoel Benitez Fonseca
H! Thank you, but yuor fragment of code read all file and I'm really want is read an integer from the file. There are some fuction of PHP thas serve me to make that? Rasmus Lerdorf said: Is your second character perhaps a 0? That while loop is going to end as soon as it gets a character

Re: [PHP] Why don't ...

2001-12-16 Thread Michael Sims
At 09:14 AM 12/16/2001 -0500, Yoel Benitez Fonseca wrote: Hi! The following code fragment tries to read a sequence of digits from a file but it doesn't work, only the first character is read, Which is my error?. $str = ; while( ($c = fgetc($this-m_file)) ereg([0-9],

Re: [PHP] Why don't ...

2001-12-16 Thread Rasmus Lerdorf
Is your second character perhaps a 0? That while loop is going to end as soon as it gets a character that evaluates to 0. Write it like this instead: while(!feof($this-m_file)) { $c = fgetc($this-m_file); if(is_numeric($c)) $str .= $c; } -Rasmus On Sun, 16 Dec 2001, Yoel Benitez

Re: [PHP] Why are slashes automatically stripped from db result?

2001-12-04 Thread Steve Cayford
. Thanks. -Steve Good luck Steve, Tyler Longren - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Steve Cayford' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 03, 2001 6:04 PM Subject: RE: [PHP] Why are slashes automatically stripped from db result

RE: [PHP] Why are slashes automatically stripped from db result?

2001-12-03 Thread Martin Towell
maybe mysql is stripping the slashes and not php ?? -Original Message- From: Steve Cayford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Why are slashes automatically stripped from db result? Hey all. I'm storing some jpeg

Re: [PHP] Why are slashes automatically stripped from db result?

2001-12-03 Thread Tyler Longren
' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, December 03, 2001 6:04 PM Subject: RE: [PHP] Why are slashes automatically stripped from db result? maybe mysql is stripping the slashes and not php ?? -Original Message- From: Steve Cayford [mailto:[EMAIL PROTECTED]] Sent: Tuesday

Re: [PHP] Why are slashes automatically stripped from db result?

2001-12-03 Thread Mike Eheler
It's been my experience that there is no need for calling stripslashes when pulling the data out of the database. This is probably an effect of having magic_quotes_runtime off. Mike Martin Towell wrote: maybe mysql is stripping the slashes and not php ?? -Original Message- From:

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-27 Thread chip
This is interesting. I did my testing in Opera 5.05 and it fails to display the page correctly. I then opened Netscape 6.2 and it works fine. Must be a problem with Opera. I also set Opera to identify itself as Netscape and it still failed to load the page. Thanks for the assistance. Chip On

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-27 Thread Andrey Hristov
$sql = INSERT INTO table_name(ip,browser,received) VALUES('.mysql_escape_string($ip).','.mysql_escape_string($browser).',now()) ; - Original Message - From: chip [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 27, 2001 4:39 PM Subject: Re: [PHP] Why

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-26 Thread Craig Vincent
snip What have I done wrong in such a simple bit of code? - htmlheadtitle/title/head body ? $browser = $HTTP_USER_AGENT; $ip = $REMOTE_ADDR ; $db = mysql_connect ( localhost , username , password ); mysql_select_db ( database , $db ); $sql = INSERT INTO

Re: [PHP] Why doesn't this work? HTTP_USER_AGENT

2001-11-26 Thread David Robley
On Tue, 27 Nov 2001 17:43, Craig Vincent wrote: snip What have I done wrong in such a simple bit of code? - htmlheadtitle/title/head body ? $browser = $HTTP_USER_AGENT; $ip = $REMOTE_ADDR ; $db = mysql_connect ( localhost , username , password ); mysql_select_db

Re: [PHP] Why no one helps?

2001-11-10 Thread Kurt Lieber
On Saturday 10 November 2001 08:42 am, Christian Dechery wrote: Why doesn't anyone say something about my messages probelms with sessions and SSI? This list gets 2000 - 3000 messages per month and you find it surprising that not all messages get a response? My suggestion regarding SSI and

Re: [PHP] Why no one helps?

2001-11-10 Thread Christian Dechery
At 10:33 10/11/01 -0800, you wrote: On Saturday 10 November 2001 08:42 am, Christian Dechery wrote: Why doesn't anyone say something about my messages probelms with sessions and SSI? This list gets 2000 - 3000 messages per month and you find it surprising that not all messages get a

Re: [PHP] Why no one helps?

2001-11-10 Thread Rasmus Lerdorf
Perhaps because you keep asking non-PHP related questions on the PHP lists. I see a bunch of questions about Apache and .htaccess from you which you yourself admitted has nothing to do with PHP. So, yes, your history of lame questions work against you. But to answer your question, it is

Re: [PHP] why cant I: array_keys($arr)[0] ?

2001-11-04 Thread Matt McClanahan
On Sun, Nov 04, 2001 at 12:54:54AM -0700, [EMAIL PROTECTED] wrote: Why does PHP give a parse error if you do: echo array_keys($arr)[0]; It makes you assign the result of the function to a var first like this: $arr = array_keys($arr); echo $arr[0]; I just want to

Re: [PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Matt McClanahan
On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote: Preface to these ramblings: Exception handling is planned for the next version of the Zend engine. For details, see http://www.zend.com/zend/future.php The nasty thing then comes in that if any task fails, I have to stop. So I

Re: [PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Brian White
If that happens it would be great. At 00:33 22/10/2001 -0500, Matt McClanahan wrote: On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote: Preface to these ramblings: Exception handling is planned for the next version of the Zend engine. For details, see

Re: [PHP] Why this error to this newsgroup?

2001-09-24 Thread Adrian D'Costa
This is the same error I get. The question is why the mails is going to: mail.aaz-netmarketing.com when it should be going to : pb1.pair.com Adrian On Sat, 22 Sep 2001, hvm wrote: Hi I have the same and I don't know if some one even get my questions, I never get a response. Maybe the

Re: [PHP] Why this error to this newsgroup?

2001-09-24 Thread David Robley
On Mon, 24 Sep 2001 17:09, Adrian D'Costa wrote: This is the same error I get. The question is why the mails is going to: mail.aaz-netmarketing.com when it should be going to : pb1.pair.com Adrian Well, if you think about it for a minute, you'll realise that it _does_ go to lists.php.net

Re: [PHP] Why this error to this newsgroup?

2001-09-22 Thread hvm
Hi I have the same and I don't know if some one even get my questions, I never get a response. Maybe the questions are to difficult. Yours Hans. - Original Message - From: Gaylen Fraley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 22, 2001 6:34 PM Subject: [PHP]

Re: [PHP] Why doesn't this work?

2001-09-16 Thread Rasmus Lerdorf
print split(=,$testString)[0]; First, using split() on such a simple delimiter is a waste. Use explode(). And yes, PHP does not support automatic dereferencing of returned arrays like that. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Why doesn't this work?

2001-09-14 Thread Jack Dempsey
php doesn't have as loose a syntax as perl or python. try this: ? $testString = this=is=something; print array_shift(split(=,$testString)); ? mind you, that only works because you wanted the 0th element, and shift returns that first one...something else would be needed for any other index...

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-10 Thread nayco
Heloorghhh !!! Well, try to make a script with : ?php echo bob says : \hello, brother !!! \ ; echo bob says : hello, brother !!! ; ? then, look at the output to see where the error is well, php's got to know which of the quotes means end of string an which is a part of the

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Rasmus Lerdorf
I would like to know why PHP adds slashes to the double quote, single quote, and backslash characters when submitting a form. In particular it would be nice if the PHP manual or some other manual mentioned this but I could not find any official documentation on this issue. Why does PHP add

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
Hi Rasmus! Thanks for your explanation. Unfortunately I am using a server on which I do not have write access to php.ini. I have also been noticing that a submitted \ is received as when I use stripslashes() thus stripslashes() is not a totally safe alternative. Is there a way that I can

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Rasmus Lerdorf
Like all other PHP config directives you can set it in your .htaccess file using: php_value magic_quotes_gpc off And you are wrong on the \ part. If magic_quotes_gpc is on and you submit a string that contains \ then it will be escaped to \\\ and a StripSlashes() will turn it back into \

<    3   4   5   6   7   8   9   >