• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Practical Uses for PHP?

Originally posted by AlieXai
> So you still can't do much using PHP alone
> without a flat-file database.


Yea, so I won't bother telling you about php-GTK.

But, yeah, i'm thinking php does have a limited number of logical applications outside of dynamic content generation. Nevermind it's easy ability to process text, making it great for working with sockets.

Hmm...so it can be used to create programs too? I was thinking more along the lines of web applications. :p
 
It can make graphics too -- and PDF documents! Ha, I'd like to see your little JavaScript make a PDF document! :p

(Let me tell you a little secret, when I first heard of using a database on the web, I thought it was stupid and that there was no reason in using one! :eek: :D)
 
Last edited:
Originally posted by Cagez
It can make graphics too -- and PDF documents! Ha, I'd like to see your little JavaScript make a PDF document! :p

(Let me tell you a little secret, when I first heard of using a database on the web, I thought it was stupid and that there was no reason in using one! :eek: :D)

Don't worry...I am actually quite well-informed on MySQL, and I like it a lot. But it seems like almost everything that I want to do depends on MySQL, so I was wondering if PHP could be used to do anything. And it can! :D

From what I've seen, PHP alone cannot make Acrobat files. It takes other implementations and mods in order to do such tasks. And I believe there are such versions of JavaScript. :p

Funny you should mention JavaScript though - I actually use VBScript for all my little web applications (and if you don't have IE, too bad ;)). It's offline counterpart, VB, is immensely powerful, and I'm sure you could create more things with that than PHP, LOL. :p
 
Originally posted by conkermaniac
It's offline counterpart, VB, is immensely powerful, and I'm sure you could create more things with that than PHP, LOL. :p
Maybe because Visual Basic was designed to use in developping full applications and PHP was designed to be used as a server side scripting language.
 
When you start comparing VB, you're getting into two completely different things. But since VB was brought up, I'll go ahead and say this......

I think it *is* possible to make PDF's in PHP without any external libraries. Somewhere out there you can find VB code that converts text to PDF. It was some really simple code, that just involved adding some strings of text to the file. All the functions tha were used, are most likely in PHP =)
 
LOL, I never thought comparing PHP and VBScript was fair, but Cagez tempted me when he made fun of JavaScript! :p :biggrin2:
 
saying php is useless without a database or what not is silly. Like what's the point of using a mellon baller if you want to grow peaches. Server side scriping has its purpose, so does client side.
 
Originally posted by spec
saying php is useless without a database or what not is silly. Like what's the point of using a mellon baller if you want to grow peaches. Server side scriping has its purpose, so does client side.

Well, if that's the case, would you like to give us some practical uses? :p
 
Uses of what? Client-side scripting? I use to think there weren't any practical uses for it, until I really got into it.

For one, client-side includes allows someone to insert text/html from another site without having any SSI capabilities, like what PHP and Perl has. Nedstat counters use this, rotating banner scripts use it, and those PayPerClick search engines....just for starters.

Menu's are nice too. Simple ones, like dropdown combo boxes that switch pages without clicking a button.

For those who like popups/popunders, I'm sure they're thanking Sun for the language :D

When you need a link to display text that consists of 10 or 15 words, it's a pain to create a separate html/php page with those 10 or 15 words. Sure, you could make it a small-sized popup, but you still need to make a new HTML file, plus the popup code. Problem solved with the alert() function.

Basically, there are practical ways to control the user's browser that PHP *cant* do, that might become necessary.
 
I wouldn't rely on Javascript to make sure that a page is shown properly. If they're using a different browser or possibly a different version then the one you tested with and something goes wrong or they simply have it turned off, your page will look awful.
A good example would be geocities. Nearly half of the time I go to a geocities page I get a scripting error because of the ad they automatically include.
 
well....VBScript then? ;) There's just some places PHP/Perl can't go... but the JS uses I was referring to above can be done in IE/Netscape compatible code. I wouldnt touch anything that works in one but not the other. I just wish to God that NS supported iframes and IE supported server-push. :D
 
Originally posted by NukedWeb
Uses of what? Client-side scripting?

Wait a second...I was just reminding spec to stick to the topic and provide some additional examples of why server-side scripting is useful. I'm quite aware of why client-side scripting is useful. ;)

:D
 
Back
Top