When I restarted my apache server. I am using the fedora 9 here. I did not get my default page opened in browser. When I opened the apache error log file. I saw following error. ModSecurity: Access denied with code … Continue reading
Monthly Archives: October 2009
How to use a Custom Page as a Home Page in WordPress
This is one of the most wanted hacks that users want to know how to accomplish. First you need to learn how to create a custom page. You will need to duplicate your page.php or create a wordpress.php file and … Continue reading
Solved: DirectoryIndex not allowed here
When I tried to run my one of my project on server I got following error on the Browser.: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the … Continue reading
solved: [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Here I am using the Fedora 9 for this example. If you want to host many sites on one computer or machine. I added following lines to httpd.conf file(end of file). <VirtualHostĀ *:80> Options +FollowSymLinks ServerName example1.com DocumentRoot /var/www/html/example1 </ … Continue reading
How to change the file permission all folder and subfolders in linux
If you are new in Linux for that use this command. #chmod 777 * //for chanding the all folders file permission #chmod 777 FOLDER_NAME Where I stuck, I want to change the Main folder and subfolders and all files persimission. … Continue reading
How to Add or Remove the javascript file using javascript function
We can use following functions for adding the Javascript file dynamically. We can use following functions for adding the CSS file dynamically. Or We can use this also, both will work: We can use the following code for remving the … Continue reading
How to find the Mysql database engine type
You need to use this command for checking the engine type: SHOW TABLE STATUS WHERE Name = ‘users’; Or Use this command for checking the all table’s engine type. SHOW TABLE STATUS; Or You can use this command for database: … Continue reading
Create XML through php and mysql
Here I am giving you the very basic sample code for creating the XML file through PHP and MYsql <?php // We'll be outputting a PDF header('Content-type: text/xml'); echo "” $db_name = “testDB”; $connection = mysql_connect(“example.com”, “username”, “password”) or die(“Could … Continue reading
Creating the multiple namespace JS library with classes
When I started the creating new namespace JS library I got very useful artile to read. http://pietschsoft.com/post/2007/07/Creating-Namespaces-in-JavaScript-is-actually-rather-simple.aspx In this article they covered lot of things ( namespace protection objective ) Here I am using the namespace manager code: Using this … Continue reading
get time difference in minutes
I created javascript function named “getTheDiffTime” using that function you will be able to fetch the time difference in various format. How to use this function here I am giving you the one good example. I am going to get … Continue reading