Nov 13
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 […]
Nov 12
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 […]
Nov 12
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 […]
Oct 18
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 […]
Oct 02
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 […]
Sep 12
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
- […]
Aug 08
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 > […]
Aug 07
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 […]
Jul 30
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! […]
Jul 22
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 […]
Recent Comments