Jump to content

kksou

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kksou's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, There are more than 400+ PHP-GTK2 sample codes here: http://www.kksou.com/php-gtk2/ And if you need a tutorial on PHP-GTK2: http://www.kksou.com/php-gtk2/PHP-GTK2-Demystified/ Regards, /kksou
  2. [quote] SO I was thinking about storing the .php files on a Web Server, and the user installs the GTK stuff, and has the phpw file Which they run, and uses the file from the website [/quote] Let me try to answer your question. Just remember that php-gtk is used to display GUI on whatever machine it is running on. Even if you're able to fire up php-gtk on the remote server (e.g. with your example of include('http://www.example.com/gtk/main.php')), you won't be able to see anything at the client side. The php-gtk is running on the server, and the output does not "propagate" via network to be displayed on the remote client. You can, however, include some files from a remote server. For example, try this example: (Note: you need to have php-gtk2 installed on your machine.) <?php include "http://www.kksou.com/php-gtk2/remote/hello_world.phps"; hello_world(); ?> You should be able to see this: [img]http://www.kksou.com/php-gtk2/gif/0028.gif[/img] You can see a full explanation here: [url=http://www.kksou.com/php-gtk2/articles/distribute-your-PHP---GTK-applications---Method-1.php]http://www.kksou.com/php-gtk2/articles/distribute-your-PHP---GTK-applications---Method-1.php[/url] This method does not "protect" your code at all. Just type the url: http://www.kksou.com/php-gtk2/remote/hello_world.phps into your browser, and you will see the entire content of the file displayed. "Protection" is not the main purpose for this. We use this more for ease of maintenance and updating of php-gtk application over large number of sites. thorpe mentioned about hiding the bussiness layer of your application with a server in his reply to you. You can find an example here: [url=http://www.kksou.com/php-gtk2/articles/hide-sensitive-business-rules-of-your-application-securely.php]http://www.kksou.com/php-gtk2/articles/hide-sensitive-business-rules-of-your-application-securely.php[/url] So, in short, 1) Yes, you have to install php-gtk2 on all machines that wants to run your php-gtk2 scripts. (Unless, of course, some php-gtk2 compilers come out later that allows you to compile everything into a standalone .exe) 2) The server can run php-gtk2, but you won't be able to see it from your client side. We use the server for other purpose, as described above. 3) If I understand correctly, your intention of putting your codes on the server is to try to hide your script away from the user. As mentioned above, because you're using an "include" statement, the user can easily grab a copy of that file. As for the comments from thorpe with regards to python's gtk, I agree it's a much more established platform than php-gtk2. We almost wanted to switch over to using python initially. However we finally decide to stay with php for 2 main reasons: a) We do a lot of web programming. Sharing codes between our web application and php-gtk is so much easier. We could use the same library, just different front-ends. b) Comparing Python with PHP is like comparing Microsoft Windows and Mac. In real life, sometimes the best just aren't the most popular. If you use OO a lot, you will know that PHP still lags behind Python. But the fact is that the PHP community is much larger than the Python base. This means there are more support available, including documentations, forums, codes, etc. For companies, it also means a large pool of PHP programmers for them to choose from.
  3. kksou

    GTK

    [quote author=onlyican link=topic=102964.msg436448#msg436448 date=1158581604] The one thing that put me off last time was the fact that I could not convert my .php pages to .exe Can you give me some links, tips or anything to deploy a PHP GTK application [/quote] Yes. Top on our list when we're first evaluating whether to go ahead with PHP GTK is whether it can be "protected". Note that our criteria is not that it can be compiled to a standalone .exe. We're fine with just the script being encoded. Some .exe has a whole bunch of .dlls. So what's the differnce between this as compared with a php decoder + encoded script? Anyway, below are some of the more established php compilers: [list] [*][url=http://www.roadsend.com]Roadsend[/url] which claims that [url=http://forums.roadsend.com/viewtopic.php?t=61]support for PHP-GTK2[/url] is well under development. [*][url=http://www.zend.com/products/zend_guard]Zend Guard[/url] is great for php web applications. But tried it on php-gtk2. Didn't work 100%. And it's US$995! [*][url=http://www.semdesigns.com/Products/Obfuscators/PHPObfuscator.html]Thicket Obfuscator for PHP[/url] I tried this on PHP-GTK2. Seems to work pretty well. But it's US$399! [*][url=http://www.ioncube.com/]ionCube PHP Encoder[/url] [*][url=http://www.sourceguardian.com/]SourceGuardian[/url] [*][url=http://www.phpcodelock.com/]PHP Code Lock[/url] [/list] There are two open-source PHP encoder/obfuscator: [list] [*][url=http://turck-mmcache.sourceforge.net/index_old.html]Turck MMCache for PHP[/url] [*][url=http://pobs.mywalhalla.net/]PHP Obfuscator (POBS)[/url] [/list] You might also want to take a look at the following two posts: [list] [*][url=http://beeblex.com/lists/index.php/php.general/200340]http://beeblex.com/lists/index.php/php.general/200340[/url] [*][url=http://beeblex.com/lists/index.php/php.general/54649]http://beeblex.com/lists/index.php/php.general/54649[/url] [*][url=http://codenewbie.com/forum/php/4154-php-obfuscation-complete-waste-time-2.html] PHP Obfuscation: Complete waste of time?[/url] This one has a bit of heated arguments. However, after reading through it, you might not be so concerned about encoding your php script. I've seen people who read assembly language like reading a novel! To a good hacker, they can reverse-engineer and decode almost anything, no matter how much you tried to protect them. [/list] [quote] And, as you use PHP GTK Can you confirm that I can build full Desktop Applications, not just widgets as suggested in the forum. [/quote] I would not want to say "confirm". It really depends on what you want to do. Some programming languages are just more suited for certain tasks. For example, if you are dealing a lot with control devices, it might be better off for you to use low-level C language. However based on my experience and knowledge with php-gtk2, you can practically build full desktop applications on almost anything that you can think of with php-gtk2. It gives you all the power of PHP5 and the ability to provide users with a user-friendly GUI interface. So if you are very comfortable with PHP5, I would suggest you give it a try. Don't worry so much about encoding your script for now. There are already practical solutions now for your php deployment. And I believe there will be many more better and more robust compilers emerging in the market as php-gtk2 gains more popularity.
  4. kksou

    GTK

    [quote author=onlyican link=topic=102964.msg436448#msg436448 date=1158581604] What do you use to deploy the apps, is it gnope? [/quote] gnope is an easy-to-use installer for php-gtk2, though you don't necessarily need it. It just simplies the process by automatically setting up things for you. Our application runs on windows platform. The standard gnope installer suits our needs very well. So we use it to setup the php-gtk2 platform on each and every client machine. As for the actual application, they are just a bunch of normal php scripts which we simply ftp over the network. For commercial deployment, of course we need to worry about protecting the script. There are many so-called php compilers around. They might work well with php5 (e.g. Zend Guard). However, we have yet to find one that works 100% with php-gtk2. Until we find one good compiler, we just go with the simpler solution of php obfucation. In any case, the initial set up of the php-gtk2 is a one-time process. After that, each time we need to update the application, it's a simple matter of ftp over the scripts - extremely fast and east. You can even write a script to automate the entire process.
  5. kksou

    Php-gtk

    [quote author=avo link=topic=100344.msg395954#msg395954 date=1152737984] As anyone been playing with GTK what do you think of it? is there any books i can buy that you recommend please ? [/quote] Seems like there's a growing interest in PHP-GTK! We have developed and deployed applications using PHP-GTK2. We find PHP-GTK2 very stable. We have been running our applications since the beginning of this year without any glitches.  If you like PHP, I think you will find that PHP-GTK2 open up numerous new possibilities of applications you can build with it. You can leverage on all the libraries you have built for your web applications. You can also do interesting stuff such as interfacing with serial and parallel devices e.g. barcode scanner, thermal printer, etc. If you are looking for books, Scott Mattocks has written a great book on PHP-GTK: [url=http://www.amazon.com/Pro-PHP-GTK-Scott-Mattocks/dp/1590596137]Pro PHP-GTK[/url]. I think this is about the only book right now in the market that focused just on PHP-GTK. As for online resources, take a look at [url=http://www.kksou.com/php-gtk2/]PHP-GTK2 Cookbooks[/url]. Complete with demo codes, it shows you that building GUI interfaces are not difficult at all with PHP-GTK2. [url=http://www.writingup.com/blog/phpgtk2]Ron Tarrant[/url] also has some good tutorials on PHP-GTK. And [url=http://cweiske.de/phpgtk.htm]Christian Weiske[/url] has some sample applications built using PHP-GTK.
  6. Scott Mattocks has written a great book on PHP-GTK: Pro PHP-GTK. It's in English. If you are loooking for tutorials and sample codes on PHP-GTK, here are two: Ron Tarrant's Blog on PHP-GTK PHP-GTK2 Cookbooks
  7. kksou

    GTK

    [quote author=onlyican link=topic=102964.msg409429#msg409429 date=1154689627] I am sure most of you have heard by now, if not. http://gtk.php.net/ (Allows you to build Desktop apps to run on a machine. But not just on Microsoft OS, it works on *nix OS, Macs and many more) Whats everyones views on this. Anyone started doing this? Where shall I start? [/quote] In case you're still interested in PHP-GTK, [list] [*][url=http://www.writingup.com/blog/phpgtk2]Ron Tarrant[/url] has written some good tutorials [*]Scott Mattocks has written a great book on PHP-GTK: [url=http://www.amazon.com/Pro-PHP-GTK-Scott-Mattocks/dp/1590596137]Pro PHP-GTK[/url] [*][url=http://www.kksou.com/php-gtk2/]PHP-GTK2 Cookbooks[/url] has a collection of sample codes, solutions and practical examples of PHP-GTK2 [/list] The above should get you started. By the way, we have developed and deployed commercial applications using PHP-GTK2. We find PHP-GTK2 very stable. We have been running our applications since the beginning of this year without any glitches.  If you like PHP, I think you will find that PHP-GTK2 opens up numerous new possibilities of applications you can build with it.  And the best part is that if you already know PHP, you can start building GUI applications almost rightaway!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.