Hi Marek,
> safe enough would be to put this at the begining
> if(!ereg('^[0-9]+$',$song) {
> die('Sorry...')
> }
Sure, but why incur the expense of using the ereg() parser? If you're only
ever going to be testing whether $song is a number or not, use
http://php.net/is-numeric.
Cheers
Jon
safe enough would be to put this at the begining
if(!ereg('^[0-9]+$',$song) {
die('Sorry...')
}
Rick Beckman wrote:
>song.php is the file that I'm using as my template file, and it calls
>information from the includes/ directory, which the file "1" would be in. If
>someone would please look
song.php is the file that I'm using as my template file, and it calls
information from the includes/ directory, which the file "1" would be in. If
someone would please look at song.php (I stripped it down to the basics
pretty much) and let me know the best and most secure way to do what I want
it
3 matches
Mail list logo