I created a website, I probably didn’t do it as I should, but at that time I was new to PHP. Therefore, to save a lot of disappointment in trying to rewrite the script to display photos on my site, I need to run the * .php file and make a conclusion if it goes into var called "$ html". I know this may seem strange, but that is what I need.
From inside index.php, I include photos.php; In photos.php, I need to declare $ html with the output of a script called photos_page.php;
For instance:
$html = parse_my_script("../photos_page.php");
thank
source
share