Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-09-2007, 12:48 PM   PM User | #1
chrismccoy
New Coder

 
Join Date: Sep 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
chrismccoy is an unknown quantity at this point
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
chrismccoy is offline   Reply With Quote
Old 03-09-2007, 12:56 PM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
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
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 03-09-2007, 04:47 PM   PM User | #3
aedrin
Senior Coder

 
Join Date: Jan 2007
Posts: 1,648
Thanks: 1
Thanked 58 Times in 54 Posts
aedrin will become famous soon enough
Quote:
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.
aedrin is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:57 PM.


Advertisement
Log in to turn off these ads.