RE: [PHP] mkdir after mkdir

2004-06-07 Thread Uttam
guess it has something to do with default directory rights for newly created
directories??

the directory 'x' gives your script permission to create directory under it.
so you are able to create directory 'y' inside 'x'.  but the newly created
directory 'y' does not gives your script permission to create subdirectory.

Regards,
-Original Message-
From: Gerben [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 06, 2004 23:39
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mkdir after mkdir


Unfortunately my server has no ftp (but SSH).
It makes much sence what you said, but how can PHP (with uid=48) make a
directory with uid=1042.
both folder are (to be) made the same script, but only one is (with
uid=1042).

This is what makes it very peculiar.
I think I have skip the idea of creating 2 nested folders.

Thanks anyway

Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Gerben wrote:
  Hello,
 
  I have a problem with the mkdir function.
  I'm trying to make a seperate folder every photoalbum. inside I want to
  create another folder ('.../thumbnails/') for, you can guess, the
  thumbnails.
 
  At first it didn't work at all:
 
 
 Warning: mkdir() failed (Permission denied) in
 
  /home/virtual/site43/fst/var/www/html/beheer/albums/index.php on line 42
 
  When I changed the rights of the folder I wanted to create the new
folder in
  to chmod 0777, the first MKDIR did work, but the second did not.
 
 
 SAFE MODE Restriction in effect. The script whose uid is 1042 is not
 
  allowed to access
  /home/virtual/site43/fst/var/www/html/uploaded/images/albums/album_0
owned
  by uid 48 in
/home/virtual/site43/fst/var/www/html/beheer/albums/index.php
  on line 43
 
  this is very strange because the folders are both made in the same
script.
  Another strange thing is that I user mkdir($dir, 0777), but when I look
at
  the created folder it is 0755 and I can not change it.
 
  That's pritty much my problem. Your help would be very much appreciated.
 

 The first directory your script creates is owned by the uid apache runs
 under (48 in your case). Safe mode allows access only to files and
 directories owned by the uid of the executing script (1042 in your case).

 The workaround is to use ftp functions to create the directories. Simply
   use your ftp username and password to login to localhost and create
 the directories.

 HTH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Older Version problems

2003-07-16 Thread Uttam
have u tried using $HTTP_POST_FILES[]

regds,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 08:50
To: [EMAIL PROTECTED]
Subject: Older Version problems



 I'm moving some scripts to a new server but the PHP installation on the
new server is actually older than the version I currently have installed
on the production server. I'm moving from 4.2.3 to 4.1.2.

 In my file upload scripts I can't seem to get any $_FILES values out of
my upload. The scripts don't error out and the file appears to transfer.
I've enabled E_ALL and logging. Uploads are on and max upload size is
sufficient. When I check $_FILES['filename']['tmp_name'] or ['size'] or
['name'] or ['type'] they are all empty.

 Did I miss something in the ini file somewhere? I'd really hate to
upgrade at this time as this came from a Red Hat 7.3 install and I'd hate
to lose all the functions that are already pre-compiled into it (gd,
mysql, etc)

Thanks,

Ed




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: session id

2003-03-25 Thread Uttam
session_start();
should be on the first line in the script.

regds,

-Original Message-
From: Iggy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 20:08
To: [EMAIL PROTECTED]
Subject: session id


can somebody tell me why I am getting this:
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at
c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on
line 21

Warning: session_start() [function.session-start]: Cannot send session
cache
limiter - headers already sent (output started at
c:\inetpub\wwwroot\search.php:8) in c:\inetpub\wwwroot\search.php on
line 21


when I use this code:

session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}


PHP is version 4.3.1

thanx




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: connecting to mysql db

2003-03-25 Thread Uttam
Yes, It is necessary because script executes  ends for every request.

Variables can be made persistent by using cookie/sessions but mysql
connection is a resource which can not be saved  restored as session
variable.

For efficient use of resources, you may use mysql_pconnect() (only when php
is used as module), but still you have to use it in every script.  The only
difference is that mysql_pconnect() will
*use any previously open mysql connection  use it instead of making fresh
connection to mysql
*if a fresh connection is made, it will not be closed when script ends.

regds,
-Original Message-
From: Iggy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 19:20
To: [EMAIL PROTECTED]
Subject: connecting to mysql db


