RE: [PHP] Unix file vs. Mac file formats

From: Date: Wed, 09 May 2001 17:17:06 +0000
Subject: RE: [PHP] Unix file vs. Mac file formats
Groups: php.general 
Request: Send a blank email to php-general+get-52151@lists.php.net to get a copy of this message
PHP at least used to execute Mac formatted files, but it sounds like people are definitely having some serious problems with 4.0.5 with Mac formatted files. The problems I had expereinced with Mac files with PHP was that PHP would report line numbers incorrectly on parse errors, etc. This was because (correct me if I'm wrong), Macs use a different character for carriage returns than Windows and/or Unix. Either way, you definitely should tell BBedit (or whatever program you write your code in) to save files as Unix file types. This will solve problems for any version of PHP. Also, here is a Mac utility that may help out Jon and others with batch converting Mac text files to Unix ones: http://hotfiles.zdnet.com/cgi-bin/texis/swlib/hotfiles/info.html?fcode=MC170 56&b=mac Josh Hoover KnowledgeStorm, Inc. jhoover@knowledgestorm.com Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here > In my experience PHP never has properly executed files in the Mac file > format. We also use Macs to code php here, but we have bbedit > set to as Unix > file type.

« previous php.general (#52151) next »