Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

46 users online



more noobish and stupid question

more noobish and stupid question

Currently viewing this thread: 1 (0 members and 1 guests)


legendz

legendz

Status: Offline!

more noobish and stupid question

can someone tell me what "." means or what ".." mean.. or maybe ""?

it'll be appreciated if you can explain it to me or give me a tutorial page ..thanx

also does anyone knows what $_FILE means?

i tried to search on the function list but it was not there.. i saw it in a script and i did not get it.

Last edited by legendz, August 2nd, 2004 01:08 PM (Edited 1 times)

chadt

chadt

Status: Offline!

1.) $_FILE is the global variable defining uploaded files, see:

http://us3.php.net/features.file-upload

2.) When you talk about a period (".") I'm guessing you mean like used in the following:

PHP:

<?php
$string1 
$variable1 ' means something';
?>

Where the period is a string concatenation operator, which means that that the period joins more than one strings.

Lambera

Lambera

Status: Offline!

Here is the way I understood it.

PHP:

<?php

$a 
'Hello ';
$b $a.'Canada';

?>

___________________

Thanks to everyone here that has helped me in my consumption of knowledge.

phpmonkey

phpmonkey

whoa, wtf?
Status: Offline!
Quote:

Originally posted by chadt
1.) $_FILE is the global variable defining uploaded files, see:

http://us3.php.net/features.file-upload

2.) When you talk about a period (".") I'm guessing you mean like used in the following:

PHP:

<?php
$string1 
$variable1 ' means something';
?>

Where the period is a string concatenation operator, which means that that the period joins more than one strings.

If you're talking about in reference to files and filesystems, '.' = current directory i..e 'cd . ' would put you in the current directory or './file' woudl give you that file in this directory, whereas '..' is the directory immedialty before your current directory.

if you have this dir structure

-dir1 (/dir1, or ../dir2 or ../dir3)
-------dir2 (/dir1/dir2)
-------dir3(/dir1/dir3)

if you're in dir2, then ../ would put you in dir1 and ../dir3 would put in dir3

if you're in dir2 or dir3 then cd ../ will put you in dir1.
Got it?

___________________

Fomerly known as lasnaranjas. Holler.
http://card.mygamercard.net/gelsig/blackdood.png

BigToach

BigToach

Neversidian
Status: Offline!

also next time. use a more descriptive title. dont put "php question" or "noob learning" put "Description of $_FILE and . " that way if someone looks at the title and gets the feel for what the topic is about. you will get better help. because when i saw your post, i didnt wanna look at it at all, but being a mod and all i guess i had to...

___________________

Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!

Jeremie

Jeremie

Neversidian
Status: Offline!

heh, poor BT, i didn't like it when i was a mod here Lips Are Sealed

Shawn never wanted my advanced (read, godlike level) PHP forum Grin

___________________

Jeremie - Used to be the Director of Community Development

phpmonkey

phpmonkey

whoa, wtf?
Status: Offline!

because that's not what this community is about.

___________________

Fomerly known as lasnaranjas. Holler.
http://card.mygamercard.net/gelsig/blackdood.png

CDude

CDude

nothing
Status: Offline!

php god eh??

give a kid a book and he can be a god too

___________________

http://celerondude.com

BigToach

BigToach

Neversidian
Status: Offline!

a humble god at that too.

___________________

Neverside Development Director
PHP Snippets
BigToach.com - IT WORKS, TOACHY!

Jeremie

Jeremie

Neversidian
Status: Offline!

lol, fun thing is that im not the one who named myself php god Lips Are Sealed

___________________

Jeremie - Used to be the Director of Community Development

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0097 seconds.