function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cinov8cinov8 

PHP in Sites?

I am converting my website to Sites, but have some PHP script running on one page. Can Sites/Force.com host this code so that it continues to run or do I need to host that particular page outside the platform for now?

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
RyanGuestRyanGuest

You can't run PHP from Salesforce, so you can't use it for Sites.

 

I'd suggest hosting your page elsewhere for now, until you convert the code to Apex/VisualForce.

All Answers

RyanGuestRyanGuest

You can't run PHP from Salesforce, so you can't use it for Sites.

 

I'd suggest hosting your page elsewhere for now, until you convert the code to Apex/VisualForce.

This was selected as the best answer
cinov8cinov8
That's what I thought...thanks.