Image threw php

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maciej Nadolski

    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
  • Comex

    #2
    Re: Image threw php

    <Xns940A632C66D 53usenetnadolsk inet@193.110.12 2.80>
    Maciej Nadolski:[color=blue]
    > 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[/color]

    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 } ?>


    Comment

    • Maciej Nadolski

      #3
      Re: Image threw php

      "Comex" <spam@xemoc.cjb .net> wrote in news:nPzfb.2431 4$yU5.4049@nwrd ny01.gnilink.ne t:
      [color=blue]
      > 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 } ?>[/color]

      aloust. Thanks! I`ve used fpassthrew.

      --
      Pozdrawiam,
      Maciej Nadolski

      Comment

      Working...