gawo2025-ws-json-html
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
How to Install and Run the Examplary Website with PHP
|
||||
|
||||
1. Install PHP (if not already installed)
|
||||
- Windows:
|
||||
1. Download PHP from https://windows.php.net/download/
|
||||
2. Extract the files to C:\php
|
||||
3. Add C:\php to the system PATH environment variable
|
||||
- Linux (Debian/Ubuntu):
|
||||
1. Open a terminal
|
||||
2. Run: sudo apt update && sudo apt install php
|
||||
- macOS:
|
||||
1. Open a terminal
|
||||
2. Run: brew install php (if Homebrew is installed)
|
||||
3. Alternatively, install PHP manually from https://www.php.net/downloads
|
||||
|
||||
2. Save the project files in the same folder:
|
||||
- parser.php
|
||||
- examplary.json
|
||||
|
||||
3. Open a terminal or command prompt and navigate to the folder:
|
||||
- Example: cd path/to/folder
|
||||
|
||||
4. Run the PHP script to generate the HTML file:
|
||||
php parser.php
|
||||
|
||||
5. Start a local PHP server:
|
||||
php -S localhost:8000
|
||||
|
||||
6. Open a web browser and go to:
|
||||
http://localhost:8000/output.html
|
||||
|
||||
Reference in New Issue
Block a user