Azərbaycan dili Bahasa Indonesia Bosanski Català Čeština Dansk Deutsch Eesti English Español Français Galego Hrvatski Italiano Latviešu Lietuvių Magyar Malti Mакедонски Nederlands Norsk Polski Português Português BR Românã Slovenčina Srpski Suomi Svenska Tiếng Việt Türkçe Ελληνικά Български Русский Українська Հայերեն ქართული ენა 中文
Subpage under development, new version coming soon!

Subject: PHP

2007-10-31 11:54:20
But I still need to write the code ;)

And to get all those name's I have to make several of loops...

But right now I'm still figuring out how to get all the names of my players...

That's difficult enough for the moment :)
2007-10-31 13:04:48
Ok, is there anyone who's willing to help with php??

I'm having some trouble...
2007-10-31 13:59:33
It works :d:d:d:d:d
2007-11-02 20:22:09
Does anyone know what this means:

Warning: fsockopen() [function.fsockopen]: unable to connect to online.sokker.org:80 (Connection timed out) in /home/.../public_html/php/http.inc on line 766

Warning: fsockopen() [function.fsockopen]: unable to connect to online.sokker.org:80 (Connection timed out) in /home/.../public_html/php/http.inc on line 766
2007-11-02 20:45:31
you cant connect to online.sokker.org :)

xD
2007-11-02 21:10:59
Yes, I figured that out to...

But why is my question...
2007-11-02 21:38:27
please paste the line 766 of HTTP.inc :)
2007-11-02 21:59:42
$this->_socket = fsockopen( $this->host, $this->port, $errno, $errstr, 10 );
2007-11-06 17:13:46
I can't indeed connect to online.sokker.org...

I debugged a bit and found that after execution of this line:

$code = $http->post("/start.php?session=xml", $form, 'http://'.$http->host);

I get an error...
2007-11-06 18:25:58
In one free host where I was placing www.skranking.com.ar, I had to send an email to the admins since I couldn't exectue fsocksopen. Somehow they managed to disable it (I don't have a clue about Unix Administration). And I had to post 100 times in the host forum. After that they enabled it (the 100 posts was some kind of fee, since they wanted an active community).
(edited)
(edited)
(edited)
2007-11-06 19:14:36
I'm asking the owner of my hosting site if he know's the problem... He did tell me that the sockets are enabled so normally that could not be the problem...
2008-02-04 17:51:04
Does anyone know a good tutorial for curl?? I'm having some troubles with errors when I'm using it :)
2008-02-04 22:59:14
Hi,
I'm not sure if you're planning to use curl inside PHP code, but here you have a nice tutorial which combines both.
If you're planning to use curl in your own code, look it up in google using the keyword libcurl. If you prefer to use the command line tool, just search for curl + tutorial and you'll find a bunch of info.
Cheers!
2008-02-04 23:11:23
I just want to use curl to make connection with sokker to be able to download data...

I'm allready able to connect to sokker...

Then I do this:

$toonData = curl_init();
$url = "http://online.sokker.org/xml/league-1599.xml";
curl_setopt($toonData, CURLOPT_URL, $url);
curl_setopt($toonData, CURLOPT_POST, 0);
curl_setopt($toonData,CURLOPT_COOKIEJAR, dirname(__FILE__)."/cookie.txt");
$data = curl_getinfo($toonData);
var_dump($data);

But I don't get the output I want :) Don't know how to do that :) Been looking for several time now :)
2008-02-05 18:50:53
are you logged in? (authentified)

write SK mail if u have troubles. i've php+curl script working, so i should be able to help you.
(edited)
2008-02-05 18:59:10
I already can login and download data...

But now I would like to make a page that shows the ranks of the belgian teams...

That doesn't work though...

I wrote a switch, but I have to add all the data together and then extract whatever I need... Only I don't know how to add the data together :s
(edited)