-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_advance_meta.php
36 lines (36 loc) · 1.81 KB
/
index_advance_meta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
//get the randam single row from db using rand() function
//ex. SELECT * FROM `table_name` ORDER BY rand() LIMIT 1
$data=array(
'title'=>'title from db',
'descrption'=>'description from db',
'url'=>'url from db'
);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="description" content="<?= $data['description'] ?>"/>
<title><?= $data['title'] ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta property="og:url" content="<?= $data['url'] ?>" />
<meta property="og:title" content="<?= $data['title'] ?>" />
<meta property="og:type" content="article" />
<meta property="og:description" content="<?= $data['description'] ?>" />
<meta property="og:image" content="http://www.autumnworldwide.com/show-got-profile/<?= $data['image'] ?>" />
<meta property="og:image:secure_url" content="https://www.autumnworldwide.com/show-got-profile/<?= $data['image'] ?>" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="200"/>
<meta property="og:image:height" content="200"/>
<meta property="fb:app_id" content="178227382709073"/>
<meta http-equiv="refresh" content="0; url=https://www.autumnworldwide.com/" />
</head>
<body>
</body>
</html>