Skip to content

Making Life Simple

Tech Tips and Tricks

Menu

Primary menu

  • Home

Category Archives: php

Enable XDebug on WAMP using Eclipse

Posted on June 7, 2011 by lalit — No Comments ↓

For Windows machine running WAMPServer: 1) Install PDT plugin on your eclipse 2) Download XDebug to match your php 3) Install XDebug – save XDebug dll to wamp_path/bin/php/php5.3.5/ext folder 4) Enable XDebug – update php.ini file 4a) comment zend debugger Continue reading Enable XDebug on WAMP using Eclipse→

Posted in apache, php, Windoze | Leave a reply

Resize image in PHP

Posted on July 27, 2008 by lalit — No Comments ↓

Uploaded images from user can be of any size.  If you need to use these images, they need to be resized upon upload. Here is a helper class to manage resizing of the images. Let me know if you find Continue reading Resize image in PHP→

Posted in php | Tagged php | Leave a reply

Enable register_global through .htaccess

Posted on June 17, 2008 by lalit — No Comments ↓

I would not recommend to enable register_globals, but if you need to enable the register_globals for a particular web folder, you can edit the .htaccess file and append the following to it php_flag register_globals on Restart apache and you are Continue reading Enable register_global through .htaccess→

Posted in apache, php | Tagged apache, php | Leave a reply

PHPImpact: 30 useful PHP classes

Posted on May 30, 2008 by lalit — No Comments ↓

PHPImpact has posted 30 useful PHP classes here. Which ones do you use? I have used the following: Propel phpDocumentor Securimage Smarty Still a lot more interesting ones which I haven’t tried.

Posted in php | Tagged php | Leave a reply

PHP single quotes Vs double quotes

Posted on May 27, 2008 by lalit — 1 Comment ↓

Any time you put something in “double” quotes, you are asking PHP interpreter to check that content for a variable. So even though the line do not contain variables within the double quotes, PHP will waste precious computing time scanning Continue reading PHP single quotes Vs double quotes→

Posted in php | Tagged php | 1 Reply

mysql_insert_id() returns NULL or 0

Posted on February 29, 2008 by lalit — No Comments ↓

If you have multiple mysql connections (i.e. mysql_connect() or mysqli_connect()) on the page you will need to specify the the connection you are using when calling this function. example: mysql_insert_id($MY_CONN);

Posted in php | Tagged mysql, php | Leave a reply

Secure file upload

Posted on February 4, 2008 by lalit — No Comments ↓

No matter what web based technology you are using,  these tips will always be helpful when it comes down to uploading files:  Keep uploaded files where they cannot be directly accessed by the users via a direct URL. This can Continue reading Secure file upload→

Posted in general web, java, php | Leave a reply

Downloading a page in PHP

Posted on August 13, 2007 by lalit — No Comments ↓

If you ever need to download a HTTP/FTP or any page, try not to use fopen() and fread() functions. They work but will take enormous amounts of time as compared to curl functions. Try doing as follows: To GET a Continue reading Downloading a page in PHP→

Posted in php | Tagged php | Leave a reply

PHP Data Objects

Posted on August 8, 2007 by lalit — No Comments ↓

I was looking for a quick reference/tutorial to implement Data Objects with PHP, very similar to what exists in Java. Found a nice explanation at PHP Data Object

Posted in php | Tagged php | Leave a reply

Primary Sidebar Widget Area

Recent Posts

  • Unable to run metrics-server in K8 cluster
  • Switched to Ubuntu from Windows
  • Enable minimize on click
  • Enable Mate desktop with vnc
  • SHA Collision

Recent Comments

  • kinogo on How to check GMail RSS/Atom feed
  • http://activeedgenutrition.com on How to check GMail RSS/Atom feed
  • tester on How to check GMail RSS/Atom feed
  • Sweety Mehta on How to create RoR app with PostgreSQL support
  • lalit on Oracle XE Tuning

Archives

  • April 2021
  • August 2020
  • January 2020
  • December 2019
  • July 2019
  • July 2018
  • March 2016
  • May 2015
  • March 2015
  • September 2014
  • July 2014
  • April 2014
  • November 2013
  • October 2013
  • August 2013
  • July 2013
  • June 2013
  • March 2013
  • October 2012
  • August 2012
  • May 2012
  • January 2012
  • November 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2010
  • January 2010
  • September 2009
  • July 2009
  • January 2009
  • December 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • June 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
  • January 2006

Categories

  • apache
  • css
  • general web
  • git
  • hibernate
  • java
  • javascript
  • kubernetes
  • linux
  • mysql
  • news
  • oracle
  • php
  • python
  • RoR
  • struts
  • Uncategorized
  • Windoze

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2025 Making Life Simple. All Rights Reserved.
Theme: Catch Box by Catch Themes
Scroll Up