how to create run time file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshrasm
    Contributor
    • Nov 2007
    • 254

    how to create run time file

    Hi

    I am making a content management system. so the page will be created dynamically. I want to create run time file. how can I do that?

    Thanks
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    a 'run time file'? I'm not sure what you mean..

    If your page is going to be dynamic then you don't want to create any files other than stuff being stored in your database.

    A typical CMS works by using
    [php]
    $_GET
    [/php]
    And then fetches the relevant data from a database.

    Comment

    • mukeshrasm
      Contributor
      • Nov 2007
      • 254

      #3
      Originally posted by markusn00b
      a 'run time file'? I'm not sure what you mean..

      If your page is going to be dynamic then you don't want to create any files other than stuff being stored in your database.

      A typical CMS works by using
      [php]
      $_GET
      [/php]
      And then fetches the relevant data from a database.
      All the information is stored in the database and I am retrieving it on a page and then I want to create a file on the same page and storing it in a particular directory.
      so how can I do it?

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        This Tutorial should help you create the file.

        Then you can just fwrite to the file and you're done :)

        Comment

        • mukeshrasm
          Contributor
          • Nov 2007
          • 254

          #5
          Originally posted by markusn00b
          This Tutorial should help you create the file.

          Then you can just fwrite to the file and you're done :)
          Sorry! how you thought that it will help me?

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Oh dear... not sure what happened there.

            Anyway this is what i meant to link you to :P

            Sorry about that.

            Comment

            • mukeshrasm
              Contributor
              • Nov 2007
              • 254

              #7
              Originally posted by markusn00b
              Oh dear... not sure what happened there.

              Anyway this is what i meant to link you to :P

              Sorry about that.
              Thanks for the URL.

              Actually I am able to create file. But what I wanted to know that I am creating a content management system in which pages are created dynamically which will be linked to menu or submenu but I don't how I will display it when user clicks any menu/ submenu because all the data for page is stored in the database. Do I need any template to retrieve the page data and then display it. Page is of Image type in which only will be shown and there is other type of page in which only text will be shown.

              Comment

              Working...