Beginner PHP Tutorial – 14 – Error Reporting

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

40 responses to “Beginner PHP Tutorial – 14 – Error Reporting”

  1. linus lexy Avatar

    Why would I still be getting an error message even if my error-reporting is set to 0?

  2. Vedanth V Baliga Avatar

    I have two files: php.ini-development and php.ini-production.
    Which one should I use to change settings?Can someone help??

  3. Mohsin Ali Avatar

    Done Completed 14 tutorial my site studyofcs , com

  4. wessltov Avatar

    Oh alright so we can just echo out a variable on the same line it's created? Why not tell us that rather than count on us seeing it?! F***

  5. Mervin Lee Avatar

    Mine says… display error=on, I am assuming that is what I would want?

  6. James Block Avatar

    So I'm using the MAMP localhost package and I went to the php.ini file for php 7.0. The error_reporting statement by default was set equal to E_ALL but I still wasn't getting the errors printed on the page. I noticed that the print errors statement that's right below the error_reporting statement was set to Off. I set this to On and restarted the servers but errors are still not displayed. What's going on here?

  7. Neddih Lous Avatar

    I love your videos, and I have learned a lot of things from these tutorials, so thank you!

  8. Hitut Tea Avatar

    A Database Error Occurred

    Unable to connect to your database server using the provided settings.

    Filename: C:xampphtdocsFusionCMS-mastersystemdatabaseDB_driver.php

    Line Number: 124

  9. Artimis Krasniqi Avatar

    In 2015 im not getting a blank page im getting  Parse error: syntax error, unexpected '$var2' (T_VARIABLE), expecting ',' or ';' in C:xampphtdocsseriesfirstfileerrorreporting.php on line 5

  10. Rohit Gandhi Avatar

    Error_Reporting is just by default On in Wamp…..
    anyway gud going bro….
    thnx for tutorials….!!!

  11. SkyTec Syst3m Avatar

    or you can just put error_reporting(1); at the top of the page?

  12. Parascheeva Furnal Avatar

    So is this one of the reasons why mature developers hate php? That what was written only 3 years ago is already deprecated? I can't find the error_reporting variable in my file, except in this line: error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT, which I suppose substitutes what he's saying. Moreoever, error reporting is ON by default on xampp now :/ So, yeah, slightly discouraging, to say the least if I try to think about the more complicated stuff which might have become deprecated in the mean time.

  13. Antuan Claude Avatar

    I Simply use eclipse.

  14. Raihan Khan Avatar

    i cant find php.ini file i have ini development and ini production what should i do?? 

  15. Moby - Avatar

    THUMBS UP SO MORE PEOPLE WON'T WASTE TIME
    The new version, yes, has this set up, but you shouldn't just skip to the text tutorial, this is valuable information! If you want to ever change this setting but don't know how you'll have to go through the process of finding out how, but if you stay on this video until the end you'll have this information in your brain already!

  16. Dankest Elf Avatar

    Was that a fucking didgeridoo in the background in the last 3 seconds of the video?

  17. Venkatachalam Subramanian Avatar

    wamp default is error_reporting = E_ALL.

  18. gedq Avatar

    php has two different string handlers – the single quote one is literal – whatever's in the string gets dumped into the variable. The double quote one is processed first. It can do tricks. It's cleverer than the single quote handler but a fair bit slower.

  19. gedq Avatar

    no. you're only about an hour in, give them a chance.

  20. Curtis Coburn Avatar

    Thanks. I'll see if I can find it in there.

  21. William Maguire Avatar

    It is inside the php folder, i.e. mine is at c:xamppphpphp.ini

  22. Curtis Coburn Avatar

    This is already set up for me. And for some reason I do not have a php.ini file when I downloaded XAMPP.

  23. greatsea Avatar

    I set error_reporting to 0 and it still gives me an error

  24. Knut Hufthammer Avatar

    After all of these episodes, should we have a basic understanding of PHP and be available to develope a dynamic website?

  25. HDDesign1337 Avatar

    I should read the comments before I watch a video.. lol

  26. Banjojo Avatar

    Do you always use single quotes when assigning a string to a variable? is that a PHP thing? or just your quick way of typing for the tutorial?

  27. Darkinin Avatar

    nvm, turns out that there's more than one php file in my install, hidden away in the apache folder.

  28. Darkinin Avatar

    I'm using WAMP and can't seem to turn off error reporting. I set error_reporting to zero, and that didn't work. I then tried to google and find an answer, setting error_reporting to "E_ALL & ~E_NOTICE," which didn't work either.

  29. khajvah1 Avatar

    Some people do not use XAMPP and instead host their websites not localy(on remote server), so …

  30. Mihir Desai Avatar

    i didnt install XAMPP right so i had to install all the different parts separately 🙁 but i still liked the video

  31. Ancient Editing Avatar

    THUMBS UP SO MORE PEOPLE WON'T WASTE TIME.
    The new version has this set up, so simply skip this step and go to 15.

  32. Ancient Editing Avatar

    THUMBS UP SO MORE WILL READ AND NOT WASTE TIME!
    The new version has this set up, and the next so simply skip tutorial 14 and 15.
    Seriously though, just skip them..

  33. Kyperbelt Avatar

    @theme542 looks like it

  34. Michael Schwartz Avatar

    NOTE: If you're using Linux you're php.ini file is located in /etc/php5/apache2/php.ini

    Additionally you would need to restart apache in order to see your error, so you would put the following in the terminal.
    sudo /etc/init.d/apache2 restart

  35. theme542 Avatar

    mine is already set to E_ALL by default …. normal in newer version ?

  36. Gaurav Butola Avatar

    What I can see in my setup (LAMP) is that outside content does indeed display without any error but in your case it didn't because of the missing line terminator in the $var line.

    Thanks for all these tutorials 🙂

  37. championvideos Avatar

    My verison of XAMPP dosent come with error_reporting in php.ini, well at least not with the same config options, heres what i have:

    error_reporting = E_ALL | E_STRICT

Leave a Reply

Your email address will not be published. Required fields are marked *