×
  • remind me tomorrow
  • remind me next week
  • never remind me
Subscribe to the ANN Newsletter • Wake up every Sunday to a curated list of ANN's most interesting posts of the week. read more

Forum - View topic
Newsfeed problems




Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions
View previous topic :: View next topic  
Author Message
kazuki



Joined: 01 Dec 2002
Posts: 18
PostPosted: Sat Nov 13, 2004 5:13 pm Reply with quote
Hi,

I have registered a new account for the newsfeed and followed the instructions given, but when I uploaded the script it says wrong username and password. I logged in to my ANN account, it's okay when I checked the link.

example only:
http://animenewsnetwork.com/newsfeed/getnews.php?u=test&p=pass

I tried this on a direct link and it works but it wont work on my page (wrong username and password)

Code:

// Fetch the stored news
$result = mysql_query("SELECT * FROM annNews");
$annNews = mysql_fetch_array($result);

// If the news were last updated more than one hour ago, re-update them
if ($annNews['last_query'] < time() - 3600)
{
   // Fetch the news from ANN
   $a = file("http://animenewsnetwork.com/newsfeed/getnews.php?u=testuser&p=testpass");  // example only
   $n = addslashes(trim(implode("\n", $a))



Need some little help pls
Back to top
View user's profile Send private message Visit poster's website
Dan42
Chief Encyclopedist


Joined: 02 Jan 2002
Posts: 3782
Location: Montreal
PostPosted: Sun Nov 14, 2004 3:06 am Reply with quote
Weird. If it works on a direct link, it should definitely not give you "wrong username or password" in your script. What's your newsfeed username?
Back to top
View user's profile Send private message Visit poster's website AIM Address My Anime My Manga
kazuki



Joined: 01 Dec 2002
Posts: 18
PostPosted: Mon Nov 15, 2004 5:33 pm Reply with quote
Hi,

My apologies for the late reply, it works fine now. Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group