Bluehost.com Web Hosting $6.95

How to set my info.php to avoid quotes errors?

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-06-2007
varois83
 
Posts: n/a
Default How to set my info.php to avoid quotes errors?

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0