Jump to content

pdedecker

Members
  • Posts

    59
  • Joined

  • Last visited

About pdedecker

  • Birthday 05/05/1991

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Belgium, Europe

pdedecker's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I have to take back what I said. They recently started injecting popup ads in all their hosted sites. Too bad.
  2. Let me summarize here for a second. I need this data from the feed: The enclosure (MP3 file) of the latest item on the feed (currently: http://m.podshow.com/media/1737/episodes/3...-11-25-2006.mp3) The title of the latest item (currently: Tech101 Weekend - Zaterdag 25 november 2006) Am I using the wrong code to fetch these things?PS: I can't change the RSS feed (from which I'm pulling data).
  3. I typed this into my code editor: (edit) <?php // Prepare player $feedcontainer = file_get_contents('http://www.podshow.com/feeds/tech101.xml') or die(); $feedcont_start = strpos($feedcontainer, "<link>http://m.podshow.com/")+6; $feedcont_end = strpos($feedcontainer, ".mp3</link>")+4; $audiofile = substr($feedcontainer, $feedcont_start, $feedcont_end); $feedcont2_start = strpos($feedcontainer, "<title>Tech101")+7; $feedcont2_end = strpos($feedcontainer, "2006</title>")+4; $titlestring = substr($feedcontainer, $feedcont2_start, $feedcont2_end); echo "<b>\$feedcont_start:</b> " . $feedcont_start . "<br />" . "\n"; echo "<b>\$feedcont_end:</b> " . $feedcont_end . "<br />" . "\n"; echo "<b>\$audiofile:</b> " . $audiofile . "<br /><br />" . "\n" . "\n"; echo "<b>\$feedcont2_start:</b> " . $feedcont2_start . "<br />" . "\n"; echo "<b>\$feedcont2_end:</b> " . $feedcont2_end . "<br />" . "\n"; echo "<b>\$titlestring:</b> " . $titlestring . "<br />" . "\n";?> You can see the result at: (edit) http://www.pieterdedecker.be/test2.phpSo, I can see that the two strpos's of the first part can't be substr'd (2000 - 3000 < 0). I have to look into that. But what's up with the second part? They didn't even echo something. What do you mean? I don't use any PHP on my site except for the snippet that I posted here. Update: PodShow seems to have changed the "<enclosure url=" to "<link>". I changed that part, but it still didn't work.
  4. <?php // Prepare player $feedcontainer = file_get_contents('http://www.podshow.com/feeds/tech101.xml') or die(); $feedcont_start = strpos($feedcontainer, "<enclosure url=")+16; $feedcont_end = strpos($feedcontainer, ".mp3")+4; $audiofile = substr($feedcontainer,$feedcont_start, $feedcont_end); $feedcont2_start = strpos($feedcontainer, "<title>Tech101")+7; $feedcont2_end = strpos($feedcontainer, "2006</title>")+4; $titlestring = substr($feedcontainer, $feedcont2_start, $feedcont2_end); ?> As you can see, I'm trying to extract the enclosure and the title of the most recent item from a certain RSS feed. The first part is working, but if I echo $titlestring, it returns a huge part of the RSS feed. However, $feedcont2_end minus $feedcont2_start is only like 44 characters. What could be wrong here?You can find the feed at: http://www.podshow.com/feeds/tech101.xmlThanks in advance for helping me fix this! Update: the first part stopped working. It now also inserts a huge part of the RSS feed into my web page.
  5. Try this host, I really like them:
  6. Name: Ueuo.comPrice: FreeServer side scripting(s)/database(s): PHP (and one MySQL database)Space: 200MB, I believeBandwidth: 500MB/day (safety restriction), can be raised to unlimited if you simply shoot them an emailAds: you can choose to have ads automatically or manually inserted into your site so that you can fit them into the designWeb adress: subdomain.ueuo.com, Ueuo can also host your domain name if you point your nameservers to themAdditional Comments: really good. I have used them for quite a while, and I have no complaints.
  7. Hi,How can I let a graphic fade in?Thanks,Pieter
  8. Hi,I'm very new to ActionScript and I want to extract information from a web page. For example: let's just say that I want to display the number of the most recent version of Firefox. Then I'd have to process http://www.mozilla.com/en-US/firefox/ to get the version number. How can I do this?Thanks,Pieter
  9. I followed your advice, the 'votes' table now looks like this:I've also been able to solve the problem described in the first post of this topic. Thanks!
  10. Thanks for the advice. However, I think it's better not to merge the tables 'podcasts' and 'votes'.Why, you ask? Well, the 'votes' table will have a seperate column for each user. If my site has 100 users, the 'votes' table will have 101 columns.If I merge the tables with one another, the merged table will have 115 columns (or something like that) for 100 users...Second reason: I only need to access the 'votes' table if the user decides to vote. However, I need to access the 'podcasts' table to generate the podcast listings that appear on every page. Merging both tables would make the site slower instead of faster.That's my opinion, if you disagree, please tell me why.
  11. When I use your code, I get these two messages: What I'm creating is a digg.com-like thing for podcasts. The '+1', '0', '-1' tell my site whether the user has dug the listed podcast (+1), undug the listed podcast (-1) or none of both (0).'pdedecker' is a username (every user gets its own column in the rows table) and number in the first column is the ID of the podcast.
  12. It doesn't show any kind of error, and if I echo $getrating_listing->pdedecker, I get "-1" as result (instead of +1).Screenshot: http://img101.imageshack.us/img101/5862/minusonelm2.jpg
  13. This is my MySQL table: $getrating_result = mysql_query("SELECT pdedecker FROM votes WHERE id='0'");$getrating_listing = mysql_fetch_object($getrating_result);$getrating_rating = $getrating_listing->pdedecker; When I try to echo $getrating_rating, it returns '-1'. Why? Am I using the wrong code/syntax?
  14. So, I should place a <div> before opening the <table> tag?
  15. I'm not very good at it either, that's why I try to use those CMSes.Anyway, I hope you find a CMS that you like. Although most of them have multilanguage support, I noticed that often those translations are done badly and the translated "strings" were "ripped out of their context". If you'd like a complete index of all well known CMSes, go to http://www.opensourcecms.com/.CMS Made Simple might be a good one to start with. It helps you to build your site and it allows you to maintain a news section.Website: http://www.cmsmadesimple.org/A few minutes ago, I discovered another CMS that might interest you. It's called sNews, and it allows you to build a news site. That was what you wanted, right? :)Website: http://www.solucija.com/home/snews/Working demonstration: http://demo.opensourcecms.com/snews/ (login with 'admin' and password 'demo')
×
×
  • Create New...