PLS! Some help
Results 1 to 3 of 3

Thread: PLS! Some help

  1. #1
    Junior Member
    Join Date
    Jan 2013

    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?

    thank you

    // iframe tag zusammen bauen

    //$res='<iframe class="wpf-iframe" src="'.plugins_url( 'wp-forecast-show.php?wpfcid='.$id.'&amp;header=1' , __FILE__ );

    $res= file_get_contents ("http://"'wp-forecast-show.php?wpfcid='.$id.'&amp;header=1' , __FILE__ )');

  2. #2
    Junior Member
    Join Date
    Jan 2013
    error I get is

    Parse error: syntax error, unexpected T_STRING in /home/vremea/public_html/ on line 23

  3. #3
    High Energy Magic Dept. NogDog's Avatar
    Join Date
    Aug 2006
    I'm just guessing that you want something more like this:
    PHP Code:
    $res file_get_contents ("http://") .
    plugins_url('wp-forecast-show.php?wpfcid='.$id.'&amp;header=1' __FILE__); 
    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.

    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 hes a better programmer now!" ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts