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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -