Question

Setting up PHP Cron which is using SOAP WSDL and returns a PDF file

I want to set up PHP Cron file which is using SOAP WSDL and it returns a PDF file after executing the SOAP WSDL. could anyone guide me how to do it properly i am using

          • php -q /home/path to file/auto.php

but this is not responding

when I use the direct url its working properly.

Thanks alot in advance.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

We’ll need a bit more info in order to figure out what’s wrong. I’d recommend starting by logging the script’s output to a file, and then waiting a minute until the cronjob runs and seeing what it outputs.

* * * * php /home/path to file/auto.php >>/home/path/logfile.txt 2>&1