cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get phpinfo to work on my ccgi server

aeneareid
Rising Star
Posts: 74
Thanks: 13
Registered: ‎24-03-2019

Can't get phpinfo to work on my ccgi server

I wanted to check the php settings on the ccgi server. So, I wrote a little php program containing the code:

<? phpinfo();?>

but it displays nothing. Also tried

<? echo phpinfo(); ?>

but that didn't work either.

What am I doing wrong?

3 REPLIES 3
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Can't get phpinfo to work on my ccgi server

You are not doing anything wrong. Hostopia have blocked a number of infrastructure commands to improve security and unfortunately phpinfo() is one of them Sad .

David
aeneareid
Rising Star
Posts: 74
Thanks: 13
Registered: ‎24-03-2019

Re: Can't get phpinfo to work on my ccgi server

Ah! I rather feared that might be the case.

Do you know if ftp is enabled from within php?

spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Can't get phpinfo to work on my ccgi server

PHP lists the ftp extension as present but I don't know whether it works. Worth giving it a try though. Smiley

David