10.
Using Query Parameters
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
5 Comments
hello,
When I use
var_dump('id'); die;browser is giving my directory path. Is this normal?
/var/www/html/code-php-ep2/start/show.php:7:string '3' (length=1)Hey Mahmut,
Yes, that's OK :) Well, I bet it depends on the PHP version, most probably you have a newer than the one used in the screencast. Or actually, maybe you have Xdebug installed and enabled - that may cause that the filename appears in the output. You can try to disable Xdebug and restart the server to see if it helps. But in general, you should use
var_dump()during the development, you should not use it on production of course. So that should not be a big problem :)Cheers!
thank you so much
There is an error in code sample. Just after the text "Call an imaginary get_pet() function and pass it the $id:"
Looks like some weird parsing bug:
.. code-block:: html+php
Hey Ivan,
Nice catch, thanks for noticing us! I fixed this mystical code block in: https://github.com/knpunive...
Cheers!
"Houston: no signs of life"
Start the conversation!