#!/usr/bin/perl use strict; my $file_name = "testme"; my $full_file = "../../htdocs/images/photos/$file_name"; my $parse_name = ( split( "/", $full_file) )[-1]; print $parse_name;
In reply to Re: Scrubbing a local path in a file upload
by bichonfrise74
in thread Scrubbing a local path in a file upload
by sier
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |