After migrating to the new panel PHP will not run

Hi,

After migrating to the new panel, none of my PHP code will execute, either from a .php page or from within an html page.

I’ve searched the forum and tried changing PHP version back to 5.4 or 5.2 but this didn’t work.

I’ve also tried added the line:-

AddType application/x-httpd-php .php .html .htm

to my .htaccess file

but this didn’t work either.

Can you assist?

Thanks

What’s the site URL and the pages that aren’t working right?

@Infinity

Its alfretonctc.000webhostapp.com.

As an example, index.html isn’t working, also display_calendar.htm

Can you delete your .htaccess file please?

What am I looking for that isn’t working sorry?

I deleted the file, there’s no change.

The bit that’s missing is an include of file next5.php which reads the MySQL database and displays the next five events in a calendar table.

Have you updated the configuration to your new MySQL database/username/password/localhost is the host now.

Yes, I updated all of the MySQL variables to the ones on the new panel

And imported your database obviously sorry for the stupid question?

Yes all of the data is there in the correct format

1 Like

Does your code contain PHP shortags?

No, they all start with <?php

Can you make a new file on public_html called info.php or similar and place

[code]

<?php // Show all information, defaults to INFO_ALL phpinfo(); ?>[/code]

Save and view the page to see if it loads?

It just shows the php code on the screen:

Odd! Lemme see then hmm…

the file is called phpinfo.com

sorry its actually phpinfo.php

Did you create this within 000webhost file manager?

No I ftp’d it from my laptop

Can you please try via the File Manager.

If this works then there will be some settings to tweak with your FTP.

Create a new file within http://files.000webhost.com and call it whatever.php and paste the code, save and close.

OK, this one is called info.php, and it does produce some output. I’m using Microsoft Expression on my laptop