I had a fine solution with:
$.get('getdbstuff.php?type=meta,'.$var_id, function(data){
$(data).appendTo("head");)
}
But that is javascript and it doesn’t get executed by the facebook scraper.
Is there some php equivalent to $.get the getdbstuff.php file loaded.
to load meta tags into the header of my index.php…?
Thanks
Yes. Depending on if you want to go through the web server, just get the contents or execute the contents locally, it would be one of
echo file_get_contents('http://yourdomain.com/path/file.php?params')echo file_get_contents('file.php')orinclude('file.php')First one does it the same way AJAX call does it, going through the web server. Second one outputs the contents of the file without executing, probably not what you want, and the last one executes php code without the HTTP call. First one is the closest match to what you do now.