Page 1 of 1

Not working! :(

Posted: Wed Feb 04, 2004 1:14 pm
by nick2
Page cannot be displayed.. ughhhhh what am I doing wrong:

Code: Select all

<?php
$fp = fopen( "user.ini" , "w" );
$inputString = "[main]\nID=$_POST[user]\n";
$inputstringg = "Password='$_POST[password]'\n";
$inputstringgg = "Name='$_POST[name]'\n";
$inputstringggg = "Birthday='$_POST[bday]'\n";
$inputstringgggg = "Question1='$_POST[q1]'\n";
$inputstringggggg = "Answer1='$_POST[a1]'\n";
$inputstringgggggg = "Question2='$_POST[q2]'\n";
$inputstringggggggg = "Answer2='$_POST[a2]'\n";
$inputstringgggggggg = "Email='$_POST[email]'";
fwrite( $fp, $inputString, $inputstringg, $inputstringgg, $inputstringggg, $inputstringgggg, $inputstringggggg, $inputstringgggggg, $inputstringggggggg, $inputstringgggggggg );
fclose( $fp );
header("location: http://24.185.8.160:1/empty.php");
?>

Posted: Wed Feb 04, 2004 2:12 pm
by Illusionist
whats with all the $inputstringggggggggg??? why not call your variables somethign relevant? like $name, $birthday, $password, etc.

Posted: Wed Feb 04, 2004 2:12 pm
by Michael 01
After clicking on the link that you have present in your above script, it didnt show a page at all, so my first guess would be is that the addy you have in the statement is not a valid page to begin with, or you have missed something in the addy link. (wrong directory, addy, etc...)

Just a suggestion, but try not to use variables that depend on number of letters such as stringggggggg. I had inititally thought you might of forgot one 'g' or added to many. This makes for tough de-bugging sessions. :)

Posted: Wed Feb 04, 2004 2:42 pm
by nick2
and yes it does exist:

http://www.slices.net/add.htm


and create.php does exist... ugh


maybe you can try using the code above and putting it in create.php?


and uploading it? :(

Posted: Wed Feb 04, 2004 5:55 pm
by nick2
Ok none of you professionals could tell me that header() was screwing the whole thing up? heh I had to find it out for myself.

Posted: Wed Feb 04, 2004 6:09 pm
by uberpolak
Someone has to hand you a king-size plate of your ass.

First off, if you ask for help with something, and nobody knows the answer (or hasn't got the time to spell it out for you), don't mock them, you didn't know it either, that's why you asked for help in the first place. If you were paying for their advice, it'd be a different story, but in this case, you're just being a dick by belittling someone for being at the same level as you (at very least). Stop it.

Second, if you're going to be an obnoxious ass-clown about something, make it something you're right about. There's nothing wrong with using a header command after adding a constructed string to a file, that's not your problem. So not only are you being a pompous ass to people who are trying to help you for free, you're being pompous about something that's not even true. It's like a kid working at McDonald's bragging about his fabulous wealth.

For your own sake, stop being such a smug bastard, and people might be more eager to help you out.

Posted: Wed Feb 04, 2004 6:14 pm
by Straterra
Damn polak! Remind me to not make you mad..But..I peice of advice, use the function in my signature to deal with people like this! :)

Posted: Wed Feb 04, 2004 6:18 pm
by uberpolak
Haha, I actually thought of the stone function when I was writing that... Can't take credit for your work though.

Posted: Wed Feb 04, 2004 6:19 pm
by d3ad1ysp0rk

Code: Select all

<?php 
$whom = "nick2";
$how = "boulder from 200ft";
stone($whom,$how);

echo $whom . " has been successfully stoned!";
?>
:lol:


With the amount of text in your first post, I got this:
- You have code
- You get a page cannot be displayed page

so.. page cannot be displayed means that there isn't anything there. so either empty.php or the file you were talking about isnt uploaded

Posted: Wed Feb 04, 2004 7:03 pm
by Michael 01
ahh..actually I did point it out. This is the addy that you described to us "professionals". Let me point this out again in case it was missed:


header("location: http://24.185.8.160:1/empty.php");

Now..your next post with your self gloating and grab assing was:
http://www.slices.net/add.htm


and create.php does exist... ugh
Point 1) the file at the end of your addy is empty.php NOT create.php

I gave up mind reading years ago when the stock market crashed.

Point 2) http://www.slices.net/add.htm

Where the <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> does this come into play? It sure as hell wasnt in the above address given in your plea of help and sanity.

Point 3) header("location: http://24.185.8.160:1/empty.php");

I pointed out above again several scenarios that pointed rite to this header like a blue light special at Kmart.

Point 4) When asking for help, its always a sink or swim issue for some of us. Do I help somebody, or do I just write the <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> code for them, and send them on their way? I learned the hard way just like everybody else, bought some books, learned some more. Visited a ton of PHP sites, learned some more. Started coding PHP on live sites 5 years ago, learned a hell of a lot. Contributed code to some of the biggest forum and nuke sites on the net, learned gratification from a hard work job done. Helped a prick cock sucker out like yourself, and learned that teaching a boy like yourself to fish also lead this boy to chuck the rod in my ass.

In my opinion, starve.

Point 4, and well written, read uberpolak's response again. And than when finished, read it again. Repeat point 4 until ass bleeds.

Point 5: anybody willing to use variables such as you did, with 95% of the alphabet included as the variable, while also using FTP as the solution to logging in to a site..well...have a good time. I am sure that somewhere down the road when your "script" gets the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> hacked out of it, you will come back wondering why?

Respect...where the hell did it go?

Posted: Wed Feb 04, 2004 7:29 pm
by Michael 01
Why stop at one?

Code: Select all

<?php

for ($i="0",$i<="10",$i++); &#123;

$count="$i++";
$highcount="(($i++)*("10"))";
$whom = "nick2"; 
$how = "from a boulder @ '$highcount' feet!!!"; 
stone($whom,$how); 
echo "$count.gif","$highcount.gif";// add animation clips here
echo $whom . " has been successfully stoned '$count' time(s) '$how' "; 
&#125;
?>

Posted: Wed Feb 04, 2004 7:34 pm
by Straterra
People are using my script? *begans to cry joyously*

Posted: Wed Feb 04, 2004 7:47 pm
by Michael 01
honestly, that was the first sig that I really took notice to..add some animation to the code in each above loop, and it could be the most humorous thing I have seen done with PHP in quite awhile.

Posted: Thu Feb 05, 2004 5:06 am
by twigletmac
The moral of the story is: if you want help be nice to the volunteers who are bothering to take the time to reply to your post.

If you find the answer yourself it is a good thing but don't get too big a head about it, lots of us do it all the time.

I've locked the thread now before the stoning gets too severe...

Mac