Be a Supporter!
php question Posted July 22nd, 2006 in Programming

how could I take a string and push each character into an array?

a program.. Posted July 22nd, 2006 in Programming

I want a program that, while running, will return the key on the keyboard that was pressed, then it will paste in text cooresponding to that key.

Example, if I press 'a' the word apple will be put onto my clipboard and then pasted.

- What language should I use for this?
- How hard will it be to make?

Response to: how do you make your own code Posted July 20th, 2006 in Programming

At 7/20/06 02:06 PM, elbekko wrote:
At 7/20/06 01:18 PM, Mcconnellwade wrote: I just think HTML is best to learn first because of it's simplicity. But, hey, nothing wrong with learning something else. W3Schools is still a good source for learning, they've got tutorials on all kinds of web languages.
Well, thing is, HTML isn't a programming language. It has almost no logic, so it's no use to learn programming with HTML =/

I disagree, I think it's a great first language because it prepares you for some basic things that really count. It teaches you to always spell everything in the code correctly, that code all has some rules to how it must be written, and to memorize many names of tags which prepares you to memorize functions and such.

Response to: Php: Loops Posted July 20th, 2006 in Programming

At 7/20/06 01:20 PM, Nino_JoJ wrote:
At 7/20/06 01:14 PM, elbekko wrote: I see an error with your for() explanation ;) Not onlyy ++ and -- are supported ;) You can do something like this:
for($i = 0; $i <= 10; $i += 2)
echo 'This increments $i by 2!';
weird, never seen that

If you wanted, you could even do something like this:

for($i=0;$hello != bindec('110');$i++){
$hello = 2*$i;
}

Response to: I thought you guys would know... Posted July 20th, 2006 in Programming

If it's only on certain pages, perhaps NG has some redirection PHP file or something that's not working correctly in your browser or just not ignitiating properly and therefore launching in that frame yet not correctly redirecting and leading to staying in an NG page that may output an error message.

Try this if you have a scroll wheel on your mouse:
If it happens again, click with the scroll wheel on an area of the page that no link or image link is and then move your mouse down to scroll down the page in the frame, see if it has an error message and if so post it here.

Firefox theme? Posted July 13th, 2006 in General

I know I've seen an NG Firefox theme before called like ng-zilla or something.. but I tried google and the ng bbs search for a while now and haven't been able to find the site that gives out this theme.

Where do I get the NG Firefox Theme?

Response to: wat? Posted July 10th, 2006 in Programming

At 7/10/06 06:46 PM, GamesCool wrote: What does this have to do with programming?

Null.

Response to: Learning Php & Mysql Posted July 10th, 2006 in Programming

Yeah dummies books are crap, if you want a book that's less advanced and good for just starting out, check this out:
http://www.amazon.co..=glance&n=266239
It was my first PHP book and I really recommend it.

Response to: php: transforming a array to string Posted July 10th, 2006 in Programming

First off, you need to use implode() to take a string and turn it into an array by a separator. One thing to keep in mind, however, is that you should not use ^ as a separator. You should use something that won't be as common to be typed. Something maybe like <--SEPARATOR--> and then restrict it from being entered as a comment or make <'s and >'s become their html entities of &lt; and &gt; (which you should do anyway for security reasons) and that way it would be impossible for <--SEPARATOR--> to be entered since <'s would become &lt; and therefore make it not be picked up by PHP.

PS. Consider moving into databases after you've progressed with txt file manipulation.

Response to: Help: Php Highscore On Ng Posted July 10th, 2006 in Programming

At 7/10/06 02:38 PM, H3 wrote: flash forum directed me here~
So it's not possible for highscore feature on NG?

I remember NG used to have a highscore page for some of its games

This belongs in the flash forum, yet I'll still answer you.

I don't understand why people are stating taht highscore boards can't work on NG when there are clearly many games that use this feature.

You just need to put the cross-domain xml policy in the root directory of your site that allows uploads.ungrounded.net. Then you need to put the System.security.allowDomain function in the flash file marked to allow the site that the php file to be connected to are hosted.

Response to: Crystal Hosting Posted July 10th, 2006 in Programming

Cool I guess... but the bandwidth for the plans are terrible.

Response to: Changing Image Opacity on Rollover Posted July 9th, 2006 in Programming

At 7/9/06 05:19 PM, Jams44 wrote: BTW Italy wins and Zidane sux.

Quite irrelevant, eh?

Anyway, use the alpha filter.

Usage:
filter:alpha(opacity=PERCENTAGE);

Examples:
filter:alpha(opacity=25);
filter:alpha(opacity=89);
filter:alpha(opacity=100);

Response to: virus help Posted July 8th, 2006 in General

At 7/8/06 11:32 PM, Ozcar wrote:
At 7/8/06 11:30 PM, JeremysFilms wrote: Thanks but.. it's off of my computer, but the problem is that the system restores failed and left my computer in a bad condition.
Delete it from your registry so you can run System Restore:
Stuff

