Fork me on GitHub

including server side file?  Bottom

  • ok another question,

    i have foo.shtml file that has:

    Code

    <!--#include virtual="/cgi-bin/widget/bar.cgi" -->
    in it.

    when i open the file: somewhere.com/foo.shtml it works

    but if i have foo.shtml as a block it just makes it a comment and apache doesn't actually run the file.

    ps. in the code drop down box it would be nice to have the options in alpha order!
  • by the way:
    1. i cannot do a simple PHP include because its a binary program, so it just show all the binary code crap in the browser.
    2. cannot do a PHP virtual because my host has that turned off.
  • Anyone? There has to be a way to have a .shtml file that is included in a block actually get executed by the server!
    Would i need to do some .htaccess? Or maybe a better solution would be have index.shtml be my start page that has my include code then have that include postnuke's index.php file. That may work, i will have to try that.
  • Hmmm. Execute your shtml to a page then include the page... Do not include the shtml... but only the output. (Maybe).

    --
    David Pahl
    Zikula Support Team
  • well the problem is that the include needs to set a cookie, so it has to be real time.
    So far right now i have it so that when going to the domain you hit a shtml page first that runs the trade script.
    Then redirects to the main page.
  • Maybe, using a PHP block...

    Code

    virtual ("/cgi-bin/widget/bar.cgi");


    Make sure the path is correct from the block...

    Or do it as I said before, using a cron (depending on how real of time you need).

    I don't really know...




    edited by: AmmoDump, Jul 20, 2007 - 03:10 PM

    --
    David Pahl
    Zikula Support Team
  • 0 users

This list is based on users active over the last 60 minutes.