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 6 of 6

Thread: php Help

  1. #1
    New to the CF scene
    Join Date
    May 2009
    Location
    Orkney Islands
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    php Help

    Hi can any one tell me how to list all my "inc files" on a php page, then when you click on the link of the file it will open on that page if this is possible?

    and yes I'm new to all this coding and got alot to learn as I'm trying to build a site for our MXclub

    Many thanks

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    It depends on what your "inc files" are ... some plain text? some HTML? some images?
    You might be describing something different than what I'm thinking about.

    Are you wanting to display the same page (such as "index.php") with different content
    each time a menu link is clicked?

    Maybe you can show us the website (give us a URL) and explain it to us.

  • #3
    New to the CF scene
    Join Date
    May 2009
    Location
    Orkney Islands
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    My "inc files" are all plain text (http://www.orkneymotocross.co.uk/Don...Dee%20cups.inc) but it would be great if I could add a few photos, at the moment this story is on our "news" page, as the year goes on we will be adding more this is why I would like them only to be listed then click to open.
    (http://www.orkneymotocross.co.uk) your view on our site would be very welcome but remember that this is my first one please be gentle.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why didn't you ask in the php forum? So you are wanting to list all of the files that are dependencies of the current page you are on so everything included you want to list?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    May 2009
    Location
    Orkney Islands
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Oops I'm sorry if I put it in the wrong forum like I said I'm new to all this.
    Yes that sounds about right, how or whats the best way to do it

  • #6
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,502
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    My personal opinion is that you should be using WordPress or Joomla for a website.
    WordPress can be used in a form of a website CMS, not so much like a blog.
    Many people are finding and using custom WP templates for non-blog sites.


  •  

    Posting Permissions

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