Re: [PHP] Turning off magic_quotes_gpc?

2011-02-16 Thread Michael Stroh
to inspect the data manually to be safe. --- Kind regards Kim N. Lesmer Programmer/Unix systemadministrator Web: www.bitflop.com E-mail : k...@bitflop.com Bob McConnell February 10, 2011 2:52 PM

[PHP] Turning off magic_quotes_gpc?

2011-02-10 Thread Michael Stroh
I'm maintaining various php scripts on a server that was originally configured to have magic_quotes_gpc turned on. The installed php version is 5.2.6. I've read that magic_quotes_gpc is deprecated in 5.3 and continuing to use it is "highly discouraged." I've ran into a few fields that I believe

[PHP] Simplexml_load_file: 401 Authorization Required

2010-05-17 Thread Michael Stroh
I've created a php file (getcalentries.php) that creates an xml output and have a second page (plots_test.php) that reads in the xml file and displays some plots. They've both in the same webdav folder so I have to enter authentication information to load the plotting page, but my simplexml_load

Re: [PHP] Replacing a special character

2010-04-18 Thread Michael Stroh
That did it! Thanks! Michael On Apr 18, 2010, at 2:44 PM, Mari Masuda wrote: > Maybe you could try to assign the return value of preg_replace to a variable > so you can use it later, like: > > $name = preg_replace('/−/','-',$name); > > > On Apr 1

Re: [PHP] Replacing a special character

2010-04-18 Thread Michael Stroh
PM, Michiel Sikma wrote: > On 18 April 2010 16:46, Peter Lind wrote: > >> On 18 April 2010 16:40, Phpster wrote: >>> >>> >>> On Apr 18, 2010, at 8:59 AM, Michael Stroh wrote: >>> >>>> I have this form that people use to add entri

[PHP] Replacing a special character

2010-04-18 Thread Michael Stroh
I have this form that people use to add entries into a MySQL database. Recently I've had some users insert − in their entries instead of - which is causing some issues with scripts down the line. I'd like to replace the − character with -. Originally I had something like $name = mysql_escape_

[PHP] Advice on maintaining public and private files

2010-02-19 Thread Michael Stroh
I have a site I'm working on with some data that I want to be readable by anyone, but some files that I want to keep hidden from outside users. Here is an example of my file structure. /products/data1/item_1/data.txt /products/data2/item_2/data.txt I would like everything in data1 to be availab

Re: [PHP] PHP ssh2 problem

2008-04-07 Thread Michael Stroh
wrote: > On Mon, Apr 7, 2008 at 11:25 AM, Michael Stroh <[EMAIL PROTECTED]> wrote: >> Thanks for your advice Daniel. >> >> >> I checked the Zend forums and it is believed that they will not support >> Mac OS 10.5 and thus the error. Is there another packag

Re: [PHP] PHP ssh2 problem

2008-04-07 Thread Michael Stroh
checked the Zend forums and it is believed that they will not support Mac OS 10.5 and thus the error. Is there another package I can use to replace Zend for the purpose of ssh2? Cheers, Michael On Mon, April 7, 2008 10:21 am, Daniel Brown wrote: > On Mon, Apr 7, 2008 at 10:16 AM, Michael St

[PHP] PHP ssh2 problem

2008-04-07 Thread Michael Stroh
Mac OS 10.5.2 and am more than willing to provide you with any other details. Cheers, Michael Stroh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php