03.
Reading POST’ed (Form) Data
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.
14 Comments
Hey! Great course! But I'm having a problem checking my answers on the challenges... When I press "check" the challenge shows loading and nothing happens...
Hey Diogo,
We're sorry about that! Unfortunately, we experienced some problems with challenges yesterday. Today everything should work, please, try again! If you still have any problems - let us know!
Cheers!
Getting some errors on the challenge stage for this episode. I am sure I am entering code correctly. #HELP
Fred! We just re-worked all the challenges, they're way more awesome now, and you can see the answer if you need to. It's totally possible that there was a grading bug before - if so, sorry about that! Try the new challenges - I think you'll like them :).
Hi I use Ubuntu, is there a way I can get var_dump() to print out my variables data in that pretty way you guys show in this videos?
Hey Elvism,
Yes, of course! What you need is the Xdebug PHP extension. For Ubuntu, use your APT package manager to install it:
It depends on PHP version you use. If you use different PHP version of 5.x - google for how to install Xdebug for your version.
Cheers!
Hi Victor, thanks for responding, so I've installed xdebug for my PHP 7 version following this article https://php-built.com/insta... but I'm still not getting the variables and objects output like you guys get with var_dump() in the videos.
I'm getting still just the same all together in one line like:
array(1) { ["starfighter"]=> object(Ship)#1 (4) { ["name"]=> string(16) "Jedi Starfighter" ["weaponPower"]=> int(5) ["jediFactor"]=> int(15) ["strength"]=> int(30) } }
Checking if I have xdebug installed and enabled properly with php -m | grep -i xdebug it outputs me that the modules everything is correct.
elvismdev@elvismdev-XPS-13-9350:~$ php -m | grep -i xdebug
xdebug
Xdebug
Is there some else settings I would need to tweak or something else I'm missing to get the colored var_dump() with everything lined down as you guys show in the videos?
Hey Elvism,
Hm, it should work. Do you use PHP build-in server? Or real web server like Apache / Nginx? Anyways, you need to restart your server. BTW, take into account that console PHP could use different configuration file (/path-to-php/cli/php.ini) than PHP-FPM (/path-to-php/fpm/php.ini). So if you enable Xdebug only for CLI - do the same for PHP-FPM. Let me know if it helps.
One more thing - look at the Symfony VarDumper Component. It's cool library which dump your variables even cooler than Xdebug. And you even don't need Xdebug for it at all! It provides with Symfony SE out of the box, just use "dump()" function in your PHP code. Or just install it with Composer for your custom project. I'm wondering to hear your feedback about it. :)
Cheers!
nice looking var dump :
https://stackoverflow.com/q...
Hey Beniamin,
Thanks for sharing this tip! But I'd recommend you to try Symfony VarDumper Component, you would love it ;)
Cheers!
Hello Victor,
VarDumper is the best ever. Thanks. If someone need to install xdebug before symfony I found this ressource very useful: https://xdebug.org/wizard.php
Nice Coding to all of you.
Hey Beniamin,
Great, I'm glad you liked it!
Cheers!
Hey Ryan, There are several more of the challenges that part or all of the text is mission in the Mission box. #2 on this video #2 on the If statements video in the first course. I'll let you know if I find more.
Thanks Neal - I'm going to have us fix this immediately, or at least audit them all. I appreciate the head's up!
"Houston: no signs of life"
Start the conversation!