scrubbicus Posted June 28, 2009 Share Posted June 28, 2009 So I'm curious how it works with PHP and MySQL. Will I be ranked just as high organically if I'm generating my content through dynamic PHP and functions as well as pulling information from MySQL databases rather then having all the content in plain HTML? If yes how does that work, if no how can I make it work since I'm sure all of the larger websites are using such a system. For a quick example. Would these all work the same in terms of search engine visibility? <title>Hello Website Nice to Meet You <title><?php echo 'Hello Website Nice to Meet You'.$_SESSION['name']; ?></title> class meta { private $_title = 'Hello Website Nice To Meet You'; public function getTitle() { echo $this->_title; } } <title><?php $meta->getTitle(); ?></title> Ya know and so on... Link to comment https://forums.phpfreaks.com/topic/163953-mysql-and-php-sefseo/ Share on other sites More sharing options...
Ken2k7 Posted June 28, 2009 Share Posted June 28, 2009 Depending what you want to be ranked on. No search engine can read your PHP so it doesn't matter if you use plain HTML or use PHP to generate the meta. To Google bots, they are all the same. Link to comment https://forums.phpfreaks.com/topic/163953-mysql-and-php-sefseo/#findComment-864947 Share on other sites More sharing options...
scrubbicus Posted June 29, 2009 Author Share Posted June 29, 2009 Right so for instance one of my articles is ranked on Google but that article is generated with PHP from the MySQL database so how did the crawler find it? Would a website made completely out of HTML, all articles wrote in HTML be ranked higher in terms of the keywords and content on that website then a website where all the articles are pulled out of a database and all the links and most of the other content would be generated dynamically with PHP? These websites would theoretically be the same. I'm asking this question because a friend of mine has a very small website, no PHP is really NEEDED but I like using it because it makes the site easier to edit when it comes to it. Would I be better of just making the entire website HTML/CSS and static for more search engine optimization? Link to comment https://forums.phpfreaks.com/topic/163953-mysql-and-php-sefseo/#findComment-865811 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.