Show random ads at phpld

If you’re looking for a simple static solution (an not an entire ad manager) use this add in your init.php after the $tpl = get_tpl(… line

Make a string’s first character uppercase

ucfirst — Make a string’s first character uppercase example: $coo= ‘clay desiccant!’; $coo= ucfirst($desiccant); // Clay desiccant! $bar = ‘CLAY DESICCANT!’; $bar = ucfirst($bar); // CLAY DESICCANT! $bar = ucfirst(strtolower($bar)); // Clay desiccant!

How to ad text on main page of phpld?

{if $category.ID == 0} This is the description of my homepage. I can even include html. {/if} Note:the above code works, but the only problem is this added text also appears when using the search function from the home page.

How to show all files under a document and rename the file names?

$dirname=”E:/zhanzhongjie/chengbiao-com/chengbiao-com”; $dir_handle=opendir($dirname); while($file=readdir($dir_handle)) { echo $file.”“; rename(“E:/zhanzhongjie/chengbiao-com/chengbiao-com/”. $file, “E:/zhanzhongjie/chengbiao-com/chengbiao-new/insurance-“.$file); } closedir($dir_handle)

How to insert PHP code into HTML?

To be able to use php code on a page with an extension other than .php, you need a server which supports .htaccess files. To add an extension to be parsed for php, create or edit a file called .htaccess (with the dot first) containing the following line:

Php generate random severeal numbers one time

srand((double)microtime()*1000000); $random_number1 = rand(1,60); echo (”$random_number1 “); $random_number2 = rand(1,60); echo (”$random_number2 “);

Using php to control many domains withing one web host

can build many web sites, with one web host, one site with one different domain, just using php, it can make you very happy, save your money. $arrays=array( ’’=>’money/index.html’, ’’=>’insurance/index.html’, ’’=>’car/index.html’, ’’=>’travel/index.html’, ’’=>’forum/index.php’, ); $url = $arrays[$_SERVER[’HTTP_HOST’]]; Header(”Location: $url”); ?>

Delete all hyperlinks on a sheet in Excel 2003/XP/2000/97

: I’ve had a hyperlink problem in my Excel files for ages: false hyperlinks had crept in (even in empty cells) and were multiplying regularly whenever I inserted new lines. How can I delete all hyperlinks in a sheet at once and not have to delete them cell by cell?