I've an iframe in my custom drupal 7 module whihch is displaying data from a remote url like this:-
$element[$delta]['#markup'] = '<iframe class="page_flipper" src="someURL"></iframe>';
It is working well but I want to display the output of another script/program in this iframe. The program has combined code of HTML,CSS,JavaScript and PHP. In other words I want to integrate that program in the above iframe. Can anybody tell how can I do this?
I've tried to point to the program using relative path in the src attribute of the iframe like this:-
$element[$delta]['#markup'] = '<iframe class="page_flipper" src="mydir/index.php"></iframe>';
but it didn't work and drupal displays this error in the iframe "The requested page "/<site_name>/node/myFlip/index.php" could not be found. Any help is appreciated. Thanks