Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2010
    Thanked 0 Times in 0 Posts

    Post Merging Scripts-Advice Needed.

    New to php. Got a few scripts for my app.

    Login script

    A script that returns a custom XML menu for the user

    And a script that returns some url's for images.

    My Question is:

    Is it better to keep these scripts seperate, or merge them into one.

    And if so, how do i call a particular function in a php script from a url?

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Thanked 637 Times in 625 Posts
    The organization of your scripts should be based on the roles they play. In best practice, you want to use MVC, so you'd have controllers, views, and models and your scripts would be organized as such.

    Information in a URL can be extracted either by use of the $_GET superglobal array, or using PHP functions such as parse_url().


    Posting Permissions

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