Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » Renegade FDS Running on Linux - on XWIS/WOL!!!  () 1 Vote
Re: Renegade FDS Running on Linux - on XWIS/WOL!!! [message #192145 is a reply to message #192096] Tue, 07 March 2006 19:27 Go to previous messageGo to previous message
howang is currently offline  howang
Messages: 57
Registered: September 2005
Location: Hong Kong
Karma:
Recruit
Blazer wrote on Tue, 07 March 2006 23:24

Well since it's written in Perl, the source code is right there. XWISP currently only 100% emulates the protocol exchange of the windows FDS, so there is no reason to "modify" anything, as changing anything would make it no longer work.


I'm happy to know that you will make it open-source but not close-source it just like brenbot. You are very kind. Wink

Blazer wrote on Tue, 07 March 2006 23:24


PHP does have some nice built-in functions, along with Pear. Perl has vastly more modules available to do pretty much anything, from IRC modules to complex ANSI terminal emulation.


PHP have many "modules"(maybe real modules or OOP-based classes) too. Just as what you mentioned, from IRC modules to complex ANSI terminal emulation are available! Check out phpclasses.org for more PHP "modules".

Blazer wrote on Tue, 07 March 2006 23:24


brenbot is packed with par so that it can run on Win32 systems. Since XWISP is for Linux, packing it will not be required. Starting it up will be as simple as ./xwisp.pl (And good thing too, since php does not have a par equivalent Wink )


There are some skills to pack PHP into Windows execuatables. You may have a look on this: http://wildphp.free.fr/wiki/doku.php?id=win32std:embeder

Blazer wrote on Tue, 07 March 2006 23:24

I am now starting to question if you know anything about Perl at all, because if you did, you would know that perl code and php code and syntax are very similar.

Yes, I know a little bit. I start learning scripting language from Perl, but as what I know it is too complex for me, so I switch to PHP and it give me a good feel of PHP'ing. PHP codes are easy to understand and easy to learn. At least it won't have something like $_ which makes beginners confused. And Perl mixed up for & foreach, that I think it is not acceptable. for is looping with some conditions. foreach is looping through an array (and hash in perl). They are total difference but perl mix them up, it makes me really confused. The reason that PHP & Perl have similar syntax is, they both copy the syntax from C and PHP copy some syntax from Perl. But the PHP Group is quite smart, they don't copy something like $_ to make the PHP code more programmer-friendly.

Blazer wrote on Tue, 07 March 2006 23:24


And, with Perls "use warnings; use strict;" I would wager that it's error reporting is vastly superior to PHPs "Parse error on line 101" Wink

How about error_log() error_reporting(E_ALL) and custom error handler?

Blazer wrote on Tue, 07 March 2006 23:24

LOL. Actualy most people would probably say that something like Ruby is the next generation scripting language. I suppose you could call Perl "outdated" in that it has been around for a long time, but it's definitely not unloved, or lacking any features, support, or development.

But most of the Perl CGI developer switched to PHP, that's why I think Perl is unloved. You are right because there are still many people use perl as command line scripting. And only some PHP web apps will provide some simple php cmd line script for installation. Maybe you should take a look on XAMPP, it is a server package(with Apache/MySQL/PHP/Perl/FTP server/Mail server) and part of their admin scripts are written in PHP.
And I have develop my own Renegade ladder program with a command line based PHP script. It support HTML report & FTP upload, just a simplified renstat clone. It contain less than 200 lines of code(exclude the built-in HTML template) only! This is a proof of the success of the programmer-friendly functions in PHP.

Blazer wrote on Tue, 07 March 2006 23:24

Yes, as I said, PHP is well suited for web applications, such as this forum software. PHP was *designed* to be a web scripting language. Perl was designed to be a command-line scripting language. At one time Perl was tried to press into service as a web scripting language (mod_perl), which does work (still in use today for some applications), but php matured and developed to be mainly a web scripting/cgi language, with builtin support for most common web functions.

Don't talk about mod_perl, it is far worse than mod_php(install PHP as Apache module), everyone knows. I'm not going to discuss the disadvantage of mod_perl here. Wink

Blazer wrote on Tue, 07 March 2006 23:24


If you are indeed a Zend Certified PHP Engineer,

http://zend.com/zce.php?c=ZEND002252&r=212128377
Blazer wrote on Tue, 07 March 2006 23:24


you should agree with me on most if not all of the points I have made. There is no denying that PHP is made for web apps, and Perl is primarily designed as a console/command-line language. Now I'm not saying that PHP is incapable of doing command-line things

Yes, I agree with you.

Blazer wrote on Tue, 07 March 2006 23:24

(Crimson has done some pretty amazing things with PHP, including a renrem implementation as well as a RenGuard SSC), just that Perl is better suited to handle this sort of task.


Is the RenGuard SSC open-source? I can make a quick clone with PHP too. In fact I have written a simple renbot to add some more commands in IRC, such as !renrem <renrem command>.

After you have release XWISP with the source code, I will show you a clone in PHP soon, LOL.


Blazer, I think you have great experience on data parsing and protocol cracking, keep on your good work! Renegade will keep on popular forever!


Thanks blazer for the xwisp! My dream comes true!
<Ghostshaw> duh
<Ghostshaw> its awesome
<Ghostshaw> cheat the cheaters :P
 
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: kittey749
Next Topic: OT: My New Computer (Hopefully)
Goto Forum:
  


Current Time: Sat Nov 30 08:29:38 MST 2024

Total time taken to generate the page: 0.01930 seconds