Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    mib
    mib is offline
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is this possible?

    Hi,

    What i want to be able to do is create a php page from another php page.

    The reason for this is i want one page to create to generate the code for the user however rather than the user having to copy and paste the code for the page themselves i would like the file to be automatically created and placed in the correct folder.

    Any help would be appriciated, (even if i means i have to use another language to create the php file.)

    Thanks
    MIB

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The reason for this is i want one page to create to generate the code for the user
    What kind of "code" is this? Why do you need to make separate code for each user?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    mib
    mib is offline
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Reply

    Well the code for the second page is going to generate a PDF file from the libary that i have on the webserver.

    So each pdf file will have different content that i need to have on it.

    Thanks

  • #4
    mib
    mib is offline
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem Solved

    Thank alot but i manages to find a solution.

    I used fopen to create the file and fwrite to write the code to the page. Incase anyone ever wants to do this aswell.

    MIB


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •