traq
04-29-2010, 08:01 PM
I'm sure a lot of you -if not all- have had one of those moments of revelation that not only solved your problem, but also pointed out how stupid you'd been.
Feel free to share them. :D
I wrote a script last week (a php class to dynamically pull database info and build an input form, but that's not really important), and finally got around to testing it.
Load it up, view the page.
Parse error: parse error, unexpected { ... blah,blah,blah. Find line 58, move the curly bracket one space to the left. Try again.
Nothing!
What? why not? reload again. Still nothing. View source: completely blank.
Add a few echo 'line #...'; to try and see where it's stopping. Still nothing. Am I even getting the script?
Add echo 'start'; on the first line of the __construct() function. Nothing! I thought this was so well arranged, I was quite confident that there wouldn't be any problems. Desperate, I put the syntax error back in: The error message shows. So, I'm parsing the script. Why won't it do anything?
?
?
?
The eventual solution? Add
new class();at the top
:rolleyes:
Feel free to share them. :D
I wrote a script last week (a php class to dynamically pull database info and build an input form, but that's not really important), and finally got around to testing it.
Load it up, view the page.
Parse error: parse error, unexpected { ... blah,blah,blah. Find line 58, move the curly bracket one space to the left. Try again.
Nothing!
What? why not? reload again. Still nothing. View source: completely blank.
Add a few echo 'line #...'; to try and see where it's stopping. Still nothing. Am I even getting the script?
Add echo 'start'; on the first line of the __construct() function. Nothing! I thought this was so well arranged, I was quite confident that there wouldn't be any problems. Desperate, I put the syntax error back in: The error message shows. So, I'm parsing the script. Why won't it do anything?
?
?
?
The eventual solution? Add
new class();at the top
:rolleyes: