From: Peter M. <pe...@pe...> - 2007-11-07 11:07:19
|
I find a few PHP files with spaces at the end. ConnectDB.inc in 3.08 has one. What is the easiest way for me to help erase those spaces? Peter Moulding Helping you help your customers Web: PeterMoulding.com Trainer: Now in Australia, the workshops enjoyed in America and Europe. Web Architect: Increase sales. Retain customers. Decrease costs. Proven 1000% effective. |
From: eculp <ec...@un...> - 2007-11-07 12:31:56
|
Quoting Peter Moulding <pe...@pe...>: > I find a few PHP files with spaces at the end. ConnectDB.inc in 3.08 has > one. What is the easiest way for me to help erase those spaces? Hi Peter, Just curious, what kind of problems are they causing? If you are running a variaty of unix/bsd/linux/solaris you could jusr =20 write a simple shell script and regex using sed and save the modified =20 version. In any other operating system, I have no idea. When I =20 eliminate spaces I often do tabs at the same time so that they don't =20 slip by me. Something like # egrep -lr '[ ]{1,}*$' * or with grep ( a bit older ) there is a [tab and a space] between the []. # grep -lr '[ ][ ]*$' * will recursively list the files that have spaces or tabs in the PWD. =20 A sed script can remove them and your script can save the modified =20 version separately. a sed script that will need to be redirected to save a modified copy =20 without spaces and or tabs. sed 's/[ ][ ]*$//' * You would redirect it to a new file that will be clean of tabs and =20 spaces at the end of lines. If that works for you and you need a simple but complete script to =20 start from, I'm sure most anyone here can throw one together as a =20 model for you. But, of course, with standard disclaimers ;) In fact, if there is a valid reason, it might be a better idea to just =20 remove them from the repository and make life easier for all. Hope that helps, ed > > Peter Moulding > > Helping you help your customers > > Web: PeterMoulding.com > Trainer: Now in Australia, the workshops enjoyed in America > and Europe. > Web Architect: Increase sales. > Retain customers. > Decrease costs. > Proven 1000% effective. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Tim S. <tim...@go...> - 2007-11-07 12:41:29
|
Peter, If you let me have a list of them I would be happy to update them. Tim On 07/11/2007, Peter Moulding <pe...@pe...> wrote: > I find a few PHP files with spaces at the end. ConnectDB.inc in 3.08 has > one. What is the easiest way for me to help erase those spaces? > > Peter Moulding > > Helping you help your customers > > Web: PeterMoulding.com > Trainer: Now in Australia, the workshops enjoyed in America > and Europe. > Web Architect: Increase sales. > Retain customers. > Decrease costs. > Proven 1000% effective. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: eculp <ec...@un...> - 2007-11-07 13:47:44
|
Quoting Tim Schofield <tim...@go...>: > Peter, If you let me have a list of them I would be happy to update them. > > Tim > Hi Tim, If this will help, I just created =20 http://www.encontacto.net/webERPnoSpaces.diff, todays sources, that is =20 a cvs diff with the spaces and/or tabs recursively removed from the =20 end of the all lines in, hopefully, all of the *.php and *.inc files. =20 Might want to test it and put in in cvs. ed > > On 07/11/2007, Peter Moulding <pe...@pe...> wrote: >> I find a few PHP files with spaces at the end. ConnectDB.inc in 3.08 has >> one. What is the easiest way for me to help erase those spaces? >> >> Peter Moulding >> >> Helping you help your customers >> >> Web: PeterMoulding.com >> Trainer: Now in Australia, the workshops enjoyed in America >> and Europe. >> Web Architect: Increase sales. >> Retain customers. >> Decrease costs. >> Proven 1000% effective. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Tim S. <tim...@go...> - 2007-11-07 15:11:48
|
Thanks, I will apply it on one of my systems, and let you know how it goes. Tim On 07/11/2007, eculp <ec...@un...> wrote: > Quoting Tim Schofield <tim...@go...>: > > > Peter, If you let me have a list of them I would be happy to update them. > > > > Tim > > > Hi Tim, > > If this will help, I just created > http://www.encontacto.net/webERPnoSpaces.diff, todays sources, that is > a cvs diff with the spaces and/or tabs recursively removed from the > end of the all lines in, hopefully, all of the *.php and *.inc files. > Might want to test it and put in in cvs. > > ed > > > > > On 07/11/2007, Peter Moulding <pe...@pe...> wrote: > >> I find a few PHP files with spaces at the end. ConnectDB.inc in 3.08 has > >> one. What is the easiest way for me to help erase those spaces? > >> > >> Peter Moulding > >> > >> Helping you help your customers > >> > >> Web: PeterMoulding.com > >> Trainer: Now in Australia, the workshops enjoyed in America > >> and Europe. > >> Web Architect: Increase sales. > >> Retain customers. > >> Decrease costs. > >> Proven 1000% effective. > >> > >> ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Splunk Inc. > >> Still grepping through log files to find problems? Stop. > >> Now Search log events and configuration files using AJAX and a browser. > >> Download your FREE copy of Splunk now >> http://get.splunk.com/ > >> _______________________________________________ > >> Web-erp-developers mailing list > >> Web...@li... > >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers > >> > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: eculp <ec...@un...> - 2007-11-07 15:15:50
|
Quoting Tim Schofield <tim...@go...>: > Thanks, I will apply it on one of my systems, and let you know how it goes= . > > Tim Hopefully it will be easier that way, if not, don't even bother. It =20 was done in a few seconds with a trivial shell script using find and =20 sed. The cvs diff from source forge took much longer. ;) Have a great day, ed > > On 07/11/2007, eculp <ec...@un...> wrote: >> Quoting Tim Schofield <tim...@go...>: >> >> > Peter, If you let me have a list of them I would be happy to update the= m. >> > >> > Tim >> > >> Hi Tim, >> >> If this will help, I just created >> http://www.encontacto.net/webERPnoSpaces.diff, todays sources, that is >> a cvs diff with the spaces and/or tabs recursively removed from the >> end of the all lines in, hopefully, all of the *.php and *.inc files. >> Might want to test it and put in in cvs. >> >> ed >> >> > >> > On 07/11/2007, Peter Moulding <pe...@pe...> wrote: >> >> I find a few PHP files with spaces at the end. ConnectDB.inc in 3.08 h= as >> >> one. What is the easiest way for me to help erase those spaces? >> >> >> >> Peter Moulding >> >> >> >> Helping you help your customers >> >> >> >> Web: PeterMoulding.com >> >> Trainer: Now in Australia, the workshops enjoyed in America >> >> and Europe. >> >> Web Architect: Increase sales. >> >> Retain customers. >> >> Decrease costs. >> >> Proven 1000% effective. >> >> >> >> ----------------------------------------------------------------------= --- >> >> This SF.net email is sponsored by: Splunk Inc. >> >> Still grepping through log files to find problems? Stop. >> >> Now Search log events and configuration files using AJAX and a browser= . >> >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> >> _______________________________________________ >> >> Web-erp-developers mailing list >> >> Web...@li... >> >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> >> >> > >> > -----------------------------------------------------------------------= -- >> > This SF.net email is sponsored by: Splunk Inc. >> > Still grepping through log files to find problems? Stop. >> > Now Search log events and configuration files using AJAX and a browser. >> > Download your FREE copy of Splunk now >> http://get.splunk.com/ >> > _______________________________________________ >> > Web-erp-developers mailing list >> > Web...@li... >> > https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> > >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Web-erp-developers mailing list >> Web...@li... >> https://lists.sourceforge.net/lists/listinfo/web-erp-developers >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: rfthomas <rf...@as...> - 2014-04-27 13:15:20
|
Just a note: We are running on OpenVMS and all scripts that have php code ending must have ?> as the terminator and following blank lines do cause problems. We too edit files to correct this for each distribution. The problem has been found in very few files (if any in recent releases). Thanks to all of the developers and those creating distributions for your attention to this. Bob Thomas -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Spaces-at-end-of-PHP-file-tp1487535p4657384.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |
From: gilberto d. s. a. <gs...@gm...> - 2014-04-27 15:04:31
|
please what is code page used by your openvms? see details about conversion of source files from one to another code page. be sure you handled with care chars line feed, carriage return and nulls. see standards for windows/dos; unix; mac apple for handle text files like source; regards. 2014-04-27 10:14 GMT-03:00 rfthomas <rf...@as...>: > Just a note: We are running on OpenVMS and all scripts that have php code > ending must have ?> as the terminator and following blank lines do cause > problems. We too edit files to correct this for each distribution. The > problem has been found in very few files (if any in recent releases). > Thanks to all of the developers and those creating distributions for your > attention to this. > > Bob Thomas > > > > -- > View this message in context: > http://weberp-accounting.1478800.n4.nabble.com/Spaces-at-end-of-PHP-file-tp1487535p4657384.html > Sent from the web-ERP-developers mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > -- gilberto dos santos alves +55.11.98646-5049 sao paulo - sp - brasil |