php-general Digest 18 Nov 2006 11:26:21 -0000 Issue 4466
Topics (messages 244828 through 244831):
Re: extracting the file name from the referrer
244828 by: John
Re: Smart Quotes not so smart
244829 by: Larry Garfield
Re: Hide Warnings
244830 by: Stein Ivar Johnsen
244831 by: zerof
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
R> you may want to look at the parse_url and explode functions.
Thanks, I'll look into that
R> you do realize that the referer, should it exist <...>
Good point, thanks for pointing that out. Yes, I was aware of that it
didn't come to mind. The security isn't so much an issue as that's already
handled, though if someone has their referrers turned off, it would be a
problem.
I'm trying to establish three things before I do a block of processing
a) a form was submitted
b) a processing flag was previously set to process
c) the form/data being submitted/processed is from the correct page - which
was where the referring url came in.
Any other suggestions or alternatives for c?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, November 17, 2006 5:41 PM
To: John
Subject: Re: [PHP] extracting the file name from the referrer
you may want to look at the parse_url and explode functions.
you do realize that the referer, should it exist, is of questionable
value? with various browsers the user can set it to a value of their
liking or simply turn it off. also various firewall products strip it
out for privacy reasons.
- Rick
--- End Message ---
--- Begin Message ---
On Thursday 16 November 2006 14:07, Chris Shiflett wrote:
> Larry Garfield wrote:
> > I've run into this sort of issue a few times before, and never
> > found a good solution.
>
> Not sure if this is the solution you're looking for, but you can convert
> them to regular quotes:
>
> http://shiflett.org/archive/165
OK, let's see if the list will let me send now...
Thanks, Chris. Converting them would be fine, but a replace doesn't seem to
be working. I'm trying to filter straight out of the $_POST array for it,
and have tried both strtr() and str_replace(). No luck with either one.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
Thanks to all that replied to my message.
I have managed to fix the problem with help from Tom Chubb, ThanX Tom!
I made my own php.ini file with the keywords I needed, and uploaded it to
the same dir as my script. Now it works fine....
--
Regards
sijo
http://www.dyg.no
""Tom Chubb"" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> Choose one of the following, but if you are getting warnings,
> something is wrong and you should address it.
>
> <?php
>
> // Turn off all error reporting
> error_reporting(0);
>
> // Report simple running errors
> error_reporting(E_ERROR | E_WARNING | E_PARSE);
>
> // Reporting E_NOTICE can be good too (to report uninitialized
> // variables or catch variable name misspellings ...)
> error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
>
> // Report all errors except E_NOTICE
> // This is the default value set in php.ini
> error_reporting(E_ALL ^ E_NOTICE);
>
> // Report all PHP errors (bitwise 63 may be used in PHP 3)
> error_reporting(E_ALL);
>
> // Same as error_reporting(E_ALL);
> ini_set('error_reporting', E_ALL);
>
> ?>
>
> On 16/11/06, Stein Ivar Johnsen <[EMAIL PROTECTED]> wrote:
>> Hi..
>>
>> How can I hide Warning messages so they are not shown on screen..:
>> Warning: Call-time pass-by-reference has been deprecated - argument
>> passed
>> by value; If you would like to pass it by reference, modify the
>> declaration
>> of [runtime function name](). If you would like to enable call-time
>> pass-by-reference, you can set allow_call_time_pass_reference to true in
>> your INI file. However, future versions may not support this any longer.
>> in
>> /home/users/kivugog/Blog/index.php on line 69
>>
>> I will appreciate all help on this...
>>
>> --
>> Regards
>> sijo
>> http://www.dyg.no
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
--- End Message ---
--- Begin Message ---
Stein Ivar Johnsen escreveu:
Hi..
How can I hide Warning messages so they are not shown on screen..:
Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration
of [runtime function name](). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any longer. in
/home/users/kivugog/Blog/index.php on line 69
I will appreciate all help on this...
------
Try to use the @ sign before the name of the function.
-----
zerof
--- End Message ---