php - How to include Wordpress header/footer in CGI script -


i have cgi script creates, searches, , edits mysql database. database searchable listing of burials cemetery, similar this: http://www.cowlitzcemetery2.org/burials/ based off program called "flattext mysql" no longer available online.

anyway, trying set script new cemetery, use wordpress main site. use script, import wordpress header , footer around script output, search results match rest of web site. possible?

thank you!

yes. here : https://metacpan.org/pod/template or use easier way .. templatize yourself

grab entire wordpress page cgi script after data section , instead of printing:

my $output = ''; ... $output.="string1\n"; ... $output.="string2\n";  $/ = undef; $page = <data>  $page =~ s/<content>/$output/;  print $page;   __data__ <html> wordpress page begin <content> wordpres page footer </html> 

Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -