Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
have a problem with get_theme_url()
#5
Alessio_roma Wrote:When i use the function file_exsists($dirfile) it returns false. Why?
Because file_exists() needs a path to the file on the server, the browser need the URL where it can retrieve the file. The constants Carlos mention are paths on the server, something like "/public_html/data/other/", and $SITEURL as mentioned by Mike will return something like “http://example.ms/”.

I hope you understand the difference Smile
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
have a problem with get_theme_url() - by Carlos - 2010-05-14, 04:56:02
have a problem with get_theme_url() - by Zegnåt - 2010-05-14, 05:19:18



Users browsing this thread: 1 Guest(s)