Web Developer
Aquent
US-VA-Springfield

Justtechjobs.com Post A Job | Post A Resume

Spell Checking and URL Tricks
I needed a simple little example that I could use to show how Apache's ForceType directive can be put to good use with PHP. I chose a URL-based spell checker since one of the newer features of PHP is built-in spell checking and I thought this would interest people as well. This is of course a rather useless example. You can do a lot of quite complex things with the concept presented here.
The ForceType directive just changes the MIME type of something to the given type, overriding all other settings for the resource it is applied to. Since it applies to a resource you have to also somehow define which resources it should apply to. I normally use a <Location> block, but <Directory> and <Files> are useful here as well. You should read through How Directory, Location and Files sections work in the Apache documentation to understand the difference between these three better. The big advantage of the <Location> directive is that it can be used in .htaccess files which is good for people who don't have access to change their server's configuration files.
To get an idea of what this does try this URL: http://www.lerdorf.on.ca/s/bogus.
[ Next Page ]


Comments:
Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä!ÀÌÇýÁø12/02/04 06:04
´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ýÇѰæ¿í12/02/04 00:12
½Å.¿ë.ºÒ.·®.ÀÚ/´çÀÏ500/´ë.Ãâ.ºñ.¹ýÀÌÈñÁø11/30/04 03:48
Áß¿äÇÑ Á¤º¸ÀÔ´Ï´ÙÀÌ´ÙÇö11/27/04 05:36
½Å.¿ë.ºÒ.·®/Ä«.µå.¿¬.ü/´ë.Ãâ/È¥ÀÚ/ÇØ.°áÇÏ´Â/¹æ.¹ý±èÇö¼­11/24/04 23:51
Ä«/µå/µ¹·Á¸·±â·Î/¸Á°¡Áö½ÅºÐ/²À º¸¼¼¿ä!ÀÌÇýÁø11/24/04 01:12
´ë'Ãâ'°Å'Àý'½Ã'100%µÇ'°Ô'ÇÏ'´Â'¹æ'¹ýÇѰæÇý11/21/04 08:15
½Å.¿ëºÒ.·®ÀÚ°¡ ¾Ë¾Æ¾ßÇÒ Á¤.º¸ ´ë.°ø.°³ ÀÌ´ÙÁø11/16/04 21:38
Ä«.µå °ª.¿ø.±Ý.¸¸.°±.´Â.¹æ.¹ý(°­.Ãß)Áö¿µÈñ11/15/04 12:38
Ä«.µå.±ø.¾È.ÇÏ.°í.µ·.¸¸.µé.¾î.¾².´Â.ºñ.¹ýÀÌÈñÁø11/13/04 09:21
´ëÃâ °ÅÀý½Ã 100%µÇ°Ô ÇÏ´Â ¹æ¹ý(Çʵ¶)!!!±èÁö¿¬02/01/04 04:45
½Å¿ëºÒ·®ÀÚ 2³âµÚ ¿ø±Ý¸¸ °±´Â ¹æ¹ý!(Çʵ¶)±è¼÷Èñ01/06/04 01:00
Nice but...Clemens10/22/02 12:40
RE: How to do it for IIS?Ryan10/15/02 10:42
This threadJeff Sampson07/24/02 15:22
An other option ..Spacecat06/30/02 00:42
RE:Don't have any access to modify httpd.confPHP NEWBIE05/13/02 19:23
How to do it for IIS?Gary Loescher05/07/02 10:19
RE: Don't have any access to modify httpd.confMark04/25/02 22:55
send e-mail with specific information from DBMaher Salam04/21/02 20:08
RE: Writing an email programnido03/12/02 02:17
pspellgroundup02/28/02 23:17
problem in configuring aspellprasad11/30/01 07:40
Need HelpDon09/04/01 22:42
need helpnerd08/28/01 05:53
RE: No input fileBill Peck06/07/01 16:54
RE: Writing an email programDave05/14/01 03:47
Don't have any access to modify httpd.confTeo Danardi03/09/01 14:22
No input fileRavis12/18/00 05:44
RE: Writing an email programNath11/29/00 05:04
Writing an email programNeville Lewis11/16/00 10:41
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.