php-general Digest 8 Jan 2006 02:53:20 -0000 Issue 3893

Topics (messages 228289 through 228295):

Re: PHP4 vs PHP5
        228289 by: Kevin Waterson
        228291 by: Gerry Danen
        228292 by: Gerry Danen
        228293 by: Drew Butler

Re: Image editing?
        228290 by: Kevin Waterson

installing php5 on os x and CLI version
        228294 by: jonathan

PHP License And Web Server Integration
        228295 by: Sammy Yu

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:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
This one time, at band camp, Gerry Danen <[EMAIL PROTECTED]> wrote:

> I'm wondering if $_SERVER['HTTP_REFERER'] is no longer supported, or perhaps
> has a new name?

still there, same name.

print_r($_SERVER);

Kevin 


-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

--- End Message ---
--- Begin Message ---
Kevin,

[client 192.168.0.2] PHP Notice:  Undefined index:  HTTP_REFERER in
/home/arls_lilies_test/html/include_db/db_connect.php on line 67

is what shows in the error log...

The actual code is

$glb_http_ref =  $_SERVER['HTTP_REFERER'];

Gerry



On 1/7/06, Kevin Waterson <[EMAIL PROTECTED]> wrote:
>
> This one time, at band camp, Gerry Danen <[EMAIL PROTECTED]> wrote:
>
> > I'm wondering if $_SERVER['HTTP_REFERER'] is no longer supported, or
> perhaps
> > has a new name?
>
> still there, same name.
>
> print_r($_SERVER);
>
> Kevin
>
>
> --
> "Democracy is two wolves and a lamb voting on what to have for lunch.
> Liberty is a well-armed lamb contesting the vote."
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Gerry
http://portal.danen.org/

--- End Message ---
--- Begin Message ---
On 1/7/06, Kevin Waterson <[EMAIL PROTECTED]> wrote:
>
> This one time, at band camp, Gerry Danen <[EMAIL PROTECTED]> wrote:
>
> > I'm wondering if $_SERVER['HTTP_REFERER'] is no longer supported, or
> perhaps
> > has a new name?
>
> still there, same name.
>
> print_r($_SERVER);


Ah, yes. It's there when the page is actually referred from somewhere,
otherwise it's not.

Thanks, Kevin.

Now my simple assignment becomes a conditional assignment to avoid clutter
in the error log:

if ( isset($_SERVER['HTTP_REFERER']) )
    $glb_http_ref    =    $_SERVER['HTTP_REFERER'];
else
    $glb_http_ref    =    "";

instead of

$glb_http_ref =  $_SERVER['HTTP_REFERER'];

Learning as I go... :)

Gerry

--- End Message ---
--- Begin Message ---
A simplified version of this would be:
$glb_http_ref = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER']
: "";

or just:
$glb_http_ref = @$_SERVER['HTTP_REFERER'];

The latter will suppress the error message and return a null (or a blank as
far as PHP is concerned. Not the cleanest route and I prefer the first
method, but just thought I would get some options out there. :)


On 1/7/06, Gerry Danen <[EMAIL PROTECTED]> wrote:
>
> On 1/7/06, Kevin Waterson <[EMAIL PROTECTED]> wrote:
> >
> > This one time, at band camp, Gerry Danen <[EMAIL PROTECTED]> wrote:
> >
> > > I'm wondering if $_SERVER['HTTP_REFERER'] is no longer supported, or
> > perhaps
> > > has a new name?
> >
> > still there, same name.
> >
> > print_r($_SERVER);
>
>
> Ah, yes. It's there when the page is actually referred from somewhere,
> otherwise it's not.
>
> Thanks, Kevin.
>
> Now my simple assignment becomes a conditional assignment to avoid clutter
> in the error log:
>
> if ( isset($_SERVER['HTTP_REFERER']) )
>     $glb_http_ref    =    $_SERVER['HTTP_REFERER'];
> else
>     $glb_http_ref    =    "";
>
> instead of
>
> $glb_http_ref =  $_SERVER['HTTP_REFERER'];
>
> Learning as I go... :)
>
> Gerry
>
>

--- End Message ---
--- Begin Message ---
This one time, at band camp, "William Stokes" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I might have to start doing some automated image editing or rezising with 
> PHP. I've never done anything like this before so I would need some 
> guidelines to get started. Basically what sections of the manual to read and 
> what tools need to be installed to the server side to get things like this 
> done. Are there any websites about this issue, other than php.net, that 
> might provide help to beginners? Thanks for your assistance!

Image functions in the manual and you will need GD compiled in --with-gd

Kevin


-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

--- End Message ---
--- Begin Message ---
Sorry if this is a newbie question.

I installed php5 via the .dmg from entropy.ch. It installs fine as an apache module but the cli doesn't appear to be working by running php -v . Does anyone know how I would fix this?

thanks for any help,

jonathan

--- End Message ---
--- Begin Message ---
Hi,
  I am considering using php as a scripting engine on a custom web
server for a commerical project.  Are there any licensing restriction
if I were to distribute the php5ts.dll?   Also, is there any guide
that would help me write a module to link php to a web server?

Thanks for your help.

Regards,
Sammy Yu

--- End Message ---

Reply via email to