Paste the below given code in the wp-config.php
define(‘WP_MEMORY_LIMIT’, ’32M’);
Paste the below given code in the wp-config.php
define(‘WP_MEMORY_LIMIT’, ’32M’);
Paste the below code in the functions.php
add_filter(‘wp_default_editor’, create_function(”, ‘return “html”;’));
Paste the below given code into functions.php
add_action( ‘admin_head-post.php’, ‘phpcodez_editor_font’ );
add_action( ‘admin_head-post-new.php’, ‘phpcodez_editor_font’ );
function phpcodez_editor_font() { ?>
<style type=”text/css”>#editorcontainer #content, #wp_mce_fullscreen { font-family: “Times New Roman”, Verdana, }</style>
<?php }
global $wp_query;
if(“entry_value”== get_post_type($wp_query->post->ID))
echo “Its a custom post type”
Paste the following code in your .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post.php*
RewriteCond %{HTTP_REFERER} !.*phpcodez.* [OR] // please add your domain name
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
</IfModule>
Paste the following code in functions.php
add_action(“wp_head”, “my_copyright_meta”);
function my_copyright_meta() {
if(is_singular()){
echo “<meta name=”copyright” content=”© phpcodez.com 2011″>”;
}
}
Paste the following code in functions.php
add_action('admin_head', 'excerpt_textarea_height');
function excerpt_textarea_height() {
echo'
<style type="text/css">
#excerpt{ height:500px; }
</style>
';
}
You can hide the php file extension using .htaccess so that you can confuse the spammers and hackers .
You can use “asp” file to work as a “php” file ie use the extension “asp” for yourr file instead of “php”.
You jsut need to cerate a .htaccess file and ad the code shown below
# Make PHP code look like asp or perl code
AddType application/x-httpd-php .asp
After this create file “comment.asp” and with php codes in it.
Then load the page “comment.asp”
A rewrite engine is software that modifies a web URL’s appearance (URL rewriting). Rewritten URLs (sometimes known as short, fancy URLs, or search engine friendly – SEF) are used to provide shorter and more relevant-looking links to web pages. The technique adds a degree of separation between the files used to generate a web page and the URL that is presented to the World.