Entries by admin

Setting page titles and meta tags in cakephp 2.0

Today I needed to have page titles and meta tags correctly setup for each page in a website i had often used methods like placing variables and setting them to the template in the app controller in a beforeFilter. Then if i needed a different meta tag on another page like contact for example i […]

Login issue with admin, user and unable to register in oscommerce

Login issue with admin, user and unable to register in oscommerce Recently we have an issue with oscommerce. We were developing an oscommerce site and everything was working fine in our test server. But when we moved to the production server provided by the client it stops working. The issue was we couldn’t login as […]

How to Increase PHP’s File Upload Limit Using php.ini

The file upload size limit 2M(Approx) is set by shared hosting providers. They have set it low because it save bandwidth, keep the server moving quickly. But customers really need a large upload limit? So we must increase the file upload size limit. We can do it by 4 way : 1- By adding below […]

Quick Setup Guide To Run CakePHP 2.0 On Windows 7

Quick Setup Guide to Run CakePHP 2.0 on Windows 7 Setting up CakePHP 2.0 on Windows 7 is simple and requires just a few steps. First, ensure you have a working Apache server with PHP 5.2.8 or higher installed—XAMPP or WAMP is recommended for ease of setup. Download CakePHP 2.0 from the official website and […]

WordPress issue : Could not create upgrade directory

Today I got strange issue while update wordpress site. This gave me error like this “Could not create upgrade directory”. Firstly I thought this was the issue of directory permission so I did set upgrade directory 777 mode but I was unsuccessful. Then tried to delete upgrade folder and created new one, for me that […]

Increase PHP’s File Upload Limit Using .htaccess file

Increase PHP’s File Upload Limit Using .htaccess file How do we increase upload file limit through .htaccess file. Here I am giving you quick trick. Create .htaccess file(If you have already .htaccess file on the server then no need to create it just update that file) using your favorite text editor like notepad++ and put […]

How to include JQuery on your WordPress theme

How to include JQuery on your WordPress theme WordPress comes with JQuery (It is used in the dashboard) so you don’t need to download a new copy of JQuery to your WordPress server. For accessing JQuery on WordPress site, you need to paste below code on your header.php file within theandtags:   When you will […]

Javascript Confirm Delete

How to use a javascript confirm box to ask the user if they want to delete <script> function confirmDelete(deleleteUrl) { if (confirm(“Are you sure you want to delete”)) { document.location = deleleteUrl; } } </script> <a href=”javascript:confirmDelete(‘delete.php?id=1’)”>Delete</a> Another way <a href=”delete.php?id=1″ onclick=”return confirm(‘Are you sure you want to delete?’)”>Delete</a>

How to add .SWF files to the html webpage

Here I am sharing flash code for embedding flash in the website. Hope this will help many more…. <object width=”400″ height=”220″ align=”middle” classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://fpdownload.macromedia.com/pub/shockwave/cabs /flash/swflash.cab#version=7,0,0,0″ id=”player1″> <param value=”your_flash_file.swf” name=”movie”> <param name=”menu” value=”false”> <param name=”quality” value=”high”> <param name=”wmode” value=”transparent”> <param name=”bgcolor” value=”#FFFFFF”> <embed width=”400″ height=”220″ align=”middle” src=”your_flash_file.swf” menu=”false” quality=”high” bgcolor=”#FFFFFF” name=”player” wmode=”transparent” allowtransparency=”true” allowscriptaccess=”always” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer”> […]

Web browser css hacks – firefox, IE, chrome, safri, Opera

Inline Hack for IE * (star) can be used as the inline hack for both ie6 and ie7. For Example: Syntax: .selector{*property:value;} .logo{*margin-left:10px;} IE6 browser inline Hack _ (underscore) can be using only for ie6 For Example: Syntax: .selector{_property:value;} .logo{_margin-left:10px;} Firefox inline style content:””/*” can be used for firefox only where IE cannot recognize it. […]