hi,
I am trying to play and learn php along with mysql and I have a question
about connecting to a db.
Is the following code necessary on every php page where I am retrieving
some
data from a db or is there any way to connect once (something like
index.php) and have that connection open through subsequent pages?
the code
?php
$link = mysql_connect(localhost, , )
or die(Could not connect:  . mysql_error());
print (Connected successfully);

mysql_select_db(test)
or die(Could not select database:  . mysql_error());
?

thanx
iggy


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Access DB PHP

2003-03-17 Thread Uttam
may be this snip from manual can show the way:

snip
You can decide whether or not you want a client disconnect to cause your
script to be aborted. Sometimes it is handy to always have your scripts run
to completion even if there is no remote browser receiving the output. The
default behaviour is however for your script to be aborted when the remote
client disconnects. This behaviour can be set via the ignore_user_abort
php.ini directive as well as through the corresponding php_value
ignore_user_abort Apache .conf directive or with the ignore_user_abort()
function. If you do not tell PHP to ignore a user abort and the user aborts,
your script will terminate. The one exception is if you have registered a
shutdown function using register_shutdown_function(). With a shutdown
function, when the remote user hits his STOP button, the next time your
script tries to output something PHP will detect that the connection has
been aborted and the shutdown function is called. This shutdown function
will also get called at the end of your script terminating normally, so to
do something different in case of a client disconnect you can use the
connection_aborted() function. This function will return TRUE if the
connection was aborted

snip

i think there can be 2 solutions:

1. ignore the client disconnect
2. register a shutdown function which suitable releases the locks and
destroys COM object.


regards,

-Original Message-
From: Bob Irwin [mailto:[EMAIL PROTECTED]
Sent: Monday, March 17, 2003 06:53
To: [EMAIL PROTECTED]
Subject: Access DB  PHP


Hi guys,

I have a client who insists on using PHP and an Access database.  He
describes a problem with the access databases becoming locked when a
user
clicks 'stop' in their browser whilst downloading the page (and I have
to
stop the IIS server to release it).  I have absolutely no experience
with
PHP/Access connections, so I thought I'd ding it along and see if the
elite
PHP programmers of the world can pick up an error in his code.


 I connect like this:
 $conn = new COM ('ADODB.Connection');
 $conn-Open (Provider=Microsoft.Jet.OLEDB.4.0; Data
 Source='c:\\home\\westir\\data\\libcat.mdb');
 $sql = SELECT * FROM tbl_name ;
 $result = $conn-Execute($sql);

 // deal with the database generated information

 $result-Close()
 $conn-Close

Is there a better way to do this?


Best Regards
Bob Irwin
Server Admin  Web Programmer
Planet Netcom


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] SQL DISTINCT with MYSQL

2003-03-14 Thread Uttam
here's my solution:

I presume you need the name of the file the user last accessed.

This requires a datetime column in your useronline file which records the
time a user has accessed a page.  If the name of this field is atime then

a) create a temporary table storing lact access time for each user
CREATE TEMPORARY TABLE tmp SELECT uname, MAX(atime) FROM useronline
GROUP BY uname;
b) select the uname, file by joining the useronline table with this
temporary table:
 SELECT useronline.uname, useronline.file
 FROM useronline INNER JOIN tmp
 ON useronline.uname=tmp.uname AND useronline.atime=tmp.atime

You can index on atime field for faster results.

hope it helps...

regards,

-Original Message-
From: Vernon [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 06:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP] SQL DISTINCT with MYSQL


The problem is

 a f1
 a f2
 b f1
 b f2

Where I need it to return the a only once and the b only once. For
instance
the vlaues may be:

jimmy login.php
jimmy successfullogin.php
susan  default.php
susan  search.php

Since the records are order the way I need them to be (or else I could
use a
ORDER BY command) the last one is the only one I want and only want to
return:

jimmy successfullogin.php
susan  search.php

make sense?

Arturo Barajas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Vernon,

 Don't know if I get it right, but:

 SELECT DISTINCT uname, file
 FROM useronline

 should do that.

 I mean, if you have something like:

 uname file
 a f1
 a f2
 a f1
 a f2
 b f1
 b f2
 b f1

 the query should deliver:

 uname file
 a f1
 a f2
 b f1
 b f2

 Is that what you're looking for?
 --
 Un gran saludo/Big regards...
