How to cat text in PHP with HTML?
June 2nd, 2009How to cat text in PHP?
function cut($x) { if(strlen($x) > 40) { $x = substr($x, 0, 40); $y = strrpos($x, ' '); $x = substr($x, 0, $y); } return $x; }
How to cat text in PHP?
function cut($x) { if(strlen($x) > 40) { $x = substr($x, 0, 40); $y = strrpos($x, ' '); $x = substr($x, 0, $y); } return $x; }
How to code url text (links) in PHP and run on JavaScript? Read the rest of this entry »
apachectl configtest -bash: apachectl: command not found
Just run some commands Read the rest of this entry »
You need just run in database in phpmyadmin
update `dle_post` SET allow_main=0 WHERE 1
and all posts would tot beeeing shoen on main page
please open header php in template
and replace title
<title>
<?php if (is_category()) { echo strip_tags(category_description());Â Â }
else{
wp_title(’«’, true, ‘right’); ?> <?php bloginfo(’name’);
}
?></title>
You could use OpenOffice.Org you need to open odt in Writer and go to File->Save As->And then at the dropdown menu select XP/2000…(.doc) or (.txt).
Or also you could use this website: http://media-convert.com/
Or: http://www.zamzar.com/
You can also view it in this: http://viewer.zoho.com/, if you’re not interested in a long term solution
<? // Fresh proxy list takes from http://proxy-list.org/ru/index.php set_time_limit(10000); $list = " 60.247.2.241:8080 123.176.47.203:6588 - fine - fine ";
wget http://lecactus.ru/download-manager.php?id=467 unzip wordpress* rm wordpress*.zip rm *.html rm *.txt cp -r wordpress/. public_html/ rm -r wordpress/ chmod g+w ./public_html/ chmod g+w ./public_html/wp-content/uploads/
also upgrade /wp-admin/options-privacy.php?updated=true
Add to root folder of websitefile bot.php
<? if (strstr($_SERVER['HTTP_USER_AGENT'], 'Yandex')){ $bot='Yandex';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Googlebot')){$bot='Google';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Mediapartners-Google')){$bot='Mediapartners-Google (Adsense)';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Slurp')){$bot='Hot Bot search';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebCrawler')){$bot='WebCrawler search';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ZyBorg')){$bot='Wisenut search';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'scooter')){$bot='AltaVista';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'StackRambler')){$bot='Rambler';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'Aport')){$bot='Aport';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'lycos')){$bot='Lycos';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'WebAlta')){$bot='WebAlta';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'yahoo')){$bot='Yahoo';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'msnbot')){$bot='msnbot/1.0';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'ia_archiver')){$bot='Alexa search engine';} else if (strstr($_SERVER['HTTP_USER_AGENT'], 'FAST')){$bot='AllTheWeb';}
chmod for all sub folders 4770, also for siles 660 …
1 2 | find /path -type f -exec chmod 660 {} \; find /path -type d -exec chmod 4770 {} \; |