surabaya web designer
cheap web promotion indonesia
design graphics and online shopping cart
     category      articles    
 

Adsense

Adwords

Article

Blog

CMS

CSS Style

Datacenter

Design Graphics

Flash Animation

Internet Radio

Messenger

Programming

Provider

Search Engine

Security

Security Web

SEF

SEO

Software

Software Web

How to find the full path to a file using PHP

If you want to setup .htaccess authentication you need to enter the full path to the .htpasswd file. If you dont know the full path and PHP is installed on the server, you can get some help here.

Below is a small PHP script that prints the full path to the directory it is placed in. Copy the code and paste it into a file called fullpath.php. You can then upload the file to the directory where you want to place the .htpasswd. Then point your browser to http://www.your-domain.com/path/to/fullpath.php

<?php
echo dirname(__FILE__);
?>


OTHER ARTICLES

Find duplicate content

Amazon Join with Microsoft

Google Win Against Yahoo

Yahoo want to buy Facebook

Feed Validator

How to validate your site

Yahoo Reject Microsoft

CSS validator