Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
Well, I suppose I should say "Doh!" but even when I get rid of the "@", I still get a blank page - no errors, and no database, either! A followup - I'm taking this over to PHP-DB since it's now database-centric, I think. This still fails: $db = new mysqli( But this works $conn

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
comex wrote: On 8/24/07, Linux NG/Lists <[EMAIL PROTECTED]> wrote: b) Why does the error reporting NOT work as soon as I jam a $db new mysql call into the code? Because you disabled it with an '@'. Well, I suppose I should say "Doh!" but even when I get rid

[PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
I swear, it was just working last week! Well, a while ago, on another machine. You get the idea. Here's the deal... PHP 5.1.6 and MySQL 5.x on FC6 fully patched. 1. A simple page with a call to phpinfo() works fine. 2. A barely more complicated page also works fine, in that it throws an expec

[PHP] Re: Super Globals

2003-03-21 Thread ng
Hi, >>If I turn register_global on and print $QUERY_STRING it works, >> but it wont if I print $_SERVER['QUERY_STRING']. >> I'm on XP/PHP 4.0.6. the super globals arrays are availables from PHP 4.1.0 i think, no ? before this version your should use $HTTP_SERVER_VARS['QUERY_STRING'] upgrade your

[PHP] Re: Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread ng
hi smarty ( and pear ? ) provide some interresant function http://smarty.php.net/manual/en/language.function.html.options.php on my own scripts i have somthing like : exemple : >a >b >c or : %1\$s\n",$value,bool($_POST['foo'],$value,'s')); } ?> ( sorry for the long code )

Re: [PHP] regexps

2003-01-28 Thread ng
>using any of the string functions on the output would ofcourse > cause a performance drawback (do you agree with me?), i had > used a combination of string functions to do instead of regexps, > which one will be faster as you think ? Hi, i made some basic bench and see that it really depends...

[PHP] "writing" a backspace or del char in a file

2003-01-24 Thread ng
Hi i want to erease 'one' or more caracters in a file, so, if this file is too big ( >10MB ) i don't want to read entirely it to substr(); the last line and entirely re-write it... i like to write -at the end by exemple- the char backspace ( 0x08 ) ex : but this simply add the char "backspace"

[PHP] please help!!

2002-05-25 Thread Jolly Ng
Hi Hi, php + apache + win2000 or php + IIS + win2000 I don't know why my setting do not allow me to POST or GET variable which submit in html Please help!!! Jolly

[PHP] How to Retrieve All Selected Values of CheckBox Group in Form?

2001-09-12 Thread Hon-Chi Ng
Hi How I read the all values selected for checkboxes of same name that are submitted to HTML form? I tried to translate the example on CGI.pm homepage to PHP below. What's your name? What's the combination? eenie meenie minie moe Y

[PHP] monitoring more than two sockets (multitask ?)

2001-07-24 Thread Keith Ng
Hello, I have a simple question. How do I monitor two or more sockets in PHP? Someone told me about register_tick_function() for multi tasking but I played with it and nothing seems to come out of it. I monitored the first opened socket using a while() loop containing a fgets() function. --

Re: [PHP] Hack on Server.

2001-07-20 Thread Ng Hak Beng
Hi! Not sure if it the same one, there's a new IIS exploit that'll change the main page.but only in memory. It's known as Code Red Worm at the cert.org site. I noticed it after I had lots of weird requests in my httpd logs for about 8 hours last night (+800) which I thou

Re: [PHP] Parse error..help!

2001-05-18 Thread Keith Ng
> $NL = (\n); > $H = getLastHost(); > $R = getLastRef(); > $To = "[EMAIL PROTECTED]"; > $Sub = "Page Accessed"; > $D = Date("D d M y h:ia",time()); > $Msg = $H + $NL + $R + $NL + $D; > mail

Re: [PHP] Parse error..help!

2001-05-18 Thread Keith Ng
> $NL = (\n); > $H = getLastHost(); > $R = getLastRef(); > $To = "[EMAIL PROTECTED]"; > $Sub = "Page Accessed"; > $D = Date("D d M y h:ia",time()); > $Msg = $H + $NL + $R + $NL + $D; > m

[PHP] Barcode in PDF.

2001-05-17 Thread Keith Ng
Hi, Does anyone know how to go about drawing a barcode in PDFLIB? Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] How can I enable magic_quotes_gpc without editing PHP.ini

2001-05-16 Thread Keith Ng
- > Phone: (+354) 4615501 > Mobile: (+354) 8960376 > Fax: (+354) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is <- New Homepage! > -- set_magic_quotes_runtime(); Regards, Keith Ng ___

[PHP] PDF

2001-05-16 Thread Keith Ng
hanks very much. Regards, Keith Ng ___ Senior Web Developer K-Systems & Services [EMAIL PROTECTED] http://www.k-systems.com.sg/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] multiline text areas and mysql doesn't work :(

2001-05-13 Thread Keith Ng
e field appears on 1 line. > Any ideas how to get it to store the control chars? > -Ciaron Use nl2br() to format the display properly in HTML. Goto www.php.net/nl2br for more info. So this would work well: Updating the record works because you probably did something like this: Rega

[PHP] Asking Sth about PHP

2001-02-20 Thread Ng Chun Chi
Dear Sir, I have two problems in using PHP. Could you help me? I am using Red-Hat to build up my System. Could I use Perl to control some PHP program? Also, could I run my PHP program in Linux Console? Sorry to disturb you THx! Mr Ng -- PHP General Mailing List (http://www.php.net/) To

[PHP] Time in php problem....

2001-02-12 Thread Ng Kok Chun
hi... i need some help... currently i doing web base programming ( econsultant )using php, apache and mysql as well... now i facing a problem which i need : 1) get time when consultant log on 2) get time when consultant log off 3) calculate how long for the specified consultant been log on to th