[PHP] Standalone PHP Web apps procmail interface

2006-03-21 Thread Reuben D. Budiardja
. Most of apps are some sort of plugins or integrated to a web-based mail apps like Horde/IMP or SquirellMail. I am looking for a standalone version that generates procmail file that I can just copy to the ~/.procmailrc (via cronjob, for example). Thanks. RDB -- Reuben D. Budiardja Dept. Physics

Re: [PHP] Sending error_log to screen

2006-02-09 Thread Reuben D. Budiardja
On Wednesday 08 February 2006 17:24, Curt Zirzow wrote: > On Wed, Feb 08, 2006 at 01:25:18PM -0500, Reuben D. Budiardja wrote: > > Hello, > > For debugging purposes, I have "display_errors = On" in the /etc/php.ini > > on my development server. > > > > I&

[PHP] Sending error_log to screen

2006-02-08 Thread Reuben D. Budiardja
on". I can only see the message from error_log() function in the log file. So, is it possible to have a setup where error_log would send the message to the screen output (ie. the browser for web application) ? or am I missing something ? Thank you for any help. RDB -- Reuben D. Bu

[PHP] Missing pear executable

2005-10-04 Thread Reuben D. Budiardja
Hello, I've been installing php-4.4.0 and php-5.0.5, and it both cases I can't find the "pear" executable in the install directory. For instance: # ls /usr/local/php-5.0.5/bin/ php php-config phpize IIRC, pear executable (ie. the package manager) used to be bundled with PHP. In fact, I think a

Re: [PHP] PHP & SOAP for production

2005-10-01 Thread Reuben D. Budiardja
Hello, On Saturday 01 October 2005 17:13, jonathan wrote: > you could try the native SOAP extension in php5. > > A client asked me about this recently and I told him I thought he > should use java / axis because of problems with PHP / SOAP > specifically as it relates to handling certain data types

[PHP] PHP & SOAP for production

2005-10-01 Thread Reuben D. Budiardja
Hello, I need to implement a client for Web services. My first option is to use SOAP, but it seems that the pear SOAP package is still in beta. Do you think it's ready for a production quality site? If not, what are my other options? What do people use in this case? Thank you. RDB -- PHP Gene

[PHP] Calendar program like on php.net

2005-07-29 Thread Reuben D. Budiardja
Hello, Anyone knows a simple calendar program that will let people to add event, and then after the event is approved by webmaster / moderator, the event would be added to the calendar ? Just like the calendar for Upcoming Events on www.php.net. What program is that ? I've looked at PHPGrou

[PHP] Calendar program like on php.net

2005-07-28 Thread Reuben D. Budiardja
Hello, Anyone knows a simple calendar program that will let people to add event, and then after the event is approved by webmaster / moderator, the event would be added to the calendar ? Just like the calendar for Upcoming Events on www.php.net. What program is that ? I've looked at PHPGrou

Re: [PHP] Malicious SQL

2004-07-08 Thread Reuben D. Budiardja
On Wednesday 07 July 2004 12:05, Keith Greene wrote: > on the contrary: > sql = mysql_query("select * from users where name='".$name."'"); > > will simply look for a user with a name of "Jim; delete from users;" and > return no results found. But I can also enter: jim'; delete from users You nee

Re: [PHP] Frequent Mode Switching

2003-08-14 Thread Reuben D. Budiardja
On Tuesday 05 August 2003 05:21 pm, Jim Lucas wrote: > This method has been my personal choice for the past 3-4 yrs in coding, > > I have not found any problems with it thus far. > > But I am gradually switching all my code over to a seperate template style > design as where I have all my values in

Re: [PHP] Frequent Mode Switching

2003-08-14 Thread Reuben D. Budiardja
On Tuesday 05 August 2003 05:13 pm, Derrick Fogle wrote: > Thoughts on frequent switching in and out of PHP mode: > > ?>Switch out, static HTML > ?>Switch out, more static HTML > > I've found that I prefer programming this way, for the most part, > putting most of the heavy PHP programming at the

