siddscool19 Posted April 17, 2009 Share Posted April 17, 2009 I was reading rapidleech script today and i faced a new function geturl here: $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"],$pauth); What does it do? And is there any page on php.net on it ? I was not able to find myself there Hope someone can help Thanks in advance Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/ Share on other sites More sharing options...
ILMV Posted April 17, 2009 Share Posted April 17, 2009 It would appear this is a custom function... have you got the entire code files? You should search through to see if you can find said function. Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/#findComment-812165 Share on other sites More sharing options...
thebadbad Posted April 17, 2009 Share Posted April 17, 2009 It's a user defined function. You should be able to find the function definition somewhere in the source, it will probably say something like: <?php function geturl($param1, $param2, $param3 ... $param9) { //stuff } ?> When you find that you can see what the function does. Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/#findComment-812166 Share on other sites More sharing options...
mentalist Posted April 17, 2009 Share Posted April 17, 2009 Where did you find it? It's probably a wrapper function! I couldn't find it on php.net either: http://uk3.php.net/manual-lookup.php?pattern=geturl&lang=en Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/#findComment-812167 Share on other sites More sharing options...
ILMV Posted April 17, 2009 Share Posted April 17, 2009 I have done a Google search... there is a getURL function within the HTTP_Request package of pear, but it doesn't share the same input parameters. http://pear.php.net/package/HTTP_Request/ newer version http://pear.php.net/package/HTTP_Request2 Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/#findComment-812170 Share on other sites More sharing options...
siddscool19 Posted April 17, 2009 Author Share Posted April 17, 2009 Hey people i found it in one of the files as a custom function But the file in which i saw this function is not linked to the file in which the function is there by any of include or require Then how can it work? Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/#findComment-812174 Share on other sites More sharing options...
ILMV Posted April 17, 2009 Share Posted April 17, 2009 Put it this way... if the script works, then it must, somehow find the function. I usually put an echo in the function, something like this: echo("I am inside the function <br>"); If you get that output on the screen, then you can be sure the function is being called Link to comment https://forums.phpfreaks.com/topic/154465-what-is-geturl-function/#findComment-812175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.