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 > > > --

[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

[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

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

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] 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] 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] 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] 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

[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] 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] 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

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] 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] 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] 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] 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 "

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
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: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

[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] 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] 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

[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,

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 >

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] 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] 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] 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 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

[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] 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

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. > > >

[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

[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

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

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] 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.

[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

[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] 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.

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] 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-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: >

[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

[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

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

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] 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

[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

[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

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, >

Re: Fw: [PHP] logout

2001-02-27 Thread Reuben D Budiardja
Bassically what you wanna do is to delete all the variables you set up when the user log in. So, if you gave the session ID when a user log in, delete if from the database when user log out. Reuben D. B At 03:52 PM 2/27/01 -0600, Jacky@lilst wrote: >Jack >[EMAIL PROTECTED] >"There is nothing

Re: [PHP] javascript VS php

2001-03-01 Thread Reuben D Budiardja
Javascript (js) is client side and PHP is server side. So what you can do to call the php function is by re-submitting the page, with somekind of a flag from the js to call the php function. You write the php parts like: if($flag) callTheFunctions(args); Reuben D. B At 04:28 PM 3/1/01 +000

Re: [PHP] Problem with apostrophes!!

2001-03-12 Thread Reuben D Budiardja
''s". function format_mysql_string($string) { $string = StripSlashes($string); $string = ereg_replace("'", "''", $string); return $string; } Reuben D. Budiardja At 09:19 PM 3/12/01 -0600, Kenneth R Zink II wrote: >My MySQL inser

Re: [PHP] Add commas to 1188889 so--> 1,188,889

2001-03-19 Thread Reuben D Budiardja
You can use the built in number_format function. Check out: http://www.php.net/manual/en/function.number-format.php Reuben D. Budiardja Web Database Application Programmer / Analyst Devcorps, ITS Goshen College, IN 46526 At 10:40 AM 3/19/01 -0700, Karl J. Stubsjoen wrote: >Hello, > >H

[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

[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] 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

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

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

[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

[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] 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

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

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
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-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. >

[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://

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] 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

[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

[PHP] Making a function/method private

2001-03-25 Thread Reuben D Budiardja
velopers, and I want to make some methods/functions private, for security reason. Thanks for any help. 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 ad

Re: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Reuben D Budiardja
s a php variable. I don't if this can work for your problem. But the idea basically is download everything first from server side, and display what is necessary from client side. That way you minimizing the reload/refresh, which take painfully long time for some of the clients. Hope that hel

Re: [PHP] function knows where call came from?

2001-03-28 Thread Reuben D Budiardja
only a certain file/page can call that pseudo-private method, by checking which page call that method. Please let me know if you find any further information on this. Thanks in advance Reuben D. Budiardja At 06:26 PM 3/28/01 +0100, Peter Van Dijck wrote: >say you include a function in a p

Re: [PHP] Can a WHILE be done inside an array?

2001-04-01 Thread Reuben D Budiardja
n the array, do: $make = array('Make','12','keyword','1:30','select', $temp_option ,'text'); Hope that helps. Reuben D. Budiardja At 06:35 PM 3/31/01 -0600, Kenneth R Zink II wrote: >I'm trying to figure out how to do a WHILE in

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 >*** > >-- &

[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] 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] 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] 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

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] 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]

[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] 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

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

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] 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

[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]

[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

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]

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

[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] 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

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&

[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
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] 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] 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

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

  1   2   >