Re: [PHP] How to get exec() to display output from UNIX Shell Environemnt?

2003-08-05 Thread Reuben D. Budiardja
On Tuesday 05 August 2003 05:20 pm, Scott Fletcher wrote: > Hi! > > How do I get the php function exec() to spit out the data from the Unix > Shell Environment onto the webpage? I mean, I can create a script in bash > shell environment using the terminal on the Unix machine and it would spit >

[PHP] Regexp (ereg) help

2003-07-24 Thread Reuben D. Budiardja
Hi all, If I have the following string: $str = "This is a %ANS[1] test, and %ANS[2] test, and %ANS[10], test" and want to use ereg($pattern, $str, $regs); what is the $pattern should be so that in $regs I have $regs[1] == "%ANS[1]"; $regs[2] == "%ANS[2]"; $regs[3] == "%ANS[10]"; ... In fact,

[PHP] Same pattern, ereg_replace catches it, ereg doesn't

2003-07-24 Thread Reuben D. Budiardja
Hi all, My guess is I miss something really dumb, but here is my problem. I want to use ereg to find some pattern, but it doesn't seems to work. The same pattern uses with ereg_replace, works fine and replaced the pattern. Here is my code, and the output: // OUTPUT : String is: This is a %AN

Re: [PHP] Redirect output of include() for mailing

2003-07-22 Thread Reuben D. Budiardja
On Tuesday 22 July 2003 01:43 pm, David Nicholson wrote: > Hello, > > This is a reply to an e-mail that you wrote on Tue, 22 Jul 2003 at > 18:37, lines prefixed by '>' were originally written by you. > > > But how can I instead capture the output of the include to > > variable > > > and mail > > it

[PHP] Redirect output of include() for mailing

2003-07-22 Thread Reuben D. Budiardja
ve to use some mail class that will handle attachments, but that's is available somewhere in the net, or from PEAR I assume. So the problem only how to capture the dynamically generated image. Thanks for any help. Reuben D. Budiardja -- -

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 03:43 pm, CPT John W. Holmes wrote: > From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> > > > This is a hypothetical situation. The real situation is that I am trying > > to > > > have a protocol for data sent by client using Flas

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
do I know which "_" is my doing? Because in my case, it's faily conceivable that "_" will get used. RDB > Chris > - Original Message - > From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 03:01 pm, you wrote: > > On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote: > > > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote: > > > > Suppose I have a long string like > > > > $myStr = "$string1:$str

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote: > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote: > > Suppose I have a long string like > > $myStr = "$string1:$string2:$string3"; > > > > I can obviously explode them using "

[PHP] explode and escape character for string separator

2003-07-18 Thread Reuben D. Budiardja
Hi all, Suppose I have a long string like $myStr = "$string1:$string2:$string3"; I can obviously explode them using ":" as the separator. But what if $string1 contains the character ":" by itself? I was thinking, first I am gonna put an escaping character, so I can do something like: $string1

Re: [PHP] KEEP IMAGE RATIO

2003-07-16 Thread Reuben D. Budiardja
On Wednesday 16 July 2003 09:46 am, John Manko wrote: > Ok, before you go responding with percentages, I should note this. > > consider this: > Image1 : 100x100 (Ratio = 1:1) > Image2 : 100x200 (Ratio = 1:2) > > Space available for display : 75x75 > > now, i can say "width=75% height=75%", but t

[PHP] PHP crashing with using Oracle

2003-07-05 Thread Reuben D. Budiardja
anyone give me pointer what's going on here and how to fix it? In case this matters, the Oracle 9i DB server is also in the same box. Somehow it has it's own Apache, but I don't use that. Thanks for any help. RDB -- Reuben D. Budiardja -- PHP General Mailing List (http://w

Re: [PHP] Help a newbie 2.

