Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oscommerce Title Tags Paranoia


pegweb

Recommended Posts

Posted

In our quest into search engines and top listings we tried the following code:

 

// save this as something like test.php and upload it to your server

 

$geturl = 'www.yourwebsite.com';

 

$HTML_file = file ($geturl);

 

$HTML_string = implode('', $HTML_file);

 

eregi("<title>(.*)</title>", $HTML_string, $my_temp);

 

$HTML_title = trim($my_temp[1]);

 

echo 'TITLE = '.$HTML_title.'<BR>';

 

We tried this on several Oscommerce sites that we have done and the title tag is empty.

We then tried this on several other php/database sites that we have written and the title tag appears.

 

If some search engines use a similar technique to spider websites perhaps this may be a problem ? Although looking through the code of Osc we cant see a reason why.

 

I would be interested to know if any other people have a similar problem or maybe this code is totally incorrect.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...