Page 1 of 1

PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 10:20 pm
by DeFormat
Well, i need to get this off my back. For the longest time, every time i talk about php to anyone, they always believe you cant do anything more than script advanced web pages with it. While php was originally meant for this, its not what it only does. If you happen to have a web server running on your lan (aka your computer or a computer in your home), such as WampServer (which i use), you can do much much more with PHP.

With WampServer, you can create console programs in PHP inside the php framework, you simply create a batch file to open the php script and bam, you have a console program in PHP. Many of you are going to think of this as crap, not useful, and you cant do anything with it. Well once again, your wrong. Im sure many of you have heard of a website called Gaia Online, iv created & seen account crackers, market botters, auto PMers, auto posters, and account creators which isnt released and prob wont be released which auto activates. All of this and more with this method of PHP scripting.

Some people need to rethink php :P

(BTW, your probably all thinking i sit at home and stare at PHP all day, i dont. I stare at C++ and java also)

Finally got that off my back >.<


EDIT:: Quick Non Tested Example. (for wampserver)

batch file placed in C:\wamp\bin\php\php5.2.9-1\example

batch source:

Code: Select all

..\php example.php
pause
php file placed in C:\wamp\bin\php\php5.2.9-1\example

example.php

Code: Select all

<?php
class example
{
	public function Start()
	{
		fwrite(STDOUT, "Press enter to start....");
		$this->input();

		fwrite(STDOUT, "loop X times: ");
		$Amount=$this->input();

		for($x=0; $x < $Amount; $x++)
		{
			echo ($x+1) . " loops counted\n";
		}
	}

	public function input()
	{
		return str_replace(array("\n", "\r", "\r\n"), null, fgets(STDIN));
	}
}

$Example = new example();
$Example->Start();
?>

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 10:40 pm
by Trask
DeFormat wrote:\. Im sure many of you have heard of a website called Gaia Online, iv created account crackers, market botters, auto PMers, auto posters, and my latest and greatest for gaia in a long time my new account creator which isnt released and prob wont release which auto activates, ill post a video probably.
I'm sorry, I couldn't get past this statement... you sound like an ass. Why would anyone, not set out to piss people off, create such things? I don't claim to know you/Gaia Online/or whatever else you rambled on about. If I'm outta line here, I'm sorry... but that bugs me that you're gloating about such things.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 10:42 pm
by wtetzner
DeFormat wrote:With WampServer, you can create console programs in PHP inside the php framework...
Dude, just because you can do something doesn't mean you should. I've never even considered PHP to be a good web language.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 10:43 pm
by DeFormat
Trask wrote:
DeFormat wrote:\. Im sure many of you have heard of a website called Gaia Online, iv created account crackers, market botters, auto PMers, auto posters, and my latest and greatest for gaia in a long time my new account creator which isnt released and prob wont release which auto activates, ill post a video probably.
I'm sorry, I couldn't get past this statement... you sound like an ass. Why would anyone, not set out to piss people off, create such things? I don't claim to know you/Gaia Online/or whatever else you rambled on about. If I'm outta line here, I'm sorry... but that bugs me that you're gloating about such things.
Sorry dont mean to gloat. And i know its cruel, but its just an avatar site.

Just posted those things to get my point across with php.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 10:49 pm
by DeFormat
wtetzner wrote:
DeFormat wrote:With WampServer, you can create console programs in PHP inside the php framework...
Dude, just because you can do something doesn't mean you should. I've never even considered PHP to be a good web language.
So be the fact just because you can do something doesnt mean you should, doing this is more powerful than you think. And there is no wrong doing with it.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 11:35 pm
by CC Ricers
Well, of course if you have any open source PHP stack and know your way around a shell, you can run scripts this way. I most commonly implement this with cron jobs.

Though when I think of extending PHP beyond web server use, I think more of bindings like PHP-GTK, which does enable you to make full blown GUI applications.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 11:44 pm
by DeFormat
Honestly, i dont bother going any farther than cmd prompt programs with php. If i want a gui on it ill do C++ or java.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Fri Feb 26, 2010 11:57 pm
by ibly31
Dude, you post here expecting to get love from every one about how you can ruin games and just be an overall jerk. I use PHP, and I have never once thought of doing something like that. Seriously, use your powers for good, not evil.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sat Feb 27, 2010 12:07 am
by jacob.krustchinsky
I think I am just going to remain quiet as this is a pointless thread.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sat Feb 27, 2010 10:25 am
by Falco Girgis
PHP is a web scripting language. It was invented to be a web-based scripting language (an easy one too, because Perl and CGI had previously ruled that domain). It is primarily used as a web-based scripting language.

As somebody said, just because you can do something with a language that it wasn't mean to doesn't mean it should be done. You can do anything with C++, but why would I want to write something with it that a high-level scripting language could do much faster and easier?

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sat Feb 27, 2010 11:06 am
by ismetteren
You can also write webpages with C++, but that dosent mean its a good idea.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sat Feb 27, 2010 4:43 pm
by DeFormat
jacob.krustchinsky wrote:I think I am just going to remain quiet as this is a pointless thread.
Then why did you post? You just contradicted yourself.

Think before you post

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sat Feb 27, 2010 5:30 pm
by Trask
DeFormat wrote:
jacob.krustchinsky wrote:I think I am just going to remain quiet as this is a pointless thread.
Then why did you post? You just contradicted yourself.

Think before you post
If this isn't the pot calling the kettle black.

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sat Feb 27, 2010 5:55 pm
by JaxDragon
DeFormat wrote:
jacob.krustchinsky wrote:I think I am just going to remain quiet as this is a pointless thread.
Then why did you post? You just contradicted yourself.

Think before you post
I think he was speaking metaphorically. "remain quiet" as in leave most of his opinion to himself, seeing as "this is a pointless thread", and he didn't think such a topic was worth a response, but he felt you should know he thought this was "a pointless thread".

Re: PHP is more than just scripting for web i tell you >:o

Posted: Sun Feb 28, 2010 12:27 am
by TheBuzzSaw
You are going to write some kind of local app and are too much of a sissy to learn C++, use Python. PHP is probably the worst choice (especially considering that you recommended installing a local web server to use it).