[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 unsubscribe, visit: http://www.php.net/unsub.php




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

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 of accessign command line
  parameters ??
 
 I think they're turned off by default.
 
 
 Look in php.ini for
 
 register_argc_argv = ??
 

i have turned it on but still doesn't work. 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 you would like to
enable call-time pass-by-reference, you can set
allow_call_time_pass_reference to true in your INI
file. However, future versions may not support this
any longer. in /var/www/html/accounts.php on line 123


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 occasion!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 mailing
list is not possible.

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 - 
 From: Mostafa Al-Mallawani [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, January 27, 2002 11:23 PM
 Subject: [PHP] mailing to 19000 users
 
 
  hi, does anyone know how to send mail to 19000
 users using the mail()
  function, I need to create a mailing list of this
 number of users and
  looping on 19000 users takes up a heck of a lot of
 resources...any
  solutions? thanks.
   
  
 
 
 -- 
 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]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
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] 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.com/videomail/

-- 
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] distinct element from array

2002-01-06 Thread Kancha .

doesn't seem to work for multidimensional array. 

$yourarray looks like this in my case
$yourarray[0] = array()
$yourarray[1] = array() //i'm looking for distinct
elemtns in the inner array


--- Bogdan Stancescu [EMAIL PROTECTED] wrote:
 $distincts=array();
 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 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.com/videomail/
 
  --
  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]
 
 
 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
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] 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 support.
 ucd-snmp 4.2.2 is 
 installed and working without trouble. PHP4.1.1
 configures ok but fails 
 on make, giving many errors similar to this:
 
 /usr/local/lib/libsnmp.a(snmp_alarm.o): In function
 `sa_find_next':

/export/home/j/js/jsignalness/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:111:
 
 multiple definition of `sa_find_next'

Zend/.libs/libZend.al(snmp_alarm.o):/export/home/j/js/jsignalness/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:111:
 
 first defined here
 /usr/local/lib/libsnmp.a(snmp_alarm.o): In function
 `sa_find_specific':

/export/home/j/js/jsignalness/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:120:
 
 multiple definition of `sa_find_specific'

Zend/.libs/libZend.al(snmp_alarm.o):/export/home/j/js/jsignalness/ucd-snmp-4.2.2/snmplib/snmp_alarm.c:120:
 
 first defined here
 
 My PHP configure options are:
 ./configure \
 --with-apxs=/opt/apache/bin/apxs \
 --with-oci8 \
 --with-ldap \
 --with-gd=/usr \
 --with-jpeg-dir=/usr \
 --with-png-dir=/usr \
 --with-freetype-dir=/usr \
 --with-zlib-dir=/usr \
 --with-xpm-dir=/usr/X11R6 \
 --enable-sigchild \
 --with-imap \
 --enable-xslt \
 --with-xslt-sablot \
 --enable-wddx \
 --with-snmp=/usr/local \
 --enable-ucd-snmp-hack \
 --with-openssl
 
 Please CC me on any replies, as I don't subscribe to
 php-general.  Any 
 ideas would be greatly appreciated.
 
 Thanks in advance
 -- 
 Jason Signalness, Systems Administrator
 Basin Telecommunications, Inc.
 [EMAIL PROTECTED](701)355-5727
 --
 
 
 -- 
 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]
 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
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] 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 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] 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, 1024);
}
return $op;
  }

  echo getLine();
?

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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 I haven't got a clue.


--- brendan [EMAIL PROTECTED] wrote:
 hi
 
 i have been trying to write a telnet client to a
 tn3270 IBM mainframe 
 database ( pericles.ipaustralia.gov.au:23 ) using
 fsockopen ...
 i thought it wouldnt be that bad given i have done
 something similar 
 with usenet ..
 however i cannot get it to work no matter what I do
 .. i just get a 
 permanent hang ...
 has anyone ever attempted this or have any
 solutions?
 
 i know this is rather open ended but i cant offer
 any code which even 
 kind of works..
 
 it would be much appreciated..
 
 
 -- 
 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]
 


__
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://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] 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 --enable-sysvsem 
--with-sysvshm --enable-inline-optimization --enable-ftp --with-gd 
--enable-gd-native-ttf --with-openssl

configure works fine but when i do a make i get following error:

