PHP

The Perils of test.php: How a Simple File Led to a Spam Nightmare

In the world of web development, we've all deployed throwaway files for debugging—often with innocent names like test.php. But sometimes, these small conveniences can snowball into major security breaches. One such case involved a test.php file containing a single, seemingly harmless line of code: <?php phpinfo(); ?>What’s the Harm in phpinfo()? At first glance, phpinfo() is a

Calling dotnet core Lambda API direct from PHP

Usually a API Gateway is placed in front of a Lambda to allow HTTP requests to be forwarded to a Lambda function. However even when using the HTTP API this still costs $1 per million invocations. To save costs I have setup the PHP website to call the Lambda function direct. Here is how to call the Lambda function and pass the request