This is a discussion on How to set my info.php to avoid quotes errors? within the PHP General forums, part of the PHP Programming Forums category; Hi I am in the process of learning PHP and I am following examples in a book. I copy the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
I am in the process of learning PHP and I am following examples in a book. I copy the examples from their website and paste them in my editor. When I run them I get errors galore. I found out it was the quotes, they use double quotes most of the time and by replacing with single quotes the errors are gone. My question is, what do I need to change in my info.php to prevent these errors until I am done with the book (I will switch back when I am done with the book as I know single quotes are better.)? It takes me too long to replace each quote. I use the xampp package for apache,PHP, mysql if that matters. And if you need to know my magic quotes settings, here they are: magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off I did "google" my question but couldn't get anything that would help. Thanks a lot Patrick |