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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
<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 } ?> |
|
|||
|
"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 |