[Phpug] Help with PHP script

Kae Verens kae at verens.com
Tue Sep 4 10:56:59 IST 2007


ghooton wrote:
> Thanks Stephen,
>
> Ok that works, but, I need to have both http and https and it now fails
> for http.  I need http for normal users and https for registered and
> back-end admin. Is there any way to set $mosConfig_live_site
> dynamically ?
>
>   
you could just remove the check altogether:

echo header("Content-Type: image/png");
$img = "/components/com_zoom/www/images/hotlink.png";
@readfile($img);

(note that I've removed the if() statement and the else statement)

Not the best solution, but as you are not a PHP developer, the simpler 
it is, the easier it is to fix if something breaks.

Kae


More information about the Phpug mailing list