Welcome Guest, Not a member yet? Register   Sign In
file exist check failing
#1

[eluser]bhakti.thakkar[/eluser]
hi all,
some PDF's generated by my application on click of "save and print" are directly stored on the server (remote). there is a view to see the PDF's generated till date and the user can access that PDF as and well he wants. but there are cases when the file is move to a different location or is deleted because of some reason. i want to check where the file still resides on the specified path or not.. how can i do so. i tried if( file_exists($source)) but it doesnt work. how can i do this

also tried below as i am accessing files on remote server:

Code:
if (fclose(fopen($source, "r")))

    {
        $status = "present";
    } else {
        $status = "not present";
    }
but even this is not working
Thanks


Messages In This Thread
file exist check failing - by El Forum - 02-23-2009, 04:13 AM
file exist check failing - by El Forum - 02-23-2009, 05:06 AM
file exist check failing - by El Forum - 02-23-2009, 05:16 AM
file exist check failing - by El Forum - 02-23-2009, 05:25 AM
file exist check failing - by El Forum - 02-23-2009, 05:28 AM
file exist check failing - by El Forum - 02-23-2009, 06:11 AM
file exist check failing - by El Forum - 02-23-2009, 06:17 AM
file exist check failing - by El Forum - 02-23-2009, 06:31 AM
file exist check failing - by El Forum - 02-23-2009, 07:00 AM
file exist check failing - by El Forum - 02-23-2009, 10:20 PM
file exist check failing - by El Forum - 02-23-2009, 10:35 PM
file exist check failing - by El Forum - 02-23-2009, 11:20 PM
file exist check failing - by El Forum - 02-24-2009, 05:36 AM
file exist check failing - by El Forum - 02-24-2009, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB