sungpeng Posted December 6, 2012 Share Posted December 6, 2012 <form name="form" action="<?php print $PHP_SELF ?>" method="post"><textarea name="descript" rows="3" cols="30"> <?php echo"$doing[intro]"; ?> </textarea><br><br> <input type="submit" name="intro" value="introduction"> key in your profile </form><br><br> <form name="form" action="<?php print $PHP_SELF ?>" method="post"><textarea name="descript" rows="3" cols="30"><?php echo"$doing[intro]"; ?></textarea><br><br><input type="submit" name="intro" value="introduction"> key in your profile</form><br><br> Is there a programme to make my code from multiple lines into one continuous straight line with no white space and paragraph ? Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/ Share on other sites More sharing options...
requinix Posted December 6, 2012 Share Posted December 6, 2012 Why would you want to do that? Whitespace in PHP is completely harmless, while removing that makes code a billion times harder to manage. Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397958 Share on other sites More sharing options...
Christian F. Posted December 6, 2012 Share Posted December 6, 2012 (edited) As requinix said: Why would you want to do that? It'll only create problems for you, and possibly your users as well. It'd be a maintainability nightmare, and I cannot see any benefits from it. Edited December 6, 2012 by Christian F. Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397959 Share on other sites More sharing options...
Barand Posted December 6, 2012 Share Posted December 6, 2012 Obfuscation? Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397963 Share on other sites More sharing options...
Christian F. Posted December 6, 2012 Share Posted December 6, 2012 (edited) I view that as "no benefit", Barand. Not to mention that just stripping the whitespace is a really crappy form for obfuscation. Any decent editor can easily re-insert them. Edited December 6, 2012 by Christian F. Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397972 Share on other sites More sharing options...
sungpeng Posted December 6, 2012 Author Share Posted December 6, 2012 Yes obfuscation. I just don't want some of the pages that link to jquery and ajax be easily extracted by viewing the source code. So any programme that does that ? Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397981 Share on other sites More sharing options...
Barand Posted December 6, 2012 Share Posted December 6, 2012 https://www.google.co.uk/search?q=php+obfuscator Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397985 Share on other sites More sharing options...
Christian F. Posted December 6, 2012 Share Posted December 6, 2012 Trust me when I say it'd only take 2 seconds more to get around that, as that's the time it'll take me to right-click, select "inspect element" and wait for Dragonfly to load. This is a waste of effort, and I sincerely doubt that your code is that valuable. Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397986 Share on other sites More sharing options...
requinix Posted December 6, 2012 Share Posted December 6, 2012 (edited) Trust me when I say it'd only take 2 seconds more to get around that, as that's the time it'll take me to right-click, select "inspect element" and wait for Dragonfly to load. This is a waste of effort, and I sincerely doubt that your code is that valuable. This. I rarely do View Source anymore because I have Chrome: right-click, Inspect Element, and read the tree just fine. You can obfuscate your site with XSLT or Javascript and it won't make any difference at all. HTML obfuscation is a battle you cannot win. [edit] On that note, it's trivial to watch AJAX requests and Flash video downloads. I can see everything your website is doing, every AJAX request it makes, every file it downloads, and I can replay that against you. Then I can deconstruct the requests and reassemble the pieces in any way I want, send those requests to your server, and you'll never know the difference. Edited December 6, 2012 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1397996 Share on other sites More sharing options...
sungpeng Posted December 7, 2012 Author Share Posted December 7, 2012 Any recommendation on which is the best obfuscator software ? Quote Link to comment https://forums.phpfreaks.com/topic/271690-programme-from-multiple-lines-into-one-straight-line/#findComment-1398036 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.