Help needed for phproxy script

Discussion in 'PHP' started by nofus, Oct 15, 2008.

  1. #1
    I like to add some extra pages to my new proxysite.

    I use a free proxy template with a index.php and index.inc.php file (and some css and images, etc).

    Now, I want an additional page like contact.php and disclaimer.php with the same layout, but I do not know how to do that.

    Please advice what to do.
     
    nofus, Oct 15, 2008 IP
  2. thpinky

    thpinky Banned

    Messages:
    314
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'll do it. Give me a pm.
     
    thpinky, Oct 15, 2008 IP
  3. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #3
    just make a copy of your index page and then edit it and rename it to the page you want.
     
    ryandanielt, Oct 15, 2008 IP
  4. nofus

    nofus Member

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Both your solution will not fix it, I think.

    The index.php contains the logic of the proxy script, the index.inc.php contains the layout and content of the page.

    There should be s omewhere around here with some decent PHProxy knowledge.
     
    nofus, Oct 15, 2008 IP
  5. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #5
    Yes he is right

    Remove the Php code in index.php

    and make your own files of index.inc.php like contact.php and add it

    And also you can add any code between the form tags in index.php/index.inc.php which will get displayed in the other page.
     
    Freewebspace, Oct 16, 2008 IP
  6. RRWH

    RRWH Active Member

    Messages:
    821
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    70
    #6
    What I did when I ran proxies was to create a template page and use it for all pages like you are thinking of doing - it is pretty easy and really just a matter of doing some very basic things to implement - just add the links to the page in your content area of the index.inc.php file
     
    RRWH, Oct 16, 2008 IP
  7. nofus

    nofus Member

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #7
    When I remove the PHP code from the index.php file, does my proxyscript still work than?

    Sorry, but I do not understand the meaning behind the 2 files, It confuses me. Can you please write step-by-step how to make a working, empty page witch I can edit?

    Thanks for the help.

    That's my question in fact, how to create such template?
     
    nofus, Oct 16, 2008 IP
  8. ryandanielt

    ryandanielt Well-Known Member

    Messages:
    1,797
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    185
    #8
    I'm heading to work now but ill be back in a couple of hours and I can send you the files you are looking for.
     
    ryandanielt, Oct 16, 2008 IP
  9. nofus

    nofus Member

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    That would be very cool!
     
    nofus, Oct 17, 2008 IP