I agree, will check that little script out.tacnet wrote: ↑September 23rd, 2026, 7:22 pmThat's one way of doing it but it seems a bit over complicated. That little script I posted above will take whatever output WP produces and write it straight to an html file. No export or json files neededgotonudecom wrote: ↑September 23rd, 2026, 11:57 am@tacnet
Have you experience or heard of exporting the WP database into json files and using python to create the static pages of the site?
Turning WP blogs into HTML
- gotonudecom
- Verified Member

- Posts: 3168
- Joined: February 6th, 2018, 1:54 pm
- Title: DomainMaster
- Referrals: 30
- Contact:
-
Dorman
- Verified Member

- Posts: 203
- Joined: December 30th, 2020, 1:44 am
Nice idea let me test this out see if I can see how it does and get back to youtacnet wrote: ↑August 17th, 2026, 11:27 amYou can just carry on using WP as normal. Make your posts and the cron job will automatically update the html pages every minute (or however often you set it to run)
Below is a copy of a post I did in the other thread regarding bots. It relates to pages on this forum but it can be tweaked to whatever pages you need
ok this is quick and dirty. Cron job will look something like this :-
Then, if your not familiar with editing your crontab file then I would get your hosts to add this line to itCode: Select all
<?php // First write the index to index.html $html = file_get_contents('https://www.sponsorchat.com/index.php'); $filename = 'index.html'; $handle = fopen($filename,"w"); fwrite($handle,$html); fclose($handle); // Now write topic list to topics.html $html = file_get_contents('https://www.sponsorchat.com/viewforum.php?f=74'); $filename = 'topics.html'; $handle = fopen($filename,"w"); fwrite($handle,$html); fclose($handle); ?>
That will run your cron file once every minute. The * * * * * means run the cron every minute. Or I could use */10 * * * * to run it every 10 minutesCode: Select all
* * * * * php /full/path/to/your/php/file/mycronfile.php
Hope that helps
- gotonudecom
- Verified Member

- Posts: 3168
- Joined: February 6th, 2018, 1:54 pm
- Title: DomainMaster
- Referrals: 30
- Contact:
let us know how that turns out.Dorman wrote: ↑September 26th, 2026, 1:44 pmNice idea let me test this out see if I can see how it does and get back to youtacnet wrote: ↑August 17th, 2026, 11:27 amYou can just carry on using WP as normal. Make your posts and the cron job will automatically update the html pages every minute (or however often you set it to run)
Below is a copy of a post I did in the other thread regarding bots. It relates to pages on this forum but it can be tweaked to whatever pages you need
ok this is quick and dirty. Cron job will look something like this :-
Then, if your not familiar with editing your crontab file then I would get your hosts to add this line to itCode: Select all
<?php // First write the index to index.html $html = file_get_contents('https://www.sponsorchat.com/index.php'); $filename = 'index.html'; $handle = fopen($filename,"w"); fwrite($handle,$html); fclose($handle); // Now write topic list to topics.html $html = file_get_contents('https://www.sponsorchat.com/viewforum.php?f=74'); $filename = 'topics.html'; $handle = fopen($filename,"w"); fwrite($handle,$html); fclose($handle); ?>
That will run your cron file once every minute. The * * * * * means run the cron every minute. Or I could use */10 * * * * to run it every 10 minutesCode: Select all
* * * * * php /full/path/to/your/php/file/mycronfile.php
Hope that helps![]()
-
porntraveller
- Verified Member

- Posts: 609
- Joined: May 26th, 2019, 2:01 am
Not to get bashed I see no reason to mess about with WP it works and gets updates all the time for free.