[prog] setting referer checking on in php

Nicki Handy nicki at virtualnicki.com
Fri Aug 19 22:45:43 EST 2005


I actually don' think mail is working on the machine. I can send mail 
through an interface but I can't send it from the command line using 
mail skdjf at ksdh.com etc.

I'm on mac osx. The GUI interface I set up for an exchange mail 
account. But from the command line I don't set any of those things so 
maybe that's my problem?

Nicki

On Aug 18, 2005, at 10:00 PM, programming-request at linuxchix.org wrote:

> Send Programming mailing list submissions to
> 	programming at linuxchix.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mailman.linuxchix.org/mailman/listinfo/programming
> or, via email, send a message with subject or body 'help' to
> 	programming-request at linuxchix.org
>
> You can reach the person managing the list at
> 	programming-owner at linuxchix.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Programming digest..."
>
>
> Today's Topics:
>
>    1. setting referer checking on in php (Nicki Handy)
>    2. Re: setting referer checking on in php (April)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 18 Aug 2005 14:53:51 -0400
> From: Nicki Handy <nicki at virtualnicki.com>
> Subject: [prog] setting referer checking on in php
> To: programming at linuxchix.org
> Message-ID: <28e69f4971c033cfdeb4c0c9c4ba6bd7 at virtualnicki.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi- I've just upgraded a mac to Tiger and also upgraded the mail
> server. I copied the old php.ini over into the new settings but for
> some reason formmail.php is not working. I didn't set it up, one of the
> programmers I work with uses it. The error I get in the web logs says
> [PHPFormMail] HTTP_REFERER checking is turned off.
>
> So, I think this would make it fail and thus, no mail from the form.
> But I went into php.ini and the variable for referer is set to blank. I
> tried changing it to 1 and "on" but neither worked. Is there another
> way to set that? Or is that a misleading error and I do in fact have it
> turned on? I restarted the server after changing it.
>
> Thanks a lot,
> Nicki
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 18 Aug 2005 13:32:46 -0700
> From: April <april at farstrider.org>
> Subject: Re: [prog] setting referer checking on in php
> To: programming at linuxchix.org
> Message-ID: <4304F06E.4040707 at farstrider.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I think it's a misleading error.  HTTP_REFERER can be spoofed or left
> unset by a browser, so it's unlikely that not having that data would
> make the script fail silently. Would you be willing to send the
> formmail.php file?  It could be failing for any number of reasons, but
> my guess is it's because register_globals went from on to off (likely 
> if
> you upgraded PHP from pre-4.2).
>
> If it DID stop working because of register_globals getting turned on,
> that probably means the script is insecure and could be used by third
> parties to send spam from your server.  So don't just turn on
> register_globals to make it work.. fix the script.
>
> Nicki Handy wrote:
>> Hi- I've just upgraded a mac to Tiger and also upgraded the mail 
>> server.
>> I copied the old php.ini over into the new settings but for some 
>> reason
>> formmail.php is not working. I didn't set it up, one of the 
>> programmers
>> I work with uses it. The error I get in the web logs says
>> [PHPFormMail] HTTP_REFERER checking is turned off.
>>
>> So, I think this would make it fail and thus, no mail from the form. 
>> But
>> I went into php.ini and the variable for referer is set to blank. I
>> tried changing it to 1 and "on" but neither worked. Is there another 
>> way
>> to set that? Or is that a misleading error and I do in fact have it
>> turned on? I restarted the server after changing it.
>>
>> Thanks a lot,
>> Nicki
>>
>>
>> _______________________________________________
>> Programming mailing list
>> Programming at linuxchix.org
>> http://mailman.linuxchix.org/mailman/listinfo/programming
>>
>>
>>
>
>
>
> ------------------------------
>
> _______________________________________________
> Programming mailing list
> Programming at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/programming
>
>
> End of Programming Digest, Vol 30, Issue 3
> ******************************************
>




More information about the Programming mailing list