Xavier Media
Xavier Media Blog All you need to know as a web site owner, blogger or webmaster
Subscribe to our feed:

 Subscribe in a reader

Subscribe by email:
Enter your email address to subscribe to this blog by email:


Search this blog:

Archive for the ‘PHP & MySQL’ Category

Upload your code projects to Google

Monday, January 12th, 2009

If you have some king of software project it could be a good idea to setup a project at Google Code since it looks like the code projects get indexed sooner then other pages :D . I read about this in the McAfee blog where spammers abuse this feature since the pages get instantly indexed in Google, but you don't have to be a spammer to take advantage of this nice feature.

Just create a simple code project and upload your code.

  1. Visit http://code.google.com/hosting/ and click on "Sign in to create a project". This requires that you have a Google account (but who doesn't have that :D ).
  2. Fill in a short description of your project, the project name (must be all lower case :( ) and select a few tags:
    Google Code
  3. Click on the download tab and upload your code.
  4. Now your code project is setup :D

You can also setup your own wiki for your code project using the standard wiki syntax where you can answer the most common questions about your code project. Another cool feature of Google Code is that you can setup more administrators if you need and also setup project members if needed. You need to know that administrators can change anything so only add people you really trust!

One other feature is that you can add your Google Analytic tracker on all pages within your project so you get 100% info on your visitors and how they find your code.

Check out the code project I created at http://code.google.com/p/xavierkeno/.

Learn PHP Free – a new Xavier Media site

Wednesday, January 16th, 2008

The second site we've acquired this year is called LearnPHPFree.com (the first site we acquired was ArticleFinders.com). The site is about (that's right) learning PHP and got about 20 lessons in PHP and a discussion forum. Unfortunately the forum has been closed for a long time, but that's going to change now :) .

Learn PHP Free will be a fantastic complement to our other sites LearningPHP.com, AskPHP.com and CGI PHP.com.

/Andreas

How to make money from missing pages

Saturday, January 12th, 2008

All web sites move pages to new locations, pages are removed from sites because they are old or outdated, visitors sometimes type the wrong URL to get to a page and I think I can list about 10 other reasons for users to end up with a 404 Page Not Found error. If you haven't done anything with your hosting account all those visitors will just see the standard error page which is really boring and not helpful at all. On most hosting accounts you can do something about that and also earn some money from it!

Start by creating a text file called .htaccess in your web directory (that's where you keep your main index.html or index.php file). I use Notes or Wordpad to edit my .htaccess files (or nano if I'm connected directly to the server).

The file should look something like this:

 ErrorDocument 404 /404.php

If you already got a file called .htaccess in your hosting account you should simply just add the above line of text into that file (don't over-write your existing .htaccess file since it may contain important information).

Now create a new file called 404.php (you can of course name the file anything you like, but I used 404.php in my .htaccess file so that's what I'm going to use). You can use Notes or Wordpad for this file too. Fill in the following text in your new 404.php file:

<?
Header("HTTP/1.0 404 Not Found");
?>
<!-- Page content goes here -->

At <!– Page content goes here –> you simply add some text telling the visitor that the requested page wasn't found on your server. Also give the visitor some advice on how to find the requested information (give the visitor a possibility to search your site for example of add a link to a site map).

Since the visitor is at your site he must be interested in your products or services, so don't forget to tell the visitor about your products and services. Next time when a users see the 404 error page he will hopefully stay at your site a little bit longer instead of using the back-button in the browser immediately the 404 error shows up. Not everyone will become your customers, but at least enough for this to pay off :D



U DROP - I FOLLOW
Win 700 Entrecard credits

Recent Comments:

  • karl Allen: I found another niche search engine…. Gezzmo search :arrow:
  • AM: Good post. Looks like they’re trying to mimic Facebook’s corporate pages, or something similar. Seems...
  • luckyvic: :mad: You’re joking? Right? Elitextreme.com is is a leading carrier of biggest frickin’ ripoff,...
  • Latin Dating: Cool sale. I have planned to buying another new domains. Im still looking where to find a great deal I...
  • faisal majeed: So Twitter is awesome for Taking traffic to you website . It is very simple to setup and its a fun...
  • mikey: Aha – same email, with address, and I also use http://www.brother-store. co.uk/ Thanks for clearing this...

Recent Trackbacks:



© Copyright 1996-2009 Xavier Media. All rights reservered.
Contact us | Support/help | Privacy Policy | Company Info | SiteMap
The World According to Xavier | Xavier in the World | the Xavier Media blog