Re: [plug] auto-display of jpg file behind a php script

2015-04-14 Thread Deds Castillo
Append /download to the src attribute you pass to your img tag.

On Tue, Apr 14, 2015 at 9:28 AM, Roberto Verzola 
wrote:

> https://rverzola.wordpress.com/
>
> Try the url above. If you hover over it, you'll see the link behind it
> pointing to a php script. I tried variations of the META HTTP-EQUIV
> tag, but the display always stops and waits for a click. My html code
> looks something like this:
>
>  content="1;url=http://urladdres/index.php/s/abcABC123";>
>
> I've tried waiting times from 0 to 3 but it still waits for a click.
>
> Obet
>
>
>
> On Tue, 14 Apr 2015 08:27:14 +0800
> Robert Locke  wrote:
>
> >
> > What’s the URL and how are you referencing it?  Are you setting the
> > mime-type for the returned image?  Something like:
> > header(‘Content-Type: image/jpeg');
> >
> > Cheers,
> > Rob
> >
> > > On Apr 14, 2015, at 7:42 AM, Roberto Verzola 
> > > wrote:
> > >
> > > Hi guys,
> > >
> > > I need more help on this one: I have a WordPress post which
> > > basically points to a php script URL, that will give back a jpeg
> > > file.
> > >
> > > My intention is to generate a URL for the WordPress post so that if
> > > people access this URL from their browser, the browser picks up the
> > > url to the PHP script, gets the jpeg file behind the script, and
> > > displays the jpeg file.
> > >
> > > What the browser instead displays is the alternate text, or if I
>
>
>
>
> > > take that out, a graphic icon that the user must click, before the
> > > image itself is displayed.
> > >
> > > Is there a way to avoid this extra click? My Web browsing says it
> > > is a security feature, but if a jpeg file is behind the php, and
> > > the user had already requested a jpeg file, it seems to me the
> > > extra click is not necessary.
> > >
> > > Thanks in advance!
> > >
> > > Obet
> > > _
> > > Philippine Linux Users' Group (PLUG) Mailing List
> > > http://lists.linux.org.ph/mailman/listinfo/plug
> > > Searchable Archives: http://archives.free.net.ph
> >
> > _
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] auto-display of jpg file behind a php script

2015-04-13 Thread Roberto Verzola
https://rverzola.wordpress.com/

Try the url above. If you hover over it, you'll see the link behind it
pointing to a php script. I tried variations of the META HTTP-EQUIV
tag, but the display always stops and waits for a click. My html code
looks something like this:

http://urladdres/index.php/s/abcABC123";>

I've tried waiting times from 0 to 3 but it still waits for a click.

Obet



On Tue, 14 Apr 2015 08:27:14 +0800
Robert Locke  wrote:

> 
> What’s the URL and how are you referencing it?  Are you setting the
> mime-type for the returned image?  Something like:
> header(‘Content-Type: image/jpeg');
> 
> Cheers,
> Rob
> 
> > On Apr 14, 2015, at 7:42 AM, Roberto Verzola 
> > wrote:
> > 
> > Hi guys,
> > 
> > I need more help on this one: I have a WordPress post which
> > basically points to a php script URL, that will give back a jpeg
> > file.
> > 
> > My intention is to generate a URL for the WordPress post so that if
> > people access this URL from their browser, the browser picks up the
> > url to the PHP script, gets the jpeg file behind the script, and
> > displays the jpeg file.
> > 
> > What the browser instead displays is the alternate text, or if I




> > take that out, a graphic icon that the user must click, before the
> > image itself is displayed.
> > 
> > Is there a way to avoid this extra click? My Web browsing says it
> > is a security feature, but if a jpeg file is behind the php, and
> > the user had already requested a jpeg file, it seems to me the
> > extra click is not necessary.
> > 
> > Thanks in advance!
> > 
> > Obet
> > _
> > Philippine Linux Users' Group (PLUG) Mailing List
> > http://lists.linux.org.ph/mailman/listinfo/plug
> > Searchable Archives: http://archives.free.net.ph
> 
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Re: [plug] auto-display of jpg file behind a php script

2015-04-13 Thread Robert Locke

What’s the URL and how are you referencing it?  Are you setting the mime-type 
for the returned image?  Something like:
header(‘Content-Type: image/jpeg');

Cheers,
Rob

> On Apr 14, 2015, at 7:42 AM, Roberto Verzola  wrote:
> 
> Hi guys,
> 
> I need more help on this one: I have a WordPress post which basically
> points to a php script URL, that will give back a jpeg file.
> 
> My intention is to generate a URL for the WordPress post so that if
> people access this URL from their browser, the browser picks up the url
> to the PHP script, gets the jpeg file behind the script, and displays
> the jpeg file.
> 
> What the browser instead displays is the alternate text, or if I take
> that out, a graphic icon that the user must click, before the image
> itself is displayed.
> 
> Is there a way to avoid this extra click? My Web browsing says it is a
> security feature, but if a jpeg file is behind the php, and the user
> had already requested a jpeg file, it seems to me the extra click is
> not necessary.
> 
> Thanks in advance!
> 
> Obet
> _
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph

_
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph