PHP: moving form $_FILES to $_GET -


i have 1 old function need edit

dosome($_files['image']); 

my quesiton how can use same function in order file form instead of uploading it?

if change to

dosome($_get['image']); 

it doesn't sound work...

files uploaded through form end in php's $_files superglobal. can't* change that.

* if modified php's source suppose.


if you're talking passing filename dosome() function, check if function's argument array or not , handle accordingly. (array = $_files, string = not $_files)


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -