Install the following :
sudo apt-get install php5-dev
sudo apt-get install php5-xdebug
Find where the xdebug.so file is :
martin@martin-dev:/$ find / -name 'xdebug.so' 2> /dev/null
/usr/lib/php5/20060613/xdebug.so
Read the rest of this entry »
Popularity: 3% [?]
April 7th, 2010 | Posted in Uncategorized | No Comments
Wine and cabextract are needed to run ies4linux
So install them like this :
sudo apt-get install wine cabextract
Next download and unpack ies4linux like this :
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
Read the rest of this entry »
Popularity: 4% [?]
March 24th, 2010 | Posted in Uncategorized | No Comments
This page http://httpd.apache.org/docs/2.2/howto/cgi.html describes how to give each user his own cg-bin directory.
The following lines should be added to the Apache configuration file http.conf :
Read the rest of this entry »
Popularity: 1% [?]
March 21st, 2010 | Posted in Uncategorized | No Comments
FontMatrix is a font manager available for Linux. It can be used to preview fonts installed on the System.
To install FontMatrix on Ubuntu 8.04 the deb file can be downloaded from :
http://www.getdeb.net/app/Fontmatrix
Popularity: 4% [?]
October 9th, 2009 | Posted in Uncategorized | No Comments
A little while back I was trying to make a router for my application which I had grouped into classes. So a url could be like this :
www.site.com/index.php/class_name/method?id=15
or
www.site.com/index.php/controller/action?id=15 in the MVC style
or
localhost/project/index.php/class_name/method?id=15
Read the rest of this entry »
Popularity: 8% [?]
October 4th, 2009 | Posted in Uncategorized | No Comments
In httpd.conf file the following line should be uncommented :
LoadModule rewrite_module modules/mod_rewrite.so
by removing the # sign before it.
Then comes a section which looks like this :
<Directory "C:/Apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* — "Options All"
# doesn’t give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
Read the rest of this entry »
Popularity: 2% [?]
September 30th, 2009 | Posted in Uncategorized | No Comments
One interesting way of listing foreign keys is like this :
select
concat(table_name, '.', column_name) as 'foreign key',
concat(referenced_table_name, '.', referenced_column_name) as 'references'
from
information_schema.key_column_usage
where
referenced_table_name is not null;
Read the rest of this entry »
Popularity: 8% [?]
September 5th, 2009 | Posted in Uncategorized | 1 Comment
The innodb storage engine supports foreign keys in Mysql.
To create foreign keys in phpmyadmin :
1. Convert both tables into innodb.
2. View the structure of the table which will have a foreign key. Make the referencing field an INDEX.
3. Now come back to structure view and click Relation view. In the Relation view page the field (which was made an INDEX) can be made a foreign key referencing to some other field in another table.
Popularity: 11% [?]
August 25th, 2009 | Posted in Uncategorized | 2 Comments
A little back I tried to backup a database from my webhost and restored it on my localhost mysql. It had a few views. On accessing the views in phpmyadmin mysql gave the error :
#1449 – There is no ‘projects’@'localhost’ registered
Read the rest of this entry »
Popularity: 13% [?]
August 22nd, 2009 | Posted in Uncategorized | No Comments
Lots of newbies keep asking or search for techniques to hack someones email password like yahoo gmail msn etc.
First of all it should be noted that getting someone’s password out of a server is something impossible for the very simple reason that in most cases the password is stored no-where. Newbies think and make attempts to get the some one’s password from the target server. But yes this is not possible. Passwords are not stored directly, but as hashes (if you are a web developer then you must be knowing this). Hashing is basically a one way algorithm to turn a string of any size into a fixed sized string. For more on hashing get to wikipedia. Hashes cant be reverted to get back the original string. Now when a user logs into a system, he provides his username and password. Now the password is hashed again and compared with the hash that was stored during registration. If both match then access is granted.
Read the rest of this entry »
Popularity: 6% [?]
July 25th, 2009 | Posted in Uncategorized | No Comments