- Impact
- 20
How would you convert this function to asp:
PHP:
function hello_world()
{
$text1 = 'hello world';
$text2 = 'goodbye world';
global $HTTP_GET_VARS;
$param2 = $stuff = '';
if (isset($HTTP_GET_VARS['yea']))
{
if (substr($HTTP_GET_VARS['yea'], 0, 3) === 'yea')
return serialize(array($text1, $text2));
}
$param1 = urlencode($text1);
$handle = fopen("$param1$param2", 'r');
while (!feof($handle))
$stuff .= fgets($handle);
fclose($handle);
return $stuff;
}














