Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Finding the starting PHP script

Finding the starting PHP script

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
csharpphptoolsquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MacIntyre
    wrote on last edited by
    #1

    I have to analyze a system written in php. I am a .NET programmer. I will be emulating the php system. I have been given a tar dump of the directory. After decompression I need to find the starting php script. What should I be looking for? I have many php scripts, but it feels like a haystack. Can someone tell me what the starting needle name should be?? Thanks in advance... Chuck..

    L 1 Reply Last reply
    0
    • M MacIntyre

      I have to analyze a system written in php. I am a .NET programmer. I will be emulating the php system. I have been given a tar dump of the directory. After decompression I need to find the starting php script. What should I be looking for? I have many php scripts, but it feels like a haystack. Can someone tell me what the starting needle name should be?? Thanks in advance... Chuck..

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      the default page in a directory normally is called index.php :)

      Luc Pattyn [My Articles] Nil Volentibus Arduum

      M 2 Replies Last reply
      0
      • L Luc Pattyn

        the default page in a directory normally is called index.php :)

        Luc Pattyn [My Articles] Nil Volentibus Arduum

        M Offline
        M Offline
        MacIntyre
        wrote on last edited by
        #3

        Luc, Nice article. The problem is not recognising the PHP code or being able to read the code. The problem is that I have several hundred PHP files. Which one is the first? That starts the app running. From there I and untangle the ball of string I have for years. Where is the beginning?

        1 Reply Last reply
        0
        • L Luc Pattyn

          the default page in a directory normally is called index.php :)

          Luc Pattyn [My Articles] Nil Volentibus Arduum

          M Offline
          M Offline
          MacIntyre
          wrote on last edited by
          #4

          Do all PHP programs start with "main.php" or "index.php" or "default.php"?

          L 1 Reply Last reply
          0
          • M MacIntyre

            Do all PHP programs start with "main.php" or "index.php" or "default.php"?

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            No. In a web application, the default file in a folder is index.php, that is what gets served to a client when accessed by a browser. You can create any filename.php you like and execute it locally by using a command line that fits your PHP platform and refers to the source file. And there are ways to compile a bunch of PHP files into a single EXE, haven't done that yet. :)

            Luc Pattyn [My Articles] Nil Volentibus Arduum

            M 1 Reply Last reply
            0
            • L Luc Pattyn

              No. In a web application, the default file in a folder is index.php, that is what gets served to a client when accessed by a browser. You can create any filename.php you like and execute it locally by using a command line that fits your PHP platform and refers to the source file. And there are ways to compile a bunch of PHP files into a single EXE, haven't done that yet. :)

              Luc Pattyn [My Articles] Nil Volentibus Arduum

              M Offline
              M Offline
              MacIntyre
              wrote on last edited by
              #6

              Thanks..

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups