Website URL
http://sithaso.infy.uk/
Error Message
I just deployed a website and its using a MySQL REST API via a php file. When running locally during development everything works on my PC. From the look of things, the WebApp when deployed is able to read the contents and display them, but it seems I cannot do Create, Update and Delete calls against my database.
Its giving an “Interval Server Error” when executing insert, update and delete but select statements work
Other Information
The REST API I am using is based on this PHP library, GitHub - mevdschee/php-crud-api: Single file PHP script that adds a REST API to a SQL database
Reproduction
Click on the Hamburger > My Family Records
Click on the Add Button (top right of table)
Add something on the form
Click Save
It won’t work, unless the API calls come from the same domain
InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools.
To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…
6 Likes
Admin
April 15, 2025, 8:43am
3
An “Internal Server Error” sounds like the PHP code is crashing. Does this help?
When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500.
There are typically two reasons which can cause this error:
The PHP code has crashed.
The .htaccess file contains invalid rules.
Here are some things you can try to debug and fix this.
Fixing crashing PHP code
A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed.
Gett…
7 Likes
system
Closed
April 22, 2025, 8:43am
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.