Jump to content

Recommended Posts

i believe you can accomplish this with cron jobs.

 

here you go:

http://www.google.com/search?q=cron+job+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

 

take your pick from the tutorials listed there

 

Cron job is for UNIX script not to run php, how can i run the php?

taken from: http://www.webmasterworld.com/forum88/6102.htm

 

 

 

If you don't have the php cgi installed you can use wget to run a php script via cron.

 

The command is simply:

wget -O /dev/null http://www.example.com/somescript.php

The -O /dev/null part means send the output to the null device so that no disk space is taken up with the HTML (or whatever) output from your script.

 

hope that helps!

taken from: http://www.webmasterworld.com/forum88/6102.htm

 

 

 

If you don't have the php cgi installed you can use wget to run a php script via cron.

 

The command is simply:

wget -O /dev/null http://www.example.com/somescript.php

The -O /dev/null part means send the output to the null device so that no disk space is taken up with the HTML (or whatever) output from your script.

 

hope that helps!

 

 

Thank you let me give it a try.

If by some chance cron jobs don't work, I've been working on a simple cron job alternative that runs your script every day at a certain time. It requires a MySQL database to run, but I could probably tweak it to work without it, and just use a flatfile.

If by some chance cron jobs don't work, I've been working on a simple cron job alternative that runs your script every day at a certain time. It requires a MySQL database to run, but I could probably tweak it to work without it, and just use a flatfile.

 

How does that work, if I may ask?

If by some chance cron jobs don't work, I've been working on a simple cron job alternative that runs your script every day at a certain time. It requires a MySQL database to run, but I could probably tweak it to work without it, and just use a flatfile.

 

This did not work, can you please help me out with your script...

look in your cpanel and you'll see the cron job button near the bottom under "Advanced" click on that then click 'standard'.

 

then on the command to run line put something like this

php /home/yourusername/public_html/afolder/ascript.php

 

make sure you have a space after 'php' though

 

then set the timer

look in your cpanel and you'll see the cron job button near the bottom under "Advanced" click on that then click 'standard'.

 

then on the command to run line put something like this

php /home/yourusername/public_html/afolder/ascript.php

 

make sure you have a space after 'php' though

 

then set the timer

 

that did not work...

Okay this is what i put

 

---------

php /home/username/public_html/portscanner.php?domain=domain.com&rangestart=60&rangestop=100

-----------

I set it to run every min, of every hour, of every day, of every year...

 

Still does not work,

i don't think you can have variables on the end of it. Try putting those inside the script...the domain and rangestart and stop. Then is portscanner.php in any folder? or is it right next to your index.php file?

 

Finally worked,

 

its running with the following...

 

/ramdisk/bin/php5 /home/username/public_html/portscan.php

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.