[PHP] WARNING! Virus

2004-03-31 Thread Firman Wandayandi
Be carefull guys, maybe email attacment contain a virus, NAV 2003 catch a virus [EMAIL PROTECTED] I don't know from which list, php-general, php-windows, pear-general, pear-dev or pear-cvs. Firman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Array problem

2004-03-22 Thread Firman Wandayandi
Hi noginn, $columntotals[$count] = $columntotals[$count] + $sum; ^-^ ERROR HERE Seem you tried to assign columntotal[index] with itself and you never defined it. You should tried this one. =

Re: [PHP] Fill strings with nbsp;

2004-03-22 Thread Firman Wandayandi
$str = str_replace(' ', 'nbsp;', $str); $str = preg_replace('/\s+/', 'nbsp;', $str); $str = ereg_replace('[[:space:]]+', 'nbsp;', $str); Good Luck, Firman - Original Message - From: Merlin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 22, 2004 7:02 PM Subject: [PHP]

[PHP] Re: [PEAR] Auth

2004-03-20 Thread Firman Wandayandi
Hi Frederic, Stefan right, I just notice on the error Fatal error: _factory(): Failed opening required 'Auth/Container/DB.php' (include_path='.:') in /www/news/Auth-1.2.3/Auth.php on line 218 I'd bet you didn't turned On include_path directive on php.ini. Please correct thism, just remove

Re: [PHP] Re: [PEAR] Auth

2004-03-20 Thread Firman Wandayandi
Wrong List!! - Original Message - From: Firman Wandayandi [EMAIL PROTECTED] To: Frederic SOSSON [EMAIL PROTECTED] Cc: PHP-GEN [EMAIL PROTECTED] Sent: Saturday, March 20, 2004 9:27 PM Subject: [PHP] Re: [PEAR] Auth Hi Frederic, Stefan right, I just notice on the error Fatal error

Re: [PHP] E-mail account disabling warning.

2004-03-19 Thread Firman Wandayandi
1) +0 2) +1 Firman - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 9:42 PM Subject: Re: [PHP] E-mail account disabling warning. On Fri, 19 Mar 2004 [EMAIL PROTECTED] wrote: Dear user of e-mail

Re: [PHP] Image info?

2004-03-19 Thread Firman Wandayandi
Hi Mike, use getimagesize(), http://www.php.net/manual/en/function.getimagesize.php Firman - Original Message - From: Mike Mapsnac [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 10:30 PM Subject: [PHP] Image info? Using php function I was able to get such

Re: [PHP] str_replace or regex

2004-03-18 Thread Firman Wandayandi
eregi_replace('(\$\$)([a-z].+)', '\1z', '$$a'); Maybe i'm wrong, please crosscheck. Regards, Firman - Original Message - From: Adam Williams [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 1:06 AM Subject: [PHP] str_replace or regex Hi, I was wondering if I

Re: [PHP] How to LogOut ?

2004-03-18 Thread Firman Wandayandi
Hi Labunski, You couldn't logout, except you close your browser. Anyone please correct me. Regards, Firman - Original Message - From: Labunski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 19, 2004 2:08 AM Subject: [PHP] How to LogOut ? I made Login page using http

Re: [PHP] Retain form values...

2004-03-18 Thread Firman Wandayandi
Hi Jonathan, You can do this, with one file, display a form, proceed the fields, and fill the field form objects with the value. If you use separate page in my mind is impossible. Regards, Firman - Original Message - From: Jonathan Villa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] PHP vs Algorithm

2004-03-17 Thread Firman Wandayandi
Hi All, I want to make algorithm representation of my code for my homework, but I have no idea to convert PHP code to algorithm. Can anyone help me? Code: --- begin code --- function doAdd($command, $options, $params) { $kategori = new Silaris_Kategori($params); $res =

[PHP] Re: [PHP-WIN] help with _PHP_SELF and changing a paramter in URL...

2004-03-16 Thread Firman Wandayandi
Hi Leo, Actually I do this with preg_replace(). A code might like this: --- begin code --- // if url taken from browser url address $querystring = $_SERVER['QUERY_STRING']; $newurl = preg_replace('/(var1)=([0-9].*)(.*)$/', '\1=20\3', $querystring ); // if url taken from string $url =

Re: [PHP] categorizing and array mapping

2004-03-15 Thread Firman Wandayandi
Hi David, Are you mean, complete categori tree? I would be take this step: 1). Determine category level. 2). Loop for count of level. 2.1). Collect all category in level number. 2.2). If is root category save this. 2.3). If isn't root category, loop inside data and find subcategory

Re: [PHP] Printing landscape

2004-03-15 Thread Firman Wandayandi
Hi Lou, Printer function to do that is printer_set_option() http://www.php.net/manual/en/function.printer-set-option.php The code might be like this: --- begin code --- $handle = printer_open(); printer_set_option($handle, PRINTER_ORIENTATION,

Re: [PHP] List of all defined constants

2004-03-15 Thread Firman Wandayandi
Hi Marco, You can use get_defined_constans(void) -- begin code -- print_r(get_defined_constants()); -- end code -- Good Luck, Firman - Original Message - From: Marco Schuler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:23 PM Subject: [PHP] List of all

Re: [PHP] help for getimagesize

2004-03-13 Thread Firman Wandayandi
Hi Norbert, Hi Richard, Hi All, Maybe you can use IrfanView, if still developed. :) http://www.irfanview.com I found JP2 converter only in it. By the way I used XnView too, JP2 and JPEG-2000 converter err or need registered. Have better idea cause I needed too or are someone know what?.

Re: Re[2]: [PHP] help for getimagesize

2004-03-13 Thread Firman Wandayandi
Hi Richard, I right click the image in Browser Window and select Convert.., Select JP2 and click Go button. Then warning message appear Contact your dealer, on JPC too. XnView 1.68.1 on WinXP. I don't know why? Regards, Firman - Original Message - From: Richard Davey [EMAIL

Re: Re[2]: [PHP] help for getimagesize

2004-03-13 Thread Firman Wandayandi
Ups, is not right place to discuss this... Firman - Original Message - From: Richard Davey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 13, 2004 10:45 PM Subject: Re[2]: [PHP] help for getimagesize Hello Norbert, Saturday, March 13, 2004, 3:13:10 PM, you wrote:

Re: [PHP] Create table .. script[via LSMTP - see www.lsoft.com]

2004-03-13 Thread Firman Wandayandi
Hi Mike, Try using phpMyAdmin, but sorry I forgot the site :( try google. Regards, Firman - Original Message - From: Mike Mapsnac [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 13, 2004 11:24 PM Subject: [PHP] Create table .. script Hello When I need to create

Re: [PHP] gd installation problem

2004-03-13 Thread Firman Wandayandi
Hi QT, Sorry I don't where the turtorial can be found. :( But can you check you php.ini? this is the most problem have been posted to the list. Regards, Firman - Original Message - From: QT [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 14, 2004 9:59 AM Subject: [PHP]

Re: [PHP] how to convert array into integer

2004-03-13 Thread Firman Wandayandi
Hi Kenneth, You can implode an array first, and convert it to integer, see below. $number = (int) implode('', $yourarray); Good Luck, Firman - Original Message - From: Kenneth [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 14, 2004 12:48 PM Subject: [PHP] how to

Re: [PHP] gd for windows not working

2004-03-10 Thread Firman Wandayandi
- Original Message - From: Joe Patiani [EMAIL PROTECTED] To: Firman Wandayandi [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 6:28 AM Subject: Re: [PHP] gd for windows not working Yes it true, now in running my php without php.ini, but why it still working without error

Re: [PHP] gd for windows not working

2004-03-10 Thread Firman Wandayandi
the problems. simply leave me the message. I'm at my home at Bandung. Regards, Firman - Original Message - From: Joe Patiani [EMAIL PROTECTED] To: Firman Wandayandi [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 9:52 AM Subject: Re: [PHP] gd for windows not working Ok

Re: [PHP] Passing array from class to class produces more than one result...

2004-03-10 Thread Firman Wandayandi
Hi Jon! If you wanna do that, use pass by reference operator in front of your method/function, the method should be like this: class someClass { function fetchArray() { // do something } } Good luck, Firman - Original Message - From: Jonathan Villa [EMAIL

Re: [PHP] gd for windows not working

2004-03-09 Thread Firman Wandayandi
Hi Joe! PHP will always runaway, doesn't matter with php.ini. There are some location where php.ini located, as following: 1. SystemRoot e.g C:\Windows (on WinXP, Win9x), C:\WinNT (on WinNT4, Win2000) 2. ServerRoot e.g C:\Apache\conf I think the problem is your configuration directive, please