Page 1 of 3

how do I...

Posted: Fri Jan 16, 2009 7:34 pm
by Burrito
do stuff in PHP?

More specifically, I want to save stuff, then do stuff with that stuff. Let's say I have stuff here, and I want to do other stuff with that stuff over here, how do I do that?

Can you please provide examples in your response?

Re: how do I...

Posted: Fri Jan 16, 2009 7:40 pm
by Luke

Code: Select all

<?php
$you = "idiot";

Re: how do I...

Posted: Fri Jan 16, 2009 7:42 pm
by Burrito
The Ninja Space Goat wrote:

Code: Select all

<?php
$you = "idiot";
I tried that and it didn't do what I want. Please help me. If I can get this to work, I'm going to make a LOT of money!

Re: how do I...

Posted: Fri Jan 16, 2009 7:43 pm
by alex.barylski
:lol: :lol: :lol:

I think you need to first read about stuff, the learn by doing stuff, then stuff kind of happens I guess. :drunk:

Funny because more and more every day I look at the PHP coding forums I see questions like this. I honestly have no idea how feyd and others manage to find the patience to answer questions that are so redundant...I don't even answer them and I go nutts.

I'm glad to see someone feels sort of how I do. :P

Cheers,
Alex

Re: how do I...

Posted: Fri Jan 16, 2009 7:50 pm
by Chris Corbyn
:lol:

Re: how do I...

Posted: Fri Jan 16, 2009 8:59 pm
by Luke
Burrito wrote:
The Ninja Space Goat wrote:

Code: Select all

<?php
$you = "idiot";
I tried that and it didn't do what I want. Please help me. If I can get this to work, I'm going to make a LOT of money!
Hey, if you're not willing to put in a little bit of effort to debug this thing, why am I even bothering? Did you try this?

Code: Select all

<?php
$you = "complete idiot";

Re: how do I...

Posted: Fri Jan 16, 2009 9:25 pm
by Burrito
The Ninja Space Goat wrote:

Code: Select all

<?php
$you = "complete idiot";
I tried that too and it still doesn't do stuff.

I am working with some code that I got off of some website somewhere. Can you please look at it and fix it for me.

I tried putting what you gave me in where I think it should go.

Code: Select all

 
$you = "idiot";
if(strpos(array_pop(explode(",",implode(",","imbecile,ball,chewtoy,doggie"))),$you) !== false)
  echo "stuff being done";
 
As I said, I got that off of a web site and the guy who wrote it won't help me any more.

Re: how do I...

Posted: Fri Jan 16, 2009 9:29 pm
by Luke
ooooh ok. here's what you need to do. go buy yourself a really fast car. then crash it into something hard.

Re: how do I...

Posted: Fri Jan 16, 2009 10:53 pm
by alex.barylski
Ouch Ninja...you sound angry man :P

Re: how do I...

Posted: Fri Jan 16, 2009 10:55 pm
by JAB Creations
The Ninja Space Goat wrote:ooooh ok. here's what you need to do. go buy yourself a really fast car. then crash it into something hard.
Wait, let me get my camera first... :mrgreen:

Re: how do I...

Posted: Fri Jan 16, 2009 11:06 pm
by Eran

Code: Select all

$car = new Ferrari();
$result = $car -> go() -> faster();
if( $result == 'crash' ) {
     die('An error has occurred');
}

Re: how do I...

Posted: Sat Jan 17, 2009 1:48 pm
by califdon
Seriously, I think what we're observing is a new generation of students for whom programming is a pursuit like basketball, where the way to learn it is to just jump out onto the court and start jumping around and maybe eventually the ball will come your way and you can try to drop it through the hoop. I retired from teaching at about the time this was becoming pervasive. I don't know if I could take it anymore. There is no concern for learning basics first, little concern for describing the situation with any precision, full expectation that other people will always (and SHOULD) provide them with just the answer to their immediate question so that the next related question will also be answered by posting again. And again. And again.

I see posters with hundreds of posts who are still asking the most basic of basic questions. They have taken up enormous amounts of other people's time and obviously haven't learned a single thing.

It's probably the ugly underside of the web's fantastic ability to draw together collective knowledge and to connect people together. Kids growing up today naturally see this as normal. And it is, now. But often nobody is teaching them to learn for themselves.

Sorry, just a grumpy old man venting. :(

Re: how do I...

Posted: Sat Jan 17, 2009 5:03 pm
by Weirdan
Burrito wrote: More specifically, I want to save stuff, then do stuff with that stuff. Let's say I have stuff here, and I want to do other stuff with that stuff over here, how do I do that?
That's easy: you need to hire staff to do stuff.

Re: how do I...

Posted: Sat Jan 17, 2009 5:51 pm
by califdon
Weirdan wrote:That's easy: you need to hire staff to do stuff.
That's called "outsourcing", right? :lol:

Re: how do I...

Posted: Sat Jan 17, 2009 7:24 pm
by Weirdan
califdon wrote:That's called "outsourcing", right? :lol:
Shush... don't frighten away my prospective client :twisted: