unable to run php files

goldengoose9999

New Member
Messages
4
Reaction score
0
Points
1
Hi all, i am trying to run php files, on my free hosting plan. Php file don't execute, instead are only "read", and i see my php coding, instead of execute it. I tried to change browser (chrome and mozilla) but nothing changed. Oviously HTML simple file work correctly.
Please, may you help me?
Thanks in advance.
 

Anna

I am just me
Staff member
Messages
11,739
Reaction score
579
Points
113
There was actually two things that could be a problem with this.

The first thing is that in the install.php located inside public_html were missing its leading php tag, all php code blocks (weather part or the whole document) should start <?php and end ?>.
The end tag was there but not the start tag, this is so the server knows that what comes after is code to interpret and not html to display.

I did not check any of the files in the folder you have, it may be wise to check them through if they don't work as intended for you.

The other is perms set to 777 is very insecure (it means the world are allowed to write to the file).

In general, files should be 644 and folders 755
 
Top