September 2008

With this PHP script you can find size and type (extension) of required file.

{ 0 comments }

Essential DotHtaccess Hacks

by Hiroshi on September 29, 2008

in htaccess

.htaccess rules can be different for different hosts. This is file in root directory of website which defines certain rules for website behavior for some requests.

{ 0 comments }

Many popular websites provide their RSS links. i.e. MSN Money Finance Tips https://articles.moneycentral.msn.com/Feeds/RSS/financerss.aspx MSN CNBC TV Updates https://articles.moneycentral.msn.com/Feeds/RSS/cnbcrss.aspx Technology and Science https://rss.msnbc.msn.com/id/3032117/device/rss/rss.xml Visit this URL to get a better idea. https://rss.msn.com You can get these URLS and display updates from these websites at your website in HTML user friendly readable format. wow!!! For that you […]

{ 0 comments }

ADOdb is a database abstraction library for PHP. Many popular web applications such as ACID, PostNuke, Xaraya, phpWiki, Mambo, PHP GACL, TikiWiki, eGroupWare and phpLens App Server are using ADOdb as their database abstraction layer. Some reasons why ADOdb is popular include:

{ 0 comments }

We can display data fetched from database in a variety of ways. Depends upon our requirement. By multiple columns I mean dividing all fetches data into columns and displaying it. Here is how We can divide the resultset into multiple columns.

{ 0 comments }

PHP is Not Secure

by Hiroshi on September 27, 2008

in Security

As a developer you must keep it in your mind that like any other programming platform PHP is also not secure. It can be hacked. Your website made in PHP can be stolen and hacked. There are softwares and exploits for attack. There are also vulnerabilities in PHP and there can be vulnerabilities in the […]

{ 0 comments }

By default there is a restriction of 2 Megabytes file upload at a time for PHP. If we have to upload media files or other large files then we will have to change some settings in php.ini. Locate the php.ini file in the folder your upload script resides in. If none exists, install a new […]

{ 0 comments }

Prevent people to view your php.ini file via a browser a few lines needed to be put into the .htaccess file. Locate your .htaccess file which will be in your site’s root directory (public_html or www) Download and edit .htaccess Paste the following code into the bottom of the file and then click save:

One of my website was hacked, exploited or whatever… recently. I thank that gentle hacker who just placed some files at my server and he was just checking log files and did not damage any file or database. I really thank him. Well! I was using wordpress and I am with one of the best […]