how do I...
Moderator: General Moderators
how do I...
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?
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...
Code: Select all
<?php
$you = "idiot";Re: how do I...
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!The Ninja Space Goat wrote:Code: Select all
<?php $you = "idiot";
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: how do I...
I think you need to first read about stuff, the learn by doing stuff, then stuff kind of happens I guess.
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.
Cheers,
Alex
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: how do I...
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?Burrito wrote: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!The Ninja Space Goat wrote:Code: Select all
<?php $you = "idiot";
Code: Select all
<?php
$you = "complete idiot";Re: how do I...
I tried that too and it still doesn't do stuff.The Ninja Space Goat wrote:Code: Select all
<?php $you = "complete idiot";
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";
Re: how do I...
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...
Ouch Ninja...you sound angry man 
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: how do I...
Wait, let me get my camera first...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.
Re: how do I...
Code: Select all
$car = new Ferrari();
$result = $car -> go() -> faster();
if( $result == 'crash' ) {
die('An error has occurred');
}Re: how do I...
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.
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...
That's easy: you need to hire staff to do stuff.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?
Re: how do I...
That's called "outsourcing", right?Weirdan wrote:That's easy: you need to hire staff to do stuff.
Re: how do I...
Shush... don't frighten away my prospective clientcalifdon wrote:That's called "outsourcing", right?