FIX->Fatal error: Maximum execution time of 300 seconds exceeded with phpMyAdmin

Linux/Unix, PHP Scripts No Comments »

PHPMyAdmin will not work for uploading large mysql databases. If you attempt to upload a large mysql dataset you will often get this error
Fatal error: Maximum execution time of 300 seconds exceeded
Fix:
If you get this error you will need edit config.default.php inside phpmyadmin and look for this line
$cfg[’ExecTimeLimit’] = 300;
and replace with 0 […]

Fix-> Warning: ereg_replace(): REG_BADRPT in PHP

PHP Scripts No Comments »

If you are a PHP programmer and if you are using regular expressions with ereg_replace then often with replacing particular characters you might encounter error like
Warning: ereg_replace(): REG_BADRPT
Here is a simple function that causes this error

function OrigURL($str)
{
$out = ereg_replace('+',' ',$str);
return $out;
}

Solution: Just escape the characters. Only then it will work.
$out = ereg_replace(’\+’,’ ‘,$str);
Hope this […]

How to remove GET variable within $_SERVER[’QUERY_STRING’] in PHP

PHP Scripts No Comments »

I was working on a mysql search script with paging where i had to pass the same GET parameters to page numbers like
search.php?q=what+europe+scripts&page=1
I used $_SERVER[’QUERY_STRING’] to get the GET parameters. But the problem i got was when i was in page 2 it would show query string like
search.php?q=what+europe+scripts&page=1&page=2
and if i am in page 5, it […]

How to unzip ZIP files with PHP

PHP Scripts No Comments »

How to automatically unzip uploaded zip files with PHP
I wanted to upload a zip file with php script and unzip it within the server running PHP and linux. How to do it? i am documenting here about a solution to unpack uploaded zip files locally within the server with PHP.
well! it can be done […]

How to Fight Spam in Vbulletin

vBulletin, General, PHP Scripts No Comments »

Until recently i have encountered a sudden new attacks of spam registrations and many many spam threads posted in my forum. I just cant figure out how as I have already enabled captcha in registration page and enabled email confirmation. Despite this somehow spammers managed to bypass the registration and managed to post spam threads.
Fighting […]

How to design 3 Column Website Layout with Top Navigation Menu in CSS

CSS Design, PHP Scripts No Comments »

CSS as we go deeper and deeper it gets harder and harder to understand, especially margins, padding and floats could be confusing at times as well. I am going to post here the tutorial to make a very simple CSS website layout (skeleton) with
- Container
- Header
-Top Navigation Menu
- Left Navigation Menu
- Right Navigation menu
- […]

Your password is 180 days old, and has therefore expired

vBulletin, Linux/Unix, PHP Scripts No Comments »

i was getting this message from vbulletin after logging as administrator. I wasnt able to find the setting in vbulletin control panel that would disable this 180 day password, until i finally figured out.
Your password is 180 days old, and has therefore expired.
Please change your password using this page.
To fix this Go to UserGroups > […]

Where to buy good vbulletin themes?

vBulletin, General, PHP Scripts No Comments »

ok, you have bought a vbulletin license and looking to customize the look of the forum. Giving a good professional look to your forum can be well worth it to attract more users to signup. If you are willing to spend $20 - $50 there are number of places to look for.
First check out
http://www.vbulletin.org

This […]

Lightweight PHP WYSIWYG HTML Editor

Javascript, General, Internet, PHP Scripts 2 Comments »

Lightweight WYSIWYG Editor for PHP
A dead simple javascript based WYSIWYG html editor for PHP. It is lightwight, fastloading html editor can be integrated to PHP scripts easily.
I always wanted a very simple WYSIWYG editor for my PHP scripts with just simple functions like bold, italic, URL and Image insertion and nothing more than that! […]

Displaying HTML code in Wordpress Posts!

Wordpress, Internet, PHP Scripts No Comments »

I had a terrible problem for a long time which frustrated me quite often! Being a programmer myself i wanted to post html code on my wordpress post and everytime i do it wordpress wont show the code and only shows the html output.
Just like html i wanted to post code like various other […]

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login