• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

Movie Listings

Started by MadTxn, January 02, 2004, 09:50:51 AM

Previous topic - Next topic

MadTxn

I wasn't sure were to put this, so mods, feel free to move this as you see fit.

As per the request/suggestion by fishboy, I modified my movie listings script to accept theaters in the URL.  So if someone wants to host it for people, it's now possible.

Usage:

http://someservername/somedirectory/listings_rss.php?theater1=theater1&zip1=zip1&theater2=theater2&zip2=zip2...

So, for instance, for my theaters, I use:

listings_rss.php?theater1=Muvico&zip1=21076&theater2=UA Snowden Square&zip2=21046&theater3=CO Rio 14&zip3=20878&theater4=AMC Hoffmann Center 22&zip4=22314&theater5=AMC Columbia 14&zip5=21044


I only tested it with the theaters I know, so please let me know if you get any weird behavior.

joelw135

What do I have to do to change it to receive one theather only? the name of the Theather is Regal Commerce Center 18 zip 08824
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Eitel

Quote from: joelw135What do I have to do to change it to receive one theather only?

Just call it like this:

http://someservername/somedirectory/listings_rss.php?theater1=Theater Name&zip1=Theater zip

MadTxn

Just use one theater name and zip code.


listings_rss.php?theater1=Your theater here&zip1=theater zip here


The script is dynamic so it *should* be able to accept any number of theaters.

joelw135

Do I change any thing in the script?
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

MadTxn

Nope.  That's the beauty of it.

fishboy

In case anyone is interested, here is my PHP Script to get stock information from Yahoo.  It displays the stock name, current price, and change as one rss entry (i.e. ^DJI 10463.48 +9.56).

The format to use this script is:
http://someservername/somedirectory/YahooStocks-rss.php?symbols=symbol1+symbol2+symbol3...
For example:
http://someservername/somedirectory/YahooStocks-rss.php?symbols=^dji+^ixic+^gspc+aivsx
You can enter as many symbols as you want.  Goto http://finance.yahoo.com to look up symbols for a particular stock.

EDIT:  FYI, the file size is only 936 B (.936 KB), not 936 KB as incorretly reported by the board.
Axim X5 Advanced, Windows Mobile 2003

joelw135

When I try to get the movie listing nothing comes up. My provider does not allow numeric IP.  When I try it in IE I get this error:
Fatal error: Call to undefined function: file_get_contents() in /home/virtual/site66/fst/home/jwaxman/public_html/listings_rss.php on line 68

And this is the important part of the rss:

listings_rss.php?theater1=Loews New Brunswick&zip1=08824
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

fishboy

joelw135,

I don't know if this is causing your problem, but I noticed that in your address:

listings_rss.php?theater1=Loews New Brunswick&zip2=08824

zip2 should be zip1, the next theater would be theater2=...&zip2=... etc.

Oh, and MadTxn, nice job!  :)
Axim X5 Advanced, Windows Mobile 2003

joelw135

I just copied it wrong, it is correct in script., and I changed it in above post.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

fishboy

FYI.  I tried your parameters using IE with my server and it worked fine for me (although I did get a weird error the first time).  Most likely is a problem with the server that is running the script, not the script itself.
Axim X5 Advanced, Windows Mobile 2003

joelw135

Ok I got to figure out what the problem is, really want this to work.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

fishboy

What version of PHP Server is your server running? I am using PHP 4.3.4.
Axim X5 Advanced, Windows Mobile 2003

joelw135

Really don't know, it is on my sons, which is remote.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

joelw135

I guess I will have to wait until someone is willing to host it.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket