Re: [PHP] Textarea returns causing havoc
Here is how i do it, and it works: $tmp_desc = str_replace("\t", " ", str_replace("\n", " ", str_replace("\r", " ", $desc))); $desc = $tmp_desc; \t for stipping TABs also - Original Message - From: "Sam" <[EMAIL PROTECTED]> Subject: [PHP] Textarea returns causing havoc > Hi all, > into this: > > Hi my name is Sam Rose > > I have tried > nl2br() > str_replace() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie redirect/variable question
hey! what's that 'echo' doing there? if you want to use header (and you want to) it must be the firts thing you output from your script so.. first of all loose the 'echo' stuff - Original Message - From: "Steve Wade" <[EMAIL PROTECTED]> > Here's redirect.php: > echo $fred; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
re: [PHP] File upload !!!
Is your file greater than 1000 bytes? If it is, this is the answer: the file you try to upload is too large. Increase the limit (beware of the built-in limit of PHP - in php.ini) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php 4.1.0 output compression
Anyone has tried out yet the output compression? How does it work, is it really stable? Rares
Re: [PHP] Re: php 4.1.0 output compression
From: "Yasuo Ohgaki" > How does it work? Read RFC for HTTP/1.1 I meant how do i tell PHP to use output compression. Does PHP automatically detect the browser capability and send a compressed response or do i have to activate it in my scripts. Or in the configuration file? I know the HTTP rfc well (as i tried to implement this for myself). Thanks for your aswer, Rares -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP + DB2 @ Win2k
Hi. I am in the process of developing a web app. over the IBM DB2 database. So I'm interested if any of you have knowledge of such a sucessful combination: PHP + DB2 on Windows 2000 platform (using IIS or IBMHttpd Server - wich is Apache, by the way). If so, please contact me to discuss further details. Thanks, Rares
[PHP] PHP + DB2
hi Anyone here used PHP to connect to a IBM DB2 database? Of course, using ODBC. I am having difficulties calling stored procedures with input/output parameters. Any help is appreciated. Rares
Re: [PHP] PHP + DB2
> Using ODBC should be fine; what problems are you having with input/output > parameters? I have a stored procedure like this: CREATE PROCEDURE ADMINISTRATOR.Proc2 (IN idc INT,OUT max int) . P1: BEGIN SET max = 22; END P1 And I try to call it like this: $ps = "CALL ADMINISTRATOR.PROC2(2,?)"; $result = odbc_prepare($link,$ps); $arrparam = array(1); $rst = odbc_execute($result, $arrparam); echo $arrparam[0]; and no luck. > Also, what ODBC drivers are you using? IBM DB2 ODBC DRIVER 7.01.00.40 I appreciate any suggestion. Rares -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]