Posts Tagged ‘parameters’

PHP:Detect MySQL server version with simple php script on your web hosting

Monday, June 30th, 2008

<form>
<p>
This program lets to find out what mysql version your current hosting is running on.
You need to enter correct databaes parameters in order to get desired info.
</p>
<b>db host: <b/>
<input type=”text” name=”db_host” value=”localhost”>
<hr size=1 width=”25%” align=left>
<b>db username: <b/>
<input type=”text” name=”db_user” value=”">
<hr size=1 width=”25%” align=left>
<b>db password: <b/>
<input type=”text” name=”db_pass” value=”">
<hr size=1 width=”25%” align=left>
<hr size=1 width=”25%” align=left>
<input type=”submit” name=”submit” value=”submit”>
</form>
<?php
/*
1) enter db user/pass: host = localhost
2) view results
scenario:
1) show form
2) try to login
3) if OK -> show version
4) otherwise tell incorrect db user/pass combination
Freeware for comercial or non-commercial use.
no warranties!
*/
$submit = empty($_REQUEST['submit']) ? 0:1;
if ($submit) {
$db_host = empty($_REQUEST['db_host']) ? “localhost” : $_REQUEST['db_host'];
$db_user = empty($_REQUEST['db_user']) ? “” : $_REQUEST['db_user'];
$db_pass = empty($_REQUEST['db_pass']) ? “” : $_REQUEST['db_pass'];;
if (         empty($db_host)
|| empty($db_host)
|| empty($db_host) ) {
die(”<font color=’red’>Missing fields.</font>”);
}
$link = @mysql_connect($db_host, $db_user, $db_pass);
if (!$link)
die(”<font color=’red’>Can’t connect.
Please check your data.</font>”);
$qry = “SELECT VERSION()”;
$result = @mysql_query($qry);
if (!$result) {
die(”<font color=’red’>Query error: ” . mysql_error() . “</font>”);
}
$ver = @mysql_result($result, 0);
print “<font color=’green’>MySQL version: <b>$ver</b></font>”;
@mysql_free_result($result);
}
?>

SEO - Back to Basics

Friday, June 20th, 2008

A German Company Sistrix recently analyzed roughly 10,000 web sites to see if there were any common elements to reaching the top of the SERPS in Google. Here are some of the results that they found in their research:

They found keywords in bolded type, h2 to h6 tags (not so much in h1 tags), title tags along with these words in the body text were important. Image names and domain names with keywords helped also. Keywords in file paths or the parameters in a dynamic web site url didn’t seem to have a positive effect. Having inbound links seemed to have on of the biggest impacts in Google’s SERPS, for example a SERPS at number 11 in Google had about 4 times less the inbound links as did the number 1 spot.

Once again it seems sticking to the basic rules of SEO over time will garnish favorable rewards! Happy SEO-ing!