What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP help! =P

PHP help! =P
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: PHP help! =P
Making it harder to read/steal, eh? :dodgy:

You could simply strip out all the line break characters (\n and \r)...

$source = str_replace(array("\n", "\r"), "", $source);

Of course, that may cause problems if you need line breaks in your code (like for a <textarea> or <pre>). Also, any tabs or spaces used for indenting would still remain... you could probably use a regexp to get rid of those...
04-06-2006 05:41 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
PHP help! =P - by absorbation on 04-06-2006 at 05:31 PM
RE: PHP help! =P - by WDZ on 04-06-2006 at 05:41 PM
RE: PHP help! =P - by absorbation on 04-06-2006 at 06:25 PM
RE: PHP help! =P - by WDZ on 04-06-2006 at 06:30 PM
RE: PHP help! =P - by absorbation on 04-06-2006 at 06:39 PM
RE: PHP help! =P - by Plik on 04-06-2006 at 06:43 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On