🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230759

Re: jak wysyłać obrazek

#230759
From: xantiros
Date: Mon, 17 Nov 2014 11:54
20 lines
1604 bytes
On 2014-11-16 21:12, platformowe głupki wrote:
> nie chodzi mi o rysowanie, na serwerze jest obrazek,


$remoteImage = "/var/www/images/jakisplik.jpg";
$imginfo = getimagesize($remoteImage);
header("Content-type: $imginfo['mime']");
readfile($remoteImage);
exit();



> nie chcę podawać do
> niego linku <img src=", tylko wypchąć go na stdout, żeby nie była
> wiadoma ścieżka do obrazka...

ale to jest głupi pomysł, jak chcesz ogranczyć hotlink-owanie to użyj 
htaccess

http://www.htaccesstools.com/hotlink-protection/
Technical Details
Message-ID: <m4cnm4$eon$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <m48f04$7qe$1@node2.news.atman.pl> <m4avtb$kkh$1@node1.news.atman.pl> <m4b0fv$po5$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: xantiros <_wytnij_to_xantiros@ymail.com>
Newsgroups: pl.comp.lang.php
Subject: Re: jak wysyłać obrazek
Date: Mon, 17 Nov 2014 12:54:42 +0100
Organization: ATMAN - ATM S.A.
Lines: 20
Message-ID: <m4cnm4$eon$1@node1.news.atman.pl>
References: <m48f04$7qe$1@node2.news.atman.pl> <m4avtb$kkh$1@node1.news.atman.pl> <m4b0fv$po5$1@node2.news.atman.pl>
NNTP-Posting-Host: 89-70-28-167.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1416225284 15127 89.70.28.167 (17 Nov 2014 11:54:44 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Mon, 17 Nov 2014 11:54:44 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
In-Reply-To: <m4b0fv$po5$1@node2.news.atman.pl>
X-Antivirus: avast! (VPS 141117-0, 2014-11-17), Outbound message
X-Antivirus-Status: Clean
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit