We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21136
    • 103 Posts
    Hello smiley

    I have a client that I am rolling his site into MODx. The only issue I am having is with a PHP include.

    I am use to pulling in a PHP Include via a snippet and always works fine but this time I get the following error:

    Parse error: parse error, unexpected $ in /usr/www/users/xxxxxxx/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 3.

    The include is the following and this is what I inserted in the snippet:

    <?php
    include("http://www.abc123.org/feed-basic/mainpage.php?af=123")
    ?>

    The only difference that I can see from this include from previous includes is that it is a URL being pulled from another domain. All previous includes I have pulled from a folder on the local domain.

    How can I pull this feed into a page?

    Please help smiley

    Regards,

    Ken Roberts
      • 21136
      • 103 Posts
      Never Mind sad

      It is my fault (user error). I fixed it.

      Forgot to add the semi-colon

      Thanks again,

      Ken
        • 42842
        • 12 Posts
        Hi guys!

        My Question is related to this here so I post it here:
        I want to display this content: http://heartandtruelove.com/vimeo.php?id=123456

        So i created the php into a snippet:
        <?php
        $imgid = $_GET['id'] . $id;
        $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$imgid.php"));
        echo $hash[0]['thumbnail_medium'];
        ?>
        

        and i can load the snippet like this:
        [[!vimeo_thumb? &id=`123456`]]

        BUT, here comes the problem, I don't get the same thumbnail link like here:
        http://heartandtruelove.com/vimeo.php?id=123456

        My guess was, that I am doing something wrong in the php code, what could it be?
        thanks for fast response! =)