Re: Windows > Linux

From: Date: Tue, 27 Jun 2000 17:42:06 +0000
Subject: Re: Windows > Linux
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-3376@lists.php.net to get a copy of this message
Ah, not a good idea, given that you'll end up with "/n" in all of your strings, and all the other translations like that ;-) if you replaced \\ with / it would be closer to working methinks. [-= Gfunk007 - http://www.gfunk007.com/ - ICQ:74477509 =-] ----- Original Message ----- From: Oyvind Gronnesby <oyving@orakel.ntnu.no> To: <php-general@lists.php.net> Sent: Wednesday, June 28, 2000 3:29 AM Subject: Re: [PHP] Windows > Linux > Phil Driscoll, > > >Is there any easy way to convert a PHP script developed on Windows to Linux > > >(like is it possible to have PHP change all the slashes in filenames > > >itself??) > > > > If your windows platform is NT then there is no need to change anything as > > you can use unix style forward slashes anyway. > > If you still want to change the slashes though something like this might > fix it: > > sed 's/\\/\//g' file.php > new_file.php > > I should warn you that this changes all instanced of '\' to '/', even > those that have no connection to fileneames or paths. > > > -- > Øyvind Grønnesby > "Wow, I had knowledge!" > --Buffy > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#3376) next »