web development
Archived Posts from this Category
Archived Posts from this Category
I was trying to create a php code to parse some text and to process it.
I have difficult time with the substr (sub string), strpos (which return the position of a particular segment of string). Testing and debugging it is just a time consuming work.
Luckily my friend enlighten me by introducing me regular expression way to look for values in a text. Using regular expressions you can easy find a pattern in a string and/or replace it if you want.
BUT PHP regular expressions seems to be a quite complicated area especially when I am not a experienced Unix user.Historically regular expressions were originally designed to help working with strings under Unix systems.
The regular expressions basic syntax
To use regular expressions first you need to learn the syntax of the patterns. We can group the characters inside a pattern like this:
An example pattern to check valid emails looks like this:
Code:^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$ The code to check the email using Perl compatible regular expression looks like this:
0 comments Thursday 18 Dec 2008 | BestHosting | php, web development
Here is a list of a few popular Open source Web based Content Management system (CMS).
0 comments Tuesday 25 Nov 2008 | BestHosting | reviews, web development, webtool
Are you looking for charting tool for your presentation on web pages ? Google Chart API may be just right for you.
The Google Chart API lets you dynamically generate charts using Google Server resources. To see the Chart API in action, open up a browser window and copy the following URL into it:
http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World
Other examples of chart you can create.
All the examples above are created on the fly on google server. If you would do it from your web hosting account, it would have eat up a lot of your server resources. Why not just leave it to Google API chart ?
Restriction :- NO restriction, as long as you do not abuse it. No limit on number of times you call the API, but you are advised to inform google in advance if you use more than 250k times in a single day.
Check out the detail API on http://code.google.com/apis/chart/ on how you can use it.
About author : This original article is property of Top 10 Web Hosting (http://www.top10webhosting.com). List of best web hosting services company offering PHP and MySQL. Compare & save ! on web hosting fee. Note : Please include author information if you wish to republish this article.0 comments Friday 24 Oct 2008 | BestHosting | tutorial, web development, webtool