This is a discussion on "[SOLVED] Whoever solves this for me gets a nice X-mas card!" within the PHP Forum section. This forum, and the thread "[SOLVED] Whoever solves this for me gets a nice X-mas card! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Whoever solves this for me gets a nice X-mas card!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
[SOLVED] Whoever solves this for me gets a nice X-mas card!
OK, I don't know if this is in the right forum so please excuse me if not. I have a problem. Well, not so much a problem, I want to do something and have no idea where to start.
If you look at minute44.com and scroll right down to the footer you will see my "Movie news at Empire" section. At the moment I just update that when I feel like it but what I'd like it to do is pull the three most recent headlines from the news RSS feed: http://www.empireonline.com/rss/ I trust someone will have the knowledge to do this if not done it before. Thanks in advance Dan
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
This is a mixture of RSS(XML) and PHP.
You need to grab the feed, then use an XML parser or regex to output stuff! You can grab the feed with file_get_contents() or if they have leech protection, lookup CURL.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Thanks alex but I know nothing of PHP at this point so can you make the process simple for me... I kinda get what you're saying it has to do but I can't code PHP.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Well you won't be able to do this without PHP.
Maybe try customizing this tutorial? http://openkapow.com/blogs/support/a...from-Digg.aspx
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Whoever solves this for me gets a nice X-mas card!
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Moving to PHP forum
Cheers
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Cheers matey
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Okay as promised, this does it for you...
Now all you need to do is save this as a php file
Then... on your page (that is .php or being interpreted as php by the server) you simply add this where you want the links to appear
Cheers
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
You're certainly on to something mate... it's not working though...
You on MSN...? Perhaps we can discuss getting this working.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
It's working fine for me.. Are you pages .php on a compatible server? If yes, are you receiving and error messages on page or in your logs?
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
look in the footer as it is now. view the source.
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Luke, isn't this using PHP5 objects? Maybe he's on PHP4.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
No, this is php4&5.
PHP is not able to open the file, something is refusing the connection. Be sure that you have the path to the file correct. Also, try adding the entire script as above into that page (at the top before <html> etc), then just drop the include part from the area you want to display it.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
ok, I've changed the path but now I'm getting a parse error....
look now and tell me what you think
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Have you removed the comments? Line 8 is nothing in the script I posted..
Be sure there is a { after the ) in the function declaration
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
my line 8 is:
the error I get is: Parse error: syntax error, unexpected T_VARIABLE in /home/sites/minute44.com/public_html/wp-content/themes/juicy-20/empirenews.php on line 8
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
Last edited by minute44; Dec 4th, 2007 at 17:44. |
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
What are the previous and next 2 lines?
Copy a chunk over please.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
There is nothing wrong with that line.
Can you post the whole code as you are using it because something has gone wrong here
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
from the top it goes:
Last Blog Entry: Annoying people.... (Jan 16th, 2008)
|
|
||||
|
Re: Whoever solves this for me gets a nice X-mas card!
Remove the comments maybe? Try this:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| looking for credit card processing service | CloudedVision | E-Commerce and Business | 9 | Jun 9th, 2008 10:50 |
| e-card help | aslanandbeez | PHP Forum | 0 | Apr 26th, 2008 15:53 |