Jump to content


Photo

Programme From Multiple Lines Into One Straight Line


  • Please log in to reply
9 replies to this topic

#1 sungpeng

sungpeng

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts

Posted 06 December 2012 - 03:40 PM

<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 ?

#2 requinix

requinix

    Hopeless Member

  • Moderators
  • 5,990 posts
  • LocationWA

Posted 06 December 2012 - 03:52 PM

Why would you want to do that? Whitespace in PHP is completely harmless, while removing that makes code a billion times harder to manage.
When in doubt, CHECK YOUR ERROR LOG

#3 Christian F.

Christian F.

    Advanced Member

  • Staff Alumni
  • 3,106 posts
  • LocationNorway

Posted 06 December 2012 - 03:53 PM

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 by Christian F., 06 December 2012 - 03:54 PM.

Keeping it simple.

#4 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 14,187 posts
  • LocationCheshire, UK

Posted 06 December 2012 - 03:59 PM

Obfuscation?

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

 


#5 Christian F.

Christian F.

    Advanced Member

  • Staff Alumni
  • 3,106 posts
  • LocationNorway

Posted 06 December 2012 - 04:10 PM

I view that as "no benefit", Barand. :P
Not to mention that just stripping the whitespace is a really crappy form for obfuscation. Any decent editor can easily re-insert them.

Edited by Christian F., 06 December 2012 - 04:11 PM.

Keeping it simple.

#6 sungpeng

sungpeng

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts

Posted 06 December 2012 - 04:20 PM

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 ?

#7 Barand

Barand

    Sen . ( ile || sei )

  • Gurus
  • 14,187 posts
  • LocationCheshire, UK

Posted 06 December 2012 - 04:23 PM

https://www.google.c...=php obfuscator

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts
|baaSelect| generate js and php code for dynamic linked dropdowns

 


#8 Christian F.

Christian F.

    Advanced Member

  • Staff Alumni
  • 3,106 posts
  • LocationNorway

Posted 06 December 2012 - 04:24 PM

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.
Keeping it simple.

#9 requinix

requinix

    Hopeless Member

  • Moderators
  • 5,990 posts
  • LocationWA

Posted 06 December 2012 - 05:14 PM

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 J&#097;v&#097;script 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 by requinix, 06 December 2012 - 05:17 PM.

When in doubt, CHECK YOUR ERROR LOG

#10 sungpeng

sungpeng

    Advanced Member

  • Members
  • PipPipPip
  • 250 posts

Posted 06 December 2012 - 11:05 PM

Any recommendation on which is the best obfuscator software ?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com