PHP __FILE__ directive is not working correctly, what can I do?

Mobile
feeds
Welcome Login | Register

PHP __FILE__ directive is not working correctly, what can I do?
Reply Your Comments:
Click this button if you are interested in replying to this topic and leave your comments
Sent To Friend
CLick this button if you want to send this page to a friend.
Subsribe To Rss Feeds
Subscribe to RSS
CLick this button if you want to subscribe to this RSS Feed. You can use your browsers feeds burners if you have mozilla or internet explorer 7 or higher and keep up with updates.
  Forums Index
      » PHP Forums
        » » PHP __FILE__ directive is not working correctly, what can I do?
PHP __FILE__ directive is not working correctly, what can I do?
Post Description: php file directive is not working correctly what can i do PHP
Post Tags:
This Post Has Been Viewed 733 Times Since Mon Nov 06, 2006 10:46 pm Author bigger_travis with 2 replies
Next Post »» Getting "ERROR_LOCK_TIMEOUT" Error Message, What Do Can Should I Do?
PHP __FILE__ directive is not working correctly, what can I do?
Advertise On This Page




There are some gallery scripts that depends on PHP's __FILE__ directive to return the absolute filesystem path of the current file. Due to a bug in PHP, __FILE__ returns a relative path in older PHP versions.

* In most cases, you can fix the problem by convincing your webhost to upgrade the PHP version.
* For some rare platforms, the bug still exists in the latest PHP version. In this case you need to file a bug report for PHP such that the bug gets fixed for that platform too. E.g. PHP 4.4.4 on SunOS 5.8 returns the filename without any path if any of the parent folders of your Gallery folder is not readable by the webserver user.


Leave Your Comments

Your Name
Your Email Address (Will Not Be Published)
Notify Me When Someone Replies to this Page
(An email will be sent to you when someone replies to your comments)
Your Comments
Include A Picture with your comments
Share
| More
Share this page by putting this URL in your comments to other websites like myspace, Facebook, Twitter friendster, Hi5, Groups, Boards, Forum or others. Just Copy and Paste this Code
URL:
To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it.
Embed:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
BBCODE:
Subscribe Feeds
Webmasters - Exchange Links With Us. Add related websites to this topic
Add Link:
Links Related to : PHP __FILE__ directive is not working correctly, what can I do?

Comments and replies About PHP __FILE__ directive is not working correctly, what can I do?
:: 1 :: Reply #127 Reply By bigger_travis On Fri Dec 01, 2006 12:40 pm
bigger_travis:
I had a customer that was hoting a site with a web host, they wouldn't upgrade their php, so i had the customer changed to www.webune.com, now their gallery works great.

Here is the link their gallery being hosted by www.webune.com:

http://www.overimage.com
:: 2 :: Reply #87913 Reply By jeyaram On Mon Dec 29, 2008 2:45 am
jeyaram:
dgdfdfgf ggggggggggggggggggggggggggggggggggg