For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > December 2006 > PHP auth with Safemode off









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP auth with Safemode off
Nakkie

2006-12-24, 9:58 pm

I'm new with PHP so please bare with me....

I have problems uploading files, - found out it was due to safe mode
enabled.
I have it disabled by my server admin and it works.....
Now - since he disables safe mode, my auth does not work. I'm using the
basic auth, reading the username and password from a txt file.
It no longer pops up the IE auth window - it goes straight to "invalid
username or password" as if you clicked cancel or used invalid username or
password 3ce
Any ideas?


hackajar@gmail.com

2006-12-25, 7:58 am

create a test php file like this:

<?php
print_r($_SERVER);
?>

Check output for your user credentials, reference that for your Apache
Basic Auth data

Hackajar
Nakkie wrote:
> I'm new with PHP so please bare with me....
>
> I have problems uploading files, - found out it was due to safe mode
> enabled.
> I have it disabled by my server admin and it works.....
> Now - since he disables safe mode, my auth does not work. I'm using the
> basic auth, reading the username and password from a txt file.
> It no longer pops up the IE auth window - it goes straight to "invalid
> username or password" as if you clicked cancel or used invalid username or
> password 3ce
> Any ideas?


Ric

2006-12-25, 7:58 am

Nakkie schrieb:
> I'm new with PHP so please bare with me....
>
> I have problems uploading files, - found out it was due to safe mode
> enabled.
> I have it disabled by my server admin and it works.....
> Now - since he disables safe mode, my auth does not work. I'm using the
> basic auth, reading the username and password from a txt file.


I doubt he only messed with safe mode. Apaches auth has nothing to do
with PHP's Safe Mode. There must be a change in apaches configuration files.

> It no longer pops up the IE auth window - it goes straight to "invalid
> username or password" as if you clicked cancel or used invalid username or
> password 3ce
> Any ideas?
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com