Premium Membership
Subscription graphics design php html youtube
Gold Subscription with Silver access
graphics design php html youtube
Live Support
Contact us by live help [photoshop, website design, tutorials]
Not available on weekends

Check if file exists




This tutorial will show you how to check if a file exist on your server. You can use this to check for install.php or some files like that before you run a script.

Steps :
Create a php file and add the following script. I will explain what it does but it should be easy to figure out.

IF(file_exists("install.php"))
{
error("You must remove the install.php file before going any further");
}

As you can see the script checks for "install.php" and if it finds it then it gives and error. You can use this to do other things if the file is found such as run a script, update a database and much more..

 



New Subscribers



Subscriber

coopvet2000

Platinum Subscribers

#1
Subscriber

inthee30zone

Platinum Subscribers

#2
Subscriber

kowalski

Silver Subscribers

#3
Subscriber

MikeMc

Platinum Subscribers

#4
Subscriber

MikeMc

Silver Subscribers

#5




Our Sponsors



Horror Movie News
Advertise with Western Studios.net
PHP Nuke themes, stock photos, icons, drupal themes and more.
Custom jobs at low cost, free lancers and service buyers.


Downloads



Latest in downloads

Most downloaded


Jobs





Community

Western Studios is an award winning website creating website disign and professional php scripts.

Associated Sites

Marketplace Themes, scripts, icons and images

Themes site PHP Nuke themes preview site.