Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 02 Apr 2020, 15:03
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
PHP 5.2.0 + Gtk demos
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Thu 01 Feb 2007, 21:09    Post subject:  PHP 5.2.0 + Gtk demos  

This dotpup is intended for developers.

We must make a smaller for endusers.
It is 14 MB extracted, I included the CGI and CLI version.
You usually can use the CGI version for cli-applications too, but when I compiled php_gtk2, the CLI-version was required for ./configure.
It installs to /usr/local/Php-5.2.0.

I added php-gtk-2.0.0 alpha Source - 17-Jul-2006
I included the new Gtk2 demos, and the old Gtk-demos (that both use Gtk2 in Php5).

You will see, that old demos using XPM pictures crash.

"php" is not in the path, as I don't want to overwrite older versions.

Run your applications using "php5", or symlink that as "php".

Or better use such a startscript:

Code:
#!/bin/bash

export PATH=/usr/local/Php-5.2.0/bin:$PATH
php "/root/mystuff/test.php" &


download (3.7 MB):
see updated message further down

Mark

Last edited by MU on Sat 31 Mar 2007, 13:03; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
klhrevolutionist


Joined: 08 Jun 2005
Posts: 1124

PostPosted: Thu 01 Feb 2007, 23:29    Post subject:  

I take it you are beginning to take interest more into gtk ? Or is it because php is involved ? I remember asking you about this a while back good to see you think it is worth mentioning. To bad it wieghs so much...
_________________
Heaven is on the way, until then let's get the truth out!
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Fri 02 Feb 2007, 09:15    Post subject:  

it certainly can be reduced to maybe 5 MB.
Each of the 2 interpreters is 3.2 MB, but you usually only need the php-cgi.
And you usually will not need PEAR or the includefiles.
The other addons might be required seldom (web-development), so could be put in a seperate addon.
So for a "Gtk-runtime" the package can be reduced a lot.

I'm compiling PHP, because I use it at work, and added php_gtk, because some forum-threads here deal with the limitations of gtkdialog.
php_gtk is more flexible.
Also PHP is a language known by many users, as it is very common in webdevelopment.
So you just need to learn how to use the gtk-addon in addition, to write grafical applications.

Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Sat 31 Mar 2007, 12:55    Post subject:  

The dotpup got lost, when I moved to a new server.
So now I recompiled it.

There are 2 versions.

http://puppyfiles.org/dotpupsde/dotpups/Programming/Php-5.2.0-runtime.pup
This is needed by normal users, that want to run a PHP-Gtk2 application.
It is only 2.8 MB extracted.
I removed everything not absolutely necessary, and upxed php.


http://puppyfiles.org/dotpupsde/dotpups/Programming/Php-5.2.0.pup
This is needed by developers only.
It includes Gtk2 demos to learn to program them.
It also includes the CGI-version of PHP. And docs and pear.
But you usually will not need that, because CGI is slower than using a PHP-Apache module.

None of those packages has an apache module.
If you want to run simple PHP-scripts on a webserver, use my Apache1.3 dotpup with PHP 4.4.0:
http://www.murga-linux.com/puppy/viewtopic.php?t=12323

If you need Apache with PHP5, Mysql and other advanced features, use Xampp:
Info see GuestToos posting in the thread for Apache 1.3.

Mark
Back to top
View user's profile Send private message Visit poster's website 
pattyland

Joined: 12 Mar 2009
Posts: 1

PostPosted: Thu 12 Mar 2009, 17:28    Post subject: Monkey  

Hey MU Wink

I installed your Php-5.2.0-runtime.pup, an ist seems to bee not working with my Monkey Web Server...

Is there any easy way to get this work? Os should I deinstall both and install Apache+PHP? Wink

Mit freundlich Grüßen aus Dortmund Very Happy

pattyland
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Thu 12 Mar 2009, 18:34    Post subject:  

the easiest will be xampp:
http://www.murga-linux.com/puppy/viewtopic.php?t=39112

smaller is this older version (Apache 1)
http://www.murga-linux.com/puppy/viewtopic.php?t=12323

But I don't know, if/how it will work in a modern Puppy.

I think there was a message in the HowTo forum some weeks ago, how to use monkey with PHP. I cannot quickly find it with the search, sorry.
But PHP is not loaded as module, instead you must run it as CGI application.
Many PHP script are not set up to run like that, so this is just interesting for advanced PHP developers, who can modify scripts on their own.

Grüße, Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0403s ][ Queries: 11 (0.0081s) ][ GZIP on ]