gummikana / email_mom.php

A small script that emails my mom when I'm abroad telling her that I'm alive.
Other
47 stars 6 forks source link

Why using a server side script? #1

Open gagarine opened 12 years ago

gagarine commented 12 years ago

Hello,

Your project is cute and made me smile. But I don't understand why you using a php script on a server instead of doing everything on your laptop with the python script (or PHP in cli)?

Have a nice day

gummikana commented 12 years ago

Well I have to use a network to figure out the geolocation of my ip address anyway. So I figured why not run it at a webserver instead of doing it as a python script.

Petri

On Fri, Mar 23, 2012 at 1:15 AM, Simon Perdrisat reply@reply.github.com wrote:

Hello,

Your project is cute and made me smile. But I don't understand why you using a php script on a server instead of doing everything on your laptop with the python script (or PHP in cli)?

Have a nice day


Reply to this email directly or view it on GitHub: https://github.com/gummikana/email_mom.php/issues/1

jasondavis commented 12 years ago

My question is the opposite. If the bulk of work is done in PHP and a cron job calls the Python script, why need python at all, couldn't the cron job call a PHP script instead?

gummikana commented 12 years ago

Cron job could totally do it. But I'm running windows as my main operating system...

Petri

On Sat, Mar 24, 2012 at 12:21 AM, Jason Davis reply@reply.github.com wrote:

My question is the opposite.  If the bulk of work is done in PHP and a cron job calls the Python script, why need python at all, couldn't the cron job call a PHP script instead?


Reply to this email directly or view it on GitHub: https://github.com/gummikana/email_mom.php/issues/1#issuecomment-4669028

jasondavis commented 12 years ago

Yeah me too, but doesn't windows have something similar, I read that it does I just haven't used whatever it was

On Fri, Mar 23, 2012 at 9:04 PM, Petri Purho < reply@reply.github.com

wrote:

Cron job could totally do it. But I'm running windows as my main operating system...

Petri

On Sat, Mar 24, 2012 at 12:21 AM, Jason Davis reply@reply.github.com wrote:

My question is the opposite. If the bulk of work is done in PHP and a cron job calls the Python script, why need python at all, couldn't the cron job call a PHP script instead?


Reply to this email directly or view it on GitHub: https://github.com/gummikana/email_mom.php/issues/1#issuecomment-4669028


Reply to this email directly or view it on GitHub: https://github.com/gummikana/email_mom.php/issues/1#issuecomment-4670662


Jason Davis ( Web & Software Developer ) { Website: http://www.codeDevelopr.com Twitter: @JasonDavisFL Dribbble: http://dribbble.com/jason-davis Forrst: http://forrst.com/people/jasondavis }

nvartolomei commented 12 years ago

On Windows you have http://en.wikipedia.org/wiki/Windows_Task_Scheduler, it's easy to configure.

jasondavis commented 12 years ago

To sign up for Facebook, follow the link below:

http://www.facebook.com/r.php?re=c559fe4f8e77cf243bda28c353d7eabb&mid=607cdd3G5af3edfeb152G0G46&key=AQAKHGMtr60g3pKxUQEH0NiKVUpE1Qd48Zau8BvtjU17p9A4zGDgxVg0Gfjpw2Qsqji83fSKC0nIwWFc&invid=501228771

Hi,

The following person invited you to be their friend on Facebook:

Jason Davis (Invite sent: Mar 29, 2012)

Facebook is a great place to keep in touch with friends, post photos, videos and create events. But first you need to join! Sign up today to create a profile and connect with the people you know.

Thanks, The Facebook Team

To sign up for Facebook, follow the link below: http://www.facebook.com/r.php?re=c559fe4f8e77cf243bda28c353d7eabb&mid=607cdd3G5af3edfeb152G0G46&key=AQAKHGMtr60g3pKxUQEH0NiKVUpE1Qd48Zau8BvtjU17p9A4zGDgxVg0Gfjpw2Qsqji83fSKC0nIwWFc&invid=501228771

This message was sent to reply@reply.github.com. If you don't want to receive these emails from Facebook in the future, please follow the link below to unsubscribe. http://www.facebook.com/o.php?k=26913d&u=100003716444498&mid=607cdd3G5af3edfeb152G0G46 Facebook, Inc. Attention: Department 415 P.O Box 10005 Palo Alto CA 94303

jasondavis commented 12 years ago

Hi,

CodeDevelopr is inviting you to join Facebook.

Once you join, you'll be able to connect with the CodeDevelopr Page, along with people you care about and other things that interest you.

Thanks, CodeDevelopr

To sign up for Facebook, follow the link below: http://www.facebook.com/p.php?i=501228771&k=AQDevpOmxOJeFpjCgHhD4cDyCh2XDoLnqGM7vdzPq3yW50FuulDgzVIJNMPAvxqhId5QWgRQrpkkbv9r&r&oid=280686918634735

To view the CodeDevelopr Page, follow the link below: http://www.facebook.com/codedevelopr

This message was sent to . If you don't want to receive these emails from Facebook in the future, please follow the link below to unsubscribe. http://www.facebook.com/o.php?k=AS0AlowBsvplDmO5&e=reply%2Bi-3772820-09e86fbaa3d489ea56832abb57f9e364b4031b3d-186818%40reply.github.com&mid=HMTA1MzgyMjI1OnJlcGx5K2ktMzc3MjgyMC0wOWU4NmZiYWEzZDQ4OWVhNTY4MzJhYmI1N2Y5ZTM2NGI0MDMxYjNkLTE4NjgxOEByZXBseS5naXRodWIuY29tOjEyNA Facebook, Inc. Attention: Department 415 P.O Box 10005 Palo Alto CA 94303

This message was sent to reply@reply.github.com. If you don't want to receive these emails from Facebook in the future, please follow the link below to unsubscribe. http://www.facebook.com/o.php?k=AS0AlowBsvplDmO5&e=reply%2Bi-3772820-09e86fbaa3d489ea56832abb57f9e364b4031b3d-186818%40reply.github.com&mid=HMTA1MzgyMjI1OnJlcGx5K2ktMzc3MjgyMC0wOWU4NmZiYWEzZDQ4OWVhNTY4MzJhYmI1N2Y5ZTM2NGI0MDMxYjNkLTE4NjgxOEByZXBseS5naXRodWIuY29tOjEyNA Facebook, Inc. Attention: Department 415 P.O Box 10005 Palo Alto CA 94303