[PHP] Reg-Vulnerabilities in PHP

2002-07-28 Thread SenthilVelavan

Hello Folks,
 I have applied patch to PHP4.0.6.Any one of you please suggest on how 
to test the patched version and confirm that the vulnerability is fixed.
[Note :Patch is applied for the following Vulnerability.
Vulnerabilities in the  php_mime_split function may allow an intruder to execute 
arbitrary code with
the privileges of the web server.]
Any help is appreciated.
Advance thanks and regards,
Senthil.




[PHP] Reg patch for PHP4.0.6

2002-07-29 Thread SenthilVelavan

Hello Folks,
I have applied a patch from 
http://www.php.net/do_download.php?download_file=rfc1867.c.diff-4.0.6.gz
for PHP 4.0.6. Is my patched PHP4.0.6 is compatible to PHP4.2.2. If not please list 
the features or bugs that are not fixed with my patch applied version.

Which one is advicable?
1.Either the PHP4.0.6 with patch from 
http://www.php.net/do_download.php?download_file=rfc1867.c.diff-4.0.6.gz
OR
2.To directly go for PHP4.2.2

Any help is appreciated.

Advance thanks and regards,
Senthil.



Re: [PHP] SMS message ?

2002-07-30 Thread SenthilVelavan

Hi Ranaivo Rija,
Try this website
http://www.k1m.com/scripts/sms_web_sender/ for more information.
 It's about  "SMS Web Sender" .It  is a PHP class which connects to a web
site offering free SMS sending, logs you in with your username and password
and sends your SMS message to a mobile number.

regards,
SenthilVelavan.P

- Original Message -
From: "Rija" <[EMAIL PROTECTED]>
To: "PHP-General" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 8:25 AM
Subject: [PHP] SMS message ?


Hi all,
I'm a newbie, and I'd like some advice, and I don't have any idea, maybe
it's a silly question.

Is-it possible to send SMS message to mobile phone using PHP?

For example, every monday I send some news about my web site to the mobile
phone of my visitors with their approval, of course.

If possible, how to do it.
If not, does anyone have any other ideas how to do this?


Best regards,

Ranaivo Rija
[EMAIL PROTECTED]
BP 1528 Port Vila
Vanuatu


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




[PHP] Reg-PHP4.22 and Apache1.3.26 Installation

2002-07-30 Thread SenthilVelavan

Hello All,
I have tried to install Apache 1.3.26 and PHP 4.22 (as DSO ).

By following the below steps my Apache 1.3.26 installation was OK
./configure  --enable-module=so
make
make install

But while running make for PHP 4.22 i got the following error.
 
[Note:My configure command for PHP 4.22 is ./configure 
--with-apxs=/usr/local/apache/bin/apxs --with-mysql ]

Error:
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.2'
make: *** [all-recursive] Error 1

Any help is appreciated.

Advance thanks and regards,
SenthilVelavan.P



Re: [PHP] Reg-PHP4.22 and Apache1.3.26 Installation

2002-07-30 Thread SenthilVelavan

Hello All,
I have found one soultion for my bug posted in my previous
mail.Actually i hve searched from the site.

1)Do a "./configure --with-apache=/path/to/my/apache", follow this with a
"make" then delete the files stub.lo & stub.o in the php root directory and
then all the .lo files in the main directory.
2)DO NOT do a make clean...
3)Now, do a "./configure --with-apxs=/path/to/my/apxs", follow with a "make"
and "make install". This should compile and create the libphp4.so in the
correct Apache runtime directories.

Now my Apache 1.3.26 and PHP 4.22 (As DSO ) installation is OK.

Any one of you may have some other solution.If so please post it.

regards,
SenthilVelavan.P

- Original Message -
From: "SenthilVelavan" <[EMAIL PROTECTED]>
To: "PHP-General" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 9:10 AM
Subject: [PHP] Reg-PHP4.22 and Apache1.3.26 Installation


Hello All,
I have tried to install Apache 1.3.26 and PHP 4.22 (as DSO ).

By following the below steps my Apache 1.3.26 installation was OK
./configure  --enable-module=so
make
make install

But while running make for PHP 4.22 i got the following error.

[Note:My configure command for PHP 4.22 is
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql ]

Error:
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.2'
make: *** [all-recursive] Error 1

Any help is appreciated.

Advance thanks and regards,
SenthilVelavan.P



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




[PHP] Reg- array_unique

2002-08-02 Thread SenthilVelavan

Hello All,

I tried a program using array_unique.It shows different outputs in PHP4.06 
and PHP4.22

Program:



Output:

PHP4.06
Index 0 Content snp 
PHP4.22
Index 2 Content snp 

Why the index is differed in two version?
Whether the function array_unique is handled in a different way in PHP4.22.
Any help is appreciated.

Advance thanks and regards,
SenthilVelavan.P




[PHP] Reg-Cache problem

2002-08-02 Thread SenthilVelavan

Hello All,
I have the following lines in my program to disable the caching with the 
client.



But still the clients cache my pages.Installed versions in my server is PHP 4.2.2 and 
Apache 2.0.39.
Is there any other way to go.
Any help is appreciated.

Advance thanks and regards,
Senthil.



[PHP] Reg-Maximum allowed size for uploaded files

2002-06-13 Thread SenthilVelavan

Hello techies,
What is the  Maximum allowed size for uploaded files in php.ini 
file?
I have tested it for the following amount

upload_max_filesize = 10M

But here i can achieve only upto 7.5MB .Is that the limit of php.?
Any help is appreciated.

Thanks in advance,
Senthilvelavan.P




Re: [PHP] Reg-Maximum allowed size for uploaded files

2002-06-14 Thread SenthilVelavan

Thanks Chris for your immediate response.Yes we got the error page not found
when we cross 7.5 MB.
How to increase the time out time.Whether we have to edit the httpd.conf or
php.ini file to increase the
time out time.
Any help is appreciated.
thanks in advance,
SenthilVelavan.P

- Original Message -
From: "Chris Bunting" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 11:40 AM
Subject: Re: [PHP] Reg-Maximum allowed size for uploaded files


> A quick search on google shows that yes, Php has a maximum upload filesize
> of 10MB.
>
> Maybe your upload timed out or the session expired if you are using them
> before you got to 10MB or something else happened.
>
> Chris Bunting
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




Re: [PHP] session problems....

2002-06-14 Thread SenthilVelavan

-Rick
Change the owner and group of the directory to nobody.nobody to your /tmp
directory.Iam not sure here.
regards,
SenthilVelavan.P

- Original Message -
From: "php" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 7:42 AM
Subject: [PHP] session problems


> Anyone know why php would complain about not having permission to write
> the session file in /tmp (and to check the session.save_path var in my
> php.ini file. when it does specify /tmp in the php.ini and /tmp has
> drwxrwxrwt for permissions?
>
> I need a resolution... even if we have to pay for it... so if anyone
> feels they are good enough to fix this we can compensate you for your
> time.
>
> Thanks,
> Rick
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] Confusion with the $_name $_type $_size Variable Extensions

2002-06-14 Thread SenthilVelavan

-Lakario,
Please have a look on
http://www.php.net/manual/en/features.file-upload.php  for more information
on fileuploads in php.Also check with the size of the files you have
transferred.When file size is large, then your files won't get uploaded.This
is due to the low execution time,If you don't mind please send your programs
to dig more.
regards,
SenthilVelavan.P

- Original Message -
From: "Nathan Taylor" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 6:46 AM
Subject: [PHP] Confusion with the $_name $_type $_size Variable Extensions


I am having a lot of trouble with the $_name, $_size, and $_type
variable extensions.  I have a basic file upload system however it is
within a function.  Sometimes when I declare the aforementioned
variables in a global statement such as global $file_name I can get a
value for _name, other times, I get nothing.  Can someone clarify
this because I was unable to find anything in the manual?

Cheers,

