[PHP] design pattern

2002-03-26 Thread Kancha .
can anybody point me to tutorial, articles on implementing design patterns using PHP ?? __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] $argv[] ??

2002-03-19 Thread Kancha .
>> On Tuesday 19 March 2002 16:18, Kancha . wrote: > > I'm using php 4.1.0. In earlier versions of php i > > could access parameters passed throught command > line > > as $argv[1], $argv[2] and so on. With the version > that > > i'm usign now it sa

[PHP] $argv[] ??

2002-03-19 Thread Kancha .
I'm using php 4.1.0. In earlier versions of php i could access parameters passed throught command line as $argv[1], $argv[2] and so on. With the version that i'm usign now it says undefined variable. What is the new method of accessign command line parameters ?? _

[PHP] error not understood

2002-03-09 Thread Kancha .
what does this error mean. What should i do to make it portable to future version of php. I'm using version 4.1.0 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If

[PHP] maximum string length

2002-02-27 Thread Kancha .
What is the maximum number of characters a variable of type string can hold ?? Is there a restriction ?? $x = "adfafasfadfaf " what is the max number of characters $x can hold ?? __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every oc

[PHP] mass mail

2002-02-20 Thread Kancha .
I've users in a database classified by differnet catagories. Now based on category I need to send mail to all the users in a category. Calling mail() function in a loop would be a kill for the server as there are more than 1000 users in each category. Is there any way of doing this ?? Creating a

Re: [PHP] mailing to 19000 users

2002-01-29 Thread Kancha .
How about creating a mailing list will 19000 users and then using the mail() function to send mail to that list. so that you will not have to loop through. --- John Meyer <[EMAIL PROTECTED]> wrote: > How about croning the job and splitting up the load > as you go. > - Original Message -

[PHP] php.ini and mail()

2002-01-20 Thread Kancha .
I've installed php 4.0.6 and sendmail in two different servers. I want to use mail() function to send mails, but as the server with php dosen't have a smtp server it can't be done. Is there a way to point to my other server which has sendmail; through

Re: [PHP] distinct element from array

2002-01-06 Thread Kancha .
while (list($key,$val)=each($yourarray) > { > if (!in_array($val,$distincts)) > { > $distincts[]=$val; > } > } > > "Kancha ." wrote: > > > An array contains various values eg: list of > fruits. > > Now i want to retrieve only unique f

[PHP] distinct element from array

2002-01-06 Thread Kancha .
An array contains various values eg: list of fruits. Now i want to retrieve only unique fruits from the array. The array may contain duplicate names. How can i achieve this? __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo

Re: [PHP] compilation of PHP with SNMP support

2002-01-04 Thread Kancha .
I faced the same problem when compile php 4.0.6 and 4.1.0 with snmp. I tried several times so i just dropped it. Now I'm using php without snmp. Do let me know if you get over this error. --- Jason Signalness <[EMAIL PROTECTED]> wrote: > Hello, > > I am having trouble compiling php with snmp

[PHP] passing by reference

2001-12-27 Thread Kancha .
I coulnd't figure out the difference between the two: function &foo(){ $x = "hello"; return $x; } and function foo(){ $x = "hello"; return &$x; } __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com --

[PHP] php telnet

2001-12-19 Thread kancha
The following code generated garbase output. what is wrong ?? The output was as follows: [root@ispms html]# php telnet.php X-Powered-By: PHP/4.1.0 Content-type: text/html ÿý▒ÿý ÿý#ÿý'[root@ispms html]# -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

Re: [PHP] telneting sockets help..

2001-12-18 Thread Kancha .
I'm in a smilar situation. I'm trying to telnet to a RAS server using php and the process justs hangs. I tried to telnet to other linux servers as well and the result was same. fsockopen to other ports such as 21 or even 25 workds. It's just the port 23 that's giving this strange problem. So far

[PHP] php snmp compile error

2001-12-16 Thread kancha
I've downloaded php 4.1.0 and ucd-snmp 4.2.3. I was able to compile snmp successfully. Then i tried to compile php with snmp support. Followign is my configure parameters ./configure --with-apxs=/usr/sbin/apxs --enable-calendar --with-pgsql --with-snmp --enable-ucd-snmp-hack --enable-wddx --e

Re: [PHP] seg fault with snmp

2001-12-15 Thread kancha
4025e507 in __libc_start_main (main=0x8064648 , argc=2, ubp_av=0xba24, init=0x8062760 <_init>, fini=0x813c500 <_fini>, rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xba1c) at ../sysdeps/generic/libc-start.c:129 (gdb) On Saturday 15 December 2001 12:59, Yasuo Ohgaki

Re: [PHP] seg fault with snmp

2001-12-14 Thread kancha
fault (11) [Sat Dec 15 13:35:19 2001] [notice] child pid 15272 exit signal Segmentation fault (11) [Sat Dec 15 13:35:19 2001] [notice] child pid 15271 exit signal Segmentation fault (11) On Saturday 15 December 2001 13:01, Brian Clark wrote: > * Kancha . ([EMAIL PROTECTED]) [Dec 15. 2001 01

Re: [PHP] seg fault with snmp

2001-12-14 Thread Kancha .
-openssl --- Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > Backtrace? Works just fine for me on a RH-7.2 box. > > On Fri, 14 Dec 2001, Kancha . wrote: > > > I get segmentation fault when i try to execute > > snmpwalk or any other snmp related functions. I'm > &g

[PHP] seg fault with snmp

2001-12-14 Thread Kancha .
I get segmentation fault when i try to execute snmpwalk or any other snmp related functions. I'm running php 4.1.0 on RH linux 7.2 with ucd-snmp that comes along with the linux distribution. I compiled php with --with-snmp and the compilation was error free. phpinfo() alsow displyas the snmp infor

[PHP] snmp segmentation fault

2001-12-12 Thread Kancha .
'm using Red Hat linux 7.2 and the ucd-snmp that comes along it. kancha __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com