![]() |
No Compiler / Any Errors?
I just read the thread on how to become a better PHP Programmer, and I currently do not have a compiler, nor does my web host have display errors on for PHP.
When I add ini_set('display_errors', 1); with error_reporting(E_ALL);, I still get Error 500, which basically means there is something wrong with the server instead of the PHP errors. I tried overwritting PHP.ini, but that didn't work out either. That's why I'm in need of help again. I added some code onto this script and I need someone to check it out for any errors. Many thanks guys! Shouts to Fo for helping me earlier! PHP Code:
|
You should also be able to find an error log somewhere within your home directory. I cannot recall if it typically goes above public_html or not. Looks to me that you probably have an fcgi build.
This is syntactically incorrect: PHP Code:
PHP Code:
PHP Code:
This probably won't work as desired: $user_plan = '$whm_package';. Single quotes are non-parsed in PHP, so $user_plan would be the literal string '$whm_package'. Remove the single quotes around the argument value, and it will parse the $whm_package variable instead. |
Thanks again Fou! You're awesome! I'm definitely going to stay around here. This forums is awesome! :)
|
You should also download a local install webhost. WAMP and XAMP I see posted all the time, so I guess they're popular. It depends on your localmachine OS that dictates what you download. I can't help you configure it, but it looks like there are a lot of people here that can (I always download each item separately so I can mix and match as I see fit for testing).
You'll want to get a good IDE as well. I use eclipse, but am considering changing since I'm unhappy with the approach zend took with the 5.4 implementation to the eclipse PDT, so I'm considering trying netbeans again (been years, didn't like it before). But I need an IDE with a debugger, so that's important. If you don't do a lot of debugging, lighter weight ones are Notepad++ for an example which offers syntax highlighting and (I believe?) code folding. |
I am getting...
Code:
Parse error: syntax error, unexpected $end in /home/csufhous/public_html/bowenhost.com/index.php on line 52PHP Code:
|
that error usually means that your closing braces
} do not match the opening braces {. |
Quote:
Quote:
|
This particular issue is from your open heredoc. Terminate the heredoc before continuing with the processing instructions.
|
| All times are GMT +1. The time now is 01:43 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.