[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

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

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 says undefined variable. What is the new method

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

[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

[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

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 php.ini kancha

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

Re: [PHP] distinct element from array

2002-01-06 Thread Kancha .
($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 fruits from the array. The array may contain duplicate names. How can i achieve

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

2001-12-19 Thread kancha
The following code generated garbase output. what is wrong ?? ?php $sp = fsockopen(localhost, 23); if(!$sp){ echo error; exit; } socket_set_blocking($sp, FALSE); function getLine(){ global $sp; $op = fgets($sp, 1024); while(empty($op)){ $op = fgets($sp,

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

Re: [PHP] seg fault with snmp

2001-12-15 Thread kancha
=0x8064648 main, 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 wrote: Kancha . wrote: i had compiled php

[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

Re: [PHP] seg fault with snmp

2001-12-14 Thread Kancha .
--with-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 running php 4.1.0 on RH linux 7.2 with ucd-snmp

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

[PHP] snmp segmentation fault

2001-12-12 Thread Kancha .
-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 -- PHP General Mailing List (http