Error 403 when calling phpinfo();

Status
Not open for further replies.

vocabul2

New Member
Messages
3
Reaction score
0
Points
1
Hello,

I develop my site locally, and I've got the lastest version of PHP. However, when I upload my site and run it on the x10 servers, I get some errors. I wanted to make sure if that's because of the version differences, so I added phpinfo(); to my index.php script. Now, it gives a 403 error. If I remove the phpinfo(); everything works as usual.

Thanks for your help.
 

Dead-i

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

As Angus said, phpinfo() is currently disabled. However, I can confirm that your account is using PHP 5.5.24. :)

Please let us know if you have any further questions.

Thank you,
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
and...
with [ cPanel-x3 ] theme
on cPanel-x3's home page - click the "Select PHP Version" icon
you will 'see' your current and what other version(s) you can change to
 

vocabul2

New Member
Messages
3
Reaction score
0
Points
1
Hi vocabul2,

As Angus said, phpinfo() is currently disabled. However, I can confirm that your account is using PHP 5.5.24. :)

Please let us know if you have any further questions.

Thank you,
Programmically,

Code:
echo phpversion() ;

will give you the PHP version.
and...
with [ cPanel-x3 ] theme
on cPanel-x3's home page - click the "Select PHP Version" icon
you will 'see' your current and what other version(s) you can change to

Thank you all! I was able to solve my problem.
 
Status
Not open for further replies.
Top