Ok I got ChatGPT to provide this:
If you want your PHP script to be executed only when it is called via a web
request, then you can place it in the CGI folder of a specific domain and
configure your web server to route requests for that domain to the script.
Here's an exam
I asked ChatGPT to give me a solution in php8 for this. Here’s what it wrote:
0) {
foreach ($urls as $url) {
$filename = basename($url);
$download_path = $download_folder . '/' . $filename;
log_message('Downloading ' . $url . ' to ' . $download_path);
Hmmm, kind of like a remote wget …
Actually,they’d tend to be done in batches, so I’d send a list of names to be
copied.
Is there a super-simple way for a php script handle one single POST request
that only does one thing, without a ton of overhead needed for an entire
REST-based service with
What about setting up a CGI script on the Linux server that you pass the
URL to, it could do a wget to retrieve the file to the directory you
specify.
On Sun, May 14, 2023, 8:50 PM David Schwartz via PLUG-discuss <
plug-discuss@lists.phxlinux.org> wrote:
> I’m building a web app that uses a 3rd-
My company has been using AWS S3 very successfully for different types of
data and it's been extremely cheap.
Without knowing much about data/transfers going on I just put together a
rough estimate of $10 a month for 100GB for storage and transfer. I'm over
estimating (I hope). You can also tell
I’m building a web app that uses a 3rd-party text-to-speech (TTS) service; it's
one of many things supported by a REST service I’ve created that runs on a
Windows host somewhere. This service sends requests to the TTS service and gets
back a URL to an MP3 file on their server. These files are on