Your looking for this:
$_SERVER['PHP_AUTH_USER']
When running under Apache as module doing HTTP authentication this
variable is set to the username provided by the user.
See Reserved Variables: http://www.php.net/reserved.variables
Jami Moore
LightSPARK Digital De
less
code and you don't need a function to do it. Hope this helps.
Jami Moore
LightSPARK Digital Designs
[EMAIL PROTECTED]
http://www.lightsparkdigital.com/
>> -Original Message-
>> From: [EMAIL PROTECTED]
>>
>>
>> Got this function...
>> I wa
In case anyone else runs into this problem, the way I solved it was by
reinstalling php with the windows installer from php.net. I'm not
exactly sure what the problem was, but reinstalling it this way solved
the problem. Hope this helps someone else.
Jami Moore
LightSpark Digital Designs
[
Scott,
thanks for the suggestion, but my php.ini is the same as yours. And I
still have the problem. Any idea why $_SESSION[] variables would loose
data on my server type and not on another?
Jami Moore
LightSpark Digital Designs
[EMAIL PROTECTED]
http://www.lightsparkdigital.com/
-Original
gation
___
//nav.php
<.a href="admin_signup.php">Add Admin
___
//admin_signup.php
include('validation.php');
if(!$_SESSION['aid'])
{
header(&qu
I go to a page other than the entry page (which the validation page
takes you to when you first log in), it throws me back to the login
page. Has anyone run into this and have you solved it? Anyone have a
suggestion? Code is rather lengthy, if you want it I can send it off
list.
Jami Moore
LightSpa
Jason,
I have already done so and not found an answer, which is why I am asking
the group now. Do you have a suggestion or have you found a link that
may help? That would be ten times more useful than, "Search the archives
or ask google."
Jami Moore
LightSpark Digital Designs
[EMAIL
- End Code --
>From my understanding, this should allow me to validate an e-mail
address like <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED] Has anyone been able to come up with a
regular expression that will allow php to validate an e-mail address
like this?
Jami Moore
Owner / Designer
to create new
lines, instead of boxes where the break should be? I have tried changing "w" to "wb"
as suggested on php.net, but that does not work either and I am out of ideas.
Jami
I am just full of them this weekend. Is it possible to direct a header like a html
link (i.e. target="_top") ? I have a page that is in a frame, and I want the new page
that is called to break the frame and load in the entire frame.
Thanks.
Jami
it;
}
}
This file is then used as an include in main.php. As long as the variables are used
ONLY in the header.php file, it works. But when I try to call the session variables in
main.php, it doesn't show the values of UN or UserLoggedIn. session_start() is called
in main.php. Is this a quirk with sessions, or is there something more I am supposed
to be doing? Running Apache 2 w/PHP 4.2.3 on WindowsXP.
Jami
Ok, figures I would be looking for something else and find the solution.
urlencode(). Thanks for the reply Rasmus. :-)
Jami
- Original Message -
From: "Jami" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 11:26
ode I am using is as follows:
$prod = implode("+", $_POST['product']);
Is this the correct thing to use, or is there another way to change the string?
Thanks.
Jami
Thanks all for the prompt responses. In case someone else searchs on the
list, the following code worked:
if($_GET['sc'] != '2' AND $_GET['sc'] !='8'){
do this.
}
Thanks Jason, Jonathan W., John H, Ryan G., and Tony B.!
- Original Message -
R' or something else... I have tried both of those, as
well as 'XOR' and '^'. Help please!
Jami
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
15 matches
Mail list logo