Zend/.libs/libZend.al(default_store.o):/usr/local/ucd-snmp-4.2.3/snmplib/default_store.c:308:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `init_alarm_post_config':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:53: multiple definition of 
`init_alarm_post_config'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:53: 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `set_an_alarm':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:185: multiple definition of 
`set_an_alarm'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:185:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `init_snmp_alarm':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:60: multiple definition of 
`init_snmp_alarm'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:60: 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `sa_update_entry':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:67: multiple definition of 
`sa_update_entry'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:67: 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `snmp_alarm_unregister':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:88: multiple definition of 
`snmp_alarm_unregister'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:88: 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `sa_find_next':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:111: multiple definition of 
`sa_find_next'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:111:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `sa_find_specific':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:120: multiple definition of 
`sa_find_specific'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:120:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `run_alarms':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:131: multiple definition of 
`run_alarms'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:131:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `alarm_handler':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:164: multiple definition of 
`alarm_handler'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:164:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function 
`get_next_alarm_delay_time':/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:170: 
multiple definition of `get_next_alarm_delay_time'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:170:
 
first defined here
/usr/local/lib/libsnmp.a(snmp_alarm.o): In function `snmp_alarm_register':
/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:204: multiple definition of 
`snmp_alarm_register'
Zend/.libs/libZend.al(snmp_alarm.o):/usr/local/ucd-snmp-4.2.3/snmplib/snmp_alarm.c:204:
 
first defined here


-- 
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] seg fault with snmp

2001-12-15 Thread kancha

i had also compiled php as cgi without the --with-apxs parameter. then i 
executed php and core was dumped. the out is as follows.

[root@ispms html]# gdb /usr/local/bin/php  /var/www/html/core
GNU gdb Red Hat Linux 7.x (5.0rh-15) (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-redhat-linux...
Core was generated by `php snmp.php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libssl.so.2...done.
Loaded symbols for /lib/libssl.so.2
Reading symbols from /lib/libcrypto.so.2...done.
Loaded symbols for /lib/libcrypto.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libpam.so.0...done.
Loaded symbols for /lib/libpam.so.0
Reading symbols from /usr/lib/libsnmp-0.4.2.1.so...done.
Loaded symbols for /usr/lib/libsnmp-0.4.2.1.so
Reading symbols from /usr/lib/libpq.so.2...done.
Loaded symbols for /usr/lib/libpq.so.2
Reading symbols from /usr/lib/libgd.so.1.8...done.
Loaded symbols for /usr/lib/libgd.so.1.8
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /usr/kerberos/lib/libkrb5.so.3...done.
Loaded symbols for /usr/kerberos/lib/libkrb5.so.3
Reading symbols from /usr/kerberos/lib/libk5crypto.so.3...done.
Loaded symbols for /usr/kerberos/lib/libk5crypto.so.3
---Type return to continue, or q return to quit---
Reading symbols from /usr/kerberos/lib/libcom_err.so.3...done.
Loaded symbols for /usr/kerberos/lib/libcom_err.so.3
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x402c8c71 in strlen () from /lib/i686/libc.so.6
(gdb) bt
#0  0x402c8c71 in strlen () from /lib/i686/libc.so.6
#1  0x4017969f in bprintf () from /usr/lib/libsnmp-0.4.2.1.so
#2  0x4017a453 in sprint_object_identifier () from /usr/lib/libsnmp-0.4.2.1.so
#3  0x4017ce3a in sprint_value () from /usr/lib/libsnmp-0.4.2.1.so
#4  0x080a1ab5 in php_snmp (ht=3, return_value=0x81e358c, this_ptr=0x0,
return_value_used=1, st=2) at snmp.c:318
#5  0x080a1dbb in zif_snmpwalk (ht=3, return_value=0x81e358c, this_ptr=0x0,
return_value_used=1) at snmp.c:397
#6  0x08134376 in execute (op_array=0x81e368c) at ./zend_execute.c:1590
#7  0x08111788 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at zend.c:814
#8  0x08067255 in php_execute_script (primary_file=0xb980) at main.c:1309
#9  0x08064e38 in main (argc=2, argv=0xba24) at cgi_main.c:738
#10 0x4025e507 in __libc_start_main (main=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 with following configure
  parameters.
 
  ./configure  --with-apxs=/usr/sbin/apxs
  --enable-calendar --with-pgsql --with-snmp
  --enable-ucd-snmp-hack --enable-wddx --enable-sysvsem
  --with-sysvshm --enable-inline-optimization
  --enable-ftp --with-gd --enable-gd-native-ttf
  --with-openssl

 Rasmus is asking backtrace. Read following link to get
 one ;)

 http://bugs.php.net/bugs-generating-backtrace.php


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

any answers ?? 

__
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://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] seg fault with snmp

2001-12-14 Thread Kancha .

i had compiled php with following configure
parameters.

./configure  --with-apxs=/usr/sbin/apxs
--enable-calendar --with-pgsql --with-snmp
--enable-ucd-snmp-hack --enable-wddx --enable-sysvsem
--with-sysvshm --enable-inline-optimization
--enable-ftp --with-gd --enable-gd-native-ttf
--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
 that
  comes along with the linux distribution. I
 compiled
  php with --with-snmp and the compilation was error
  free. phpinfo() alsow displyas the snmp
 information.
  
  any answers ?? 
  
  __
  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
  
  
 


__
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://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] seg fault with snmp

2001-12-14 Thread kancha

I did not get a core dump. I got following in my apache error log file

[Sat Dec 15 13:35:19 2001] [notice] child pid 15278 exit signal Segmentation 
fault (11)
[Sat Dec 15 13:35:19 2001] [notice] child pid 15277 exit signal Segmentation 
fault (11)
[Sat Dec 15 13:35:19 2001] [notice] child pid 15276 exit signal Segmentation 
fault (11)
[Sat Dec 15 13:35:19 2001] [notice] child pid 15275 exit signal Segmentation 
fault (11)
[Sat Dec 15 13:35:19 2001] [notice] child pid 15274 exit signal Segmentation 
fault (11)
[Sat Dec 15 13:35:19 2001] [notice] child pid 15273 exit signal Segmentation 
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 had compiled php with following configure
  parameters.
 
  ./configure  --with-apxs=/usr/sbin/apxs
  --enable-calendar --with-pgsql --with-snmp
  --enable-ucd-snmp-hack --enable-wddx --enable-sysvsem
  --with-sysvshm --enable-inline-optimization
  --enable-ftp --with-gd --enable-gd-native-ttf
  --with-openssl

 Do this:

 http://bugs.php.net/bugs-generating-backtrace.php

 Then file a bug here:

 http://bugs.php.net/report.php

 (Be sure to take note of all the little comments on that page)

 *With* the backtrace information included in your report. You'll get
 much better help from that system with oddball issues like that.


-- 
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] snmp segmentation fault

2001-12-12 Thread Kancha .

Hi all

I compiled php 4.1.0 with snmp

--with-snmp

the compilation was smooth and had no problem, but
when i try to execute the following statment i get
segmentation fault.

$x = snmpwalk (localhost, public, );

The same error had occured with ver 4.0.6. I'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

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