| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| PHP automation | |
|---|---|
| Tweet Topic Started: Jun 1 2005, 02:11 AM (785 Views) | |
| blakeo_x | Jun 1 2005, 02:11 AM Post #1 |
![]()
I cant believe its not PHP!
![]() ![]() ![]() ![]() ![]()
|
I have a script I created in PHP that is something like a mailing list. Instead of having to open a page or push a button every time I want to send out the emails, I want the script to run on the first of every month automatically. Please help. Try to keep your answer simple step-by-step instructions if possible as Im still warming up to PHP. |
![]() |
|
| Das | Jun 1 2005, 02:14 AM Post #2 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You need to set up a Cron Job to run monthly. Do you have Cpanel? |
![]() |
|
| blakeo_x | Jun 1 2005, 02:31 AM Post #3 |
![]()
I cant believe its not PHP!
![]() ![]() ![]() ![]() ![]()
|
yes |
![]() |
|
| Das | Jun 1 2005, 10:30 AM Post #4 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Click on Cron Job in Cpanel. Put:
in the area where it tells you to add a line and in your script change it to be:
Thank Rory for the code. |
![]() |
|
| FearKiller | Jun 1 2005, 04:06 PM Post #5 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
This is what I would use for security rather than a GET id as this will make the script more efficient and secure.
|
![]() |
|
| Rory | Jun 1 2005, 05:03 PM Post #6 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
^ thanks, i knew there was a better way to do it... (das ein nicked the code i wrote for him and posted it here :P) |
![]() |
|
| Das | Jun 1 2005, 11:01 PM Post #7 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Sorry, I figured it was ok. |
![]() |
|
| Seth | Jun 1 2005, 11:24 PM Post #8 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
With proper attribution it is. |
![]() |
|
| Das | Jun 1 2005, 11:29 PM Post #9 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
There was never a copyright on the code. Does that matter? |
![]() |
|
| Seth | Jun 1 2005, 11:34 PM Post #10 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You can't copyright programming logic. Still it is polite to let others know that the code is Rory's. *Seth copyrights infinite loops
|
![]() |
|
| Das | Jun 1 2005, 11:36 PM Post #11 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Can't you just add '//Made by User'? Done. *Das copyrights everything else
|
![]() |
|
| Jory | Jun 2 2005, 04:35 AM Post #12 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
*Qj cares not about your copyrights Think adding //Code made by Rory (in this case) is all you can do. It gives him the credit, what is all you can give him, I'd say. |
![]() |
|
| Rory | Jun 2 2005, 04:55 AM Post #13 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I wasn't massivly bothered :unsure: |
![]() |
|
| Das | Jun 2 2005, 10:42 AM Post #14 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What would you replace REMOTE_ADDR and SERVER_ADDR with? |
![]() |
|
| Gornakle | Jun 2 2005, 10:49 AM Post #15 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You don't. $_SERVER['REMOTE_ADDR'] returns the address of whoever accessing the script, $_SERVER['SERVER_ADDR'] that of the server. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
12:54 PM Jul 11
|




![]](../../../../0/1/0/p601690/pipright.png)




12:54 PM Jul 11