Reply to [Help] Script to get contents of a function from other file.

Your name:

Reply:


Posted by Kesavan on 11/14/07 08:37

I need a function such that it returns a string holding the contents
of function in other php file..,

*******************************************************************************************************
allFunctions.php:
********************
class clsA{

function a{
..,
..if($test){ //testing condition.,
}
..,aNewFn(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}

function b{
..,
..if($test){ //testing condition.,
}
..,aNewFn2(); // Calling other function..,
...
..
while(){..,
..,
}
..,
}

}//End of Class.,


*******************************************************************************************************
getFnContent.php //Now I need a function such as .,
**********************
<?

$tmpFnContent = getFunctionContents("allFunctions.php","clsA","a") ;
echo "Function 'a' in Class 'clsA' has".$tmpFnContent ;

function getFunctionContents($file,$class,$functionName) /*I want
to develop this function*/
{
----
----
return $functionContent ;
}

?>


Hope U understand the problem.,

Please explain me how to achieve this by providing me a algorithm or
flow..,
Is there any library function ., to meet my requirement?

Thanks..,

Kesavan Muthuvel
m.kesavan@hotmail.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация