Results 1 to 5 of 5

Thread: PHP - include ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    . . zeox's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 3,716

    PHP - include ?

    -, .

    Code:
    <?php
    
    if(isset($_GET['include']))
    {
        include $_GET['include'];
    }
    
    ?>
    , ...main.php?include=blabla.html
    .
    (). . 1 php - , "include" "pic" .
    php , popup . ...popup.php?pic=kartinka1.jpg
    ....
    , .
    . ?
    :EPOX MF4 Ultra-3#CPU: Athlon 64 X2 4600+ [Xigmatec HDT S963]#RAM: 21GB SuperTalent DDRII 800 CL4
    #video:GAINWARD 8800GS 384MB#PSU:COOLER MASTER RP M520#Monitor:HP P1100 1280x1024 @100Hz

  2. #2

    Join Date: Nov:2001
    Location: Des Moines, Iowa
    Posts: 4,284
    ...
    PHP Code:
    echo "<img src=\"$_GET[pic]\">\n"

  3. #3
    . . zeox's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 3,716
    . . -.

    Code:
    <?php
    
    echo "<img src=\"$_GET[pic]\">\n";
    
    ?>
    ?
    :EPOX MF4 Ultra-3#CPU: Athlon 64 X2 4600+ [Xigmatec HDT S963]#RAM: 21GB SuperTalent DDRII 800 CL4
    #video:GAINWARD 8800GS 384MB#PSU:COOLER MASTER RP M520#Monitor:HP P1100 1280x1024 @100Hz

  4. #4
    relative dude Skydive's Avatar
    Join Date: Nov:2002
    Location: /
    Posts: 2,863
    :
    $img, :
    Code:
    <?
    header("Content-type: image/png");
    if (file_exists($img)) {
      readfile($filename);
    }
    ?>
    , : <img src="popup.php?img=path_to_file" />
    , ...
    Last edited by Skydive; 10th July 2006 at 18:57.

  5. #5
    . . zeox's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 3,716
    Skydive, .
    Fo ... .
    :EPOX MF4 Ultra-3#CPU: Athlon 64 X2 4600+ [Xigmatec HDT S963]#RAM: 21GB SuperTalent DDRII 800 CL4
    #video:GAINWARD 8800GS 384MB#PSU:COOLER MASTER RP M520#Monitor:HP P1100 1280x1024 @100Hz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |