Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron job help

Discussion in 'General Discussion' started by FUNKAM55, Sep 2, 2014.

  1. FUNKAM55

    FUNKAM55 Registered

    Sep 8, 2012
    Likes Received:
    Trophy Points:
    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


    eg pdfgen.php?ref=4044

    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
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice