|
A Few Handy PHP Regular Expressions (RegEx) |
|
PHP Resources -
Handy PHP Tutorials
|
|
Written by Handy PHP Administrator
|
|
Thursday, 17 January 2008 17:38 |
|
I frequently find that I am looking around the Internet for various Regular Expressions and sometimes I tend to have trouble finding just the right one.Then when I do, I use it and forget all about it!
While I know quite a bit about regex, I haven't mastered the techniques and figure if someone else has already found the regex for what I need, it is easier and more time efficient to use that one. Again, the problem for me is that I usually forget what script I used what regex in and have to go look it up again or search through a bunch of scripts on my computer that I've forgotten about.
So I've decided to use this article as a regex repository that I'll add useful expressions and links to resources that will help you with your regex needs.
|
|
Last Updated on Friday, 18 September 2009 06:13 |
|
Read more... [A Few Handy PHP Regular Expressions (RegEx)]
|
|
|
Creating Your First Template Driven PHP Website Part 1 |
|
PHP Resources -
Handy PHP Tutorials
|
|
Written by Handy PHP Administrator
|
|
Monday, 23 April 2007 15:48 |
Many people get discouraged when trying to start or even maintain a website because there are so many aspects of the website that need to be planned for in advanced. Since working with only HTML or even adding CSS and JavaScript can quickly limit the scalability of a website, many people simply give up! Here is an example of a situation where a new webmaster might abandon his dreams of running the World's greatest website! Imagine that you are designing your website from scratch and you have about 20 pages all created and maybe even uploaded or published on the Internet. Each of the pages was easy enough to create since you planned ahead and made a blank page with all of the layout and images setup. All you have been doing is adding content to the blank and saving it as a new file! This is always a good idea, since it ensures that your website will have a uniform look throughout! As you are working on the 21st page, you realize that the menu doesn't have a link to the newest page. Usually, this can be fixed by adding the link to the file that is the next level up and hope that people will find it by following the flow of information that leads to it. Unfortunately, this newest file is a section header. It will have many subsections under it that can only be linked to from this page. Your only option now is to edit ALL of the previous 20 files and republish them with the updated menu. Problem solved, right? well, just as you were getting ready to save that new file, you noticed a spelling error that is now on every page. You could let it slide by and hope nobody will notice but then again, you left a letter out of your website's name! So today, you have create 21 pages for your website and edited everyone of them twice! So, instead of having created 63 pages in one day, you wasted a bunch of time fixing small problems over and over again which will only get worse as your website gets larger.
|
|
Last Updated on Friday, 02 October 2009 21:25 |
|
Read more... [Creating Your First Template Driven PHP Website Part 1]
|
|
Creating Your First Template Driven PHP Website Part 2 |
|
PHP Resources -
Handy PHP Tutorials
|
|
Written by Handy PHP Administrator
|
|
Wednesday, 25 April 2007 15:27 |
|
As suggested in part 1 of this series of tutorials, a PHP based template system can use PHP commands or keywords. Here we'll tackle the same task as before but this time we'll use keywords instead of PHP functions. The tricky part about this is that we have to "parse" the template instead of simply including it in the handler script!
This system is much more complex and is really only suggested when you want someone other than yourself to create templates. The first thing you should do when creating a template based website using PHP with keywords is to decide on the exact method of keyword implementation! You have to make the keywords easy enough for anyone to use but unique enough to keep the script from confusing regular content or words with keywords. Some little used non-alphanumeric character and/or all capital letters is one method while a prfix and underscore is another. For example:
{KEYWORD1}
{KEYWORD2}
or
[temp_menu]
[temp_header]
[temp_footer]
or
%_MY_MENU_%
%_MY_FOOTER_%
%_MY_HEADER_%
By making the keyword syntax rules early, you can avoid complications later.
|
|
Last Updated on Wednesday, 25 April 2007 18:16 |
|
Read more... [Creating Your First Template Driven PHP Website Part 2]
|
|
Joomla CMS Tip #1 - Hide Your Special Links From Regular Users |
|
Webmaster Tools -
Webmaster Tips
|
|
Written by Handy PHP Administrator
|
|
Tuesday, 19 June 2007 04:58 |
|
The thing I like most about Joomla and for that matter Mambo, is the ability to create menus and set different permissions for different menus and menu items. For example, you can offer many more menu items to registered users than guests which makes sense for a lot of reasons. Why would you show a menu link to guests for a section of the website that is only accessible to registered members? More importantly, Why would you show the link to the Admin Control Panel to anyone other than your staff? It is unbelievable the number of Joomla based websites I have visited that show the link to the ACP. The first thing I always do is hide that link. That is just a very small step to adding a bit of security to your website. I'll explain the process here.
|
|
Last Updated on Tuesday, 19 June 2007 05:01 |
|
Read more... [Joomla CMS Tip #1 - Hide Your Special Links From Regular Users]
|
|
Using Your JoomlaBoard And FireBoard SearchBots |
|
PHP Resources -
Handy PHP Tutorials
|
|
Written by Handy PHP Administrator
|
|
Thursday, 23 August 2007 00:38 |
|
Are you unclear on how to use your JoomlaBoard or FireBoard SearchBot from Handy PHP? Well, I'll see if I can get you going in the right direction. To begin with, I think an explanation of the SearchBots should help.
The JoomlaBoard and FireBoard SearchBots are identical in coding and use since the FireBoard forum component was developed from the JoomlaBoard forum component and as a result, the database structures are nearly identical which allows the SearchBots to be identical. These SearchBots are used to allow the forum database to be searched from the default Joomla search component. This allows your visitors to effectively search the entire website all at once instead of needing to enter the forum area to search it separately. Most visitors will not bother to use each of the several search boxes many websites offer. This results in visitors not finding the information that they were looking for so they move on to the next website that might be able to help them. The think is, if a person finds information on your website, they are more likely to return than if they don't!
|
|
Last Updated on Tuesday, 08 September 2009 09:04 |
|
Read more... [Using Your JoomlaBoard And FireBoard SearchBots]
|
|
|
<< Start < Prev 1 2 3 Next > End >>
|
|
Page 2 of 3 |