ob_start();
echo ‘Your Name’;
$contents = ob_get_contents();
ob_end_clean();
file_put_contents(“test.txt”,$contents);
?>
apt-cache search jdk
<?php exec(“java -jar filename.jar arguments”,$output); ?>
Facebook – World’s biggest social networking platform is developed in PHP
Yahoo! – World’s second largest search engine.
YouTube – Biggest video sharing website .
Wikipedia – Web encyclopaedia .
Also called a permanent cookie, or a stored cookie, a cookie that is stored on a user s hard drive until it expires (persistent cookies are set with expiration dates) or until the user deletes the cookie.
Persistent cookies help websites remember your information and settings when you visit them in the future. This result in faster and more convenient access since, for example, you don’t have to login again.
Besides authentication, other website features made possible by persistent cookies include: language selection, theme selection, menu preferences, internal site bookmarks or favorites, among many others. On your first visit, the website is presented in default mode. During your visit, you select your preferences and these preferences are remembered, through the use of the persistent cookie, the next time you visit the site.
$dVar=new JConfig();
$toAddres = $dVar->mailfrom;
function getCurrentCatID(){
global $wp_query;
if(is_category() || is_single()){
$cat_ID = get_query_var(‘cat’);
}
return $cat_ID;
}
Call the function “get_category() ” to fetch the current category details
$category = get_category( getCurrentCatID() );//
$parentID = $cat->category_parent;
echo $parentID;
function NextPage($pageID){
for($i=1;$i
<table>
<tr>
<td>
<a href=”javascript:NextPage(‘1’);”>Page1</a>
<a href=”javascript:NextPage(‘2’);”>Page2</a>
<a href=”javascript:NextPage(‘3’);”>Page3</a>
</td>
<td>
</td>
</tr>
</table>
function adminPaginationLimit(){
global $per_page, $wp_query;
$per_page = 500;
$posts_per_page = 500;
$wp_query->query(‘showposts=’. $posts_per_page);
}
add_action(‘admin_head’, ‘adminPaginationLimit’);