RunPee

The app that tells you the best time to

run and pee during a movie without missing the best scenes.

100% free (donation supported) Apple App Store | Google Play Store

Learning lots of new things with PHP

Read Time:1 Minute, 24 Second

One of the important features I would like to implement on RunPee.com is to let a user schedule an email reminder so that they can be prompted to come back to the site and update it. For instance after they see a movie they might want to be prompted to come back to RunPee and vote on a peeTime that they used, or something like that.

First off I have to figure out how to send and email through PHP via Flex. Turned out to be surprisingly simple. My only problem was that I copied some of the PHP code from a tutorial and then wrote part of it myself. The end result was that I called a variable $header in one place and $headers in another. PHP was nice enough to fail silently so that it took a bunch of digging before I noticed the problem.

I posted the code for doing this over at polyGeek.com.

——Content continues below——

The World’s Most Indispensable Movie App

The RunPee app tells you the best times to
run & pee during a movie
so you don't miss the best scenes.


As seen on

Download the RunPee app.
100% free (donation supported)

Get the RunPee app at the Google Play Store       Get the RunPee app at the Google Play Store

Read more about the RunPee app.



Beyond that I needed to figure out how to run a PHP script on a timer so that I could check the database to see if there were any emails to send out. Again, this turned out to be very simple. In the Cpanel there’s a service called Cron jobs – read a tutorial on it here. That does exactly what I need.

Now I just need to write the SQL and create the UI for entering a reminder. This is one of the few big ticket items left on my 2Do list for RunPee. The other is deepLinking. Which would have been easier to do had I built it in from the beginning but no matter. I’ll tackle that tomorrow.

RunPee Shop

Don’t miss your favorite movie moments because you have to pee or need a snack. Use the RunPee app (Androidor iPhone) when you go to the movies. We have Peetimes for all wide release films every week, including Ghostbusters: Frozen Empire, DUNE part II, King Fu Panda, The American Society of Magical Negroes and coming soon , Godzilla x Kong: The new Empire  and many others. We have literally thousands of Peetimes—from classic movies through today’s blockbusters. You can also keep up with movie news and reviews on our blog, or by following us on Twitter @RunPee. If there’s a new film out there, we’ve got your bladder covered.

Movie Reviews

Movie Review – Immaculate

Immaculate blew me away. I did not prepare myself adequately. I want to first address the graphic…

Netflix’s Three-body – first episode review

First, let me start with some context. I’m a born and raised in China kind of Chinese…

Movie Review – Ghostbusters: Frozen Empire

I didn’t have high hopes, but this was better than I expected. That isn’t a surprise…

Adam Savage Tours the Ghostbusters “Frozen Empire Firehouse” with director Jason Reitman

In this fascinating YouTube video, Adam Savage, known for his work on MythBusters, takes a tour of…

Movie Review – The American Society of Magical Negroes

“Welcome to the American Society of Magical Negroes!” is said to Aren (Justice Smith) as his world…

Movie Review – Love Lies Bleeding

Love Lies and Bleeding was bloody awful. I’ve become quite the fan of A24 Productions and they…

Movie Review – Knox Goes Away

Knox Goes Away was a fantastic movie. It kept you engaged for almost two hours. It gives you hope…

Movie Review – Arthur the King

If you’ve seen the trailer for this movie then you know pretty much everything you need to…

Comments

Leave a Reply

RunPee