Re: [PHP] Looking for optimal coding

2002-02-15 Thread LuC .
for($i=1;$i=50;$i++) { if ((!empty($content) $row[$content] == $states[$i]) || ($dstate == $states[$i])) $selected=SELECTED; else $selected=; printf(option value=\%s\ %s%s/option, $states[$i], $selected, $nstates[$i]); } I always

[PHP] keeping the dot

2002-03-04 Thread LuC .
Try thinking :? :? Just add a dot. $filename = ereg_replace([^a-zA-Z0-9.], ,$filename); = I have a file that is being uploaded, but I need to remove all the characters in the filename except letters, numbers, and the '.' (dot). Example would be

RE: [PHP] Multiple browser instances - is it possible to determine which browser

2002-03-04 Thread LuC .
Create a frame set. if your page opens without frameset the did something wrong, at least not allowed. (like open in a new window) If the main page, containing the frameset is loaded, the page is opened in a new window or they pressed f5(reload). === We've considered using javascript

[PHP] PHP Job database

2001-02-16 Thread Luc
This is a free service for the PHP Community. Job seekers can search the latest PHP related positions. Companies can post their Jobs with EASE for FREE! http://www.phpcareer.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
/ /div /form -- Best regards, Luc Powered by The Bat! version 3.99.3 with Windows XP (build 2600), version 5.1 Service Pack 2 and using the best browser: Opera. Doctor to patient: I have good news and bad news - the good news is that you are not a hypochondriac

Re[2]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
the following error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in / on line 14 -- Best regards, Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in / on line 14 So i still don't have a clue what i could have snipped and if i have everything in the correct order. -- Best regards, Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re[6]: [PHP] Newbie seeks urgent help

2007-07-13 Thread Luc
between [ ] with a ' ', so i removed the ' and it worked. Now i still have 2 problems: 1) the email of the sender is left blank: Empresa: LUC Contato: LUC Fone: 909 Fax: 90°0 Email: Produto: UIOU Origem: IUIIO Destino: IIOP Quantidade: OIOIOP Peso: IPOIOP Comprimento: OIOI Altura: POIIPO Largura

Re[8]: [PHP] Newbie seeks urgent help

2007-07-16 Thread Luc
; $notification_subject = Obrigado por sua mensagem para $websitetitle.; mail($contato_email, $notification_subject, $notification_message, From: $youremail); I have that piece of code but still no go :-) G banging head on table -- Best regards, Luc

[PHP] Variable problem?

2007-07-24 Thread Luc
=Enviar / /form -- Best regards, Luc Powered by The Bat! version 3.99.3 with Windows XP (build 2600), version 5.1 Service Pack 2 and using the best browser: Opera. If you feel Dog tired at night, it may be because you growled all day! -- PHP General Mailing List (http

Re: [PHP] Variable problem?

2007-07-24 Thread Luc
-newbie lol. It works like a charm Daniel. I'm really, really grateful!!! -- Best regards, Luc _ Powered by The Bat! version 3.99.3 with Windows XP (build 2600), version 5.1 Service Pack 2 and using the best browser: Opera. The pleasure of love is in loving. We

Re[2]: [PHP] Variable problem?

2007-07-25 Thread Luc
want to turn off in the first place. Or consider checking if it's on in your code rather than assuming it's on. magic_quotes_gpc is indeed on by default on my hosting server as i checked their php modules. -- Best regards, Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Sessions?

2007-07-26 Thread Luc
/ input type=submit value=Enviar / /form -- Best regards, Luc Powered by The Bat! version 3.99.3 with Windows XP (build 2600), version 5.1 Service Pack 2 and using the best browser: Opera. Experience - the name men give to their mistakes. - Oscar Wilde. -- PHP General

Re[2]: [PHP] Sessions?

2007-07-26 Thread Luc
to understand it all and plunge into it :-) -- Best regards, Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail problem - deadline!!!!! - SOLVED

2007-08-06 Thread Luc
, From: $contato_email); -- Best regards, Luc Powered by The Bat! version 3.99.3 with Windows XP (build 2600), version 5.1 Service Pack 2 and using the best browser: Opera. From St Paul's second letter to the Corithians: 'Dear Corinthians, you could have at least

[PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Luc Maltier
Hello! My first message: I've just updated PHP from 5.1.4 to 5.2.5 (to solve an Apache problem when double-clicking on links). This was successful, as the problem is now solved, but I now, sometimes, get a message stating that the memory is exhausted. I modififed php.ini and set memory_limit

[PHP] RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Luc Maltier
Thanks for this clue (ini_set). But I normally don't need this amount of memory anywhere, as 8M were OK in PHP5.1.4... I just want to understand what happens. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE : RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-25 Thread Luc Maltier
Thank you. You must be right about the memory_limit not enabled in 5.1.4 Windows binaries. It would be nice, for the Windows binary download, to provide details on parameters uised to compile it (and on extensions included: actually, using the installer package is supposed to be simpler, but it is

[PHP] Using odbc_pconnect function

2002-12-09 Thread Luc Roettgers
$connectionstring on other pages since I make calls like: $queryexe = odbc_do($connectionstring, $query); Hope this is not confusing. Also, can I make the persistant connection expire after there have been no calls to the DB for a certain time? Many Thanks, -Luc

[PHP] Page display of query resuts using ODBC

2002-12-10 Thread Luc Roettgers
sites to find such a script without luck so far... Thanks in advance for your help, -Luc

[PHP] Can't recover data in php posted with a form tag.

2002-11-29 Thread Luc Roettgers
I have 2 files runQuery.php and doSQL.php, where the first one is posting data entered by the user to the second page and displaying it but the data never arrives. Any idea why this would not work, maybe some configuration issue?? Any help is really appreciated... !-- !-- runQuery.php --

[PHP] XML Downstream

2004-12-02 Thread Luc Pascal
into files? Thank you very much for help Pascal Luc --- Pascal Luc Client/System Support (Applicationdeveloping) SSZ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get Specific Data from an CSV format file to PHP

2002-04-18 Thread Luc Saint-Elie
Jack You may want to have a look at : http://cvs.php.net/cvs.php/pear/File Hope this helps Luc At 20:41 18/04/02 +0800, Jack wrote: Dear all I had tried to fetch the data from CSV file by using PHP, what i did is fetch the whole file content! But now i only want specific data from that CSV

Re: [PHP] get ip of visitors

2002-04-23 Thread Luc Saint-Elie
); } // Browser $user_data['navigateur']= getenv(HTTP_USER_AGENT); // HTTP Refer $user_data['comefrom'] = getenv(HTTP_REFERER); return $user_data; } Hope this helps Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] PHP compared to JSP

2002-05-04 Thread Luc Saint-Elie
reallyr elated (as strange as it sounds) Does PHP compile : NO Does the user loading same page for 2nd time gets better response : YES it can if caching is provided Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about fsockopen

2002-05-06 Thread Luc Saint-Elie
) php pages are often down (because mySQL problem or PHP problems) So I'd like to be able to control if a specific url is OK and not only the hostname. How can I do that ? Thanks in advance Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] register_globals in php4

2002-05-10 Thread Luc Saint-Elie
Mike, Both of your bit of code are not equal. On my ISP in 4.0.6 isset returned false if the variable was not existing OR empty in 4.2 isset returns true if the variable exists but is empty, so you may want to check with empty instead of isset Luc At 12:16 10/05/2002 +0100, Ford, Mike

RE: [PHP] help with undefined variables, please

2002-05-14 Thread Luc Saint-Elie
you must use empty() Luc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help with undefined variables, please

2002-05-14 Thread Luc Saint-Elie
At 21:57 14/05/2002 +0200, Luc Saint-Elie wrote: 4.1 = isset() returns false if the variable is not set OR if the variable is empty typo.. wanted to say : 4.1 isset() returns true if the variable is set ORT if the variable is empty Luc -- PHP General Mailing List (http://www.php.net

[PHP] Problem with make test

2003-01-06 Thread Pierre-Luc Soucy
that? Thanks, Pierre-Luc Soucy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Editors

2003-01-07 Thread Pierre-Luc Soucy
Do you know any good equivalent with similar features for Linux? Thanks, Pierre-Luc Soucy PHPEdit i use it personally www.phpedit.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
does not create the output.txt file when ran by the PHP program (which is running as a CGI under my user BTW) while it works when ran from the shell. Any idea why? Thanks! Pierre-Luc Soucy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
Hi, Does that mean that there is no way to achieve this with PHP and that I should rather use the --passphrase-fd argument? Thanks, Pierre-Luc Evan Nemerson wrote: GnuPG doesn't use stdin to read the password, which is where you're sending it. It uses a more low-level interface (check out

Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Pierre-Luc Soucy
the passphrase should normally be read from stdin (according to the docs), but it still does not work. Any idea? I am unfortunately not familiar with C code, so I can difficultly find solutions to my problems by reading the GnuPG source. Thanks! Pierre-Luc Evan Nemerson wrote: GnuPG doesn't use

Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Pierre-Luc Soucy
/.gpgkeys/temp/testtext.asc; $passphrase = 'MY_PASSPHRASE'.\n; $fp = popen($command, 'w+'); fputs($fp, $passphrase); fputs($fp, $passphrase); pclose($fp); print Done; exit; ? Regards, Pierre-Luc Evan Nemerson wrote: Are you appending a newline to your passphrase? $passphrase = my gnupg passphrase

[PHP] Re: Decrypting data with GnuPG

2003-06-01 Thread Pierre-Luc Soucy
Just for the record, adding the --batch argument to the GnuPG command solved the problem. Regards, Pierre-Luc Pierre-Luc Soucy wrote: Hi, I would like to decrypt data encoded with GnuPG without including the private key passphrase in the command to prevent people from viewing it with ps

[PHP] Stream does not support seeking

2003-02-06 Thread Pierre-Luc Soucy
when people use URLs in the include function, but have no idea why, espcially since allow_url_fopen is on. Any suggestions? Thanks, Pierre-Luc Soucy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP OpenSSL question

2003-03-04 Thread Pierre-Luc Soucy
to do a SSL handshake first? How can that be done with PHP? Thanks a lot! Pierre-Luc Soucy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php