johnmerlino Posted April 8, 2011 Share Posted April 8, 2011 Hey all, Let's say if all of the data in the site is the result of queries from the database that are output as html by php as users interact with the site. For example, there's no home.php file. Rather user clicks the link to view the page, and a php script pulls data from database and renders the page at that time. There is no javascript involved in this process. Would this page be crawlable by google? Thanks for response. Quote Link to comment https://forums.phpfreaks.com/topic/233104-dynamically-generated-data-crawlable-by-google/ Share on other sites More sharing options...
dcro2 Posted April 8, 2011 Share Posted April 8, 2011 Yup. Quote Link to comment https://forums.phpfreaks.com/topic/233104-dynamically-generated-data-crawlable-by-google/#findComment-1198830 Share on other sites More sharing options...
johnmerlino Posted April 8, 2011 Author Share Posted April 8, 2011 So if there is no home.php file, but rather when a user clicks home.php link on the browser, a method gets called in let's say a categories class which populates a generic file called show.php with data, how does the crawler know to what the content is before the method even gets called? Thanks for response. Quote Link to comment https://forums.phpfreaks.com/topic/233104-dynamically-generated-data-crawlable-by-google/#findComment-1198850 Share on other sites More sharing options...
dcro2 Posted April 8, 2011 Share Posted April 8, 2011 As long as you make sure the server is responding with a 200 OK status, Google will cache your content just like a normal browser would display it. PHP is a preprocessor, so all a browser/bot will see is the HTML generated by it. Quote Link to comment https://forums.phpfreaks.com/topic/233104-dynamically-generated-data-crawlable-by-google/#findComment-1198853 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.