Hi, I wrote a news management system called Rose which uses arrays like:
$news_stuff[headline] and $news_stuff[author]
Everything works fine but a user reported that the arrays were causing errors to be written to an apache log file. Since they are used a lot, the log file can grow to 100meg a day! He sugested writing the arrays as:
$news_stuff["headline"] and $news_stuff["author"]
which stops the errors being written to the log. I'm self taught so I was wondering if anyone could tell me the reason for the errors. Is it just an apache thing? Or a general php thing? Is it generally good practice to use quotes?
Thanks for any help on this 🙂
M