string - How do I get a file's path in PHP? -
i have check using file_exists function... but, if use
if (file_exists('http://horabola.com/imagens/dt_2845.jpg')) { //code }
it doesn't work...
i know , i'm sure file "dt_2845.jpg" exists in folder "imagens" .... now, how check that? how server's file path?
try:
if (file_exists($_server['document_root'].'/imagens/dt_2845.jpg')) { //code }
good luck
Comments
Post a Comment