Senest Online
helmuth 3 Dage
HenningS 1 Uge
wholle 1 Uge
Henrik Bendtsen 3 Uger
afoster 3 Uger
olelau 4 Uger
flj 5 Uger
Christian 5 Uger
Bubbi 5 Uger
iceman50 9 Uger
Gæster online: 7

Brugere online: 0

Antal brugere: 180
Nyeste bruger: Michael Mogensen
Se indlæg
PHP-Fusion - Danmark » PHP-Fusion version 7 » MODs & Infusioner v7
 Udskriv debat
Panel Code Needed
Jeg har forsøgt at oprette et panel, der vil trække oplysninger fra en kalender i en anden mappe og vise en liste over kommende begivenheder i et panel. Jeg kan ikke synes at regne ud, hvordan du indtaster koden for at få dette til at ske. Dette er hvad jeg har forsøgt at gøre.

  1. openside('Side block');
  2. ?>
  4. <!-- html code goes here -->
  5. require("");
  7. <?php
  8. closeside();

Det virker ikke. Enhver hjælp ville blive meget værdsat.
Redigeret af afoster d. 13-04-2019 06:05
Most servers do not allow the use include/require across domains, as it represents a security issue. If allowed, allow_url_include should be set in php.ini configuration file.

But you can achieve the same using for example:

openside('Side block');

Thanks for your response, but unfortunately it is still not displaying the information from the file. I just get a blank panel. I guess it can't be done.
If it does NOT work, the error is to be found another place. It’s standard and it works.
I'm trying to do this on version you think that has something to do with it because all I get is a blank panel. Where else should I look for the error. If I enter the url I want displayed out of php-fusion, it works fine so the url is correct.
I don't know. It's hard to say without insight.

I would start putting the file_get_contents line in a separate new php file, and test it here. If this does work it's something with the remaining code or phpfusion.
I think I found the webhost has disabled allow_url_fopen=0 in the configuration and I don't believe I have access to the php.ini file to fix it. Perhaps I can get it done through the wrapper infusion and display it that way, although I wanted it to be visible to the user as soon as they get to the home page without having to click on a link. If you have any suggestions on doing that, I would appreciate any input.
you can also use curl or maybe an old school html <iframe>
Spring til debat: