-
Notifications
You must be signed in to change notification settings - Fork 0
02 Hello World
Leo edited this page Oct 13, 2025
·
1 revision
- Create new repo in GitHub (from browser)
- -> Repositories / New
- Add your first file to your repo (from browser)
- "Add file" / "+Create new file"
- Name file "index.php"
- Add code & commit changes
<?php
echo "Hello, World!";
?>- In GitHub client: File / Clone repository
- Choose Repo
- Define local path
- Clone
- XAMPP Control Panel: Apache / Config / Apache (httpd.conf)
- Adapt directory in following two places:
DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">
Tip: Use /forward slashes/ in file paths (even on Windows)
- Start XAMPP
- Open page in browser: http://localhost/
- This shows the standard XAMPP welcome page
- Start VS Code
- Open local directory: File / Open folder...
- Make change to index.php
- Save changes & refresh browser to see changes
- Download Git for Windows: https://git-scm.com/downloads/win
- Install Git for Windows
- Option: "User Visual Studio Code as Git's default editor
- Use all standard settings
- Ctrl+Shift+G (Source control)
- Commit (with message)
- Sync (Push)
- Check in GitHub browser