FUNKAM55

Registered
Sep 8, 2012
3
0
51
cPanel Access Level
Website Owner
Hi, I need to run a cron job.

I have a php file which creates a pdf, this works fine.
But I have over 1000 pdfs I need to generate so would prefer to use a cron job rather than create 1000 manually (ie click on the button 1000 times).

I have the following page which when clicked creates the pdf

pdfgen.php?ref=$ref

eg pdfgen.php?ref=4044
pdfgen.php?ref=444

The page uses the variable $ref , there are over 1000 refs in the database.

I need it to run this page for every $ref in the database

How do I do this please?

Hope I explained this ok, thanks in advance
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello :)

This forum is primarily intended for discussions of the cPanel/WHM software. You will likely receive more user-feedback for this topic on a forum dedicated to discussions of PHP or web design in general.

Thank you.