I've tried using the var_dump(), the result was:
NULL Array
Search found 6 matches
- Sat Apr 12, 2008 5:01 am
- Forum: PHP - Code
- Topic: Foreach loop with the array of a public function
- Replies: 3
- Views: 377
- Thu Apr 10, 2008 1:53 pm
- Forum: PHP - Code
- Topic: Foreach loop with the array of a public function
- Replies: 3
- Views: 377
Foreach loop with the array of a public function
Hi, i need to do a loop of the array of this function found in the WebUI API: public function getTorrents() WebUI API: http://pastebin.com/m76205d0b I have this one, but it doesn't work. $utorrent = new uTorrent(); $utorrent->host = $_SESSION['host']; $utorrent->user = $_SESSION["user"]; $...
- Sun Apr 06, 2008 4:22 am
- Forum: PHP - Code
- Topic: Call code from URL
- Replies: 2
- Views: 88
Re: Call code from URL
I was thinking more like this or something: <a href="?action=recheckall">Recheck all</a> if ($_GET["action"]=="recheckall") //Forces a recheck of every torrent //Way number two (faster) $utorrent = new uTorrent(); $torrents = array(); //collects an array containin...
- Sat Apr 05, 2008 6:18 pm
- Forum: PHP - Code
- Topic: Call code from URL
- Replies: 2
- Views: 88
Call code from URL
I have this code: //Forces a recheck of every torrent //Way number two (faster) $utorrent = new uTorrent(); $torrents = array(); //collects an array containing every hash foreach($utorrent->getTorrents() as $torrent) { $torrents[] = $torrent[UTORRENT_TORRENT_HASH]; } //rechecks every torrent $...
- Sat Apr 05, 2008 2:34 pm
- Forum: PHP - Code
- Topic: Multidimensional Array
- Replies: 1
- Views: 82
Multidimensional Array
I use Yahoo Pipes to get some content using the a serialized PHP: $request = "http://pipes.yahoo.com/pipes/pipe.run?_id=DsfnOGlK3BGw4DuRJZhxuA&_render=php&search=alias"; $response = file_get_contents($request); if ($response === false) { die('Request failed'); } $phpobj ...
- Fri Apr 06, 2007 10:21 pm
- Forum: PHP - Code
- Topic: Help with sorting highscore
- Replies: 2
- Views: 890
Help with sorting highscore
Hi all you beautiful people I'm making a Flashgame with a php highscore. In my game I have a timer and I want the highscore to show me the lowest time. But the code is created to show the best score. I think I have to do something with the "rsort" or something. Can anybody help me with th...