Archive for February 2009
Some days ago I decided to experiment with Twitter API. They offer a really simple to use API and good documentation that allowed me to create a function to submit to twitter using PHP and the curl library.
So, Twitter offer in its documentation something like this…. ” Post a status update and get the resulting status back as JSON: curl -u username:password -d status=”your message here” http://twitter.com/statuses/update.json “
Another consideration to rank higher in yahoo and google is making sure that your images contain the information about what they are representing.
For example, lets say a T-Shirt site, they usually have a bunch of designs or products related to a certain content. If your PHP code is generating these images or grabbing them from a Database (files names usually come from a Database), you probably want to take advantage of that by adding to the ALT tag the title of the product. This also accomplish two things: a) If user has a slow down in his connection he will see the product name until the image loads, making it easy for them to (more…)
Probably you already know all the SEO tips out there, but I think if you are working on a new project with PHP (btw php is my fav script language), you need to consider a way to handle “friendly urls”. You know, something similar to how WP handles the URL for evry post or page (i.e. mydomain.com/post_name ), instead of the usual page_id=12&type=post.
If you are interested on how to do it, check apache mod-rewrite or you can read more about how to do “Friendly URLS with PHP” at “The html blog“
