oic: url includen klappt nicht.

guten abend. ich habe bis jetzt auf meiner page alles so included:
<?php
if(!isset($action)) $action = "home";
include($action.".html");
?></TD>
ging auch alles bis jetzt, nun will ich jetzt eine url includen, habs so versucht:
<?php
if(!isset($action)) $action = "home";
include(http://meinepage.de/hp/$action.".html");
?></TD>
klappt leider nicht. Wwie könnte ich das machen das es geht? danke shconmal...

  1. Hallo

    Wie könnte ich das machen das es geht?

    PHP 4.3 aufspielen. Warum? Frag das Manual http://php3.de/include

    Grüße

    David

    --
    "Nobody will ever need more than 640k RAM!"
    1981 Bill Gates
  2. Hallo

    include(http://meinepage.de/hp/$action.".html");

    Und beim Lesen deines identischen Postings auf php4-forum.de fiel mir auf, dass du natürlich auch http://bla nicht inf Anführungzeichen hast. Schraub mal dein ErrorReporting höher oder lerne zu verstehen, wass dir der Phrase-Error sagt.

    Grüße

    David

    --
    "Nobody will ever need more than 640k RAM!"
    1981 Bill Gates
  3. include(http://meinepage.de/hp/$action.".html");

    Das ist ganz einfach text kommt in " oder ' oder " oder ... Variablen nicht.
    Textteile und/oder variablen werden mit . aneinander gehängt.
    z.B: "pfad/".$name.".endung"
    mfg andreas