using iframe in php

The following code works in a Wordpress page. The php variable $start_day will echo 'Aug-09-2015', the same date used in the iframe.
How do I get the iframe to work using the variable  $start_day?


[insert_php]
 // set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('CST');
$s = date("Y/m/d");
$time = strtotime($s);
$start = strtotime('last sunday, 12pm', $time);
$end = strtotime('next sunday, 11:59am', $time);
$format = 'M\-d\-Y';
$start_day = date($format, $start);
$end_day = date($format, $end);
header('Content-Type: text/plain');
echo "Input: $s\nOutput: $start_day - $end_day";
[/insert_php]


<iframe id="pdf" src="http://docs.google.com/viewer?url=http://www.thecatholicdirectory.com/communiques/75154/Aug-09-2015.pdf&embedded=true" frameborder="0" style="border:none; width:100%; height:900px; background: #d1d1d1;" scrolling="yes"></iframe>
<div style="height: 20px;"></div>
Gary SamuelsPlant ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

InsoftserviceCommented:
Please specify the error if possible

Html
<iframe id='pdf' src='http://docs.google.com/viewer?url=http://www.thecatholicdirectory.com/communiques/75154/<?php echo $start_day; ?>.pdf&embedded=true' frameborder='0' style='border:none; width:100%; height:900px; background: #d1d1d1;' scrolling='yes'></iframe>
<div style='height: 20px;'></div>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Julian HansenCommented:
Your query is not clear.

The PHP script simply sends a date to the requesting agent.

The iframe code seems to be displaying a PDF - how are you wanting to mix these two?
0
Gary SamuelsPlant ManagerAuthor Commented:
That worked, thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.