How To Archives
This is one of those technical nitpick things. Check out the screenshot below of the new Yahoo Answers and see if you can spot the error.
The title of this thread kind of gives it away. Note the “1 Answers” should actually read “1 answer” and then when there ar 2 or more it should […]
12-10-2005 | Permanent Link | 1 Comment | Related Entries: How To, Functions
Awhile back I created a basic webmaster utility script called Easy Cell Code Generator which helped find easy to type cell phone numbers, but what if you had a domain and wanted to convert it out the other way? I decided to whip up some quick code to do just that:
Short domain:
mughd.com
Typed into cell […]
12-05-2005 | Permanent Link | No Comments | Related Entries: How To, Functions
I’ve been noticing a pattern in the comment spam being received on a couple of our blogs. See the following comment:
A couple things I noticed about the pattern:
- comment spam frequently comes from blogspot.com
- starts with hyperlink and then contains a sentence or two of text, usually nonsense
Let’s write some code to filter any HTML […]
11-20-2005 | Permanent Link | 1 Comment | Related Entries: How To, Information
You don’t have to know a ton of Cascading Style Sheet (CSS )to make forms look nicer on a web page. Let’s take a recent simple script I created. It’s a simple auction display script written in PHP. The version without any styling is shown below:
Notice the forms look pretty plain. We can add styling […]
11-14-2005 | Permanent Link | 3 Comments | Related Entries: HTML, CSS, How To
If you need to print out special characters in PHP you will probably want to get familiar with the built-in chr() function. Here’s some code that will demonstrate the various ASCII character codes available and how to output them to the screen:
<?php
print ‘Copyright (169): ‘ . chr(169);
print ‘<br />Registered Trademark (174): ‘ . chr(174);
print ‘<br […]
11-10-2005 | Permanent Link | No Comments | Related Entries: How To, Functions
One of the dangers of using newer PHP functions is that sometimes you’ll end up with people who are stuck on a shared host using an older version of PHP. In this case it’s helpful to have some backwards compatible functions. The category backwards compatability will deal with these situations.
file_get_contents has only been available in […]
11-07-2005 | Permanent Link | No Comments | Related Entries: Backwards compatibility, How To, Functions
Step by step instructions:
1. Navigate to START - > RUN
2. Launch the command window by typing:
cmd
3. Type:
ipconfig /all
4. The IP address for the machine will show in the “Connection” section next to: IP Address.
11-01-2005 | Permanent Link | 3 Comments | Related Entries: How To, Windows
Last night I added the Yahoo MyWeb button to the end of each post. The screenshot shows where you can find it (next to the “Listen to this post” link). Clicking this button lets users tag and save posts they find useful to their Yahoo MyWeb space. Don’t like how we categorized something? That’s fine, […]
10-28-2005 | Permanent Link | 1 Comment | Related Entries: How To, Wordpress
To email your HTML source code to you in one line of PHP code just use the following code:
<?php
mail(‘youremail@isp.com’,‘my source code’,file_get_contents(‘http://www.yourdomain.com/yourpage.html’),‘From webserver@localhost\r\n‘);
?>
10-26-2005 | Permanent Link | No Comments | Related Entries: Mail, How To
Reference: Building your commercial Virtual Earth Website using PHP:
We have already seen some basic C# code behind ASP pages that proxy the search and advertising queries. However, being a web based control you are not limited to working solely with Microsoft on the server side. In this article, we will achieve the same result using […]
10-24-2005 | Permanent Link | No Comments | Related Entries: How To, API