Php not executing

Status
Not open for further replies.

cosmo.guffa64

New Member
Prime Account
Messages
5
Reaction score
0
Points
1
I searched for my problem which was, the php index file was downloading instead of executing, perhaps after an upgrade, as it was working fine last fall. So then I changed my .htaccess as suggested in this thread https://community.x10hosting.com/th...ead-of-opening-in-browser.194928/#post-934677 but now like the other person my php is not executing. I saw a reference to some " includes.magicquotes.inc.php" that is required to make my DOCUMENT_ROOT work properly but there's not much info here or by googling about this file. Can someone help me restore my site ?
 

kendywor

New Member
Messages
27
Reaction score
0
Points
1
mostly likely the .htaccess is the fault, use the default/initial .htaccess code for the php script
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

I can't seem to find a hosting account attached to your forum account. Please could I have your cPanel username? :)

Thank you,
 

cosmo.guffa64

New Member
Prime Account
Messages
5
Reaction score
0
Points
1
Its cosmogen, thanks for looking into this. I tried removing all the .httaccess files except for the root one with redirects but this did nothing. I am going to put them back the way they were since it was working before and this is likely an upgrade/configuration issue
 

cosmo.guffa64

New Member
Prime Account
Messages
5
Reaction score
0
Points
1
Hey, can anyone help me with this ? This is the second time my site was broken by an upgrade...
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

Please could I have a link to the page that is not working correctly? :)

Thank you,
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
The issue is that the script you're using is a few years out of date, it declares "hex2bin" as an internal function which was fine for PHP 5.3 and below. In PHP 5.4 a hex2bin function was added as part of PHP (http://php.net/hex2bin). This was conflicting causing the page to not load. I renamed the function in your script to hex2bin_new() to prevent it from conflicting, your site now loads.

I would suggest updating the script you're using, not only for compatible reasons but for security reasons.
 
Status
Not open for further replies.
Top