I have block-checker off of my computer, I used many different things to make sure it's off, also I found none of those registry keys meaning it's definitly gone. But I'm still unable to do a system restore, it just says it can't and it's disabling me from running AIM for some reason.

Response to: virus help Posted July 8th, 2006 in General

At 7/8/06 11:29 PM, Ozcar wrote: This might help you, dude.

Thanks but.. it's off of my computer, but the problem is that the system restores failed and left my computer in a bad condition.

Response to: virus help Posted July 8th, 2006 in General

At 7/8/06 11:25 PM, DestroyerOfMan wrote: Macs auto-suck if you say it.

You have to uninstall, then reinstall the program.

What are you talking about?

virus help Posted July 8th, 2006 in General

I stupidly downloaded block-checker from block-checker.com not realizing it was a virus/trojan/worm/spyware.. I'm pretty sure I got rid of it, but I did a system restore to yesterday to make sure. Windows told me that the restore could not be made, I tried restoring to a week ago, same error, then a month, same error. I'm unable to do a system restore, and now my computer is going terribly slow after a few reboots and when I attempt to start AIM, it just doesn't load.

What's going on????

Can I please get some serious responses without the sarcastic "windows sucks" comments?

Response to: How To Compile Curl? Posted July 8th, 2006 in Programming

At 7/8/06 06:50 PM, GamesCool wrote: Also, the game kinds of ads I do click because they're fun and I like to see what happens when you win, and I know for a fact a lot of other people do also.

But I'm not talking about because you want to play the little game, I'm asking when was the last time you clicked an ad because you were interested in the product.

Response to: backround image question Posted July 8th, 2006 in Programming

At 7/8/06 02:26 PM, elbekko wrote: <body style="background-image: url(<path>)">

That should do it

That's in CSS, if he wanted to do it in HTML, he'd use:

<body background="PATH">

Ads Posted July 8th, 2006 in General

I've been so bored today.. that I actually was clicking ads and popups that looked remotely interesting. I'm still bored though.

Has anyone else actually clicked ads when they're bored?

Response to: symbols not loaded in C++ Posted July 8th, 2006 in Programming

I don't know anything about C++, but I'm guessing this means character symbols weren't loaded? If so that may mean that letters and fonts or whatever weren't loaded and won't output correctly.

Response to: I Saw German Scat Porn. Posted July 8th, 2006 in General

At 7/8/06 01:23 AM, Mad-Cow wrote: His feces came out like delicious soft serve icecream, slowly spiraling on her forehead and eyes.

l..m..f..a..o..

Response to: The Greatest Home Ever. Posted July 8th, 2006 in General

At 7/8/06 01:50 PM, Subtle wrote:
At 7/8/06 01:32 PM, MetalDuck wrote: I don't think he lives there.
Yeah, he just wants people to say things like "oh, wow, you're lucky" or something. Attention whore.

Oh and he really does live there, even though he's bragging... I've done business with him .. he's very rich.

Response to: The Greatest Home Ever. Posted July 8th, 2006 in General

At 7/8/06 01:48 PM, disingenuous wrote: Geez, where the hell in PA is that?

He was born in PA, but he lives in england.

Response to: How To Compile Curl? Posted July 8th, 2006 in Programming

At 7/5/06 10:10 PM, GamesCool wrote: If your talking about it from an advertising perspective, advertising 101. Newgrounds has banner ads. The advertisers are paying per view. Newgrounds has ad brite links. How are those going to get clicked if a macro is doing all the work.

Ok, answer this:

When was the last time you clicked an NG ad because you were actually interested in the product and weren't just trying to help out NG?

Response to: The Greatest Home Ever. Posted July 8th, 2006 in General

At 7/8/06 01:28 PM, EddieIronMaiden wrote: Wow. You made a thread bragging about your house. People's standards really have gotten low.

Agreed.. chris, this was a stupid topic, people will just get mad at you.

Response to: change tint? Posted July 8th, 2006 in Game Development

At 7/8/06 01:10 PM, GuyWithHisComp wrote: I don't think it's possible.
You can change the color thought, but that would change the whole mcs color.

Never mind, I was looking in the AS library and found that there's a Color object that can be used with setRGB. So I just have to use something like:

color = new Color(_root.mc);
color.setRGB(0xff0000);

Thanks anyway

change tint? Posted July 8th, 2006 in Game Development

hey, I forget, how do you change the tint of an MC dynamically with actionscript? Is there a property for it or a function or something?

Response to: Parse error: parse error??? Posted July 8th, 2006 in Programming

Sorry for double post, but also, you don't really need to use PHP to output that. You could just have it there then you PHP when you need it. Like this:

html is cool
dfjsldkfjlksdf
<?php
//omg php
?>

Response to: Parse error: parse error??? Posted July 8th, 2006 in Programming

First off, you put the HTML out there as expressions. If you want to make PHP output that HTML, you need to echo or print it. So echo the html you want to be outputted.

Examples:

echo 'Hey how are you';

echo '<form>
<input type="hidden" name="blah">
</form>';

cookies? Posted July 7th, 2006 in Programming

What's the file path to the cookies directory on windows xp?