2003-07-05 Thread Reuben D. Budiardja
On Saturday 05 July 2003 11:47 am, Michael Whiting wrote: > Sorry - here's the HTML source. Don't laugh :) > > > if ($view1 = true): That statement will always evaluate to true. You may need if($view1 == true) notice the double equal sign > if ($view1 = false): Same here RDB -- PHP Ge

[PHP] OCI_ASSOC returns key with upper case string

2003-07-04 Thread Reuben D. Budiardja
Hello, First let me say that I am not sure if this is PHP problem or Oracle. I have a class that contains API for using postgresql, mysql, or oracle database so switching database should be "in theory" just changing an argument for me. To make this sort, let just say that the return of a SELE

[PHP] PHP 5 and 4 Incompatibilities?

2003-06-30 Thread Reuben D. Budiardja
Hello, I tried to find this on the website but didn't find it. So, is there any known backward incompatibilities with PHP 4? If yes, anyone knows where we can find the list? or PHP 4 code will mainly just work with PHP 5 ? Thanks. RDB -- - /"\ A

Re: [PHP] Re: Else If/Elseif

2003-06-30 Thread Reuben D. Budiardja
On Monday 30 June 2003 09:41 am, Tularis wrote: > Stevie Peele wrote: > > What is the difference between "else if" and "elseif"? > > > > > > Thanks > > > > _ > > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > > http://join.

Re: [PHP] Else If/Elseif

2003-06-30 Thread Reuben D. Budiardja
On Monday 30 June 2003 09:30 am, Stevie Peele wrote: > What is the difference between "else if" and "elseif"? none -RDB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ARGHHH!!! POST variable problem

2003-06-29 Thread Reuben D. Budiardja
On Sunday 29 June 2003 05:07 pm, Sparky Kopetzky wrote: > OK, I see that I have to use $_POST['user_name'] or can I just use the > variable passed back $user_name which would be a heck of a lot simpler?? If you have register_globals set to "on" in php.ini, then yes, you can use $user_name. Otherw

[PHP] oci8 ad oracle 91

2003-06-28 Thread Reuben D. Budiardja
Is it compatible? Can I use oci8 functions to access oracle 9i? What are the drawbacks? Thanks. RDB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP-4.3.1 with bundled GD does not support jpeg?

2003-06-27 Thread Reuben D. Budiardja
Hello, I compiled and installed from source php-4.3.1 with the bundled GD. I enabled it during configure using --with-gd, and double check that using phpinfo. The bundled GD says it's 2.0. But when I tried using imagejpeg() i got: Fatal error: Call to undefined function: imagejpeg() in /usr/loc

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
will try to re-compile then. Thanks a lot. RDB > On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > > On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote: > > > Well, check the error. Get rid of the header() call and just look at > > > the output. > > >

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
'--with-pgsql' '--with-mysql' '--disable-debug' '--prefix=/usr/local/apache/php' '--with-config-file-path=/usr/local/apache/lib' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-zlib' Thanks. RDB > On

[PHP] imagejpeg gives error

2003-03-27 Thread Reuben D. Budiardja
Hello, I have a script that creates image using the gd library that is bundled with the latest php-4.0.3 on Redhat Linux / Apache as apache mod. Everything works fine when I use png: header("Content-type: image/png"); $im = imagecreate(500,500); ...[script]... imagepng($im) Then when I try to

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: > >On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > > is it possible to have a checkbox that if it is specified to be > checked > > > > when the page is being formulated then it cannot be unchecked? > > > > > > No. N

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > is it possible to have a checkbox that if it is specified to be checked > > when the page is being formulated then it cannot be unchecked? > > No. No... No. > > If you already know you don't want it to be unchecked, then don't show

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 09:16 am, shaun wrote: > Hi, > > is it possible to have a checkbox that if it is specified to be checked > when the page is being formulated then it cannot be unchecked? When you write the page, if the checkbox is checked initially, write also a javascript to prevent it

Re: [PHP] PHP & Oracle

