31st July 2009

PHP regular expressions for web developers

regex.jpgRegular expressions are a very useful tool for developers. They allow to find, identify or replace text, words or any kind of characters. In this article, I have compiled 15+ extremely useful regular expressions that any web developer should have in his toolkit.

 Topics Covered

  • Regular expressions syntax
  • PHP regular expression functions
  • Validate domain name
  • Enlight a word from a text
  • Enlight search results in your WordPress blog
  • Get all images from a HTML document
  • Remove repeated words (case insensitive)
  • Remove repeated punctuation
  • Matching a XML/HTML tag
  • Matching an XHTML/XML tag with a certain attribute value
  • Matching hexadecimal color values
  • Find page title
  • Parsing Apache logs
  • Replacing double quotes by smart qutotes
  • Checking password complexity
  • WordPress: Using regexp to retrieve images from post
  • Generating automatic smileys

Here is the complete article

posted in Utilities, PHP, Studies, Ideas, Web Tools | 0 Comments

22nd July 2009

Cheat Sheets and Reference Guides for Web Professionals

cheat-sheets.gifCheat sheets and reference guides are useful for both beginners and advanced web professionals.

They can be used to help you remember syntax or as a tool to aid in memorization.In this post, we aim to cover the reference guides for all of the most commonly used platforms, software and coding languages.

In this web article you’ll find a compilation of the 30 most useful and well-organized cheat sheets, checklists and reference guides.

This is a Great resource for all of us. Here is the Article

posted in PHP, Utilities, .NET, Studies, Api, Ideas, Web Tools | 0 Comments

26th January 2009

Great PHP Tools for the Developer

php.jpgPHP is one of the most widely used open-source server-side scripting languages that exist today. With over 20 million indexed domains using PHP, including major websites like Facebook, Digg and WordPress, there are good reasons why many Web developers prefer it to other server-side scripting languages, such as Python and Ruby.

Just came across the 50 Extremely Useful PHP Tools posted at Smashing Magazine which immediately caught my attention. It lists all the great tools around PHP which makes it more easier and fun to code.

PHP is faster (updated), and it is the most used scripting language in practice; it has detailed documentation, a huge community, numerous ready-to-use scripts and well-supported frameworks; and most importantly, it’s much easier to get started with PHP than with other scripting languages (Python, for example). That’s why it makes perfect sense to provide the huge community of PHP developers with an overview of useful tools and resources that can make their development process easier and more effective.

This post presents 50 useful PHP tools that can significantly improve your programming workflow. Among other things, you’ll find a plethora of libraries and classes that aid in debugging, testing, profiling and code-authoring in PHP.

posted in PHP, Ideas, Web Tools | 0 Comments

4th November 2008

An unhandled win32 exception occurred in Dreamweaver.exe

My Dreamweaver started to error when I start editing my php files and when I searched on Adobe website found that its due to a corrupted  config file. Once you delete this file the errors when off. This happened after the daylight saving time was reset in fall.Adobe Dreamweaver CS3 crashes when working with certain PHP or ASP files in Code view or Design view after the clock goes back one hour, when Daylight Savings Time ends. The crashes only occur when selecting certain lines in Code view, or selecting certain objects in Design view. The crashes only occur in files that have PHP or ASP code, intermingled with HTML code. The crashes do not occur in Dreamweaver 8 or earlier (Ref. 229536).

REASON

The Dreamweaver CS3 WinFileCache-AD76BB20.dat file has been corrupted by the time change.

SOLUTION

  1. If Dreamweaver is open, quit the application.
  2. Delete the WinFileCache-AD76BB20.dat file from the Dreamweaver user configuration folder. Note that on Windows, the Application Data and AppData folders are hidden by default, so verify that your Windows Explorer folder options are set to View Hidden Folders. The location of this file is as follows:

    Dreamweaver CS3 on Windows Vista:  C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration
    Dreamweaver CS3 on Windows XP:  C:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver 9\Configuration

  3. Restart Dreamweaver.

posted in Utilities, PHP | 0 Comments