Website Integration · PHP
PHP Integration
If your restaurant's website runs on PHP, embed your live menu with a single line of server-side code.
The code
Drop this anywhere in your PHP template — the menu content is fetched and printed directly into your page:
<?php $menu = file_get_contents("https://www.co2group.net/cgi-bin/restaurantmenus/menu?acct=YOUR_ACCT&req=include&menu=YOUR_MENU_ID"); echo ($menu); ?>
Live preview
Below is the same demo menu, rendered live using our client-side embed — identical output to the PHP method above, no server-side code required to preview it here.
When to use this method
PHP integration is the right choice if your site is already built on PHP — WordPress, a custom CMS, or a hand-coded template. It's a single line, runs entirely server-side, and needs no extra JavaScript on the page. See the other integration methods if your site isn't PHP-based.
Order Today