PLS! Some help
I am trying to modify a wordpress pluging, so instead of using some iframe tags, to use file use content.
Pls Help. Here - the first commented line is how the script used to be (and working), and the second is what I am trying to build...
Can you pls. advise, or need the whole code?
// iframe tag zusammen bauen
//$res='<iframe class="wpf-iframe" src="'.plugins_url( 'wp-forecast-show.php?wpfcid='.$id.'&header=1' , __FILE__ );
$res= file_get_contents ("http://http://www.vremeanet.ro/wp-content/plugins/wp-forecast/"'wp-forecast-show.php?wpfcid='.$id.'&header=1' , __FILE__ )');
error I get is
Parse error: syntax error, unexpected T_STRING in /home/vremea/public_html/vremeanet.ro/wp-content/plugins/wp-forecast/shortcodes.php on line 23
High Energy Magic Dept.
I'm just guessing that you want something more like this:
PS: You'll be more likely to get useful responses if (a) you use a thread title that describes your problem, not just that you need help, and (b) make use of this forum's [php]...[/php] bbcode tags when posting your code.
$res = file_get_contents ("http://http://www.vremeanet.ro/wp-content/plugins/wp-forecast/") .
plugins_url('wp-forecast-show.php?wpfcid='.$id.'&header=1' , __FILE__);
PPS: Welcome to the forums!
Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be." ~ from Nation, by Terry Pratchett
"But the main reason that any programmer learning any new language thinks the new language is SO much better than the old one is because he’s a better programmer now!" ~ http://www.oreillynet.com/ruby/blog/...ck_to_p_1.html
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)