I have a php script that check a gmail inbox for incoming messages then turns them into support tickets. For some reason it doesn’t work on infinity, is javascript disabled on infinityfree hosting accounts by default or is it even acceptable?
JS is enabled, and runs in browsers not servers. Please use the correct category next time, and provide more information we can use to assist you, like the error message, what you have tried, and where this error can be found.
Thanks for the quick reply and the observation. Here’s what’s happenning:
I have the php script at the root of my web folder. A cron job runs every 5 mins to activate this script, mainly running it through the browser (i.e. https://cndhelp.free.nf/email_processing.php ) That’s what I’m trying to run and it doesn’t work . I wish I could share the source code of that particular PHP script here but it doesn’t allow me to upload attachments yet.
Here is the reason
So your script will not run as intended
How can I overcome this inconvenience? Is there another way to trigger a PHP script to run when it fetches emails from a free provider service (Google) ? Is it the cron job or is it IMAP not being enabled on infinityfree ?
Something that is intended is not something to overcome.
Did you read the reply?
Yeah, I guess IMAP is the problem. Thanks anyway. I guess I’ll have to use an API that works similarly to the PHP script I was trying to run.
Help me with just one more question… is at least cURL enabled on infinityfree ?
Please read
IMAP is indeed disabled on our hosting. The overwhelming majority of accounts using it were using it to try and hack people’s email accounts, and not use it for anything legitimate.
cURL is supported on our hosting, so you can use a HTTP API to retrieve email instead, if the email provider has such an API.
Excellent! thank you Admin for poonting that out and suggesting a solution. Much appreciated.