Arturo Barajas, IT/Systems PPG MX (SJDR)
(427) 271-9918, x448

  -Original Message-
  From: Vernon [mailto:[EMAIL PROTECTED]
  Sent: Jueves, 13 de Marzo de 2003 06:24 p.m.
  To: [EMAIL PROTECTED]
  Subject: [PHP] SQL DISTINCT with MYSQL
 
 
  I'm setting up a user online system using MySQL where I have
  4 fields, all
  of which is working fine.
 
  I need the information from all the fields but want only
  distinct values
  based on the uname column. If I use the:
 
  SELECT DISTINCT uname
  FROM useronline
 
  of course I come back with the values I desire, but only the
  user names.
 
  As I am also tracking the page they are on I need other
  columns in the table
  as well. So the question is, using an SQL statement, how do I
  return only
  distinct useronline.uname values from the database as well as the
  useronline.file column?
 
  Thanks
 
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Newbie MySQL INSERT Q

2003-03-14 Thread Uttam
PHP does not allow ';' character in query strings so you'll have to break
these.

regds,
-Original Message-
From: Charles Kline [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 20:34
To: [EMAIL PROTECTED]
Subject: Newbie MySQL INSERT Q


Can I have a single SQL string do INSERTS into multiple tables?

Like:

sql=INSERT INTO tbl_1 (id,
email_address_1)
VALUES ($v_personid,
'$v_email');
INSERT INTO tbl_2 (person_id,
interest_id)
VALUES ($v_personid,
$v_int1);;

Or do I need to break them up and use two of these?

$result = $db-query($sql)

Thanks
Charles



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: what is session_name?

2003-03-13 Thread Uttam
it is the name of cookie variable which stores the unique session ID string.

suppose you set session.name to SESSID in php.ini then a cookie variable
named SESSID will be sent to client in which session ID string will be
stored by client browser.  If URL is used to propogate session variable then
this is the name of GET variable which stores session ID string.

e.g.:
SESSID=sess_ab80d8a12221d9bf03f4e830c7e4fb74

The value of this cookie variable (unique session ID string) is used to
restore related session variables in the called script.

regards,

-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 10:29
To: [EMAIL PROTECTED]
Subject: what is session_name?


I read the description on php.net, but what is
session_name really used for?

Thanks,

Joe.

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Access

2003-03-07 Thread Uttam
Not yet.

And if there ever will it can not be odbc_connect(), may be something like
access_open()?

regds,

-Original Message-
From: Kiswa [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 08, 2003 01:03
To: [EMAIL PROTECTED]
Subject: Access


Hi.
Is their anyway to connect to a Access Db using only the filesystem like

$connect = odbc_connect(\Db\Webdb.mdb, nobody, nobody);

thus pointing directly to the file not using drivers???




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Mysql Date got prob!

2003-03-01 Thread Uttam
try:

select
date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-%m-%d') as
dept_date1
from mytable
where
(date_add(arrivaldate1, INTERVAL nights1 DAY) BETWEEN '2003-02-01' AND
'2003-02-10')

regds,
-Original Message-
From: Dhaval Desai [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 15:48
To: [EMAIL PROTECTED]
Subject: Mysql Date got prob!


Hello,

As related to my earlier question


select  date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y-
%m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN
'2003-02-01' AND '2003-02-10')

The above query is valid but returns 0 because 'dept_date1' is treated
as a
string. I want dept_date1 to be treated as  date so that it can be
compared.


I hope it is possible...


Thank you!

-Dhaval


_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: JP Graph

2003-02-28 Thread Uttam
localhost is the name of your own machine, for others localhost means their
machines.

redirect to the network ip address or host name of your server instead of
localhost.

regds,
-Original Message-
From: K [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 09:47
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: JP Graph


Hi all,
I'm using JPGraph on a localhost for a website opened via a host
redirect.
My problem is that nobody can see the graphs but me ('cause I'm on
localhost).

Any clues?

Thx.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: mysqldump

2003-02-27 Thread Uttam
snip from manual for -p option:

|-

-p[password], --password[=...]

Password to use when connecting to server. If a password is not given on the
command line, you will be prompted for it.  Note that if you use the short
form -p you can't have a space between the option and the password.

-|

regds,
-Original Message-
From: Niels Andersen [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 16:09
To: [EMAIL PROTECTED]
Subject: Re: mysqldump


There mey, but need not be a space. As far as I know, the option scanner
in
mysqldump ignores spaces between short options and their values.


John Taylor-Johnston [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
 Thanks!

  exec(mysqldump -c -q database -u user -ppassword, $sql);

 Why is there no space between the -p and password?

 -ppassword

 Am I wrong?

 Thanks,
 John





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



FW: [PHP] List problem

2003-02-17 Thread Uttam
please remove [EMAIL PROTECTED] from the list.

-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 06:06
To: PHP General list
Cc: Beauford.2002
Subject: Re: [PHP] List problem


Beauford --

...and then Beauford.2002 said...
% 
% Does anyone else get bounced messages saying they can't send email to
% [EMAIL PROTECTED] when sending email to the list? Every email I
send to

Yep.  Looks like that person was subscribed to this list and died but
the
list hasn't yet kicked out the address.

Just flush 'em when you get 'em.


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral
courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and
Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl
Npg!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: URL of calling page

2003-02-17 Thread Uttam
or $_SERVER[HTTP_REFERER]

availability depends or server though...

regds,

-Original Message-
From: Luke Woollard [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 10:48
To: PHP-general
Subject: RE: [PHP] Re: URL of calling page


dude - try this:

echo $HTTP_REFERER;

It'l give you the refering page from when you came.

Luke Woollard






-Original Message-
From: Brendon [mailto:[EMAIL PROTECTED]]
Sent: Monday, 17 February 2003 3:17 PM
To:  Acleave
Subject: [PHP] Re: URL of calling page


On Sun, 16 Feb 2003 15:58:30 -0600, Acleave [EMAIL PROTECTED] wrote:

 I believe there's a way in PHP to get the URL of the page that called
the
 current page but can't find it.  Is there such a function?  Or would I
 have to use another script (like Javascript)?

 What I mean is if I click on a link on index.html to jeremiah.php I
can
 call the function and find out I just came from index.html (and not
 henry.php or fred.php).

If you're trying to get back to a page, I would suggest passing the
current
page as a variable to the next page.

e.g.
a href=somepage.php?return_to=? echo
urlencode($_SERVER['REQUEST_URI'])
?Subscribe/a

--
 _BB

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] RE: Search engine PHP

2003-02-17 Thread Uttam
may be browsing through available classes will help you:

http://uttam27.users.phpclasses.org/browse.html/class/22.html

-Original Message-
From: Andrian Ivanov [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 16:30
To: [EMAIL PROTECTED]
Subject: Search engine PHP


Hello,

Can somebody direct me to a documentation source, about creating small
database search engines with PHP?

Thank you in advance, Andrian Ivanov




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] RE: call a website from a php script

2003-02-16 Thread Uttam
if (condition) {
header(Location: http://www.gogle.com/;);
} else {
header(Location: http://www.yahoo.com/;);
}

regds,
-Original Message-
From: christian tischler [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 16, 2003 16:11
To: [EMAIL PROTECTED]
Subject: call a website from a php script

can anybody tell me please how to call a website from a php script.

meaning
if (something happens) {goto www.google.com} else {goto www.yahoo.com}

tanks,

christian




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] RE: SQL Query

2003-02-15 Thread Uttam
if i understand you correctly then this should give valid interests of a
user:

SELECT DISTINCT
InterestsList.SubID
FROM
InterestsIndex INNER JOIN InterestList
ON InterestIndex.InterestID=InterestList.ID
WHERE
InterestIndex.UserID='1' AND
InterestList.Valid='1'

and if the chosen interest is '3' then valid subinterests are:

SELECT
InterestsList.ID, InterestsList.SubID, InterestsList.Interest,
InterestsList.Valid
FROM
InterestsIndex INNER JOIN InterestList
ON InterestIndex.InterestID=InterestList.ID
WHERE
InterestIndex.UserID='1' AND
InterestList.SubID='3' AND
InterestList.Valid='1'

regds,
-Original Message-
From: Zydox [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 15, 2003 09:48
To: [EMAIL PROTECTED]
Subject: SQL Query


I have a problem writing a query that can select a Interest for a specific
user... There are tvo tables, IList and IIndex...
IList contains this :
  ID  SubID  Interest  Valid
  Edit  Delete  1 0 Datorer 0
  Edit  Delete  2 1 Spel 0
  Edit  Delete  3 2 Strategi 0
  Edit  Delete  4 3 Star Craft 1
  Edit  Delete  5 3 Star Wars: Gallactic Battelinggrounds 1
  Edit  Delete  6 2 Shoot-Em-Up 0
  Edit  Delete  7 6 Half-Life 0
  Edit  Delete  8 7 Team Fortress 1
  Edit  Delete  9 7 Counter-Strike 1


And IIndex contains a UserID And InterestID... this query :
SELECT DISTINCTROW InterestsList.ID, InterestsList.SubID,
InterestsList.Interest, InterestsList.Valid FROM InterestsList AS II RIGHT
JOIN InterestsList ON InterestsList.ID=II.SubID LEFT JOIN InterestsIndex ON
InterestsList.ID=InterestsIndex.InterestID AND InterestsIndex.UserID='1'

Selects all rows from IList... even if there Is'nt any instans in IIndex...
this thougt is that a User can choose a Valid Interest and then the query
should select all SubInterests... anyone know how to do that ?

// Regards Zydox




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Disable pic copy/save?

2003-01-23 Thread Uttam
alternate to right click is Shift-F10 in IE which i think can not be handled
by javascript.

uttam
-Original Message-
From: Martin Hudec [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 15:47
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Disable pic copy/save?


H it might be done by checking which mouse button is pressed using
javascript :) but i think this works only in Iexplore ;)...i used such
code
on my webpageit shows only copyright etcanyway user does not
need to
rightclik and save if he knows where is his browser cache located.

Martin


On Thursday 23 January 2003 10:57 am, Jason Wong wrote:
 On Thursday 23 January 2003 17:52, Anthony Rodriguez wrote:
  Hi!
 
  A client wants to test market two versions of an advertising but
wants to
  disable the users' ability to copy/save the ads (right click,
copy/save).
 
  How can this be done in PHP?

 It can't be done, period. You need to get the data to the browser for
it to
 be displayed. Once it's on the user's browser a determined user will
be
 able to save whatever it is that's being displayed.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Who is foo what is bar?

2003-01-23 Thread Uttam
Hi list!

I think this topic is worth discussion here...

regds,

-Original Message-
From: Uttam [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2003 13:29
To:[EMAIL PROTECTED]
Subject: [PHP-WIN] Who is foo  what is bar?

In many code examples in PHP documention ( others also), I have seen
authors referring to variables
'foo'  'bar', but I have yet not discovered the origin of these names.  I
am sure there must be dozens of
others who have the curiosity to find how the use of these names started.

Can anyone quench the curiosities please?

regards,



-Original Message-
From: Woolsey, Fred [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 05:29
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Who is foo  what is bar?


I'm pretty certain it is one of those brilliant, sarcastic military
acronymns like SNAFU (situation normal, all f@#$%d up), as alluded to by
Mikey- however, I believe the correct meaning is f@#$%d up beyond all
repair.  Witness the following hypothetical exchanges:

So soldier, what's the sitrep?
SNAFU, sir...

and

How bad is it, soldier?
Well sir, I'm afraid it's FUBAR...

Phonetically, FUBAR was simplified to FOOBAR, which allowed it to be
parsed into FOO and BAR by standard software :-{)

Cheers,
Fred Woolsey

-Original Message-
From: Chris Kranz [mailto:[EMAIL PROTECTED]]
Sent: Tue 1/21/2003 8:35 AM
To: [EMAIL PROTECTED]
Cc:
Subject: RE: [PHP-WIN] Who is foo  what is bar?



Hehe!!!

It's one of those classic terms that spans across many languages
and
dates back quite a long time. Whenever I pickup a programming
book,
somewhere in there, you'll find the infamous foo and bar...

chris kranz
fatcuban.com


-Original Message-
From: Mikey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 1:32 PM
To: Uttam; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Who is foo  what is bar?

Just my opinion, but I think it comes from the acronym FUBAR -
f@cked up
beyond all recognition...

Mikey

 -Original Message-
 From: Uttam [mailto:[EMAIL PROTECTED]]
 Sent: 21 January 2003 13:29
 To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Subject: [PHP-WIN] Who is foo  what is bar?


 In many code examples in PHP documention ( others also), I
have seen
 authors referring to variables 'foo'  'bar', but I have yet
not
 discovered
 the origin of these names.  I am sure there must be dozens of
others
who
 have the curiosity to find how the use of these names started.

 Can anyone quench the curiosities please?

 regards,


 --
 PHP Windows Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php