Hello everybody
I want to fetch meta tags of a domain.
It will be done from following code of index.php
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 24px
}
-->
</style>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="index.php">
<div align="center" class="style1">Enter Domain Name :
<label>
<input name="domain" type="text" id="domain" value="http://www.google.com" size="35" />
</label>
<label>
<input type="submit" name="submit" id="submit" value="search" />
</label>
</div>
</form>
<p align="center">E.g. google.com</p>
</body>
</html>
Here is the code for domains.php
Code: <?php
$domain = "series99.com";
$tags = get_meta_tags("http://".$domain);
Website Description : <?php echo $tags['description']; ?>
?>
I am able to fetch Description and keywords. But problems are
1) How to fetch title ?
2) What I want to do is when a person will enter domain name on index.php, he will get redirected to domains.php but it will be something like domain.php?domain=series99.com
Then the domains.pgp page will show the data of series99.com. Temporarily I have kept
Code: $domain = ""series99.com";How can I replace it by the domain name written by a person on index.php ???
Thanks
Count Session and Trigger Events
I am New in PHP, seeking a method to count logged users by counting the sessions or any …, is there any way to do it without using a database, and also eager to know a method to make to throw an
How to give the privillege for triggers?
Hi,
FAGL_FC_TRANSLATION FAS52 New GL ECC 6.0
Hello,
Post PHP form to non-existing page
The company that I work for host their PHP code on IIS on a Windows server, no Apache, so no mod_rewrite. I recently wrote a custom framewok that is loosely based on Codeigniter. To get SEF URL's 'n
What are the two different files you download to update kernel?
What are the two different files you download to update kernel?
PHP form authentication
Hi guys,what am trying to achieve is this: Whenever a user tries to login to my website, an error should be displayed for the first time notifying them to try again. Every time they open the website,
PHP & Images [Resize, Crop, Save]
Hey! Well I have a little dilema, hoping I could find some guidance.I have a CMS and on the actual website I am building I have a nice little slideshow script that runs through all the images in a
Php mysql - select?
Hi i have this code:Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid = '$_GET[id]'") or die(mysql_error()); And it gives meYou have an error in your SQL syntax; check
finding key position of specified value in multi-dimensional array
Code: $openedfile = fopen($tfc_file4, "r");$rc = 1;while(!feof($openedfile)){$rc++;$hold[$rc] = explode("|" , trim(fgets($openedfile)));}fclose($openedfile);How can I loop through
Multiple server callbacks (NOT POSTBACKS)
Hello,