Hola! Alguien podria ayudarme con esto? Necesito saber si un archivo existe o no, el tema es que el nombre del archivo se forma por variables que pasa el usuario.
No encuentra ninguna y ya imprimi en pantalla los nombres y estan correctos
Código PHP:
dim fs, file
set fs = Server.CreateObject("Scripting.FileSystemObject")
archivo=URLDestino & "/" & MyYear & "/" & CurrentDay & MyMonth & MyYear & ".pdf"
if fs.FileExists(server.mappath(archivo)) then
response.write(existe)
end if
set fs=nothing
A quien pueda ayudarme Gracias!