Hello,
I'm trying to have my index.php to open/run another test.php file.
I'm having my own server that I play with, that I run Ubuntu on.
So the index.php are located at /var/www/ directory, but I want to run a file that are located at /testing/test.php
The final test.php is file for showing pictures, and I don't want to out all the pictures under the /var/www/ location. It's alot of photos.
I don't know much about php but I have been trying this:
<?php
header("Location: /var/www/testing/test.php");
//These below are desperat old tries.
//header("Location: ./testing/test.php");
//header("Location: ../testing/test.php");
//$handle = fopen("/privat/Web_pictures/test.php", "r");
//"/testing/test.php"
// header("Location: ./test.php"); //This one actually works, but I'm still in the wrong folder (/var/www/)
echo "test "; // NN4 requires that we output something...
exit();
?>
Thankful for help!