

Announcing PHP-GTK 141
whyDNA? sends us this news bit: "I found this on the PHP page: The first release of PHP-GTK is now available. PHP-GTK is a PHP extension that provides an object-oriented interface to GTK+ toolkit and enables you to write client-side cross-platform GUI applications. For more information, visit gtk.php.net."
Re:What's wrong with Java? (Score:2)
But, PHP is interpreted, too. There's nothing necessarily wrong with interpreted languages, particularly for DB-based apps where the SQL engine and queries are the bottleneck. For small apps or for rapid development, interps allow for fast code-then-run loops. May not be an adequate method for kernel coding, but for gotta-be-done-yesterday business apps it makes a difference. Also, I believe both PHP and Java have caching products that will speed them up once development is over and you need more performance.
Of course, I believe the original poster misunderstood the point of the story... PHP-GTK is not intended to run in a web browser. This is intended for local apps using the php command-line interpreter to quickly create GUI apps, similar to Perl-Gtk, Python-Gtk, etc...
Re:Most of the posts here seem to have misundersto (Score:1)
As a programming language, it sucks just a little bit less than quick basic.
Man - what those dumbo PHP programers can do if they ever learned to program...
Ruben
Re:license wars (Score:1)
Then you're missing out on the rather good speed increases you'll get from your code.
I guess it's everybody's choice
People are so hung up on the 'free software' bandwagon they don't stop to think and realize that all this stuff is freely downloadable and usable anyway.
--
Re:Only Americans are stupid enough to use PHP. (Score:1)
With php I've developed two full-bore web application that were each 20-30k lines of code with about another 10-20k lines of support code. Php scaled extremely well for those apps and I've since passed the first 30k project off to another coder(who learned the language in a couple weeks). My apps are also the fastest things on the market, linux + php + mysql + apache just screams.
But then I also use perl, about 5k-10k worth of system level support code. I use perl's reg expressions to crunch data into my databases, to automate maintenance and push/pull information and files across multiple servers.
You can either sit around bemoaning how your language is the "best" language and code just in that, or you can use multiple languages, code to their strengths and go home from work early each day.
Re:Stay focused, PHP... (Score:1)
let alone Obect Oriented programmer.
Tell me great guru of Bullshit.... how do you do multiple inheritance with PHP - let alone simple references.
Ruben
Re:Only Americans are stupid enough to use PHP. (Score:1)
Which is why you should never use PHP. It scales like crap, is fundementally flawed in it's data typing, lacks serious modularity or OO-design.
You waste more time debugging it than anything else, and it's error messaging system is useless.
Use PHP - and spend weeks fixing what would take moments in Perl..
Re:Stay focused, PHP... (Score:3)
It's called "room for growth". It's not a bad thing. Otherwise, all those people who learned PHP will discover that they wasted their time when they run into the limits of the language.
We try to push everything (languages, OS's, apps) to try to be everything to everyone. PHP is great for what it is. If you want to create a GUI, use something that was built for it the ground up for it.
Oh, piff! With the exception of Visual Basic and kindred proprietary RAD languages, there are no significant languages out there that were "designed from the ground up" for GUIs. (Java is arguable, but still...) I'm not even sure what it would mean for a language to be designed for GUIs, or how it would differ from any existing procedural or OO language. Make window a reserved word? Whatever.
The fact of the matter is that most GUI API's are grotesquely complex and present a steep learning curve for a beginner or someone who just wants to write a simple graphical frontend for a tool. Tcl/Tk has heretofore been the only exception worthy of note, but Tcl has its own host of problems including limited compatibility between versions and its DOS-batch-language-gone-wild syntax. Python is probably a better language (than PHP or Tcl), but PHP has the advantage of presenting a gentler learning curve for anyone who already knows C, minus all of the implicit syntax that makes Perl so difficult for newbies.
If you want to create an interactive database driven website (and you don't know perl) use PHP.
PHP is a lot easier to use than mod_perl or Mason for lightweight tasks. I use all of the above, and only use Perl when the situation is sufficiently complex to call for it. It's also a helluva lot easier to configure.
I hope this doesn't ever work itself into the main distribution of PHP... More bloat.
Consider learning to edit your makefiles if it ever does. A Gtk extension to PHP would only be appropriate to the standalone build, not the Apache module.
--
'enables' (Score:1)
--
¹Better Java environment than MS's (Score:1)
Now, I'm not supporting Microsoft on it, but I haven't seen a better implementation of Java support yet.
Not even Sun's J2SE? What about IBM's extremely fast recompiler? I guess you haven't seen them because you aren't looking.
"Like any trademark, Java is an adjective."All your hallucinogen [pineight.com] are belong to us.
Re:read the page (Score:1)
Cross-platform and other whines by moi (Score:1)
Furthermore, there are Windows libraries, mostly dynamic link, that will allow on-system support for the 9x series, and NT supports it from 2k^.
I mention that as I'll remind you, when you programme using GTK, or should that be if, the language formats available are for cross-platform. As there is primary C++ for ICE systems, or as you call them, *nix, there is Qt for Windows and Mac.
Now, personally, I like Java, but have you noticed how long it takes for Star Office or Netscape to load? And these are already in binary format. PHP, as it stands, takes slightly less time to do more complex things, and it's in run-interpretation non-compiled form. Now that it can be turned into machine code, I'm sure the limits on its power will disappear like the validity of your argument.
Now that that's out of the way, who's up for volleyball!?
Re:Before you troll... (Score:1)
Did he ever live up to his statement("I'll leave the U.S. if GWB becomes President"). Man, someone should have made him eat his words. ;)
¹Fixing the icon with free software (Score:1)
All your hallucinogen [pineight.com] are belong to us.
HTML used to own PHP. (Score:2)
What language used to own it?
In a sense, HTML used to "own" PHP just as it effectively owns EcmaScript [www.ecma.ch]. Go to OSDN SourceForge [sourceforge.net] and follow any of the Show Source links at the bottom of the pages.
All your hallucinogen [pineight.com] are belong to us.
Re:Cross platform, eh? (Score:1)
It's a relitively well/cleanly designed modern GUI toolkit that is licenced under the LGPL, and supported by a zillion programming languages. There's nothing terribly wonderful about it, but it's the most-free GUI toolkit if you want your app to look/feel reasonably modern.
All of the other GUI toolkits avalible eithor A.) Are less free, B.) Are less modern, C.) Are less powerful, or D.) Are supported by less languages.
Taco, change that PHP icon.. (Score:1)
What next? :-) (Score:1)
I'm thinking that in a short while we'll see bash bindings to GTK or something.
Most of the posts here seem to have misunderstood! (Score:5)
This is nothing to do with using PHP in web pages at all. In fact, it's nothing to do with web pages.
This about using PHP as a script interpreter, just like you use perl or python as a script interpreter.
So this certainly won't allow you to embed GTK applications in web pages: that would be neat, but would require a browser-plugin at the client end, and require the PHP code to be send to the client end. So the client would need the PHP interpreter.
It won't allow you to embed gtkhtml in IE, either
Jules
Re:Just what we need... (Score:2)
---
Re:Man... what -can't- you do (Score:1)
Re:license wars (Score:2)
(Don't tell anybody, but to be honest, it's been more a matter of feeling too lazy to download it and mess with it than a licensing issue. Quite frankly, I don't have a huge problem with the QPL, as much as I'd prefer to see it GPL'd. I just haven't felt that my code was running too slow at the moment...)
Wait a minute...did I just say "don't tell anybody" in the middle of a public slashdot post? Must be getting late. Can I go home yet? :-)
---
"They have strategic air commands, nuclear submarines, and John Wayne. We have this"
Re:Mozilla within IE (Score:1)
I'm the troll! (Score:1)
Re:Hardly any details (Score:1)
How's that?
A variable has:
A.) A known trustable value because you assigned to it yourself.
B.) A known trustable value because PHP automagically asigns something reliable to it.
or
C.) A known untrustworthy value, because it it could have been modified by the user.
I miss how this is any more problematic than say CGI.pm in perl.
I like it (Score:1)
And, personally, I don't care much for the nut. The PHP icon is important. It means...well, it's just nifty, and I stole for use on another site, so
You're the previous AnonCow, aren't you? (Score:2)
Hey, here's a thought, why not run a "Make the Best Widgets for Slashdot" Campaign?
Winner enters the circle of advanced moderators, and gets Rob's autograph on any shirt from Think Geek.
Re:No it's not! (Score:1)
Okay. (Score:2)
That makes sense.. I thought the previous poster was implying that both licenses had to be satisfied.. which is counter to GPL.
Then again, as the compelte copyright holder, they can release it under whatever bizarre licenses they want, it just might mean nobody's technically allowed to use it.
Branching out (Score:3)
Re:Okay. (Score:2)
Precisely. The GPL prevents people from using Qt in projects that have NDA/propritary tech issues. That's a fact, even if you think that propritary tech is a Bad Thing.
A good example is the Realaudio player, which uses Qt under the QPL. Real, for whatever reason, does not want to release source, so they have to pay and purchase Qt under the QPL. If they want to play by commercial rules, they have to pay by commercial rules.
noatun [derkarl.org], on the other hand, is GPL. As such, they use the exact same code[1] as Real, but they get it for free and their code must be Free (distributed under GPL). If they want to play by Free Software rules, they have to play by Free Software rules. :) (Well, they don't have to PAY).
[1] Just to clarify, TrollTech does have other products, some of which run on top of Qt, which they sell as Qt Professional or Qt Enterprise. For instance, Enterprise has a portable networking module. In many cases, the features (like the networking module) are available in the equivelent KDE libraries (like kio) under the GPL. Not the /same/ code, just providing the same functionality.
--
Evan
Re:GTK ? (Score:1)
GTK is a GUI toolkit for The X Window System (also ported to Win32 I believe). The homepage is gtk.org [gtk.org]
Enoch Root I presume? (Score:1)
.oO(Fluff for brains, I swear)
PHP for organisers (Score:1)
what about Basic-GTK? :) (Score:1)
Re:Not really object oriented is it ? (Score:2)
Re:Mozilla within IE (Score:1)
Re:Man... what -can't- you do (Score:2)
However, there's still a lot you can do very easily with PHP and a DB backend, whether it's Oracle, PostgreSQL or MySQL. We've got stuff like a web-based coursework submissions system I hacked together using PHP and Postgres. PHP is a damn good language and very easy to learn if you've had any exposure to perl; a lot of the syntax and usage is similar, even easier under PHP.
--
PHPs cool and free PHP IDE (Score:1)
I just started using PHP in January. It was easy to learn and does lots of stuff. I used a small PHP script to change a 50,000 row database from fixed width columns to tab deliminated (so I could import it into mySQL (I couldn't find a way to import it straight into mySQL), then used PHP to output the data from the database to the web pages.
I found a free PHP IDE at PHPEd [soysal.com]. It only runs on Windows, has syntax highlighting, and lets you run and debug the programs you're writing right in the editor. I like it pretty much.
Re:What about us Europeans? (Score:1)
Now back to the topic.
P.S. The goal should have been allowed.
Re:Most of the posts here seem to have misundersto (Score:1)
Since PHP is much more common than mod_perl, it's easy for people to write embedded pages, rather than use a slow perl CGI.
Nobody said this was the Perl killer, or even said that it was better than Perl/TK.
Funny, I know more European PHP users than US... (Score:2)
And [php-kongress.de] then [phpwizard.net] of [kill-9.dk] course [phpfacile.com], there's [phpfrance.com] the [php-resource.de] proliferation [troebsfamily.de] of [ilovephp.com] PHP [phpinfo.net] sites [phpindex.com] in [phpwelt.de] Europe [php-center.de].
Re:This is just wrong though... (Score:1)
i cant see what wrong that could do
Win32 Installer (Score:1)
Why this is a good thing. (Score:1)
Re:Mozilla within IE (Score:1)
Didn't someone create a DCOM/ActiveX/whatever Gecko component? If so, couldn't a person have IE use that for displaying HTML instead of it's original component?
Re:Stay focused, PHP... (Score:2)
Re:Only Americans are stupid enough to use PHP. (Score:1)
Re:Branching out (Score:1)
Germans too! (Score:1)
Re:Just what we need... (Score:1)
As an aside... (Score:1)
Re:Only Americans are stupid enough to use PHP. (Score:2)
Re:Only Americans are stupid enough to use PHP. (Score:1)
However choosing either language depends on what experience you have available in your organization, and on personal preference much more than on the languages themselves.
And the main reason it might be easier to get Perl developers is because Perl is much older. PHP, on the other hand, is catching up fast.
And to many C/C++ developers like me, PHP is a lot more familiar and easy to learn, and a lot less irritating, than Perl.
change the SGI logo (Score:1)
Dork (Score:1)
Yikes (Score:1)
Re:Only Americans are stupid enough to use PHP. (Score:1)
Your company does not allow ??? What kind of anti-technical BS is this ? Surely your company is interested in the most cost-effective appropriate solution for the job. Unless you work for one of those huge corporations that requires 'standards' above all else, even at the expense of profitability.
The best thing to do here (Apart from changing jobs) is to simply bypass the stupidity. Set up apache on a separate machine. Have the 'front door' running on netscape, but redirect to the performant solution on apache with mod_perl at the earliest opportunity.
I had the misfortune to work for a place that banned mod_perl. Unfortunately, they 'just didn't get it' (tm) so I had to take my services elsewhere. Remember, its a sellers market for tech skills, even now after the dotcom slump...
Re:Mozilla within IE (Score:1)
No you couldn't. This is about using PHP to control a GTK application front end (all on the one machine), it has nothing to do with website features.
DILBERT: But what about my poem?
Re:Mozilla within IE (Score:1)
This is just wrong though... (Score:4)
I don't want to see PHP lose its focus and purpose - it isn't a general use language... if you want one, there are plenty (C/C++, perl, and even java for example). PHP is meant for dynamic kick-ass web-page creation.
Ahh... antialiased icon... much better (Score:1)
Glad /. fixed the image for PHP.
And in order to not get modded down, I just have to say that this is not necessarily a Good Thing(tm), but certainly not a Bad Thing(tm). How could the world be hurt by the introduction of another alternative?
Worst case scenario is that it never gets used, nobody paid money for the install, and the PHP gang gets back to web-based stuff. The world would be no worse off than if this was never tried in the first place.
I just don't see why people are complaining about this! It's not like you're going to have to use it, even if it is successful!
Re:Stay focused, PHP... (Score:1)
Of course, later, they did redesign it from the ground up, and decide to make PHP stand for something different and much more impressive-sounding, but still... I guess my point is that few languages were designed to do terribly specific things from the ground up, because to do so limits their usefulness as a programming language to specific areas. Rewrites happen when focus is deemed necessary. PHP has had one, and I'm sure Perl will too with version 6.0.
To paraphrase the Apple Jacks commercial: Use what you like!
--
NeoMail - Webmail that doesn't suck... as much.
Re:HTML used to own PHP. (Score:2)
I've made CGIs in C before. I guess HTML owns C.
My point was that PHP is a C like scripting language that has no dependence on a web server whatsoever. The perception that it's like JavaScript or that it's not a "real" language is ridiculous. I've written non-web scripts in PHP before. This is no different than GTKPerl or PyGTK or the original C-based GTK.
Well, it is different from GTKPerl in that the language is better suited for large graphical applications, especially to a C developer. I'm not trashing Perl here, it's just the way the languages were designed.
Re:This is just wrong though... (Score:1)
PHP doesn't loose its focus when it thinks outside the web platform, it increases its usefulness, and broadens its reach. Not only that, it puts itself on par with things like Java, and opens doors that will allow it to change as the web changes. Don't fool yourself for a minute that the web (as it exists now) will be around in 10 years. PHP is showing that languages too can evolve, just as technology has, is, and will continue to do.
</rant>
I commend the open source community for driving this change and helping to make the future brighter for all.
Clearly a troll, but what the heck.... (Score:1)
Stay focused, PHP... (Score:3)
We try to push everything (languages, OS's, apps) to try to be everything to everyone. PHP is great for what it is. If you want to create a GUI, use something that was built for it the ground up for it. If you want to create an interactive database driven website (and you don't know perl) use PHP.
I hope this doesn't ever work itself into the main distribution of PHP... More bloat. My webserver doesn't like it already...
Gyp.
Re:change the SGI logo (Score:1)
No way, the original SGI logo -is- way kewler.
Re:Yikes (Score:2)
Not exactly a strong testament to Gimp (although it's more the artist's fault).
Re:Cross platform, eh? (Score:2)
I'm reasonably sure you're looking at this all wrong. I don't think this is related to web browsing at all. I think it's just a means of letting you use GTK+ from *any* PHP script. That would place it in the same class as dtksh, tcl/tk, tkperl, or tkpython.
FastCGI (Score:2)
The only problem is that it was sold to another company, which was in turn acquired, and it was taken off the market. You may want to contact Adero [adero.com] to see if they'd be so kind as to point you in the right direction.
If you're running the Netscape/iPlanet webserver on NT or Win2K, you can also use ActiveState's PerlEx, which is another similar persistent-Perl engine.
There also appears to be a reasonably modern Perl NSAPI module, which is philosophically the closest thing to mod_perl in that it lets you get close to the metal and write true server modules in Perl. It's here. [canoe.ca]
Velocigen [velocigen.com], another commercial product, isn't exclusively a Perl engine. It's a logic and content caching engine that uses XML tags that can hook to cached and embedded code--including Perl. It's probably a different development experience from these other systems, but if persistent Perl is your goal, this should do it too.
Ever tried searching the Web?
PHP == VB for Linux? (Score:3)
Would this fit the bill? Being that I can almost directly translate PHP to ASP and vice versa, and that ASP is the web language descendent of VB, does this mean we now have a VB for Linux? If so, cool!
complaint! complaint! (Score:2)
reminds me of oractcl...it would be nice to have some SCREENSHOTS of the thing doind financial stuff.
after all, i don't think the road to world domination is paved with games and 3d...it appears to flow from corporate use.
show it doing corporate things, damn it!!!
Re:license wars (Score:2)
Basically, it looks like it's "free but not GPL". (Personally, I don't have a philosophical problem with the "give us credit if you use our code" clause of the license, but that's me.)
The Zend Optimizer (which is optional, and a separate but related product, isn't it?) apparently uses the QPL according to the Gnu page mentioned above, which is the license that used to be used by QT and got the flamewars about the "freeness" of KDE going, wasn't it?
My personal solution is to go ahead and use PHP, but not bother with the separate Zend Optimizer download.
---
"They have strategic air commands, nuclear submarines, and John Wayne. We have this"
Re:Not really object oriented is it ? (Score:2)
watch your language! (Score:2)
And if you do want to start insulting, please only speak for yourself. I'm European and I don't want American PHP coders to think I find them stupid.
(I could go on and on about how the Internet should be international and free from any regional prejudices, but i won't, i'm pretty sure everybody but you gets that)
Re:Hardly any details (Score:5)
LetterJ
Head Geek
Re:Not really object oriented is it ? (Score:2)
Re:Hardly any details (Score:2)
and you can look at www.phpbuilder.com too for tutorials
A PHP fan speaks... (Score:2)
Personally, I love (in the platonic sense, you sickos!...) PHP. I'm looking forward to playing with this new stuff.
Just a few random comments/opinions on some issues that have come up here:
The "but it's not GPL!" issue seems to revolve around two things. One is that there is a clause in the license for PHP that says, to paraphrase, "if you use any of our code for something else, give us credit". This is apparently GPL-incompatible, but I don't personally have a moral problem with this. The other licensing issue is the Zend stuff, which when dealt with separate from PHP is under a different, more restrictive license (the "Zend Optimizer" which if I remember right is a separate product, is under the much-maligned QPL, apparently.
I tend to think of PHP as "PERL-lite". It's not as big or "full-featured" as PERL is, and is therefore of more limited (but more focused!) use. PHP does have what to me seems to be a very PERL-like syntax, though. Perhaps one might think of PHP as "Programming marijuana" which leads to escalation to Harder programming languages like PERL* :-). Like PERL, PHP can be worked with in either Object Oriented or standard Procedural ways (or a combination thereof), and both are similar (though I must admit I'm still slightly baffled on PERL OO - PHP doesn't use anything like bless(), for example...)
It LOOKS like "PHP-gtk" and the standard PHP will be separate projects, which is probably good, as it should keep bloat down while allowing each project to borrow relevant improvements from each other.
Mind you, I think the "bloat" issue is mostly nonexistent. The Linux Kernel itself might be considered extremely bloated...except that running "make config" "de-bloatifies" it by setting up to only compile what you need or want. PHP will almost certainly remain the same way.
Maybe now somebody will come up with a "flash authoring" tool for Linux using PHP's swf support [php.net] (I've been wanting to "dabble" with flash animation, but I don't know of any linux tools for putting them together...)
(* - It's a joke! Really! No, I'm NOT trying to start a "war on drugs" flamewar!)---
"They have strategic air commands, nuclear submarines, and John Wayne. We have this"
Re:Hardly any details (Score:2)
also www.devshed.com
Re:what about Basic-GTK? :) (Score:2)
Hey, cool! What better language to write a GUI version of EDLIN in that we've all been wanting for so long? :-)
---
"They have strategic air commands, nuclear submarines, and John Wayne. We have this"
Re:Yikes (Score:2)
- - - - -
Re:Yikes (Score:2)
What do you mean? What language used to own it? I don't understand...
I'm a PHP guy, though I've been preferring Python lately. I still really like PHP.
Re:Taco, change that PHP icon.. (Score:2)
Re:Cross platform, eh? (Score:2)
Re:Stay focused, PHP... (Score:2)
Wow, methinks we have a troll here.
For the record, I know Perl and PHP.
If you want to do a large project, using an OOP implementation that isn't fscked and a language that is actually readable, use PHP.
Actually, it's Perl that didn't stay focused. It was meant for more powerful shell scripts. Now people are writing web sites, email clients, MAME frontends, etc...
PHP originally was meant for web sites, but it was designed to be C-like for a reason. I, the other day, was wondering why nobody had written bindings.
Re:Only Americans are stupid enough to use PHP. (Score:2)
Pearl would be much better suited for this type of application, due to its strong typing and oo-features.
I didn't know there was a strongly typed language called Pearl. Is it anything like the weakly typed language called Perl?
Re:AAAAHHhhhhhh.... (Score:2)
--
Re:Not really object oriented is it ? (Score:2)
Qt, like many other very common packages like Ghostscript[1] is available under two licenses. The Qt code is identical, but the GPL version can only be used to develop GPLed applications (duh, that's the point of the GPL). The QPL version gives you the source without the restrictions of the GPL, so people can write Windows, Mac or Linux apps that can be distributed under their choice of license (including traditional commercial licenses).
So, yes it is dual licensed, GPL for Free Software purists, and QPL for Open Source purists. I really can't think of another company that has gone to greater lengths to satisfy the community and has gotten a worse rep for licenses.
[1] Of course, Ghostview releases the source under GPL a few versions behind the commerically available version. Qt's source is up to date on both sides of the license.
--
Evan
Re:Cross platform, eh? (Score:3)
The GTK toolkit for Windows is rather stable in my experience. I've used it with an IDE and for some MySQL tools on nt4 and 2000. It isn't yet used very often, but that doesn't mean that a) it doesn't exist or b) it isn't stable.
I think this is great news. I've been dealing with signed Java applets for years now, and they're a needlessly difficult thing.
- Mirror - (Score:3)
behold the power of SiG [sig.mine.nu].
Re:Not really object oriented is it ? (Score:3)
Why is OO the holy grail? Why does everything have to be done by the GPL? Why must everything that comes out fit into the little box that you find acceptable?
Re:Only Americans are stupid enough to use PHP. (Score:2)
Oh good grief. What were they thinking when they named it?
PHP shell scripts are great (Score:2)
For example, on an auction site you might want to have a script that runs once every minute to close out auctions that just ended, and email announcements to the seller and highest bidder.
Or you might want to update the weather forecast on your home page every hour by downloading a page from National Weather Service, parsing it, and inserting the info into a database.
Running PHP shell scripts from cron is great for that sort of thing. It allows one to develop the whole site in the same language, instead of switching to Perl or bash for the background stuff.
Not that any of this has anything to do with PHP-GTK...
--
there's no bloat (Score:2)
read the page (Score:2)
It's not incorperated, it's an add on dynamically loaded module. Geez, it's a simple concept really... And even if the php folks rolled it into the dev tree, as long as you don't compile with --enable-gtk, who the hell cares if it's there or not? It won't affect your server, you can just pretend it doesn't exist.
license wars (Score:3)
Apparently, PHP-GTK [php.net] gets by with linking to version 4 because GTK [gtk.org] is released under the LGPL. [gnu.org]
I'm surprised Richard Stallman [stallman.org] hasn't released a blistering condemnation of the project yet.
Re:Branching out (Score:2)
I only wished that we had a way to use PHP with these GTK widgets... oh... nevermind.
Mozilla within IE (Score:2)
Thus you could open a mozilla browser from within IE.
Re:Hardly any details (Score:3)
www.php.net/manual [php.net]. The manual is great. You can learn everything you need to know about specific things from there. Before that, you need a basic tutorial.
A PHP page looks like this:
<html>
<title>Hello</title>
<form action=<?php print $PHP_SELF; ?>
<input name=message>
<input type=submit>
</form>
<?php
print $message;
?>
Try that. Also, to get hold of PHP, use PHP Triad [cnet.com] (on Linux, you can probably install it from your distribution CD), a win32 installer of PHP, Apache and MySQL.
Basically:
PHP is HTML with the code embedded between blocks starting
<?php
and ending
?>
within that you put your PHP code.
For example:
<?php
print "hello";
?>
would display hello - just like perl.
Similarly, as in Perl, variables are preceded by $.
So:
<?php
$message="chese";
print "I like $message";
?>
It's convenient - all form variables get put into variables of the same name:
<form action=apage.php>
<input name=thing>
<input type=submit name=action value=Submit>
</form>
would send apage.php two variables - $action='Submit'; and $thing= whatever you typed in there.
You should investigate PHP's object-orientation functions too. Here's an example class [class omitted due to slashdot's lameness filter
Anyway, start here [php.net]; read here [phpbuilder.com] for more, as well as here [zend.com]. Also subscribe to the mailing list at php-general@lists.php.net for help from others.
--