Setting up a PHP interpreter in PhpStorm

I am a beginner in web development and am having trouble trying to figure out how to set up a CLI interpreter for PHP. I don’t know what to do to set up an interpreter and the JetBrains tutorials seem to assume that I already have available interpreters. I have previously used AWS to make … Read more

Setting up a PHP interpreter in PhpStorm

I am a beginner in web development and am having trouble trying to figure out how to set up a CLI interpreter for PHP. I don’t know what to do to set up an interpreter and the JetBrains tutorials seem to assume that I already have available interpreters. I have previously used AWS to make … Read more

Why use $_SERVER[‘PHP_SELF’] instead of “”

The action attribute will default to the current URL. It is the most reliable and easiest way to say “submit the form to the same place it came from”. There is no reason to use $_SERVER[‘PHP_SELF’], and # doesn’t submit the form at all (unless there is a submit event handler attached that handles the submission).

HTML Element Array, name=”something[]” or name=”something”?

PHP uses the square bracket syntax to convert form inputs into an array, so when you use name=”education[]” you will get an array when you do this: So for example: Will give you all entered values inside of the $_POST[‘education’] array. In JavaScript, it is more efficient to get the element by id… The id doesn’t have to match … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)