php readfile() function - how to implement on smarty web page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • K.

    php readfile() function - how to implement on smarty web page

    Hello!

    I have a problem with using php on smarty web page

    I would like to use a php code from this web page:

    Informacje finansowe z kraju i ze świata. Aktualne i archiwalne: notowania giełdowe, kursy walut, wskaźniki gospodarcze, wiadomości ekonomiczne.


    i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>

    which let me see currency courses on my web page.

    The problem is that I have web page built up based on MVC model + Smarty.

    Is it possible to implement below code:

    <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>

    on template file?

    If so, please share your knowledge and write me how I could use it?

    Thank you in advance for help
    M.


  • Jerry Stuckle

    #2
    Re: php readfile() function - how to implement on smarty web page

    K. wrote:
    Hello!
    >
    I have a problem with using php on smarty web page
    >
    I would like to use a php code from this web page:
    >
    Informacje finansowe z kraju i ze świata. Aktualne i archiwalne: notowania giełdowe, kursy walut, wskaźniki gospodarcze, wiadomości ekonomiczne.

    >
    i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
    >
    which let me see currency courses on my web page.
    >
    The problem is that I have web page built up based on MVC model + Smarty.
    >
    Is it possible to implement below code:
    >
    <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
    >
    on template file?
    >
    If so, please share your knowledge and write me how I could use it?
    >
    Thank you in advance for help
    M.
    >
    >
    Did you ask in the Smarty support forums?

    When dealing with other products, you should almost always start with
    their support community.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • K.

      #3
      Re: php readfile() function - how to implement on smarty web page


      Uzytkownik "Jerry Stuckle" <jstucklex@attg lobal.netnapisa l w wiadomosci
      news:GeKdnR1w0q RBJa_VnZ2dnUVZ_ vudnZ2d@comcast .com...
      K. wrote:
      >Hello!
      >>
      >I have a problem with using php on smarty web page
      >>
      >I would like to use a php code from this web page:
      >>
      >http://www.money.pl/webmaster/#
      >>
      >i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true)
      >?>
      >>
      >which let me see currency courses on my web page.
      >>
      >The problem is that I have web page built up based on MVC model + Smarty.
      >>
      >Is it possible to implement below code:
      >>
      > <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
      >>
      >on template file?
      >>
      >If so, please share your knowledge and write me how I could use it?
      >>
      >Thank you in advance for help
      >M.
      >>
      >>
      >
      Did you ask in the Smarty support forums?
      >
      When dealing with other products, you should almost always start with
      their support community.
      >
      Unfortunately I did not ask on Smarty support forums.

      M.


      Comment

      • AD

        #4
        Re: php readfile() function - how to implement on smarty web page


        Uzytkownik "Jerry Stuckle" <jstucklex@attg lobal.netnapisa l w wiadomosci
        news:GeKdnR1w0q RBJa_VnZ2dnUVZ_ vudnZ2d@comcast .com...
        K. wrote:
        >Hello!
        >>
        >I have a problem with using php on smarty web page
        >>
        >I would like to use a php code from this web page:
        >>
        >http://www.money.pl/webmaster/#
        >>
        >i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
        >>
        >which let me see currency courses on my web page.
        >>
        >The problem is that I have web page built up based on MVC model + Smarty.
        >>
        >Is it possible to implement below code:
        >>
        > <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
        >>
        >on template file?
        >>
        >If so, please share your knowledge and write me how I could use it?
        >>
        >Thank you in advance for help
        >M.
        >>
        >>
        >
        Did you ask in the Smarty support forums?
        >
        When dealing with other products, you should almost always start with their
        support community.
        >
        --
        I have read on smarty forums

        {php}

        {/php}

        M.

        Comment

        • Gordon

          #5
          Re: php readfile() function - how to implement on smarty web page

          On May 20, 11:00 am, "K." <halinaciern... @poczta.onet.pl wrote:
          Hello!
          >
          I have a problem with using php on smarty web page
          >
          I would like to use a php code from this web page:
          >
          Informacje finansowe z kraju i ze świata. Aktualne i archiwalne: notowania giełdowe, kursy walut, wskaźniki gospodarcze, wiadomości ekonomiczne.

          >
          i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
          >
          which let me see currency courses on my web page.
          >
          The problem is that I have web page built up based on MVC model + Smarty.
          >
          Is it possible to implement below code:
          >
          <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
          >
          on template file?
          >
          If so, please share your knowledge and write me how I could use it?
          >
          Thank you in advance for help
          M.
          The quick and easy (and therefore evil) way of doing it would be to
          escape into PHP in your templates. Smarty supports executing raw PHP
          statements in templates but it's really not recommended. It'll do for
          quickly prototyping a feature though.



          Your best bet is to write a Smarty plugin that will fetch the data you
          want and present it to your script as a variable.




          The eightball example on the latter page should demonstrate pretty
          much everything you need to know.

          Comment

          • Jerry Stuckle

            #6
            Re: php readfile() function - how to implement on smarty web page

            AD wrote:
            >
            Uzytkownik "Jerry Stuckle" <jstucklex@attg lobal.netnapisa l w
            wiadomosci news:GeKdnR1w0q RBJa_VnZ2dnUVZ_ vudnZ2d@comcast .com...
            >K. wrote:
            >>Hello!
            >>>
            >>I have a problem with using php on smarty web page
            >>>
            >>I would like to use a php code from this web page:
            >>>
            >>http://www.money.pl/webmaster/#
            >>>
            >>i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html',
            >>true) ?>
            >>>
            >>which let me see currency courses on my web page.
            >>>
            >>The problem is that I have web page built up based on MVC model +
            >>Smarty.
            >>>
            >>Is it possible to implement below code:
            >>>
            >> <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
            >>>
            >>on template file?
            >>>
            >>If so, please share your knowledge and write me how I could use it?
            >>>
            >>Thank you in advance for help
            >>M.
            >>>
            >>>
            >>
            >Did you ask in the Smarty support forums?
            >>
            >When dealing with other products, you should almost always start with
            >their support community.
            >>
            >--
            >
            I have read on smarty forums
            >
            {php}
            >
            {/php}
            >
            M.
            So - did you try ASKING in their forums?

            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            • AD

              #7
              Re: php readfile() function - how to implement on smarty web page


              Uzytkownik "Jerry Stuckle" <jstucklex@attg lobal.netnapisa l w wiadomosci
              news:P5ydnTg2Xd U2kq7VnZ2dnUVZ_ gadnZ2d@comcast .com...
              AD wrote:
              >>
              >Uzytkownik "Jerry Stuckle" <jstucklex@attg lobal.netnapisa l w wiadomosci
              >news:GeKdnR1w0 qRBJa_VnZ2dnUVZ _vudnZ2d@comcas t.com...
              >>K. wrote:
              >>>Hello!
              >>>>
              >>>I have a problem with using php on smarty web page
              >>>>
              >>>I would like to use a php code from this web page:
              >>>>
              >>>http://www.money.pl/webmaster/#
              >>>>
              >>>i.e.. <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
              >>>>
              >>>which let me see currency courses on my web page.
              >>>>
              >>>The problem is that I have web page built up based on MVC model + Smarty.
              >>>>
              >>>Is it possible to implement below code:
              >>>>
              >>> <?php readfile ('http://cw.money.pl/wiadomosci_bank i.html', true) ?>
              >>>>
              >>>on template file?
              >>>>
              >>>If so, please share your knowledge and write me how I could use it?
              >>>>
              >>>Thank you in advance for help
              >>>M.
              >>>>
              >>>>
              >>>
              >>Did you ask in the Smarty support forums?
              >>>
              >>When dealing with other products, you should almost always start with their
              >>support community.
              >>>
              >>--
              >>
              >I have read on smarty forums
              >>
              >{php}
              >>
              >{/php}
              >>
              >M.
              >
              So - did you try ASKING in their forums?
              >
              --
              No I found it on Polish smarty technology description

              M.

              Comment

              Working...