I have 2 PHP files.
The first one is called data.php and it has
<?php
$get = $_GET;
if (isset($get['getBoxes']) && $get['getBoxes'] == 'what-we-do') {
$boxes = array(
array(
'title' => 'e-commerce',
'color' => '#ff910f',
'content' => 'As your E-Commerce partner we will identify your specific needs, build solutions that will make your operations stronger, and provide a powerful web presence.',
),
array(
'title' => 'mobile & social',
'color' => '#ffd11a',
'content' => 'Be it iOS, Android or Windows Phone, we can accommodate your specific needs for your ideal mobile application.',
),
array(
'title' => 'open source cms',
'color' => '#39a91f',
'content' => 'Every good open-source CMS system allows for great flexibility to be customized and extended. Let us help you build yours.',
),
array(
'title' => 'software development',
'color' => '#17b5ff',
'content' => 'Our development services help you address evolving business and technology challenges by building applications tailored to meet your business requirements.',
),
array(
'title' => 'interactive design and usability',
'color' => '#6b6bff',
'content' => 'We are a full-service user interface design firm offering information architecture, interaction design, and full visual design.',
),
);
echo json_encode($boxes);
exit;
}
if (strpos($_SERVER['REQUEST_URI'], basename(__FILE__)) !== false) {
header("HTTP/1.1 404 File Not Found", 404);
exit;
}
And from a second PHP file called html.php I want to use the array $ boxes but I do not know how to access it since it is inside $ get.