Finding the starting PHP script
-
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..
-
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..
the default page in a directory normally is called
index.php
:)Luc Pattyn [My Articles] Nil Volentibus Arduum
-
the default page in a directory normally is called
index.php
:)Luc Pattyn [My Articles] Nil Volentibus Arduum
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?
-
the default page in a directory normally is called
index.php
:)Luc Pattyn [My Articles] Nil Volentibus Arduum
-
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
-
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