Image threw php

This is a discussion on Image threw php within the PHP Language forums, part of the PHP Programming Forums category; Hi! Is there a posibly to load and display image on dymnamic web page thre php. I don`t want ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-04-2003
Maciej Nadolski
 
Posts: n/a
Default Image threw php

Hi!
Is there a posibly to load and display image on dymnamic web page thre php. I don`t
want use <img>... tag beacouce images had chmod 000 and is only readable by www
server. Is there posibility to do sth in "header" and make a sipmle while loop wch
will display while image code and it would be that what I want to achieve? Is
conception ok? I don`t know what have to be in headr of image.
TIA

--
Best regards,
Maciej Nadolski
Reply With Quote
  #2 (permalink)  
Old 10-04-2003
Comex
 
Posts: n/a
Default Re: Image threw php

<Xns940A632C66D53usenetnadolskinet@193.110.122.8 0>
Maciej Nadolski:
> Hi!
> Is there a posibly to load and display image on dymnamic web page
> thre php. I don`t want use <img>... tag beacouce images had chmod 000
> and is only readable by www server. Is there posibility to do sth in
> "header" and make a sipmle while loop wch will display while image
> code and it would be that what I want to achieve? Is conception ok? I
> don`t know what have to be in headr of image.
> TIA


I don't know if this is what you're looking for...
<?php
if (isset($_GET['img'])) {
readfile("/path/to/img");
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><body>
<img src="?img">

</body></html>
<?php } ?>


Reply With Quote
  #3 (permalink)  
Old 10-04-2003
Maciej Nadolski
 
Posts: n/a
Default Re: Image threw php

"Comex" <spam@xemoc.cjb.net> wrote in news:nPzfb.24314$yU5.4049@nwrdny01.gnilink.net:

> I don't know if this is what you're looking for...
> <?php
> if (isset($_GET['img'])) {
> readfile("/path/to/img");
> } else {
> ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html><body>
> <img src="?img">
>
> </body></html>
> <?php } ?>


aloust. Thanks! I`ve used fpassthrew.

--
Pozdrawiam,
Maciej Nadolski
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0