Lakario
ModDev.netGet more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com



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




Re: [PHP] Quick question

2002-06-14 Thread SenthilVelavan

Hello Dan,
Please try this.Let me know if you have any problem.







function setChecked()
{
 document.forms[0].r1value.value='on';
}
function checkr1()
{
 if(document.forms[0].r1value.value=='on')
 {
  alert("One of your radio button is selected");
  return false;
 }
 else
 {
  alert("Please select one of the radio button");
  return false;
 }

}











regards,
SenthilVellan.P

- Original Message -
From: "Dan McCullough" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 7:49 PM
Subject: [PHP] Quick question


> I have a form, and if someone doesnt fill in a field it returns and asks
them to filling in the
> missing field.  I have made it so that the person doesnt lose everything,
currently they will lose
> radio button information or checkbox information.  Can someone tell me how
to best keep it so the
> checkboxes stay checked or radio buttons stay selected.
>
> thanks,
>
> dan
>
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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




Re: [PHP] Shut down server

2002-06-14 Thread SenthilVelavan

Hello Rosen,
You can try with visudo command in linux.
For example if you want to give permission to user1 then give shutdown permission to 
that user using visudo command.
you have to edit something like
username  ALL=(ALL) ALL
Here the above user is assigned with all rights.When the above said user tries any 
commands
then that command should starts with sudo.for example
prompt # sudo shutdown.

Hope this will help you.Let me know if you have any problem.

regards,
SenthilVelavan.P,
KovaiTeam Softwares.



Thanks,
but the idea is another user only to start and shutdown the server.

Any ideas ?

Thanks,
Rosen

Bruce Karstedt <[EMAIL PROTECTED]> wrote in message
00ea01c21339$e7856d60$4773d73f@c3">news:00ea01c21339$e7856d60$4773d73f@c3...
> This is a bad idea from a security standpoint. If your server is local,
> login as root and type shutdown. If the system is remote telnet to the
box,
> login, su to root and type reboot. If you use shutdown remotely, there is
no
> way to restart the server.
>
> Bruce Karstedt
> President
> Technology Consulting Associates, Ltd.
> Tel: 847-735-9488
> Fax: 847-735-9474
>
>
> -Original Message-
> From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 6:29 PM
> To: 'Rosen'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Shut down server
>
> < clip >
>
> I am not a security expert.  Check with others to get their opinion on
> whether this is the best approach.
>
> > -Original Message-
> > The server is Linux Red Hat 7.2
> > > > Can someone tell me how I could make shut down the server ?
> > > > Is it possible ?
>
>



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




Re: [PHP] PHP Chat Program?

2002-06-14 Thread SenthilVelavan

Hello Devin,
Please download chat application from
http://sourceforge.net/projects/phpmychat

I have tried this it's so simple and easy.Let me know if you have any
problem.
regards,
SenthilVellan.P,
KovaiTeam Softwares.

- Original Message -
From: "Devin Atencio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 2:40 AM
Subject: [PHP] PHP Chat Program?



Dear PHP Users,

I have a client who currently has a website setup with iChat which
is several years old and we are currently having problems with it. I need
to find a PHP Chat program that will be very easy and simple. I just
wanted to see if anyone here has used a program and really likes
it and can recomment it ?

Devin Atencio

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



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




Re: [PHP] Best way to store login data?

2002-06-14 Thread SenthilVelavan

Hello Leif,
My opinion is
1.First do md5 encoding for passwords.
2.Store the username and encoded passwords in database as well as in two
cookies.
Note:But storing the passwords in a cookie is a security issue.

regards,
SenthilVelavan.P,
KovaiTeam Softwares.


- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 10:39 AM
Subject: [PHP] Best way to store login data?


> I have a site with logins.  I am planning to recode logins soon (right
> now the username and password are stored in cookies with no encoding).
>  In your opinion, which of these is a better idea:
> 1. Storing in two cookies with md5 encoding for the password
> 2. Use sessions
> 3. Store logins in a database, and put an id from there into a cookie
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


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