Web programming >> its pretty dead in here...
Posted by benbread on 18:33:00 09-21-2003
we need something to liven the webdev area up...
Posted by DInsane on 09:19:00 09-23-2003
So why don't you start something up, instead of moping about it? [addsig]
Posted by ItinitI on 11:42:00 09-23-2003
I am a bit bored also...why dunt we start a Fortran learning group?
Posted by benbread on 00:05:00 09-25-2003
i dunno, my last scheme fell flat on its face, i don't know if i can handle the embarresment
Posted by DInsane on 03:31:00 09-25-2003
I have an idea.

How about we ask each other trivia questions. NO keeping track of points. NO flame wars. NO falling flat on face. Why not? If you want to, let's start. [addsig]
Posted by cowsarenotevil on 05:37:00 09-25-2003
OK, what does PHP stand for?
Posted by dxprog on 06:14:00 09-25-2003
Hypertext Preprocessor, easy [addsig]
Posted by ItinitI on 06:56:00 09-25-2003
-Who developed JavaScript?

-Who developed Java?
Posted by Neu[Mann] on 07:36:00 09-25-2003
JavaScript: Netscape

Java: James Gosling for Sun.
Posted by cowsarenotevil on 08:16:00 09-25-2003
Which browsers support VBScript?
Posted by Neu[Mann] on 08:37:00 09-25-2003
Microsoft Internet Explorer since it's third version.
Posted by cowsarenotevil on 08:49:00 09-25-2003
Is it possible to write an MUD in PHP?
Posted by Neu[Mann] on 09:08:00 09-25-2003
Yes of course...

dudes...

those are not exactly hard questions

easy birding questions:

What is the common name of the red-throated bird commonly found on american lawns?

Posted by DInsane on 09:27:00 09-25-2003
Whoa. This thread moved fast. lol, and, it has to be programming/web/computer related questions. [addsig]
Posted by ItinitI on 11:24:00 09-25-2003
Ugghh, a Robin maybe?? Or a Rubythroat Hummingbird...but it shouldnt really be _on_ the lawn maybe =/ SOO Robin is my guess.

Whose are the three crosses on the Union Jack?

[ This Message was edited by: ItinitI on 2003-09-25 12:14 ]
Posted by Neu[Mann] on 12:28:00 09-25-2003
Partial answer ItinitI

There are many kinds of robins

This one is an American Robin DD
Posted by dxprog on 23:17:00 09-25-2003
What year was internet invented? [addsig]
Posted by ItinitI on 23:21:00 09-25-2003
Could you give a question that isnt anymore controversial than that:P
Posted by benbread on 01:43:00 09-26-2003
also php stands for "PHP Hypertext Preprocessor"
Posted by cowsarenotevil on 05:21:00 09-26-2003
Quote:
On 2003-09-25 09:08, Neu[Mann] wrote:
Yes of course...

dudes...

those are not exactly hard questions

easy birding questions:

What is the common name of the red-throated bird commonly found on american lawns?




Here's a harder one, just for you . What environment variable used in PHP shows the path from the root directory up to the document the script resides in?
Posted by benbread on 05:42:00 09-26-2003
argh, tricky... lol, i really dont know *maybe you could give us a hint?* also cowsareevil
Posted by benbread on 05:44:00 09-26-2003
hang on, i think the variable is realpath() ?
Posted by cowsarenotevil on 06:02:00 09-26-2003
Uh, no... realpath looks like a function to me . And besides, doing research is cheating...
Posted by eosp on 09:15:00 09-26-2003
This is kindof a c thing, but isn't a function just a var?

By the way - I think its
$env{"DOCUMENT_ROOT"} [addsig]
Posted by DInsane on 09:48:00 09-26-2003
Me, loving PHP, knows this one.

I'm pretty sure you're talking about $SCRIPT_NAME. [addsig]
Posted by cowsarenotevil on 10:02:00 09-26-2003
Oops, I forgot to specify, this is for Apache. But I'll give it to you, dxprog. But what I meant was "$PHP_SELF."
Posted by benbread on 23:59:00 09-26-2003
ooooh, well you should have been more specific, if you had said what do you use to execute a form using a script in teh same page.. also realpath(); yes, it is a function, but it seems to do teh same job as php_self exept you can specify a file and it will tell you its full path...
Posted by cowsarenotevil on 04:34:00 09-27-2003
Erm, that's what I said... I said a member variable (not a function) that gives the path to the file which the script resides in. PHP_SELF is the closest to a universal one.
Posted by DInsane on 05:55:00 09-27-2003
I'm going to move this thread to The Bubbling Cauldron, and rename it.

Edit: Can't rename it.
_________________
||DrewBurns.com||
||Longing for a Mac||
||Coding with Windows||
||Can you say "backup"?||


[ This Message was edited by: DInsane on 2003-09-27 05:57 ]
Posted by cowsarenotevil on 06:03:00 09-27-2003
Why on earth did you move it? It's about web programming, and fit's right in -->_Web Programming
Posted by benbread on 07:00:00 09-27-2003
exactly... "And they called me insane"
Posted by DInsane on 03:49:00 09-28-2003
I thought people were going to go crazy with the other trivia questions, so I moved it. [addsig]
Posted by cowsarenotevil on 04:04:00 09-28-2003
Well, if they do we can move it. But so far it hasn't happened, so why bother?

Write a javascript program that moves the webpage's background dynamically.
Posted by benbread on 05:09:00 09-28-2003
be more specific..
Posted by cowsarenotevil on 05:11:00 09-28-2003
No. I don't care what it does. Make it follow the mouse cursor, make it scroll by itself, or even do some weird twirly effect. I don't care, just as long as it manipulates the background dynamically (meaning no slideshows/animated GIF's.)
Posted by benbread on 06:33:00 09-28-2003
i thought we where dong trivia?
Posted by cowsarenotevil on 08:20:00 09-28-2003
Quote:
On 2003-09-28 06:33, benbread wrote:
i thought we where dong trivia?


All right: How do you write a javascript program to manipulate a website's background? Better ?
Posted by benbread on 22:33:00 09-28-2003
lol, i have to say i dont know, im pretty dumb when it comes to javscript *hail php*
Posted by dxprog on 23:33:00 09-28-2003
I've done plenty of JScript, and I don't think I've ever seen this one done before. I'll have to look into it [addsig]
Posted by Neu[Mann] on 00:21:00 09-29-2003
I guess the solution is to use the 'backgroundPosition' CSS property. This is IE specific though.
Posted by cowsarenotevil on 04:26:00 09-29-2003
Here's a non IE specific way of scrolling the background:

Code:
var scrollPixels = 0;
function scroll(BGHeight) {
scrollPixels = scrollPixels + 1;
if (scrollPixels > BGHeight) scrollPixels = 0;
document.body.style.backgroundPosition = "0 " + scrollPixels;
}
var ScrollTimer = window.setInterval("scroll(*INSERT HEIGHT OF BACKGROUND HERE*)", 64);