The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron job help

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

  1. FUNKAM55

    FUNKAM55 Registered

    Joined:
    Sep 8, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    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.
     
Loading...

Share This Page