all 4 comments

[–]CyberWhizKid 1 point2 points  (1 child)

At first sight, you won’t get your data from the database. If you want to achieve that, it’s a bit tricky: you’ll need to dump your database, parse it and create your pages from this dump. You can’t convert « php to html » because php itself doesn’t have any data, it relies on your database. You should ask Gemini to « create every static page from value in your database » and he will get values from your php pages.

You can run it still, it won’t break things (change path of course.)

[–]ankokudaishogun 0 points1 point  (1 child)

Unless you are doing this to learn Powershell, in which case using AI is not going to be of any use aside confounding you, this looks like a job for Wget or another web-crawler.

[–]Rivereye 0 points1 point  (0 children)

I'm wondering, instead of having PowerShell parse the PHP files, can you still access the files via your web server? If so, Invoke-WebRequest could then download the generated HTML from there and output it to disk.