Re: [PHP] PHP - Basic Auth - Cpanel

2004-04-09 Thread Hernan Marino
This is a problem I had with my onw control panel for letting logged in users use phpmyAdmin. I just setted in the redirection script the $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] so the popup dont show up. But if cpanel dont use PHP, and just passwd file with an .htaccess file, NO WAY

Re: [PHP] mktime error

2004-04-05 Thread Hernan Marino
Guys, second thought. mktime builds a unix time stamp (since the unix epoch, Jan 1, 1970 [I guess]), the difference are maybe due to time zones, because its the number of seconds since Jan,1 1970. On Mon, 5 Apr 2004 06:29:12 -0400, Andy B wrote: "On my personal machine the return value is: 1081

RE: [PHP] mktime error

2004-04-05 Thread Hernan Marino
I got 1081047600 for $time=mktime(0,0,0,4,4,2004); echo $time; (RH9, PHP 4.3.4) On Mon, 5 Apr 2004 11:34:11 +0100, Nunners wrote: I got 1081033200 Two thoughts: 1 - is $time a global variable predefined as the current time? Don't think it is?!?!?! 2 - Could it be to do with local time

Re: [PHP] mail() question

2004-04-01 Thread Hernan Marino
sorry. lazy me. there is auto_prepend_file in php.ini I'll see if it works. Thanks! On Fri, 2 Apr 2004 03:51:18 -0300, Hernan Marino wrote: Thanks for your answer. Don't you know if there is a way to redefine the mail() function in the php.ini file without touching the source code.

Re: [PHP] mail() question

2004-04-01 Thread Hernan Marino
n Fri, 2 Apr 2004 07:46:48 +0100, Duncan Hill wrote: On Friday 02 April 2004 07:39, Hernan Marino wrote: > Hello. > My users can send email from their web pages using mail(). > But the email is sent from [EMAIL PROTECTED], I dont want them to > attempt to send bulk, so I wonder if th

[PHP] mail() question

2004-04-01 Thread Hernan Marino
Hello. My users can send email from their web pages using mail(). But the email is sent from [EMAIL PROTECTED], I dont want them to attempt to send bulk, so I wonder if there is any way to identify the system user sending the email. I use postfix, and I know that postfix gets connected from user ap