Search code examples
phpinternal-server-error

500 Internal Server Error Appear in every two minutes


I am working on the script which is getting data from one of the website in the form of rss feed (XML) using curl and i am saving that data into database but the issue is after every 2 minutes the 500 Internal Server Error page appear.. Note: script is only running and saving data into database its not returning or not echo any thing.


Solution

  • I Found the solution Its was happening because when we are running the script on the browser than it check that whether the script is returning something or not it was checking for 2 minutes after 2 minutes it give 500 internal server error...

    But if we will run that script on crone than its working fine and running till end.