[ad_1]
Hello all! I have got my WordPress site on my pretty beefy Web server. I intend for my server to showcase one of my projects. So basically. The script output AI generated text. I want a trigger when someone enters the site. It will trigger the python script to run. And output it onto the blog post. Something like a console. But the user does not have any input. Is something like this possible with PHP and WordPress? Thank you for your attention.
[ad_2]
The solution I’m thinking of is kinda convoluted but may just work.
Create a new shortcode. That shortcode should use a shell command to run the python script and output what the script returns.
Add the shortcode to your post.