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 to
accomplish what you want. I've spent hours trying to figure it out.
I also tried to set some vars in the HTTP headers and then redirect
using mod_rewrite of apache, and nothing, no way.

Please, let us know if you find the solution. Thanks a lot!

H Marino


On Fri, 9 Apr 2004 01:12:25 +0200, Ryan A wrote:
> > My questions:
> > How do I know where to send the data? (eg: which is the
authenticating
> > file?)
> > Do I pass it as a GET or a POST or what? URL encode?
>
> You need to tell the browser to use the log in credentials, this is
done
> by redirecting the browser to http://username:[EMAIL PROTECTED]/.
>
> However this does not work with IE with the latest security patch
> installed, I think. It forbids to set username and password in a
url.

Yep, had that problem. MS always to the rescue to complicate and screw
up
set standards.
Any work arounds on how to do it if the person is running IE with the
latest
patch?

Cheers,
-Ryan

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

1081026000"
interesting... i got 1081054800 from mine with the code:


 even on cli it gives the same thing

--
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] 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 settings i.e. comparing american
dates
with UK dates (1/Aug/04 and 8/1/04)?

Nunners



> -Original Message-
> From: Andy B [mailto:[EMAIL PROTECTED]
> Sent: 05 April 2004 11:29
> To: [EMAIL PROTECTED]
> Subject: [PHP] mktime error
>
> "On my personal machine the return value is:
>
> 1081026000"
> interesting... i got 1081054800 from mine with the code:
>  $time=mktime(0,0,0,4,4,2004);
> echo $time;
> ?>
>
>  even on cli it gives the same thing
>
> --
> 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

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



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. Something like
prepending a file for every script parsed in the server and redefine
there several functions or something like that.

Thanks!



On 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 there is any way to identify
the

Consider removing the mail() function, and requiring they they use
SMTP
connections.  I believe one of the external mail classes supports
authenticated SMTP, so with that you could tell who was sending the
mail.

--
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] mail() question

2004-04-01 Thread Hernan Marino
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. Something like
prepending a file for every script parsed in the server and redefine
there several functions or something like that.

Thanks!



On 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 there is any way to identify
the

Consider removing the mail() function, and requiring they they use
SMTP
connections.  I believe one of the external mail classes supports
authenticated SMTP, so with that you could tell who was sending the
mail.

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



[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 apache, but is there anyway to pass an
argument to postfix, for example, some $_SERVER var to identify the
script location, or something like that.

Any help will be greatly appreciated.

Thanks in advamce.

H Marino

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