2003-03-03 Thread Reuben D. Budiardja
On Monday 03 March 2003 09:29 am, Simon wrote: > Hi, > > i have one big Oracle database, 20GB. Is it better to comunicate > directly to Oracle with PHP, or to export data to MySQL. How secure is > PHP & Oracle, can they communicate well? I don't see why you would want to export data to MySQL first

[PHP] Stream file content to the web (possibly OT)

2003-03-01 Thread Reuben D. Budiardja
Hello, I have a file that the content always change every second or so. I want to display this to the web. Is this possible to do using PHP? If yes how? I can have the content displayed to the web only update every 5 seconds or so, for example. Will this put the server into heavy load? If PHP i

Re: [PHP] Learning PHP

2003-02-12 Thread Reuben D. Budiardja
On Wednesday 12 February 2003 10:14 am, Greg Luce wrote: > Could anyone recommend a fast track for learning php for an experienced > ColdFusion developer? I'm working my way through the tutorials on > php.net and free2code.net, but they seem pretty kindergarten. Any > advice? I think with your exp

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Reuben D. Budiardja
On Tuesday 11 February 2003 02:19 pm, Scott Fletcher wrote: > Someone send me an email to take a look at this > URLhttp://www.php.net/manual/fi/ref.imap.php . > > The send mail on Unix is too basic, not like MS-Exchange... I need things > like file attachment, Bcc, cc, etc All of those

Re: [PHP] PHP FTP a security risk?????

2003-02-11 Thread Reuben D. Budiardja
On Tuesday 11 February 2003 02:11 pm, Jason Wong wrote: > On Wednesday 12 February 2003 02:54, Christopher Ditty wrote: > > Hello all. I have a customer that purchased on of my scripts and > > attempted > > to install it on their server. This script, among other things, FTPs a > > text file > > f

Re: [PHP] include_path doesn't seem to work

2003-02-07 Thread Reuben D. Budiardja
On Friday 07 February 2003 05:56 pm, Mike D wrote: > Hello all, > > I have the following set in my php.ini file: > > > ; UNIX: "/path1:/path2" > include_path = ".:/usr/local/php/scripts" > ; > > I placed a file in this directory containing a function, and I when I > call the functions name i get a

Re: [PHP] Reading input stream of incoming request

2003-02-06 Thread Reuben D. Budiardja
On Thursday 06 February 2003 05:22 pm, Chris Shiflett wrote: > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> > > wrote: > > I browse the archive and found the following code to > > simulate a POST request using socket connection. This > > will send

Re: [PHP] Reading input stream of incoming request

2003-02-06 Thread Reuben D. Budiardja
*** This is the code for /devel/php_post.php **** > > ----- Original Message - > From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 06, 2003 1:27 PM > Subject: [PHP] Reading input stream of incoming r

[PHP] Reading input stream of incoming request

2003-02-06 Thread Reuben D. Budiardja
: http://java.sun.com/j2me/). The way it sends the name and value parameter for HTTP POST method is by output stream, so I need to read in in php using input stream. Any help on this would be greatly appreciated. Thanks. Reuben D. Budiardja

[PHP] iCal parser and importing iCal to database

2003-01-30 Thread Reuben D. Budiardja
Hi, I think this has been asked here before and I've looked around the archive but didn't find anything. So I ask again. Does anyone know if there's a utility/script/program in php that will allow one to parse and/or import iCAL calendar format to database, such as mySQL or PostGreSQL? Thanks

Re: [PHP] count characters

2003-01-12 Thread Reuben D. Budiardja
On Sun, 12 Jan 2003 [EMAIL PROTECTED] wrote: > I want to count characters without space "character". > $char="hello world" > so the result should be 10. > Can anybody help me? $char="hello world"; $temp=str_replace(" ", "", $char); echo strlen($temp); should give you 10. RDB > > > --

Re: [PHP] Re: Echoing HTML in PHP as CGI

2002-09-26 Thread Reuben D. Budiardja
ith " > > EndOfHTML; > > This will print out all html. and dont care about special signs. > > goodluck. > Martin > > "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, >

