
brandinhall
Members-
Content Count
9 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout brandinhall
-
Rank
Newbie
-
No luck with that : /
-
Heres what I have: <?php$pageName = basename($_SERVER['SCRIPT_NAME'], '.php');$pageMeta = $metaInfo[$pageName];$metaInfo = array( 'testing2' => array( 'descr' => 'this is a discription for testing2', 'author' => 'I am the author of testing2' ), 'about' => array( 'descr' => 'about desc text', 'author' => 'about author text' ));/*if($pageName == "testing2"){$pageName = "PHP is Fun!";} */$output = '<meta name="description" content="' . $pageMeta['descr'] . '"/>';$output .= '<meta name="author" content="' . $pageMeta['author'] . '"/>';?>&l
-
I thought by doing: $metaInfo = array( 'testing2' => array( 'descr' => 'this is a discription for testing2', 'author' => 'I am the author of testing2' ), It would tell the output, if my page is called testing2then to output $output = '<meta name="description" content="' . $pageMeta['descr'] . '"/>';$output .= '<meta name="author" content="' . $pageMeta['author'] . '"/>'; Are you saying I need to define a special array somehow?I am reading on w3schools about arrays, perhaps I am missing or my question is to tailored to something specific, please elaborate i
-
Can you explain what you mean by 'theres is no index ref for testing2 from testing2.php'
-
Awesome help guys! This is what I have. <?php$pageName = basename($_SERVER['PHP_SELF']);$homeMeta = $metaInfo[$pageName]; $metaInfo = array( 'testing2' => array( 'descr' => 'home desc text', 'author' => 'home author text' ), 'about' => array( 'descr' => 'about desc text', 'author' => 'about author text' ));$output = '<meta name="description" content="' . $homeMeta['descr'] . '"/>';$output .= '<meta name="author" content="' . $homeMeta['author'] . '"/>';?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
-
Okay based on your information this was my attempt.Heres the code I did: <?php$pageName = $_SERVER["SCRIPT_FILENAME"];$homeMeta = $metaInfo[$pageName];$metaInfo = array( 'home' => array( 'descr' => 'home desc text', 'author' => 'home author text' ), 'about' => array( 'descr' => 'about desc text', 'author' => 'about author text' ));$output = '<meta name="description" content="' . $homeMeta['descr'] . '"/>';$output .= '<meta name="author" content="' . $homeMeta['author'] . '"/>';?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitio
-
Hey, lol! that worked!! How would you go about making this <?php$tpTitle="Helping you to improve your web site";$pgHeading="Site-Report.com - Helping you to improve your web site";$pgDesc="Helping you to improve your web site";$pgKeywords="site-report";?> Pull the keywords, desc and titles from a file base on what page we are on?
-
thanks for not being an ###### towards my lack of knowledge! lolI was just reading further to try and understand more of what you said. I came across this http://www.cre8asiteforums.com/forums/index.php?showtopic=4558&st=0 This guy mentions a way that seemed a bit more simple (to me, the noob) haha. <?php $tpTitle="Helping you to improve your web site"; $pgHeading="Site-Report.com - Helping you to improve your web site"; $pgDesc="Helping you to improve your web site"; $pgKeywords="site-report"; ?> So i get that we define "params?" and then he says we can add this to our header.
-
Hey guys!I was wondering if someone would be kind enough to help me out. I am not really a programmer or savvy in that type of nature. I know HTML / CSS but really my experience is in the design field. I am using software called osDate.osDate allows you to give your site a title and meta tags from the admin interface, BUT... osDate doesn't support changing your title/meta tags for specific pages, this is a huge problem for me and the SEO of my site! Here's what I need and I'm hoping someone can help me out with. I want to know if someone could write me a quick tutorial or possibly show me how