how to check if file exist on other server.,
eg. server 1 is A
server 2 is B
in A there's a folder img and has a file test.txt inside
in B there's a folder img2 and has a file test.txt inside
A has a php program
B has no php program
this script below resides in server A
how to use file_exists to check if test.txt is existing on server B/img2 folder
eg. server 1 is A
server 2 is B
in A there's a folder img and has a file test.txt inside
in B there's a folder img2 and has a file test.txt inside
A has a php program
B has no php program
this script below resides in server A
Code:
if (file_exists('/img/test.txt')) { echo "exists"; }
Comment