Hosting PHP File

Hello, I'm trying to host a PHP file that I can ping. However, when I send to the URL, it returns with a failed callback. Is this due to the site not supporting PHP? I'm not using the PHP file to generate any website content. It's simply being hosted on the site.

2,088 Views
Message 1 of 5
Report
4 REPLIES 4

@boolsis PHP is server-side script so wherever you're hosting the code, the host server has to be able to run it. Weebly doesn't support PHP server-side scripting so your PHP isn't going to run if hosted on a Weebly site.

2,071 Views
Message 6 of 5
Report

@boolsis @PaulMathews 

However - if you are self-hosting your Weebly site then PHP 5.3 or higher is a requirement from WeeblySmiley Wink

2,059 Views
Message 6 of 5
Report

Right you are @NJRFTF. In a self-hosted environment, PHP scripts would work (https://cloud-developer.weebly.com/cl_gs_hosting.html). However @boolsis, since your PHP isn't working, I'm presuming that you are hosting your site on Weebly's servers, yes?

2,055 Views
Message 6 of 5
Report

@PaulMathews @NJRFTF Correct. I'm hosting it on Weebly's servers. Since starting this thread, I've been searching for ways to host this file to no avail. I don't suppose either of you know of a simple way to host a single PHP script?

2,043 Views
Message 6 of 5
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.