You are here: if_exist question « PHP Programming Language « IT news, forums, messages
if_exist question

Posted by Knut Krueger on 05/29/07 16:23

Hi together,
I would like to test whether localhost ia on or off
I tried to lacate a file

Localhost: XAMPP with php [PHP: 5.0.4]

$file="http://localhost/test_ob_localhost_online.html";
if (file_exists($file)) echo("Localhost eingeschaltet");

The path is ok I am able to open the file i the browser
I tried also :
$file="test_ob_localhost_online.html";
if (file_exists($DOCUMENT_ROOT.$file))
both are not working


As I know is if_exists working on the local machine.
Is it local from the php view, means at the server or local from the
client view?
Viele Grüße Knut

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация