Re: [PHP] New Server, Bad Attitude

2002-04-05 Thread Liam Gibbs

Thanks to Tyler Longren, Hiroshi Ayukawa, and Matt
Schroebel for your help. I've made big changes; the
encryption thing is still throwing me for a loop, but
the other two are fixed up (mostly).


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




Re: [PHP] New Server, Bad Attitude

2002-04-03 Thread Tyler Longren

Most of these are probably software/configuration errors.

1. Use the stripslashes() function to remove those slashes.  It does this to
escape the apostrophes and quotes.

2. What were you using to encrypt your passwords before?

3. Does your server have smtp running on port 25?  I think it needs to be
before php can send e-mails.

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: Liam Gibbs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 1:47 PM
Subject: [PHP] New Server, Bad Attitude


 My friends' server is giving me a hard time. What
 happened is (long story short) he was forced to use a
 new server for the web sites on his old one. One of
 them was mine. I'm experiencing some weirdness now:
 1. PHP automatically sticks in the backslash in front
 of apostrophes and quotation marks. This seems
 weird Don't trust it. What's up here?
 2. The encryption method seems to be different. This
 is weird, because (basic password scenario here), I
 can log in to my account (the server encrypts my
 password properly and compares it to the one 'on file'
 and voila). But, when the password is changed,
 encrypted, and saved, it seems to encrypt differently
 than when simply entered in a login screen. Now it
 seems to have a bunch of $ signs in it, whereas before
 it didn't.
 3. The mail function doesn't send e-mail, or I should
 say hasn't yet (after a few hours). Is this a PHP
 setting? Maybe the sendmail functionality is wonky on
 the server? Or is it possible PHP isn't looking in the
 proper place for the sendmail stuff?

 Now, not being totally hardware-savvy, I'm not sure
 what could cause these. One thing may be that the OS
 is different (was Redhat, is now Debian). Also, my
 friend upgraded from PHP3 to 4. Any light on this situation?

 __
 Do You Yahoo!?
 Yahoo! Tax Center - online filing with TurboTax
 http://taxes.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] New Server, Bad Attitude

2002-04-03 Thread Hiroshi Ayukawa

Hello,

1. PHP automatically sticks in the backslash in front
of apostrophes and quotation marks. This seems
weird Don't trust it. What's up here?

It is a setting of php.ini.
magic_quotes_gpc is it.
Default setting is magic_quotes_gpc=On, it means add slashes in front of 
\ and ' of the data required from a form(i.e. http get  post 
parameters).
See the function reference of get_magic_quotes_gpc() and ini_set().


3. The mail function doesn't send e-mail, or I should
say hasn't yet (after a few hours). Is this a PHP
setting? Maybe the sendmail functionality is wonky on
the server? Or is it possible PHP isn't looking in the
proper place for the sendmail stuff?
 Can you send an email with your sendmail program of your hardware?
 sendmail setting must be done properly.
 

Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php

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