SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Non-Member
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Combine web page template & php script?

    I am using a web page template for my web site.
    I've downloaded an upload script that has index.php, it's own templates folder, admin folder etc.

    How can I combine them so the upload box will appear on my main home page?

    The web template has a custom.css file that comes with it, and the upload program has a style.css file with it.

    Would someone need to look at all the files to figure this out?

    What do you suggest?

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Location
    Ukraine
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would suggest you just to create custom upload script. It will be better for your site than to use several template engines, because than you will have to change each one once you will decide to change design. This can be painful.

  3. #3
    Non-Member
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks, but...

    Thanks for your reply, however I just want to get this web site off the ground. Thinking about re-design may never happen. I'm thinking about the shortest way to get this web site up, so i can see if it flys.

  4. #4
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Location
    Ukraine
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Than you can just change upload script templates to match your site and just do not integrate them. Or just include requred script (I mean php include()) from your main somftware.

  5. #5
    Non-Member
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Thanks for your reply.

    Can you give me an example of how to php include them?

  6. #6
    SitePoint Enthusiast
    Join Date
    Jun 2007
    Location
    Ukraine
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it is hard to provide an example in your case, but you can try just include it from your page like this (will include the php code):

    PHP Code:
    include(<file upload script>); 
    or this one will include only html generated by upload script:
    PHP Code:
    include("http://yoursite.com/upload.php"); 

  7. #7
    Non-Member
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    thanks


Bookmarks

Posting Permissions

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