I got arrays working first time! :)
This is the website's source code, the file is testing.php.
Source code:
<?php
$data = array('test'=>'testingpage',
'test1'=>'test1a',
'cars'=>'mycarpage',
'php'=>'hypertext processor');
// echo http_build_query($data); // foo=bar&baz=boom&cow=milk&php=hypertext+processor // test
// echo http_build_query($data, '', '&'); // foo=bar&baz=boom&cow=milk&php=hypertext+processor //
include("http://mywebsite.localhost.com/test.php/");
?>
and when typed in the URL becomes: http://mywebsite.localhost.com/testing?test&testingpage
which is how it would normally appear in an array.
However, I wish to rewrite the test page to: http://mywebsite.localhost.com/testing/test&testingpage
treating testing.php (using mod_rewrite the extension has been removed!) as if it were a directory.
If anyone knows how to do this it would be much appreciated, I have tried many times but have not got anywhere with this!