Apple has a thorough guide to developing web content for Safari on the iPhone, presumably most of it also applies to the iPad:
[iOS] Safari Web Content Guide
I haven't read all of this article yet but the title is promising:
The iPad Web Design and Development Toolbox
2010-10-22
Resources about designing web content for iOS devices (iPhone, iPod, iPad)
Posted by AndyfromTucson at 05:14 0 comments
How to turn off php magic quotes on nearlyfreespeech.net
I recently set up a web app hosted on nearlyfreespeech.net that uses mysql_real_escape_string to to escape user input. I noticed the other day that an entry in that web app displayed an escaped single quote, which led me to suspect that nearlyfreespeech.net has PHP magic quotes turned on and my user input was being double escaped, which turned out to be correct.
Here is how I turned off magic quotes for web app on nearlyfreespeech.net:
- I connected to my nearlyfreespeech.net account via SSH.
- I navigated to the public directory of my account (where the html and php files are).
-
At the command prompt I ran
nano .htaccess
to create a .htaccess file and open it in nano for editing - I put this in the .htaccess file:
php_flag magic_quotes_gpc off
- I saved the file, and voila, magic quotes were off!
Posted by AndyfromTucson at 03:55 2 comments
Labels: PHP
Subscribe to:
Posts (Atom)