Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2006
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    displaying images

    was wondering if anyone had a snippet for something like this.

    i am looking for a script like this

    http://thesuperficial.com/image.php?...h-beach-01.jpg

    thanks for any help

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    PHP Code:
    <a href="site.com"><img src="<?php echo $_GET['image'];?>"></a>
    Filepath for the image will be

    site.com/?image=pathtoimagefile.jpg

    Simple and very unsecure way of doing it

  • #3
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Simple and very unsecure way of doing it
    There is nothing wrong with doing it this way, just make sure you do some security checks.

    As always, validate input from $_GET or $_POST.

    However, nothing is going to happen if a user changes the query string to show his own picture. All it will do is change how it looks for that person. There is little to gain from it.


  •  

    Posting Permissions

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