php
Archived Posts from this Category
Archived Posts from this Category
Generally, all shared hosting doesn’t offer FFMPEG php extention, including all kinds of video encoding, getting info, flash encoding and etc. This is due to performance issue as Shared hosting are meant to be “sharing” resources, including CPU processing power.
If your hosting account really has the need to use it, I would advice you to search for VPS or dedicated hosting on google and ask/request them for the specific service.
Feel free to add any hosting that you come accross that can offer FFMPEG by posting to the comments box below.
Thank you.
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.1 comment Saturday 07 Mar 2009 | BestHosting | php, web development
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
How do I offset the Timezone for my location, instead of the server timezone?
First of all, setting the timezone at .htaccess level using “SetEnv TZ location” doesn’t work on your php script.
If you are using PHP 5.1 and ealier, add this code within your php
putenv(‘TZ=Europe/London’); /* change the TZ value accordingly. */
If you are using PHP 5.1 up, add this code within your php script.
date_default_timezone_set(‘Europe/London’);
0 comments Monday 25 Aug 2008 | BestHosting | apache, php, tutorial