-- Parse error index.php on line 145 --

All support enquiries for DFH go in here...

Re: Parse error index.php on line 145

Postby 333222333 » Thu Nov 17, 2011 5:30 am

SamEA wrote:Okay, I have figured out the issue after installing the script from fresh where no such error was shown.

This error is caused when short_open_tag is set to OFF in php.ini. The script throughout has many labels labelled as <? instead of <?php, where <? is referred to as a short open tag. Open php.ini and locate short_open_tag, change the value from Off to On followed by an apache service restart which should solve both of your problems.


i cant find the Php.ini FILE! :| where is it??
333222333
Newbie Member
 
Posts: 3
Joined: Thu Nov 17, 2011 3:48 am

Re: -- Parse error index.php on line 145 --

Postby SamEA » Thu Nov 17, 2011 9:25 pm

If you are on a shared web hosting platform, please ask your web hoster. You may need to use .htaccess in order to change values, as many shared web hosters do not allow the modification of the PHP.INI file.

If you are on a Dedi or VPS, use the PHPINFO(); function to help you find the php.ini file.

To change the short_open_tag to ON using .htaccess, insert the following line at the end of the file
Code: Select all
php_flag short_open_tag on


The above may or may not work, depends on your environment's limitations.
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: -- Parse error index.php on line 145 --

Postby 333222333 » Thu Nov 17, 2011 10:44 pm

thanks! it worked!
333222333
Newbie Member
 
Posts: 3
Joined: Thu Nov 17, 2011 3:48 am

Previous

Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 3 guests

cron