Error with PHP in glitch

I am trying PHP on my site for banning by IP so I don’t have to set up .htaccess. However, when I try to use PHP on an HTML page or a PHP page, it will not work. What am I doing wrong?

1 Like

You can use this in you package.json

{
  "install": "echo 'We Are Ready!'",
  "start": "php -S 0.0.0.0:3000 -t ."
}

Or you could check out the php-poc: https://glitch.com/~php-poc

:video_game:

2 Likes

Welcome to the Glitch community!

2 Likes