#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    Heya,

    is it possible to create, let's say 10 html pages, and upload them to my server with a php script?

    the page have a header, message and footer

    the headers and footers from those 10 pages are different! so i have need a file headers.txt with 10 headers and a footer.txt with 10 footers.

    how can i create thes pages on my server?

    thnx

    ------------------
    Until next time, I'll Remain!!
    Quote the Dokus:"NeverMore!"
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>how can i create thes pages on my server?

    You want to create 10 pages ON THE SERVER or locally and upload to the server?
    Repost your message and specify what you really want.
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    I want to create those page on my server.

    So if i run the script they must be on my server.

    thnx for the reply

    ------------------
    Until next time, I'll Remain!!
    Quote the Dokus:"NeverMore!"
  6. #4
  7. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,642
    Rep Power
    4476
    Let's start from the beginning. Do you know how to write anything to a file? Do you know how to use the fopen() and fputs() functions?

    If so, then it's easy. Assign everything you want to write to a file to a variable, then write that variable to the disk.

    There are plenty of examples of how to read and write files using PHP in the manual.

    ---John Holmes..

    ------------------
    *************************************************************
    * The manual can probably answer 90% of your questions...
    *
    * PHP Manual. www.php.net/manual
    * MySQL Manual: www.mysql.com/documentation/mysql/bychapter
    *************************************************************

IMN logo majestic logo threadwatch logo seochat tools logo