what does $_GET['2020'] mean? [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
a challenge like this $_GET['2020'] snippet boring me a long time, i want to know how this work, but do not know which keywords to search, maybe how the parameter works?

$_GET reads querystring parameters from the URL. So if someone goes to your PHP script with a URL like http://servername/scriptname.php?2020=ABC then when the PHP script runs, the variable $_GET['2020'] will contain the value ABC.
More info is available in the documentation: https://www.php.net/manual/en/reserved.variables.get.php

Related

.htaccess clean URL's while removing some variables? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Currently I have this structure.
?id=83&download=jerhub&title=The Post - Title Here
Is it possible for me to make my URL structure something like this?
/83-the-post-title-here.html
Completely removing the download variable from the clean URL structure, while still being able to call it on page?

Determine source of code that is making a query [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Exist any way to know the source page that is calling the query and store it?
Are you looking for $_SERVER['PHP_SELF'] ?
Check also print_r($_SERVER) if something is more accurate for what you need

how to get information from a link in php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
If give you a link like http://login.php?workerid=abc,
how can we get the information of workerid in php? Thanks.
Maybe $_GET function, but do not know exactly how to make that work.
you can get information from url like this
$data=$_GET['workerid'];

How do I make a comment system for my website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
What would the code be to have a comments section on my website where logged in people can place a comment. I got a database and want to use html and php only. No 3th party involved.
Something simple and not to advanced.
You should check out some tutorials:
http://www.youtube.com/watch?v=KGmEZY6DBhw
http://www.2my4edge.com/2013/05/comment-system-using-php-and-mysql.html
We are not going to place an entire code here, you should show us that you've tried instead of just asking us to write all of your code.

is it possible to run a piece of external php code after each php statement? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
The problem is that I must catch situation when some variable (and I don't know it's name, that is I don't know where this value first arises) matches some record in database. The way I think it could be done is to run after each statement an external code against array of local and remote variables. In that external code would be a simple foreach loop and db query, the script would then output line number where given situation happened.
Is this possible with xdebug ?
There is a function for that, http://php.net/manual/en/function.register-tick-function.php more documentation on ticks is http://www.php.net/manual/en/control-structures.declare.php here.

Categories