hello.. i have a question..
i have a page where a user can set an image to the background of their profile.
i want to allow them to enter a url that points to the image.
is there anything that can go wrong with doing this, and if so, is there any way to prevent it?
thanks
chris
Help with images...
Moderator: General Moderators
-
CSmith1128
- Forum Newbie
- Posts: 2
- Joined: Tue Aug 22, 2006 5:52 pm
Help with images...
Last edited by CSmith1128 on Thu Oct 11, 2007 1:51 pm, edited 1 time in total.
You would want to check that the file is actually an image. I believe this function does that... I can't remember. http://us.php.net/manual/en/function.getimagesize.php
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US