[PHP] array_filter function

2008-03-28 Thread Bagus Nugroho
Hello, If I have an array like this $dataArray = array(0=array('type'='da'), 1=array('type'='wb'), 2=array('type'='da'); How I can filtering to get only 'da' only, like this $newDataArray = array(0=array('type'='da'),2=array('type'='da')) Thanks in advance bnug

RE: [PHP] array_filter function

2008-03-28 Thread Bagus Nugroho
Thanks You, rgds, bnug From: Robin Vickery [mailto:[EMAIL PROTECTED] Sent: Jumat 28-Mar-2008 21:45 To: Bagus Nugroho Cc: php-general@lists.php.net Subject: Re: [PHP] array_filter function On 28/03/2008, Bagus Nugroho [EMAIL PROTECTED] wrote: Hello, If I

[PHP] Embedded Image from Database

2007-05-23 Thread Bagus Nugroho
I was trying to put embedded image on HTML Mail using PHP Mailer, my problem is my image does not located on filesystem but located within MySQL Server. How I can put image from database into HTML Mail. Thanks in advance, bgs

[PHP] register_argc_argv directive

2007-04-18 Thread Bagus Nugroho
Hi All, I'm confuse about usage of php.ini directive register_argc_argv. Is used for command line purpose only? Thanks in adavance bn

[PHP] PHP Eclipse on Linux

2007-04-12 Thread Bagus Nugroho
Hi All, When I'm trying to use eclipse on Linux, using command java -startup.jar, it was show an error like this Could not create Java Virtual Machine Is my command wrong. Java already installed and eclipse was put on /opt Thanks in advance bn

[PHP] Error after add php_apc.dll

2007-04-06 Thread Bagus Nugroho
Hi All, I'm just add php_apc.dll in my module, but when I'm restart apache there error as : The instruction at 0x097f2e5e referenced memory at 0x0019. The memory could not be read. Is this cause of the module or apache itself? Thanks in advance bn

[PHP] Install PECL

2007-04-04 Thread Bagus Nugroho
Hi All, I'm trying to install PECL package as install PEAR package, but there's error as : --- C:\PHPpear install http://localhost/pear/APC-3.0.13.tgz http://localhost/pear/APC-3.0.13.tgz downloading APC-3.0.13.tgz ... Starting to download APC-3.0.13.tgz (105,042 bytes)

RE: [PHP] Install PECL

2007-04-04 Thread Bagus Nugroho
Ok, thanks Best Regards bn From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Wed 04-Apr-2007 23:45 To: Bagus Nugroho Cc: php-general@lists.php.net Subject: Re: [PHP] Install PECL Bagus Nugroho wrote: Hi All, I'm trying to install PECL package as install

[PHP] Read file on file system

2007-02-04 Thread Bagus Nugroho
Hi All, If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try file_get_contents, fgetcsv and etc but didn't work. May I'm mis-understanding about using those function. Thanks in advance Regards, bn

RE: [PHP] Read file on file system

2007-02-04 Thread Bagus Nugroho
Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sun 04-Feb-2007 21:14 To: Bagus Nugroho Cc: php-general@lists.php.net Subject: Re: [PHP] Read file on file system Bagus Nugroho wrote: If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try

[PHP] Embeded image on mail()

2007-01-22 Thread Bagus Nugroho
Hi All, It was possible to send embeded image on mail() function. Curently, I'm using linked image to send image on mail. Thanks in advance bn

[PHP] regex

2006-10-19 Thread Bagus Nugroho
Hi All, If we have variable like : $var1 = 'abcde 12'; $var2 = 'abcdefghi 34'; $var3 = 'abc 20 def'; Then we want output like : $var1 = 'abcde'; $var2 = 'abcdefghi'; $var3 = 'abc def'; How regex can help us?. Thanks in advance. bgs -- PHP General Mailing List (http://www.php.net/) To

[PHP] Starting week number of year to Sunday

2006-09-11 Thread Bagus Nugroho
Hi All, Is anyway to change starting week number of year on Sunday, instead Monday as default? Thanks in advance, bn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php_mysql.dll

2006-07-09 Thread Bagus Nugroho
if windows, you may add php directory to the PATH of Windows [Environment Variables]. From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Mon 10-Jul-2006 09:08 To: php-general@lists.php.net Subject: Re: [PHP] php_mysql.dll Yes. I thik it's

RE: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Bagus Nugroho
how about like this --- $insert = INSERT INTO age (age_label) VALUES ('$age'); --- From: Mark Sargent [mailto:[EMAIL PROTECTED] Sent: Sat 03-Jun-2006 10:02 To: PHP List Subject: [PHP] Parse error: syntax error, unexpected '}' Hi All, can anone see what's

[PHP] Recall: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Bagus Nugroho
Bagus Nugroho would like to recall the message, [PHP] Parse error: syntax error, unexpected '}'.

RE: [PHP] MS SQL extension not loading

2006-04-14 Thread Bagus Nugroho
I have experience with loading mysql.dll and other module which unable to load, even the module is exist on the path. In my problem, it was solved by put php directory (c:/php) on windows system variables (Environment Variables), please check Instalation FAQ(5.14) of PHP Manual. It look like,

[PHP] Limitation on PEAR : Spreadsheet_Excel_Writer

2006-02-09 Thread Bagus Nugroho
Hello Everyone, I'm succesfully generate report from mysql table using PEAR : Spreadsheet_Excel_Writer, but I have problem to generate from table which contain long text, the text is not download completely. such as blablabla. it only contain blab How can manipulate PEAR, to get full

RE: [PHP] Problem on Instalation ~ several module failed to load

2006-01-04 Thread Bagus Nugroho
, mcrypt, mhash, mssql, mysql, mysqli, oci8, openssl, sybase_ct). Also, I was re-install my apache(2.0) Is this problem related with php or apache or my OS(XPSP2)? Hopefully, someone can help me to solve my problem. Thanks Regards From: Bagus Nugroho

[PHP] mysqli module in php 4

2005-12-27 Thread Bagus Nugroho
Hi All, Is mysqli module enable by default on php 4 as mysql module. If not enable by default, where I can get this module(hopefully a direct link to download) Thanks in advance

RE: [PHP] Problem on Instalation ~ several module unable to downl oad

2005-12-17 Thread Bagus Nugroho
[mailto:[EMAIL PROTECTED] Sent: Sat 10-Dec-2005 04:14 To: Bagus Nugroho; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to downl oad [snip] Yes, all requested module is put on same folder which module which succesfully load. But, I don't understand

[PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
Hi All, Previously I always succed to instalation PHP, but currently I have strange problem as several module is unable to download(i.e : php_mysql.dll, php_mysqli.dll), while several other are succesfully download(i.e : mbstring, gd). I have re-installed or copy PHP folder from my succeded

RE: [PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
is on c:\php\ext as others. Any idea how come Thanks From: Bagus Nugroho [mailto:[EMAIL PROTECTED] Sent: Fri 09-Dec-2005 21:06 To: php-general@lists.php.net Subject: [PHP] Problem on Instalation ~ several module unable to download Hi All, Previously I

RE: [PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Fri 09-Dec-2005 22:36 To: Bagus Nugroho; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to download [snip] here is my last list of module which bale to load and unable to load excerpt php.ini

RE: [PHP] Problem on Instalation ~ several module unable to download

2005-12-09 Thread Bagus Nugroho
:06 To: Bagus Nugroho; Jay Blanchard; php-general@lists.php.net Subject: RE: [PHP] Problem on Instalation ~ several module unable to download [snip] It's done ... But it was create errror like this PHP Startup: unable to load dynamic library 'c:\php\ext\php_mysqli.dll' - The specified module

[PHP] Question about session

2005-11-11 Thread Bagus Nugroho
I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0 and PHP 5.0.4. Is php.ini setting on W2K different with XP

RE: [PHP] Question about session

2005-11-11 Thread Bagus Nugroho
poblem was solved by add session_register function before $_SESSION[blablabla]; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sat 12-Nov-2005 09:50 To: Bagus Nugroho; php-general@lists.php.net Subject: Re: [PHP] Question about session There's

[PHP] Picture loaded but not shown

2005-10-11 Thread Bagus Nugroho
Hi, I have problem with picture again. My picture is loaded, but not shown. It look like if show pictures on internet setting is disable. I was re-install both Apache, mysql and PHP, but can not solved. If anyone have this problem previously, please share Thanks in advance; regards

RE: [PHP] PHP MySql Extension No Loading

2005-08-27 Thread Bagus Nugroho
ensure you have php_mysql.dll on c:\PHP\ext and don't forget to check php.ini location, it must comply with httpd.conf ( see PHPIniDir .) and restart apache after editing both of files. From: Glen Zimmerman [mailto:[EMAIL PROTECTED] Sent: Sat

[PHP] Recall: [PHP] PHP without php.ini

2005-08-25 Thread Bagus Nugroho
Bagus Nugroho would like to recall the message, [PHP] PHP without php.ini. DISCLAIMER: The information in this email is confidential and proprietary. If you are not the intended recipient, please do not read, copy, use, or disclose the contents of this communication. Please permanently

[PHP] PHP without php.ini

2005-08-13 Thread Bagus Nugroho
Hi All, As my previous mail about fail on PHP5-MySQL, then I removed all of php.ini (included -recomended and -dist). Then used phpinfo(), I found there is php still work and found and informed Configuration File(php.ini) Path = C:\WINNT. How can this be happenned? (I believe, this will

RE: [PHP] PHP without php.ini

2005-08-13 Thread Bagus Nugroho
. Any idea, what is wrong? From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Sun 14-Aug-2005 03:44 To: Bagus Nugroho Subject: Re: [PHP] PHP without php.ini Bagus Nugroho wrote: Hi All, As my previous mail about fail on PHP5-MySQL, then I removed all

RE: [PHP] PHP without php.ini

2005-08-13 Thread Bagus Nugroho
to PHP4. Thanks and Thanks -Original Message- From: Lester Caine [mailto:[EMAIL PROTECTED] Sent: Sunday, August 14, 2005 4:46 AM To: Bagus Nugroho Subject: Re: [PHP] PHP without php.ini Bagus Nugroho wrote: Actually, my problem is when used phpmyadmin it was generate error cannot load

[PHP] Migrating to PHP 5 - Cannot Load mySQL

2005-08-12 Thread Bagus Nugroho
Hello, I have problem 'cannot load mysql' with MySQL on PHP5( recently migrating grom PHP4 to PHP5). I was do the following actions to resolve the problem, but failed . 1. uncommented extension=php_mysql.dll 2. put php_mysql.dll on c:/php/ext 3. put libmysql.dll both on c:/winnt and

[PHP] Searching and Count within array

2005-07-25 Thread Bagus Nugroho
Hi Master, I have an array as : $myArray = array('four','four','four','four','one,,'three','three','three','two','two'); Then I want output like this, //== four is 4 times three is 3 times two is 2 times one is 1 times //(it 's better if one is 1 time). //=== How can I search and

RE: [PHP] RE: Display picture from MySQL

2005-07-08 Thread Bagus Nugroho
: Picture3 Or maybe thumbnail view. How I can do this? Thanks -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 3:58 AM To: Bagus Nugroho Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] RE: Display picture from MySQL On Thu

[PHP] RE: Display picture from MySQL

2005-07-07 Thread Bagus Nugroho
Hi, Firstly, thanks for your advise. But, it doesn't work if combine with text or if we need display more than one record. Here's my code : ?php mysql_connect(localhost,root,password) or Die (Failed to connect); mysql_select_db(intdata) or Die (Failed to select databse);

RE: [PHP] RE: Display picture from MySQL

2005-07-07 Thread Bagus Nugroho
How about, if we need several pictures from several record? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 8:19 PM To: Bagus Nugroho Subject: Re: [PHP] RE: Display picture from MySQL you're trying to set your content-type header every

[PHP] Upload and Read pdf file

2005-06-30 Thread Bagus Nugroho
Hi All, is possible to upload pdf file into MySQL database, then read in web browser using php? And how? Thanks for help rgds

[PHP] Display picture from MySQL

2005-06-27 Thread Bagus Nugroho
Hi All, I'm looking for tutorial/template/code, how to display a picture on web pages which the picture is stored on MySQl database. Thanks in advance, regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] phpMyAdmin authentication error

2005-05-13 Thread Bagus Nugroho
I have experience with this on windows, and solved by change my root password on mySQL. I don't know, if this wil work on your OS X rgds -Original Message- From: Sam Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, May 14, 2005 5:57 AM To: PHP Subject: [PHP] phpMyAdmin authentication

[PHP] Parse Error on mysql_query

2005-04-16 Thread Bagus Nugroho
Hi, I'm beginning to learn PHP/MySQL, i have problem 'parse error' when using 'mysql_query' although it was simple code, like this : = 1 ?php 2 $host = localhost; 3 $user = root; 4 $pass = alpha; 5 $konek = mysql_connect($host,$user,$pass); 6 if (!$konek) { 7 die