[PHP] Echoing HTML in PHP as CGI

2002-09-26 Thread Reuben D. Budiardja
use echo with single quote instead of double quote. I have to escape all the single quote, since the HTML code is also intermix between HTML and javascript, which has single and double quotes. How do I best solve this problem? Thanks a lot for any response. Reuben D. Budiardja -- PHP General Mai

[PHP] PHP and M$ Access

2002-09-25 Thread Reuben D. Budiardja
wondering if php can access the database, just like the way it does with MySQL, for example. I am not really familiar with M$ stuff, since I usually use MySQL or Oracle. But I have a client who insist to use M$ Access. Thanks for any respond. Reuben D. Budiardja -- PHP General Mailing List (http

Re: [PHP] include hassle

2002-08-02 Thread Reuben D. Budiardja
On Friday 02 August 2002 10:41 am, lallous wrote: > I mean this: > > i have this tree: > > ./libs/*.php > ./user/file1.php > > now i'm in ./user/ directory > i run file1.php > it includes ../libs/lib1.php which in turn will include helper.php > (./users/helper.php) <-- will fail! > > how can i pro

Re: [PHP] include hassle

2002-08-02 Thread Reuben D. Budiardja
On Friday 02 August 2002 10:02 am, lallous wrote: > I have this: > //file1.php > include('../libs/lib1.php'); > ?> > now lib1.php: > include ('helper.php'); > ?> > If i run file1.php ->includes lib1.php -> fails to include helper.php ! ! > how can i solve that? We need more information that thi

Re: [PHP] Re: inserting info into db

2002-07-29 Thread Reuben D. Budiardja
this. Hope this helps. Reuben D. Budiardja On Mon, 2002-07-29 at 10:59, lallous wrote: > You can save the answers in sessions or cookies and then insert them all in > one bunch. > > Elias, > "Tyler Durdin" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROT

[PHP] Re: File Browser like Win Explorer in php

2002-07-29 Thread Reuben D. Budiardja
found anything so far. I might just start doing it myself. But Thanks for the reply. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File Browser like Win Explorer in php

2002-07-27 Thread Reuben D. Budiardja
nvent the wheel. If anyone knows about this, please let me know. I appreciate the help. Thanks in advance. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-25 Thread Reuben D. Budiardja
Hi, Thanks for the reply, but somehow I got it to work yesterday. Someone else in this list pointed out the same problem and file a bug report. They say it's fixed in CVS. http://bugs.php.net/?id=18522&edit=2 Reuben D. Budiardja On Wed, 2002-07-24 at 19:49, David Robley wrote: >

Re: [PHP] Re: PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-24 Thread Reuben D. Budiardja
I did that already, deleting the php-4.2.2 and start with un-tar the download. Many times. But still no luck. Thanks. Rdb > Ian > > On Wednesday 24 July 2002 14:13, Reuben D. Budiardja wrote: > > On Tue, 2002-07-23 at 21:35, David Robley wrote: > > > In article <[E

Re: [PHP] Re: PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-24 Thread Reuben D. Budiardja
On Tue, 2002-07-23 at 21:35, David Robley wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] says... > > > > I tried to upgrade from PHP 4.2.1 to 4.2.2 due to the security bug > > announce in the web site. When I do make install, it stopped with > > errors. The following are the last f

Re: [PHP] Getting the day if given a date

2002-07-23 Thread Reuben D. Budiardja
You can use the one or the combination of: date(); mktime(); strtotime(); eg: echo date("l", strtotime("22 July 2003")); Check the php online doc for explanation of each function. Rdb On Tue, 2002-07-23 at 20:24, Cirkit Braker wrote: > Is there any way to get the day of the week given a date.

[PHP] PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-23 Thread Reuben D. Budiardja
.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: invalid ELF header /usr/local/apache/bin/apachectl start: httpd could not be started Any help on this would be greatly appreciated. Thanks in advance. Reuben D. Budiardja -- PHP General

Re: [PHP] Re: case-insensitive str_replace

2002-05-02 Thread Reuben D Budiardja
ost labourious to change them to reg exp. There should be something simpler and more elegant to do this. Thanks. Rdb J > > Reuben D Budiardja wrote: > > > > The feature that I use in str_replace is to put the 'search' and > > 'replace' argument as an a

[PHP] case-insensitive str_replace

2002-05-02 Thread Reuben D Budiardja
So I am wondering if anyone has a function that is fully compatible with str_replace for php > 4.0.5, but case-insensitive (something like stri_replace). I don't really want to reinvent the wheel here. Thanks in advance. Reuben D. Budiardja -- PHP General Mailing List (http://

[PHP] re-number the array index

2002-03-09 Thread Reuben D Budiardja
Hi, Is there any easy & efficient way to re-number the array index? for example, if I have an array with only something like: $arr[1] = "t" $arr[4] = "e" $arr[7] = "s" I would like the index to be re-numbered so that I can have $arr[0] = "t" $arr[1] = "e" $arr[2] = "s" This is useful sometime

Re: [PHP] Browse and Upload file

2002-02-14 Thread Reuben D Budiardja
Aha Yes, it works fine now. Again, thanks a lot. Rdb On Thursday 14 February 2002 12:18 am, you wrote: > On Wed, 2002-02-13 at 19:18, Reuben D Budiardja wrote: > > Yes, I have. I follow the example exactly from > > http://www.php.net/manual/en/features.file-upload.php. >

Re: [PHP] Browse and Upload file

2002-02-13 Thread Reuben D Budiardja
On Wednesday 13 February 2002 09:57 pm, you wrote: > On Wed, 2002-02-13 at 18:53, Reuben D Budiardja wrote: > > print_r $HTTP_POST_FILE gives me: > > > > Array ( [userfile] => Array ( [name] => timecard.png [type] => image/png > > [tmp_name] => /home/web/ph

Re: [PHP] Browse and Upload file

2002-02-13 Thread Reuben D Budiardja
#x27;t find the file at /home/web/. Thanks for your help. Reuben D. Budiardja On Wednesday 13 February 2002 09:31 pm, Lars Torben Wilson wrote: > On Wed, 2002-02-13 at 18:26, Reuben D Budiardja wrote: > > Thanks. I follow the manual. I changed my php.ini: > > upload_tmp_dir = &#

Re: [PHP] Browse and Upload file

2002-02-13 Thread Reuben D Budiardja
rfile] => Array ( [name] => timecard.png [type] => image/png [tmp_name] => none [size] => 0 ) ) You see that [tmp_name] is none (whatever that means), and size is zero. why is that? The webserver and the browser is on local LAN, and there is no firewall. Thanks for any help. Reube

[PHP] Browse and Upload file

2002-02-13 Thread Reuben D Budiardja
that will be greatly appreciated. Thanks. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Book database (slightly OT)

2002-01-29 Thread Reuben D Budiardja
appreciated. Thanks. Reuben D. Budiardja -- 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] problem with function array_* that preserved the key

2001-11-03 Thread Reuben D Budiardja
Hi, I have problem with array function that return an array and preserved the key of the array argument. Take example of array_diff: I have 2 arrays that has index 0,1,2, ... as the key, and use it as the argument, say $arrA, and $arrB, $arrC = array_diff($arrA, $arrB); since the key are pres

Re: [PHP] merging arrays quickly

2001-08-17 Thread Reuben D Budiardja
Take a look at the function array_merge http://www.php.net/array_merge Reuben D. B On Friday 17 August 2001 08:46 am, you wrote: > say I have > $array1 = array("name"=>NULL,"thread"=>NULL,"id"=>NULL); > $array2 = array("0"=>"fred","1"=>"3","2"=>""); > > I want $array1 to have the values of a

[PHP] CAN'T connect to db when running PHP as Cron

2001-07-18 Thread Reuben D Budiardja
not a valid Oracle-Cursor resource in ora_test.php on line 7 Any help on this would be greatly appreciated. Thanks. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
part of the bigger project to make our apps can be run from command line, and we already have tons of apps that currently running from web. Doing that for every single apps would be a pain. But apparently since there is no other way, at least at this point, it will have do for some apps. Thank

[PHP] Cannot connect to db when running PHP as Cron

2001-07-17 Thread Reuben D Budiardja
line 3 Warning: Supplied argument is not a valid Oracle-Connection resource in ora_test.php on line 5 Warning: Supplied argument is not a valid Oracle-Cursor resource in ora_test.php on line 7 Any help on this would be greatly appreciated. Thanks. Reuben D. Budiardja -- PHP General Mailing List

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
and the filename is test.php3 . __FILE__ will give my my_api.inc instead. I need it because my_api.inc do all sort of authenticating, session, etc. Any solutions? Thanks. Reuben D. Budiardja On Tuesday 17 July 2001 10:52 am, Boget, Chris wrote: > > Seems that $PHP_SELF is not defined when it&

Re: [PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
Seems that $PHP_SELF is not defined when it's run from the command line. Reuben D. Budiardja On Tuesday 17 July 2001 10:29 am, Jason Bell wrote: > $PHP_SELF returns the filename with the full path. from there, you can use > split to split the string wherever a / occurs, then call co

[PHP] Get filename in php command line

2001-07-17 Thread Reuben D Budiardja
Hello, How do I get the filename or script name if I run it in php comamnd line? For example, if I run this bash$ php test.php I want to get something inside test.php that tells me the filename is test.php, but *without* the actual path. Thanks Reuben D. Budiardja -- PHP General Mailing

Re: [PHP] LDAP question PLEASE help me.

2001-07-17 Thread Reuben D Budiardja
// read-only access > echo "Bind result is ".$r.""; > > echo "Searching for (sn=S*) ..."; > // Search surname entry > $sr=ldap_search($ds,"o=My Company, c=US", "sn=S*"); > echo

Re: [PHP] Exec, system, passthru didn't work

2001-07-16 Thread Reuben D Budiardja
an only guess what you mean here, but I think that's a good point. Maybe the play program wouldn't work withough a controlling tty. Do you know how to check, or any work around? Thanks. Reuben D. Budiardja -- 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] Exec, system, passthru didn't work

2001-07-16 Thread Reuben D Budiardja
ec, system, passthru returns the value 2, which I don't know what it means. Any help on this will be appreciated. Thanks in advance. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

[PHP] Exec, system, passthru didn't work

2001-07-14 Thread Reuben D Budiardja
ny help on this will be appreciated. Thanks in advance. Reuben D. Budiardja -- 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] Export to Excel

2001-07-13 Thread Reuben D Budiardja
Hmm, I tried it, and my excel 2k could not read it either. I even change the echo to fwrite, and delete all the headers. What did you do to your source code? just copy it or did you modify it? Could you possibly send it to me off list? Thanks Reuben D. Budiardja On Friday 13 July 2001 01:36

Re: [PHP] Algorithm for repeating calendar events

2001-07-12 Thread Reuben D Budiardja
Great, I'd like to steal it too then :). I just check php.net, but couldn't find it. In what section would you put it? Thanks. Reuben D. Budiardja On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote: > > Have any of you seen those calendar applications that let you program

Re: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Reuben D Budiardja
TED]\n etc. echo your header in to see it if you miss any new line, etc. Reuben D. Budiardja On Wednesday 11 July 2001 12:15 pm, Marcus James Christian wrote: > Hello, > > Ok I've got a script going to a Bcc but can't seem to get it to work > when it's lik

[PHP] including secure pages in PHP

2001-07-10 Thread Reuben D Budiardja
It seems that I cannot include secure pages, something like include (https://www.bla.com/) will fail. Any way to get around this? or is this intentional? Thanks Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Book Database

2001-07-09 Thread Reuben D Budiardja
title and author, that would be great. Thanks. Reuben D. Budiardja -- 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] un-official miror of php.net

2001-06-22 Thread Reuben D Budiardja
Thanks Reuben D. Budiardja -- 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] protect source code

2001-06-21 Thread Reuben D Budiardja
Someone told me that there is another php compiler, called APC. Check it out here: http://apc.communityconnect.com/ I haven't got a chance to try it yet, so if you'll let me know the result I'd be happy to hear about. You can e-mail me off list about that. Hope that helps. Reub

[PHP] Trimming Array value

2001-06-20 Thread Reuben D Budiardja
I have a multi-dimensional array. I want to trim every values so that none of them have trailing space. What is the most efficient way to do that ? I don't necessaryly know the dimension of the array ahead of time, so the function need to be able to handle it recursively. Thanks Reu

[PHP] Passing Array through URL

2001-06-19 Thread Reuben D Budiardja
Hello, I have one-dimensional array with a very a lot elements (say, about 300). What is the best way to pass it through URL? do I use something like implode the whole thing and then pass it, or do I use something like serialize, or any other way? Thanks for any reply. Reuben D. Budiarjda

[PHP] Mysql sequence help (OOT)

2001-05-10 Thread Reuben D Budiardja
only use to Oracle, and tried to find it in mysql.com, but has not yet succed. And I'm a bit under time pressure. Thanks for any help in advance. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [PHP] progession bar

2001-05-09 Thread Reuben D Budiardja
I remember that a somewhat similar issues was discussed here sometime ago. Check the list archives ( I think the subject was "Progress Bar"). Hope that will give you some ideas also. Reuben D. B At 12:32 PM 5/9/01 -0500, Jacky wrote: >Hi all >Does any one know how to do the progession bar to m

Re: [PHP] Working with numbers

2001-05-09 Thread Reuben D Budiardja
Use number_format() function. See http://www.php.net/manual/en/function.number-format.php for detail. Reuben D. B At 11:22 AM 5/9/01 -0700, Gerry wrote: >Could you suggest a function for displaying decimal zeros. > >For example I have this: >$num = "2.00"; >$num2 = "3.00"; >$result = $num + $nu

[PHP] Array in PHP and Javascript

2001-05-08 Thread Reuben D Budiardja
. How do I pass the array to the javascript function? If someone could help me, I would really appreciate it. Thanks in advance. Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Submiting two forms at the same time

2001-04-26 Thread Reuben D Budiardja
: I want so that after submiting these forms, somehow, in the bla.php I=20 have $HTTP_POST_VARS["foo"] = "yahoo" $HTTP_GET_VARS["bar"] = "yehaa" at one time. Is this possible at all? Thanks in advance for any reply. Reuben D. Budiardja -- PHP Gener

[PHP] OOP and Future of PHP

2001-04-25 Thread Reuben D Budiardja
variable or method a private, I would really like to know. Thanks for any comments. Reuben D. Budiardja Web Database Application Programmer / Analyst Devcorps, ITS Goshen College, IN 46526 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] THANKS (was: VERY URGENT -- MIRROR FOR PHP.NET ??)

2001-04-12 Thread Reuben D Budiardja
12 Apr 2001, Reuben D Budiardja wrote: > > > Hi All, > > I'm in the middle of crisis. I need to meet the deadline tomorrow, and > > tonight the www.php.net seems to be down. > > Anyone know any mirror site of www.php.net? > > I need function referen

[PHP] VERY URGENT -- MIRROR FOR PHP.NET ??

2001-04-12 Thread Reuben D Budiardja
e any mirror site of www.php.net so that I can continue my work, that would be really-really great. Thanks a lot Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] HOWTO: Dynamically Create A Form

2001-04-04 Thread Reuben D Budiardja
p://hotwired.lycos.com/webmonkey/ (it's been a long time). Hope that helps. Reuben D. Budiardja >-- > >* R&zE: > >*** >** Renze Munnik >** >** E: [EMAIL PROTECTED] >** M: +31 6 218 111 43 >*** > >-- &

  1   2   >