how do I...

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

how do I...

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: how do I...

Post by Luke »

Code: Select all

<?php
$you = "idiot";
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: how do I...

Post 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!
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: how do I...

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: how do I...

Post by Chris Corbyn »

:lol:
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: how do I...

Post 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";
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Re: how do I...

Post 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.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: how do I...

Post by Luke »

ooooh ok. here's what you need to do. go buy yourself a really fast car. then crash it into something hard.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: how do I...

Post by alex.barylski »

Ouch Ninja...you sound angry man :P
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: how do I...

Post 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:
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: how do I...

Post by Eran »

Code: Select all

$car = new Ferrari();
$result = $car -> go() -> faster();
if( $result == 'crash' ) {
     die('An error has occurred');
}
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: how do I...

Post 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. :(
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: how do I...

Post 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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: how do I...

Post by califdon »

Weirdan wrote:That's easy: you need to hire staff to do stuff.
That's called "outsourcing", right? :lol:
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: how do I...

Post by Weirdan »

califdon wrote:That's called "outsourcing", right? :lol:
Shush... don't frighten away my prospective client :twisted:
Post Reply