Finding the full path name (absolute path) of a folder

With many applications it is neccessary to find the full path name of a folder and then enter it into the admin area of the application. This is required in PHP-eSeller to identify the location of the digital files, and it is required in PHP-SecureArea to define the secure folders.

Download, unzip, and ftp to the location of the folder and then call the file in your browser –

Click here to download the file

Another way of finding the full path name is to log in to the admin pages of PHP-eSeller or PHP-SecureArea and click on the menu item ‘PHP Info’ and look for SCRIPT_FILENAME. That will give you the full file name of that file you are looking at. From that you should beable to work backwards to the root of your web site or to any other part of your site.

Note that the full path name of the folder is not the same as the http url of the folder directory – it will not work.

New Product : PHP-KeyCodes, sell license codes online

PHP-KeyCodes is a new product which is used to sell software license key codes, pin numbers or any pre-generated codes using PayPal.  The key codes are entered into the item details and when a customer makes a purchase, the first key code is removed and sent by email to the customer.  This leaves the next key code ready for the next purchase. When the number of codes reach a lower limit, an email is sent to the site administrator.

The code for the ‘buy now’ buttons can be displayed in the admin interface and then copied on to your web pages.

PHP-KeyCodes is based on PHP-eSeller and includes many of its features including transaction list, sales reports and email newsletter facility.

For details refer to:


How do I reset the admin password in my application?

I have had a few users forget their password that they use to login to the admin area of either PHP-eSeller, PHP-SecureArea or PHP-KeyCodes.

The best way to reset the admin password is by using the myPHPAdmin facility in your server control panel. If you log in to your server control panel and find myPHPAdmin, then find the database for the application, and then click on SQL tab you will be presented with a box to enter sql.


UPDATE name_of_password_table_here SET userpassword = md5('admin') WHERE username = 'xxxxxx'

The name of the password table will either be ipn_tblpasswords, or sec_tblpasswords or key_tblpasswords depending on the application, and xxxxx is the username which is in the table.

This will then set the password to ‘admin’ for that username.

Further desciption of search system in PHP-eSeller templates

If you use PHP-eSeller and use the template system, the following describes the search function in a bit more detail.

The search system in the templates use the mySQL FULLTEXT search using the MATCH keyword.

The fields that are searched are in tblitems and are item_name, item_title, item_description, item_description_full and keywords

First, all MySQL stop words are ignored in the keyword phrase used in a search. Stopwords are commonly used words that generally do not add anything useful to a search phrase.

Second, alphabetic character case is ignored in a MySQL search, so you do not have to convert anything to all upper or lower case in order to search.

Third, any word found in more than 50% of the rows in the index will be ignored when you use the text search.

Fourth, the results will be automatically sorted by relevancy, so the more times the search words appear in a row in the index, the more relevant that particular entry will be.

Fifth, remember that MySQL does not index any words that are 3 or less characters in length, so very short words are ignored.

Sixth, hyphenated words are treated as separate words.

The important point is probably the third. What this means is that if you have 100 rows where each row has the word ‘computer’ in it, and you do a search for the word ‘computer’, you will get zero result. This is because the search term is not specific enough and hence is unable to return specific rows.