im trying to get an exe file from site web and put it in disk drive here is my code
@file_put_contents("C:\program.exe" , @file_get_contents("http://localhost/program.exe"));
some help please ?
im trying to get an exe file from site web and put it in disk drive here is my code
@file_put_contents("C:\program.exe" , @file_get_contents("http://localhost/program.exe"));
some help please ?
Why not just use copy()
?
copy("http://localhost/program.exe","C:/program.exe");
Note that the cause was probably the unescaped backslash - I've used a forward slash here because Windows will silently convert it.