ducbot / vinaget-script

Automatically exported from code.google.com/p/vinaget-script
0 stars 0 forks source link

Patch for /vinaget/vng263/index.php #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Used sorting function doesn't work :D

Original issue reported on code.google.com by hedel822 on 28 Jun 2012 at 6:53

Attachments:

GoogleCodeExporter commented 9 years ago
btw... Warnings should be fixed (or disable error_reporting at downloads, or 
files will be get corrupted)

Original comment by hedel822 on 28 Jun 2012 at 7:17

GoogleCodeExporter commented 9 years ago
usort($host, 'strcmp'); --> what's it ? I do not find in the file index.php
dont' worry
because in function download error_reporting  set to 0.
function download(){      
error_reporting (0);
....

Original comment by admin@vinaget.us on 30 Jun 2012 at 1:15

GoogleCodeExporter commented 9 years ago
index.php its sorting the host list with a user-function called 'cmp' at: 
http://code.google.com/p/vinaget-script/source/browse/vinaget/vng263/class.php#7
50

But the elements in $host are strings it shows many warnings at class.php - 
line 751 because elements aren't arrays (php.net's example code :D).

so, you can use strcmp function directly for sorting instead of the 'cmp' 
function.

Original comment by hedel822 on 30 Jun 2012 at 9:24

GoogleCodeExporter commented 9 years ago
thanks, i  used example of PHP.net and i did't change it.

Original comment by admin@vinaget.us on 1 Jul 2012 at 2:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
hi,I wanna use vinaget script.But I dont know how I use it can you help me?, 
please

Original comment by ieiesa...@gmail.com on 11 May 2013 at 4:54

GoogleCodeExporter commented 9 years ago
Help me,Please !

Original comment by ieiesa...@gmail.com on 11 May 2013 at 4:54

GoogleCodeExporter commented 9 years ago
I wanna be member of "http://home.vinaget.us/" But I cant

Original comment by ieiesa...@gmail.com on 11 May 2013 at 4:56