localhost - php open other files locally -


so have index.php file , scrapper.php files in same directory. use mac terminal in directory, , launch php -s localhost:8888. when go localhost:8888, index.php shows up. great.

however, want see scraper.php file in browser don't know how. please me. far i've tried:

http://localhost:8888/scraper (which shows index.php).

i included <?php include("./scraper.php"); ?> in index.php.

i can see interaction in terminal: [thu may 14 21:57:43 2015] 127.0.0.1:60411 [200]: /background.jpg [thu may 14 21:57:45 2015] 127.0.0.1:60416 [200]: /scraper

but broswer. please help.

sgt bos's solution worked. need append .php @ end


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -