[PHP] Cookie problem

2001-09-20 Thread Murat

hi,
i have a problem with cookie.

true
login page - decide page - main page
|
  false 
|
login page

username and password are posted by login page to decide page, if it's 
true, main page will be opened. when decide page is active, cookie is 
created by line setcookie(form, $value).
but i've never seen the cookie file about it in windows\cookie 
directory. and sometimes cookie is created and sometimes not..

and i didn't use any session, shall i use it for this work?
what can i do about these problems?

thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Please help!!! Trying to write some chat script!

2001-09-20 Thread nico_oreka

I made a chatboard script that i use on two websites (http://nayco.free.fr ,
http://luxregina.free.fr )
One thing important to know is that you MUST NOT use a text file : When two
people write together, messages are scrambled and the script displays wierd
things 
 use SQL, as it's faster, easier to use, and has got no 'lock' problem
...

If you want my script . tell me !!


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Sheridan Saint-Michel [EMAIL PROTECTED]
To: Diadon [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, September 19, 2001 6:27 PM
Subject: Re: [PHP] Please help!!! Trying to write some chat script!


 There actually isn't much technology in a chat room.  It is a fairly
simple
 program.

 Basically you have a webpage which checks Someplace retrieves all
 the messages from Someplace and prints them, then provides a place
 for the user to enter stuff into Someplace.

 Someplace can be any number of things such as a flat file, or a MySQL
 database table.  Basically anywhere you can stick stuff and anyone can
 retrieve it.

 The only thing left, then, is to update the page with new entries from
time
 to
 time.  While Netscape makes this easy with server push, you are probably
 going to want something like a Meta Refresh so the IE people can use the
 chat too.

 You probably also want to put the form for entering new messages in its
own
 frame so that someone isn't halfway through writing a message when the
whole
 thing refreshes.

 That's pretty much it.  If you have any specific questions let me know.

 Sheridan Saint-Michel
 Website Administrator
 FoxJet, an ITW Company
 www.foxjet.com


 - Original Message -
 From: Diadon [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, September 19, 2001 10:54 AM
 Subject: [PHP] Please help!!! Trying to write some chat script!


  Hi!
  Where are can read some information (not examples scripts) about chat
  technologies?
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: Re[2]: [PHP] Please help!!! Trying to write some chat script!

2001-09-20 Thread nico_oreka

I've got a script too  using cookies, md5 and and a 'shadow' text-file
or an 'account' SQL table ...


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Diadon [EMAIL PROTECTED]
To: Sheridan Saint-Michel [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, September 19, 2001 7:04 PM
Subject: Re[2]: [PHP] Please help!!! Trying to write some chat script!


 Please, tell me how to secure chat system, using login and password
  in the hidden input of frame or using sessions?


  There actually isn't much technology in a chat room.  It is a fairly
simple
  program.

  Basically you have a webpage which checks Someplace retrieves all
  the messages from Someplace and prints them, then provides a place
  for the user to enter stuff into Someplace.

  Someplace can be any number of things such as a flat file, or a MySQL
  database table.  Basically anywhere you can stick stuff and anyone can
  retrieve it.

  The only thing left, then, is to update the page with new entries from
time
  to
  time.  While Netscape makes this easy with server push, you are probably
  going to want something like a Meta Refresh so the IE people can use the
  chat too.

  You probably also want to put the form for entering new messages in its
own
  frame so that someone isn't halfway through writing a message when the
whole
  thing refreshes.

  That's pretty much it.  If you have any specific questions let me know.

  Sheridan Saint-Michel
  Website Administrator
  FoxJet, an ITW Company
  www.foxjet.com


  - Original Message -
  From: Diadon [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, September 19, 2001 10:54 AM
  Subject: [PHP] Please help!!! Trying to write some chat script!


  Hi!
  Where are can read some information (not examples scripts) about chat
  technologies?
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
[EMAIL PROTECTED]



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Newbie Question: Array Comparison ---

2001-09-20 Thread J.T

David Robley [EMAIL PROTECTED] wrote:

 in_array might be one tool - loop through $Foo and print $Foo[n] if it's
 not in the array $donotprint

[cut]

 And doubtless there are other, better ways. Offers, anyone?

Look at array_diff

http://download.php.net/manual/en/function.array-diff.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: text editing (parsing)

2001-09-20 Thread _lallous

you can also use Regular Expressions,

just post the text you want to parse (no matter how complex) and we will see
how we can help you out.

Jonas K [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I need some help with parsing text. very simple. I have a text string like
 News, Bla, Blabla and i want to get the single words out of the string.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Cookie problem

2001-09-20 Thread Richard Baskett

Here use this cookie that I wrote, it works in every browser, every os.



function NextYear () {
$today  = gmdate(l, d-M-);
$today .= gmdate(Y)+1;
$today .= gmdate( H:i:s). GMT;
return $today;
  }

$oneYear = NextYear();
header(Set-Cookie: CookieName=$CookieNameVar; path=/; expires=$oneYear);



This has never let me down, enjoy :)

Rick

 hi,
 i have a problem with cookie.
 
 true
 login page - decide page - main page
 |
  false 
 |
 login page
 
 username and password are posted by login page to decide page, if it's
 true, main page will be opened. when decide page is active, cookie is
 created by line setcookie(form, $value).
 but i've never seen the cookie file about it in windows\cookie
 directory. and sometimes cookie is created and sometimes not..
 
 and i didn't use any session, shall i use it for this work?
 what can i do about these problems?
 
 thanks
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Cookie problem

2001-09-20 Thread Murat

your header line works fine, but where are cookie files written?
i didn't see any cookie file about it in my windows/cookie directory 
after it had been created??

thanks

Richard Baskett wrote:

 Here use this cookie that I wrote, it works in every browser, every os.
 
 
 
 function NextYear () {
 $today  = gmdate(l, d-M-);
 $today .= gmdate(Y)+1;
 $today .= gmdate( H:i:s). GMT;
 return $today;
   }
 
 $oneYear = NextYear();
 header(Set-Cookie: CookieName=$CookieNameVar; path=/; expires=$oneYear);
 
 
 
 This has never let me down, enjoy :)
 
 Rick
 
 
hi,
i have a problem with cookie.

true
login page - decide page - main page
|
 false 
|
login page

username and password are posted by login page to decide page, if it's
true, main page will be opened. when decide page is active, cookie is
created by line setcookie(form, $value).
but i've never seen the cookie file about it in windows\cookie
directory. and sometimes cookie is created and sometimes not..

and i didn't use any session, shall i use it for this work?
what can i do about these problems?

thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] interesting warning!!!

2001-09-20 Thread Balaji Ankem

Hi,friend,

  i registered login info while login using session_register 

session_register(user,pw);

---
and during logout i have unregistered like following..

session_unregister(user,pw);

This is the warning i got after logout..

Warning: Wrong parameter count for session_unregister() in 
/www/imac/logout.php on line 4

Thanks and Regards
-Balaji Ankem





--
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP] Cookie problem

2001-09-20 Thread Richard Baskett

It depends on which browser you are using and on what platform.  On the
MacOS in IE you can view cookies by going to Edit - Preferences - Cookies
in Netscape you can also view the cookies with the Preferences menu.  On the
PC it's a little more difficult.  In IE you go to Tools - Internet Options
- General [Tab] - Settings - View Files...  and then sort by file type,
go down to text files and you'll see all your cookies.  Now in Netscape I
think it's a little bit easier, but I am afraid I do not have netscape
currently on the pc machine (will get it soon) so I cant help you there, but
I do believe it's a lot easier.

In other words you can almost always view your cookies within the browser
application menus.

Rick

 your header line works fine, but where are cookie files written?
 i didn't see any cookie file about it in my windows/cookie directory
 after it had been created??
 
 thanks
 
 Richard Baskett wrote:
 
 Here use this cookie that I wrote, it works in every browser, every os.
 
 
 
 function NextYear () {
 $today  = gmdate(l, d-M-);
 $today .= gmdate(Y)+1;
 $today .= gmdate( H:i:s). GMT;
 return $today;
   }
 
 $oneYear = NextYear();
 header(Set-Cookie: CookieName=$CookieNameVar; path=/; expires=$oneYear);
 
 
 
 This has never let me down, enjoy :)
 
 Rick
 
 
 hi,
 i have a problem with cookie.
 
 true
 login page - decide page - main page
 |
 false 
 |
 login page
 
 username and password are posted by login page to decide page, if it's
 true, main page will be opened. when decide page is active, cookie is
 created by line setcookie(form, $value).
 but i've never seen the cookie file about it in windows\cookie
 directory. and sometimes cookie is created and sometimes not..
 
 and i didn't use any session, shall i use it for this work?
 what can i do about these problems?
 
 thanks
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] excuting several sql statements in one time

2001-09-20 Thread

Hello

I want to know how to implement these several sql statements in one time.

For example, I have 2 sql statements like :

INSERT INTO com VALUES ('pentium');
INSERT INTO com VALUES ('amd');

Then, I want to excute these 2 sql statements in one time with PHP.

I tried to implement like this :

$query = 
INSERT INTO com VALUES ('pentium');
INSERT INTO com VALUES ('amd');
;
mysql_query($query, $dbconnect);

But as you know, it didn't work.

Does any one know how to run this job?

_
MSN Explorer°¡ ÀÖÀ¸¸é Hotmail »ç¿ëÀÌ ÈξÀ Æí¸®ÇØ Áý´Ï´Ù. Áö±Ý 
http://explorer.msn.co.kr/ ¿¡¼­ ¹«·á·Î ´Ù¿î·ÎµåÇϼ¼¿ä.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] preventing an include() from taking over?

2001-09-20 Thread Jon Haworth

The name of that concept is a variable.

index.php?pg=1 means call index.php and set the variable $pg to 1

Cheers
Jon


-Original Message-
From: LRW [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2001 21:04
To: [EMAIL PROTECTED]
Subject: Re: [PHP] preventing an include() from taking over?


Unfortunately I just started teaching myself PHP like last weekend, and so
far I only have include() and require() down pat. =)
What in the php.net Manual is the concept of default function called? I see
URL's all the time that end in something like index.php?pg=1 and I was
hoping to learn what that is and why.
If you could point me to the name of that concept, I'll chow down on
self-teaching. =)
Thanks!
Liam


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] For the RegExps gurus!

2001-09-20 Thread * RzE:

 Halo! Good to see you back:)

Thanks :) Same here! ...oh... wait; _I_ was the one a was away...
Well... anyway: good to be back!


 I've been away on vacation, so it's a bit late, but anyway...
 
 Indeed late.. Had a good one?

Yep! Sun in France io rain in Holland. But :( I'm back in the rain
again. And believe me: IT'S A LOT OF RAIN HERE!


 Hmm, Why R U not employing smilers, why you after 'humor':) Of course, I
 meant, that the WAY your code is made is not better, not that you
 _litteraly_ improved my code (The later case would be a breakage of
 ownership, so you wouldn't admit it, unless you R a Skliarov' type:)

Skliarov... I'm still free out of prison; so guess not :)


 Guess wat? I use RegExp abbr. Thats why. Silly me. Now I know that this is
 not a developer's kit:) TnX a lot.

'Silly me'; don't think so. The number of abbr's is pretty huge on
these kinds of mailinglists. So the change of someone (_anyone_)
missing one is pretty large. Nothing to call yourself 'silly' over.


 And, BTW, I agree with your thoughts about clarity and simplicity
 (causing performance 'optimality') of expressions.

Me too :)


 Not though - that it should be done at the expense of
 functionality. In the discussed case, your approach is just an
 approach to solution, sorry, whereus mine include practicaly
 allowed by standard symbols. May be I am missing something too,
 but at least do not include, what is not allowed, i hope. Correct
 me if I am wrong.

And this is where the misunderstanding came up. I thought you were
talking about the construction I was using, while you were - and
correct me if I'm wrong - talking about the characters I allowed.
And concerning those, it might very well be that I don't only allow
characters allowed by specifications and even maybe I don't allow
characters allowed by specifications. I didn't spend much time on
that point. What I did was just creating the RE to parse the URL's.
The allowed characters weren't really of my concern then.

Let me know...

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-20 Thread * RzE:

Original message
From: Lic. Rodolfo Gonzalez Gonzalez [EMAIL PROTECTED]
Date: Tue, Sep 18, 2001 at 08:15:50PM -0500
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem: ereg doesn't wo
 On Tue, 18 Sep 2001, * RzE: wrote:
 
   and get DD-MM-, but with well formed -MM-DD it doesn't match!. Is
   this a bug?.
  It would help if you send the code you're using, 'cause we can't see
  what you're doing now. FAFAIK it should just be possible. See the
 
 Sure:
 
 --- start ---
 
 $datenews = urldecode($datenews); // just in case, but it's the same
   // without this line and the one below.
 $datenews = trim($datenews);
 
 if (!ereg(([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}), $datenews, $regs)) {
 echo Duh! that is not a date, u kiddie: $datenews.;
 exit;
 }
 else echo Cool! it is a date. Continue the proggie.;
 
 --- end ---
 
 where $datenews is passed as a get variable, which is obtained with this:
 
 --- start ---
 
 // the $regs array comes from the ereg expression above (the one which
 // doesn't work as expected).
 
 $timestamp = mktime(0,0,0,$regs[2],$regs[3],$regs[1]);
 $yesterday = $timestamp - 86400; // one day before... that's yesterday :)
 $yesternews = date(Y-m-d,$yesterday);
 
 // here I pass the new datenews to myself:
 
 print a href=\$PHP_SELF?datenews=.urlencode($yesternews).\Older news/a\n;
 
 --- end ---
 
 This sometimes work, but sometimes it doesn't randomly, even with the same
 date both times, and the worst thing is that the failure notice prints
 the right date in the right format. Now I went back to php-4.0.6
 (apache-1.3.20, rh-7.1) and it's the same. Any help is appreciated. Thank
 you.
 
 Regards.
 R.

/Original message

Reply

Ehhh... works fine here! Dunno what's wrong. Don't you do anything
else within your code that can f#ck up the date? I have absolutely
no problems with the piece of code you've send. I went through
almost a complete year using the link it produces. No prob at all.

Btw; you can just use:

$yesternews = date(Y-m-d, mktime(0,0,0,$regs[2],$regs[3]-1,$regs[1]));

PHP will make sure it produces a correct date. Then you don't have
to works with timestamps and seconds and stuff. Just let PHP do all
the work. That's what it's designed for :)

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread _lallous

No you can't! I wrote a simple routine for the task!


you might want to view it from:
http://www.kameelah.org/eassoft/php_files/sql2php.php.txt

just take the  parse_sql_stream($all) which returns an array that have all
the statments to be passed to mysql_query()

this script is usefull when you have a huge .SQL file that you want to
execute from PHP code.


VM ÁÖ¿N [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello

 I want to know how to implement these several sql statements in one time.

 For example, I have 2 sql statements like :

 INSERT INTO com VALUES ('pentium');
 INSERT INTO com VALUES ('amd');

 Then, I want to excute these 2 sql statements in one time with PHP.

 I tried to implement like this :

 $query = 
 INSERT INTO com VALUES ('pentium');
 INSERT INTO com VALUES ('amd');
 ;
 mysql_query($query, $dbconnect);

 But as you know, it didn't work.

 Does any one know how to run this job?

 _
 MSN Explorer°¡ ÀÖÀ¸¸é Hotmail »ç¿ëÀÌ ÈξÀ Æí¸®ÇØ Áý´Ï´Ù. Áö±Ý
 http://explorer.msn.co.kr/ ¿¡¼­ ¹«·á·Î ´Ù¿î·ÎµåÇϼ¼¿ä.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-20 Thread * RzE:

 I guess people can always use the browser's print button, but this has some 
 limitation on pages that use frames etc.

I figure you already know this one:

window.print();

(JavaScript)  :)

You still get the print-dialog, but the user doesn't have to push
the print button of the browser and you don't have any problems when
using frames, 'cause you just make this call from the frame you want
to be printed.

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread mydata

yes, it will not work,because mysql does not support it(the way you try to
use is 'procedure' called in MS SQL sever) , mysq developer said they will
accomplish in the further . you and I have to wait for it.


VM ÁÖ¿N [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello

 I want to know how to implement these several sql statements in one time.

 For example, I have 2 sql statements like :

 INSERT INTO com VALUES ('pentium');
 INSERT INTO com VALUES ('amd');

 Then, I want to excute these 2 sql statements in one time with PHP.

 I tried to implement like this :

 $query = 
 INSERT INTO com VALUES ('pentium');
 INSERT INTO com VALUES ('amd');
 ;
 mysql_query($query, $dbconnect);

 But as you know, it didn't work.

 Does any one know how to run this job?

 _
 MSN Explorer°¡ ÀÖÀ¸¸é Hotmail »ç¿ëÀÌ ÈξÀ Æí¸®ÇØ Áý´Ï´Ù. Áö±Ý
 http://explorer.msn.co.kr/ ¿¡¼­ ¹«·á·Î ´Ù¿î·ÎµåÇϼ¼¿ä.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to use the function strtotime

2001-09-20 Thread * RzE:

Original message
From: mydata [EMAIL PROTECTED]
Date: Thu, Sep 20, 2001 at 11:41:09AM +0800
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] how to use the function strtotime

 Hi,
 I'm php developer beginner in China,but I am confused with function
 strtotime.
 yes ,I know the usage of function strtotime in php manual. But description
 of php manual about it is too little.I want to know more about it.

/Original message

Reply

It's not all that difficult, really. It's exactly how it's described
in the manual. Here is some code that runs some samples:

(I must say, though, that most examples can be done a lot easier
without strtotime(), but 'cause these are examples of strtotime()...
well... you know :)

--- PHP Example Code ---
PRE
?php

/* Show a given date (+time) */
print (Date: \n\t);
print (date (r, strtotime (January 31 2000 19:20:15)).\n\n);

/* Show the current date (+time) */
print (Now: \n\t);
print (date (r, strtotime (now)).\n\n);

/* Show the date (+time) of tomorrow */
print (Tomorrow: \n\t);
print (date (r, strtotime (tomorrow)).\n\n);

/* Show the date (+time) of yesterday */
print (Yesterday: \n\t);
print (date (r, strtotime (yesterday)).\n\n);

/* Show the date (+time) of yesterday, where now is tomorrow. So the
   the output will be today :) */
print (Yesterday, where 'now' is tomorrow: \n\t);
print (date (r, strtotime (yesterday, strtotime(tomorrow))).\n\n);

/* Show the date (+time) 13 days from december 24th 1998 */
print (13 days from december 24th 1998: \n\t);
print (date (r, strtotime (+13 days, strtotime(December 24 1998))).\n\n»

/* Let's say you get some date from the db (or something) and you
 * want to
   add 2 years and 4 months and 23 days. */
print (Well... just see: \n\t);
$date_from_db = 2001-09-20;
print (date (r, strtotime (+2 years +4 months +23 days,
mktime(0,0,0,substr($date_from_db, 5, 2),
 substr($date_from_db, 8, 2),
 substr($date_from_db, 0, 4.\n\n);

/* Etc. */
print (And so on... :)HR noshade size=\1\);

?
/PRE
--- End of PHP Example Code ---

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] how to use the function strtotime

2001-09-20 Thread mydata

thank a lot , I  learn a lot from reply from you !

* RZe: [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Original message
 From: mydata [EMAIL PROTECTED]
 Date: Thu, Sep 20, 2001 at 11:41:09AM +0800
 Message-ID: [EMAIL PROTECTED]
 Subject: [PHP] how to use the function strtotime

  Hi,
  I'm php developer beginner in China,but I am confused with function
  strtotime.
  yes ,I know the usage of function strtotime in php manual. But
description
  of php manual about it is too little.I want to know more about it.

 /Original message

 Reply

 It's not all that difficult, really. It's exactly how it's described
 in the manual. Here is some code that runs some samples:

 (I must say, though, that most examples can be done a lot easier
 without strtotime(), but 'cause these are examples of strtotime()...
 well... you know :)

 --- PHP Example Code ---
 PRE
 ?php

 /* Show a given date (+time) */
 print (Date: \n\t);
 print (date (r, strtotime (January 31 2000 19:20:15)).\n\n);

 /* Show the current date (+time) */
 print (Now: \n\t);
 print (date (r, strtotime (now)).\n\n);

 /* Show the date (+time) of tomorrow */
 print (Tomorrow: \n\t);
 print (date (r, strtotime (tomorrow)).\n\n);

 /* Show the date (+time) of yesterday */
 print (Yesterday: \n\t);
 print (date (r, strtotime (yesterday)).\n\n);

 /* Show the date (+time) of yesterday, where now is tomorrow. So the
the output will be today :) */
 print (Yesterday, where 'now' is tomorrow: \n\t);
 print (date (r, strtotime (yesterday, strtotime(tomorrow))).\n\n);

 /* Show the date (+time) 13 days from december 24th 1998 */
 print (13 days from december 24th 1998: \n\t);
 print (date (r, strtotime (+13 days, strtotime(December 24
1998))).\n\n»

 /* Let's say you get some date from the db (or something) and you
  * want to
add 2 years and 4 months and 23 days. */
 print (Well... just see: \n\t);
 $date_from_db = 2001-09-20;
 print (date (r, strtotime (+2 years +4 months +23 days,
 mktime(0,0,0,substr($date_from_db, 5, 2),
  substr($date_from_db, 8, 2),
  substr($date_from_db, 0,
4.\n\n);

 /* Etc. */
 print (And so on... :)HR noshade size=\1\);

 ?
 /PRE
 --- End of PHP Example Code ---

 /Reply

 --

 * RzE:


 -- 
 -- Renze Munnik
 -- DataLink BV
 --
 -- E: [EMAIL PROTECTED]
 -- W: +31 23 5326162
 -- F: +31 23 5322144
 -- M: +31 6 21811143
 --
 -- Stationsplein 82
 -- 2011 LM  HAARLEM
 -- Netherlands
 --
 -- http://www.datalink.nl
 -- 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] interesting warning!!!

2001-09-20 Thread * RzE:

Original message
From: Balaji Ankem [EMAIL PROTECTED]
Date: Thu, Sep 20, 2001 at 01:11:59PM +0500
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] interesting warning!!!

 Hi,friend,
 
   i registered login info while login using session_register 
 
 session_register(user,pw);
 
 ---
 and during logout i have unregistered like following..
 
 session_unregister(user,pw);
 
 This is the warning i got after logout..
 
 Warning: Wrong parameter count for session_unregister() in 
 /www/imac/logout.php on line 4
 
 Thanks and Regards
 -Balaji Ankem

/Original message

Reply

Hai Balaji!

Thx for the warning!? It's actually exactly like in the manual
pages:

bool session_register (mixed name [, mixed ...])
   ^
and
bool session_unregister (string name)
 ^^

:)

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how to limit the files returned

2001-09-20 Thread Josep Raurell

Hi.

I want use in IBM DB2 the SELECT . LIMIT, as I can do in mySQL.


How 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] where did my cookie go?

2001-09-20 Thread Peter

Hi,

I am new to learning PHP and I have experimenting with setting cookies.
Basically, I wrote a very basic script like this:

?php
setcookie(username, peter);
?

I even set my Internet Explorer to prompt me about cookies before allowing
page to come through and it worked IE did prompt me.

However, when I checked the /Windows/cookies directory, I could not find
my name amount the .txt files.

Am I looking for the cookie at the right place?

Thanks.

Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] where did my cookie go?

2001-09-20 Thread Richard Baskett

I believe it saves it as a .txt file with the name of the server as the file
name in IE.  So if you were at yahoo.com and it set the cookie the name of
the cookie would be [EMAIL PROTECTED] or something like that.

Good luck!

Rick

 Hi,
 
 I am new to learning PHP and I have experimenting with setting cookies.
 Basically, I wrote a very basic script like this:
 
 ?php
 setcookie(username, peter);
 ?
 
 I even set my Internet Explorer to prompt me about cookies before allowing
 page to come through and it worked IE did prompt me.
 
 However, when I checked the /Windows/cookies directory, I could not find
 my name amount the .txt files.
 
 Am I looking for the cookie at the right place?
 
 Thanks.
 
 Peter
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread James Holloway

Hey,

Whilst you can't perform statements like this, there are alternatives.  If
you only have one field in your table, you can use:

INSERT INTO com VALUES ('pentium'), ('amd'); // Continue the comma
separated values list

Or, if you need to specify which fields the data is to go in:

INSERT INTO com (column1, column2) VALUES ('something', 'something else'),
('something again', 'something else again');

James

VM ÁÖ¿N [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello

 I want to know how to implement these several sql statements in one time.

 For example, I have 2 sql statements like :

 INSERT INTO com VALUES ('pentium');
 INSERT INTO com VALUES ('amd');

 Then, I want to excute these 2 sql statements in one time with PHP.

 I tried to implement like this :

 $query = 
 INSERT INTO com VALUES ('pentium');
 INSERT INTO com VALUES ('amd');
 ;
 mysql_query($query, $dbconnect);

 But as you know, it didn't work.

 Does any one know how to run this job?

 _
 MSN Explorer¡Æ¢® AOA¢¬¢¬e Hotmail ¡íc¢¯eAI EI¨úA ¨¡i¢¬RC¨ª Ay¢¥I¢¥U. Ao¡¾Y
 http://explorer.msn.co.kr/ ¢¯¢®¨ù¡© ©ö¡ì¡¤a¡¤I ¢¥U¢¯i¡¤I¥ìaCI¨ù¨ù¢¯a.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread Steve Edberg

This is more of a MySQL question, but:

Actually, as of MySQL version 3.22.5, INSERT statements can have
multiple value lists. In your case, this would be

$query =
   INSERT INTO com VALUES .
   ('pentium'), ('amd');

mysql_query($query, $dbconnect) or die(mysql_error());

Also, you don't need a trailing ';' on the SQL query statement (you
DO need it, of course, at the end of the PHP statement).

See

http://www.mysql.com/doc/I/N/INSERT.html

for more information.

-steve



At 11:58 AM +0200 9/20/01, _lallous wrote:
No you can't! I wrote a simple routine for the task!


you might want to view it from:
http://www.kameelah.org/eassoft/php_files/sql2php.php.txt

just take the  parse_sql_stream($all) which returns an array that have all
the statments to be passed to mysql_query()

this script is usefull when you have a huge .SQL file that you want to
execute from PHP code.

VM ¡÷øN [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hello

  I want to know how to implement these several sql statements in one time.

  For example, I have 2 sql statements like :

   INSERT INTO com VALUES ('pentium');
  INSERT INTO com VALUES ('amd');

  Then, I want to excute these 2 sql statements in one time with PHP.

  I tried to implement like this :

  $query = 
  INSERT INTO com VALUES ('pentium');
  INSERT INTO com VALUES ('amd');
  ;
  mysql_query($query, $dbconnect);

  But as you know, it didn't work.

   Does any one know how to run this job?


--
+ Open source questions? +
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- http://pgfsun.ucdavis.edu/open-source-tools.html ---+

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Writing to two tables in 1-N relationship.

2001-09-20 Thread Alexander Deruwe

I have two DB tables that are in a 1 - N relationship. I need to enter data 
once in the 1-side, and then many times data on the N-side.

(For those who like it less abstract: The 1-side is a table with data about a 
car (frame number, brand + type, and a carrier), the N-side has records about 
damages found on that car after transport)

I'm a little bit confused about how to deal with this:
-  After every data input, write the stuff away to a temp text file, and when 
all input is done, write that text file at once to the database.

- Store the data in arrays, and pass them on between runs of the script as 
part of the URL (but I could run out of space?)

- A better way that I don't see?

One thing is for sure, and that is that the data needs to be written to the 
DB in one go (so as to be able to use transactions effectively (in 
PostgreSQL)).

Can anyone advice? Someone must have been in this position before. :)

I hope I explained the problem ok, I tend to get carried away.

Thanks in advance,

Alexander Deruwe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] --== Winning Confirmation ==--

2001-09-20 Thread Fianna421

You have been specially selected to qualify for the following:

Premium Vacation Package and Pentium PC Giveaway
To review the details of the please click on the link 
with the confirmation number below:

http://wintrip.chn.net
or
http://wintrip.web-hit.com
or
http://wintrip.coc.cc 

Confirmation Number#Lh340
Please confirm your entry within 24 hours of receipt of this confirmation.

Wishing you a fun filled vacation!
If you should have any additional questions or cann't connect to the site 
do not hesitate to contact me direct:
mailto:[EMAIL PROTECTED]?subject=Help!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos

ey guys.. how do i check if the postdata is a valid time format? something
like '2001-09-15'
I hate it when they'll be entering garbage in it...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: simple question...

2001-09-20 Thread Emile Bosch

Checkdate is the solution for that:
checkdate (int month, int day, int year)

Ker Ruben Ramos [EMAIL PROTECTED] schreef in berichtnieuws
00f801c14251$5aa288b0$[EMAIL PROTECTED]
 ey guys.. how do i check if the postdata is a valid time format? something
 like '2001-09-15'
 I hate it when they'll be entering garbage in it...




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos

One more thing... If I got '2001-09-01'
Is there a fast way of incrementing the month of it?
making it '2001-10-01' ?

- Original Message -
From: * RzE: [EMAIL PROTECTED]
To: Ker Ruben Ramos [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 6:04 AM
Subject: Re: [PHP] simple question...


 Original message
 From: Ker Ruben Ramos [EMAIL PROTECTED]
 Date: Thu, Sep 20, 2001 at 08:56:03PM -0700
 Message-ID: 00f801c14251$5aa288b0$bb05aacb@weblinqproxy
 Subject: [PHP] simple question...

  ey guys.. how do i check if the postdata is a valid time format?
something
  like '2001-09-15'
  I hate it when they'll be entering garbage in it...

 /Original message

 Reply

 See the example below:

 --- PHP Example Code ---
 PRE
 ?php

 /* Valid date */
 $myDate = 2001-09-12;

 /* Invalid date */
 //$myDate = 2001-13-20;

 /* Another invalid date */
 //$myDate = 20o1-10-x9;

 if (ereg (([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}), $myDate,
 $matches)) {
   if (checkdate ($matches[2], $matches[3], $matches[1])) {
 print (Valid date!\n\n);
 print (date (r, mktime (0,0,0,$matches[2], $matches[3],
 $matches[1])));
   } else {
 print (No valid date!);
   }
 } else {
   print (No valid date!);
 }

 ?
 /PRE
 --- End of PHP Example Code ---

 /Reply

 --

 * RzE:


 -- 
 -- Renze Munnik
 -- DataLink BV
 --
 -- E: [EMAIL PROTECTED]
 -- W: +31 23 5326162
 -- F: +31 23 5322144
 -- M: +31 6 21811143
 --
 -- Stationsplein 82
 -- 2011 LM  HAARLEM
 -- Netherlands
 --
 -- http://www.datalink.nl
 -- 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] simple question...

2001-09-20 Thread Eric O'Connell


 One more thing... If I got '2001-09-01'
 Is there a fast way of incrementing the month of it?
 making it '2001-10-01' ?

list($year, $month, $day) = explode(-, $date);
$month++;
if ($month == 13)
$month = 1;
$date = $year-$month-$day;

Eric O'Connel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] simple question...

2001-09-20 Thread * RzE:

Original message
From: Ker Ruben Ramos [EMAIL PROTECTED]
Date: Thu, Sep 20, 2001 at 09:36:55PM -0700
Message-ID: 012b01c14257$0afb3db0$bb05aacb@weblinqproxy
Subject: Re: [PHP] simple question...

 One more thing... If I got '2001-09-01'
 Is there a fast way of incrementing the month of it?
 making it '2001-10-01' ?

/Original message

Reply

You should date() do the work here. So just take the month and then
+1. Date() will take care the result is a valid date.
Below is some example...

--- PHP Example Code ---
PRE
?php

$myDate = 2001-09-12;

if (ereg (([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}), $myDate, $matches)) {
  if (checkdate ($matches[2], $matches[3], $matches[1])) {
print (date (Y-m-d, mktime (0,0,0,$matches[2]+1, $matches[3], $matches[1])));
  } else {
print (No valid date!);
  }
} else {
  print (No valid date!);
}

?
/PRE
--- End of PHP Example Code ---

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] if statement

2001-09-20 Thread Jeb Anderson Scarbrough

This seems to be a simple questions, but it is baffling me for some reason.  
How do I create an if statement with multiple conditions. For example, I 
cannot get either of these to work correctly:

if(isset($REMOTE_USER)  $AUTH_TYPE='securid') {
 // do something
} else {
 // do something else
}

OR

if((isset($REMOTE_USER))  ($AUTH_TYPE='securid')) {
 // do something
} else {
 // do something else
}


Thanks.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] simple question...

2001-09-20 Thread * RzE:

 You should date() do the work here. So just take the month and then
 +1. Date() will take care the result is a valid date.
 Below is some example...

Well... I meant: let mktime() do the work... not date(). Date() only
shows the result of mktime() in a proper format. Mktime() makes sure
it's a valid time(stamp) :)

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] if statement

2001-09-20 Thread Tim

You need to use == instead of = in that situation.

- Tim

On Thu, 2001-09-20 at 09:46, Jeb Anderson Scarbrough wrote:
 This seems to be a simple questions, but it is baffling me for some reason.  
 How do I create an if statement with multiple conditions. For example, I 
 cannot get either of these to work correctly:
 
 if(isset($REMOTE_USER)  $AUTH_TYPE='securid') {
  // do something
 } else {
  // do something else
 }



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] if statement

2001-09-20 Thread * RzE:

Original message
From: Jeb Anderson Scarbrough [EMAIL PROTECTED]
Date: Thu, Sep 20, 2001 at 09:46:13AM -0400
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] if statement

 This seems to be a simple questions, but it is baffling me for some reason.  
 How do I create an if statement with multiple conditions. For example, I 
 cannot get either of these to work correctly:
 
 if(isset($REMOTE_USER)  $AUTH_TYPE='securid') {
  // do something
 } else {
  // do something else
 }
 
 OR
 
 if((isset($REMOTE_USER))  ($AUTH_TYPE='securid')) {
  // do something
 } else {
  // do something else
 }
 
 
 Thanks.

/Original message

Reply

I think your problem isn't really the if-statement itself. You
should use == io =. So it would be:

if(isset($REMOTE_USER)  $AUTH_TYPE=='securid') {
^^
^^

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Generating UTF Files

2001-09-20 Thread Stig Venaas

On Thu, Sep 20, 2001 at 02:57:43PM +0200, Jens Kisters wrote:
 Hello,
 
 I was asked to generate files in UTF-8 Format, where can i find infos on
 this?
 Is it a multi-byte charset?
 How do i use other charset in PHP? can i just switch to another charset and
 then make $a=a; where a is the UTF reprensentation of 'a'?
 or will i have to mold bytes together myself using chr() ?

UTF-8 is only an encoding not a charset. You can use utf8_encode() and
utf8_decode in PHP. I think Unicode is often used with UTF-8.

Stig

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] caching madness

2001-09-20 Thread Christian Haines

hi all,

i have tried everything not to get a page to cache..

server-side:

  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  header('Last-Modified: '. gmdate('D, d M Y H:i:s') .' GMT');
  header('Cache-Control: no-cache, must-revalidate');
  header('Pragma: no-cache')

client-side:

meta http-equiv = Expires content = Tue, 20 Aug 1996 14:25:27 GMT


does anyone have any idea how to make sure pages do not cache?


many thanks in advance,
christian


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] simple question...

2001-09-20 Thread Ker Ruben Ramos

again.. one more thing How do I know how many days date differ? let's
say '2001-09-01' and '2001-09-08'.
Just looking for the fastest way of code to run.

- Original Message -
From: * RzE: [EMAIL PROTECTED]
To: Ker Ruben Ramos [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 6:46 AM
Subject: Re: [PHP] simple question...


  You should date() do the work here. So just take the month and then
  +1. Date() will take care the result is a valid date.
  Below is some example...

 Well... I meant: let mktime() do the work... not date(). Date() only
 shows the result of mktime() in a proper format. Mktime() makes sure
 it's a valid time(stamp) :)

 --

 * RzE:


 -- 
 -- Renze Munnik
 -- DataLink BV
 --
 -- E: [EMAIL PROTECTED]
 -- W: +31 23 5326162
 -- F: +31 23 5322144
 -- M: +31 6 21811143
 --
 -- Stationsplein 82
 -- 2011 LM  HAARLEM
 -- Netherlands
 --
 -- http://www.datalink.nl
 -- 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] random record?

2001-09-20 Thread Kurth Bemis

i'm looking to select a random record from a sql table.  I remember seeing 
code for it on the list but fail to find it now.  any help?

~kurth


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Select distinct error!

2001-09-20 Thread Sophokles Zafeiris

Hi,
I' m trying to execute a select distinct command on a table and I get the 
following error:
ERROR 1022: Can't write, duplicate key in table 'pmall'
My table is about 2,7 MBytes.
Does anybody knows what's wrong?
I use MySQL 3.23.40 on a Solaris 7 (intel) machine.

Sofoklis


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] random record?

2001-09-20 Thread David Otton

On Thu, 20 Sep 2001 10:35:59 -0400, you wrote:

i'm looking to select a random record from a sql table.  I remember seeing 
code for it on the list but fail to find it now.  any help?

SELECT columns FROM table ORDER BY RAND() LIMIT 1

djo


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] simple question...

2001-09-20 Thread * RzE:

Original message
From: Ker Ruben Ramos [EMAIL PROTECTED]
Date: Thu, Sep 20, 2001 at 10:16:01PM -0700
Message-ID: 016101c1425c$819cdcd0$bb05aacb@weblinqproxy
Subject: Re: [PHP] simple question...

 again.. one more thing How do I know how many days date differ? let's
 say '2001-09-01' and '2001-09-08'.
 Just looking for the fastest way of code to run.

/Original message

Reply

The sample code below does pretty much what you want. BUT!!! It's
not a very nice solution...
Eg it cannot calculate a difference of more than one year :(
Furthermore I must point out that there is no error-checking in this
example. So if you _do_ want to use this, you'll have to add the
error-checking.
Sorry that it's not a really good solution, but due to lack of time,
I could not think of anything better right now...

--- PHP Example Code ---
PRE
?php

$dateOne = 2001-09-01;
$dateTwo = 2001-09-08;

ereg (([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}), $dateOne, $match_1);
ereg (([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}), $dateTwo, $match_2);

$stampOne = mktime (0,0,0,$match_1[2],$match_1[3],$match_1[1]);
$stampTwo = mktime (0,0,0,$match_2[2],$match_2[3],$match_2[1]);

$days_differ = date(z, ($stampTwo-$stampOne));
print (Days: $days_differ);

?
/PRE
--- End of PHP Example Code ---

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] random record?

2001-09-20 Thread Kurth Bemis

At 10:35 AM 9/20/2001, David Otton wrote:

thank you!  I love having access to all this knowledge :-)

~kurth

On Thu, 20 Sep 2001 10:35:59 -0400, you wrote:

 i'm looking to select a random record from a sql table.  I remember seeing
 code for it on the list but fail to find it now.  any help?

SELECT columns FROM table ORDER BY RAND() LIMIT 1

djo


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] image gallery

2001-09-20 Thread Aniceto Lopez

some days ago someone, I can't remenber, asked
how to do an image gallery so here is mine

available for downloading: www.lamundial.net/bol/img_gallery.zip
also posted in http://www.weberdev.com
you can see it working at: www.lamundial.net fotos section

when a thumb is clicked pops up a new window with
the sice of the photo displayed. no database is required,
names of the images are readed from a text file

Configurable
 $data_file = photolist.txt;   //name of the text file
 $thumbnail_dir = thumbs/; //folder containing the thumbs
 $num_rows = 2;
 $photos_per_row = 2;

Credits:
Original code from an article written by: Todd Kennedy
[EMAIL PROTECTED]
Article:
http://hotwired.lycos.com/webmonkey/01/27/index3a.html?tw=programming
Put all toghether in working files and fixing some little errors Aniceto
Lopez [EMAIL PROTECTED]



Ani Lopez
www.lamundial.net
download and spread our free music


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] image gallery

2001-09-20 Thread Aniceto Lopez

some days ago someone, I can't remenber, asked
how to do an image gallery so here is mine

available for downloading: www.lamundial.net/bol/img_gallery.zip
also posted in http://www.weberdev.com
you can see it working at: www.lamundial.net fotos section

when a thumb is clicked pops up a new window with
the sice of the photo displayed. no database is required,
names of the images are readed from a text file

Configurable
 $data_file = photolist.txt;   //name of the text file
 $thumbnail_dir = thumbs/; //folder containing the thumbs
 $num_rows = 2;
 $photos_per_row = 2;

Credits:
Original code from an article written by: Todd Kennedy
[EMAIL PROTECTED]
Article:
http://hotwired.lycos.com/webmonkey/01/27/index3a.html?tw=programming
Put all toghether in working files and fixing some little errors Aniceto
Lopez [EMAIL PROTECTED]



Ani Lopez
www.lamundial.net
download and spread our free music



[PHP] Possibly undocumented operators.

2001-09-20 Thread Cory K. Walker

The PHP manual does not document the operators

()
-

What is the relative precedence and associativity of each?  I've looked
in the archives, and I've found some butter, more complete precedence
tables, but they appear to be outdated.  Where can I find a complete and
accurate operator precedence table?

CW

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Generating variable names 'on the fly'

2001-09-20 Thread Neil Freeman

Hi there,

How do I generate variable names 'on the fly'? I wish to have variable
names along the lines of $genre_category_1, $genre_category_2,
$genre_category_3 etc.

Ideally it would be along the lines of this...

###
$current_field_number = 1;
$genre_number_fields = 7;

while ($current_field_number  $genre_number_fields)
{
//this var will change on every loop
$genre_desc = $db_movies_genres-Record[$current_field_number];

//something along the lines of...(you get the idea)
$str_category = genre_category_ . $current_field_number;
$$str_category = $genre_desc;

$current_field_number++;
}
###

Any help would be greatly appreciated.

Neil

 Email:  [EMAIL PROTECTED]
 [EMAIL PROTECTED]





[PHP] Parsing old .CAL-Files

2001-09-20 Thread Ulrich Hacke

Do you remember the calendar.exe in good'ol Win3.11? I have several
.CAL-Files which I want to convert for using them in somewhat modern
software as my client still uses this oldtimer program. CVS as output would
do the trick. Can anybody help me?

Thanks in advance,
Uli


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] MySQl IP Address Storage

2001-09-20 Thread Felix

Hello all

Can anyone suggest their best idea for a way to store IP addresses in a
MySQL Database?

Felix


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Internal use of Mysql Connections

2001-09-20 Thread Bob Silva

Just curious why mysql wouldnt restore the last known internal connection id. In the 
code below, I open a connection (without storing the connection id), use it, then 
open,use,close a different connection, this time using a connection id, but when I 
close it, the original internal connection id is history, the last query fails. It 
would make sense to me that php would restore the last known connection handle (if 
there is one) after I call mysql_close(); 
I know I could call mysql_connect again after the mysql_close call and that would 
restore it.
Any ideas? Thanks, Bob 

mysql_connect(hostname, user, pass); 

$res = mysql_db_query(mlm,select count(*) from mlm_clients); 

echo mysql_num_rows($res).br; 

$conn = mysql_connect(hostname, user, pass); 

$res = mysql_db_query(rollcall,select count(*) from rollcall_students); 

echo mysql_num_rows($res).br; 

mysql_close($conn); 

FAILS -- $res = mysql_db_query(mlm,select count(*) from mlm_clients); 

echo mysql_num_rows($res).br; 



[PHP] Re: Parsing old .CAL-Files

2001-09-20 Thread Eddie Shipman

Here is a link to the file format:
http://www.wotsit.org/download.asp?f=calendar

If you just need a converter, let me know. I can probably program one
quickly using Delphi.

 Do you remember the calendar.exe in good'ol Win3.11? I have several
 .CAL-Files which I want to convert for using them in somewhat modern
 software as my client still uses this oldtimer program. CVS as output
would
 do the trick. Can anybody help me?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread Jeff Lewis

I have a very large text file that is set up like so:  It contains some smaller 
columns but one HUGE one that contains the body of a resume.  I am looking for help on 
processing this file.  What I need to do is convert the final column into three 
columns.  Each column can have no more than 4000 characters, is this possible?  Well I 
know it's possible but can someone help me?  I am down to my last options :(

1|||49||06|Good people skills, Management experience|||James E. RieckBRAddress: 272 
Erb St. East,BRWaterloo, Ontario N2J 1N7BRCell # 519-588-4330BRBREmployment 
HighlightsBRBR1983 to 1989 Florida Pneumatic Canada, Kitchener, OntarioBRGeneral 
Manager amp; Sales SupervisorBRBRDeveloped FP Air Tool line from start in 
Canada.BROrganized warehouse. Supervised- Shipping/ReceivingBRSold to National and 
smaller accounts.BRManufactured our own line of Air Compressors.BRNationally had 
five Sales Agents. Sales 1 million.BRBR1989 to 1996 Universal Power Canada, 
Brampton, OntarioBROperations amp; Marketing ManagerBRBRResponsible for all 
facets of business: buying, selling, marketing, national accounts, budgeting and 
bottom line. Designed and set up parts inventory amp; BRcomputer parts numbers. 
Involved with selling to Automotive, Fleet amp; Industrial distributors across 
Canada. Souced new products from Taiwan and BRJapan. Worked with Sales Reps in 
field. Designed bilingual catalogue for Air Tools. Personally secured largest chisel 
order in Canada for Hibernia- BR30.000 chisels. Nationally had 20 part-time and 3 
full-time Reps, and 5 Service people. Sales 2 million.BRBR1996 to 1999 GRG Power 
Tool Services Ltd., Milton. OntarioBRGeneral Manager amp; Co-OwnerBRBRSelling 
and repairing Air, Hydraulic, and Electric Tools toBRAutomotive, Industry and Fleet 
users.BRWholesale of Air Tools and Parts to distributors.BRMaster distributor of 
Milwaukee electric hand tools.BRCompressor Sales amp; repairs.BRBR1999 to 2000 
Al Tool Enterprises, Waterloo, OntarioBRSelf-employed / Sales 
AgentBRBRManufacture and sell Sandblast Hoods to Auto Body and Industrial 
Distributors. Sales Agent for Strikemaster Tools.BRBR2000 to 2001 DML Construction 
Supplies amp; Rentals, Waterloo,Ont. Store MnagerBRBRNew business. Responsible 
for all Sales and Purchasing.BRSales to the Construction Trade, Landscaping, 
Government etc.BRBRCurrently UnemployedBRBRValue OfferedBRBRExperience in 
selling the Universal Power Tool Line to a large number of Industrial, Automotive and 
Hardware distributors in the Toronto area.Have an BRexcellent knowledge on 
pneumatics, air compressors and electric tools.My experience has involved finding new 
products from Vendors in USA, Taiwan BRand Japan and following through with final 
sale to consumer.BRBRPersonalBRBR



RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Robert Covell

INET_ATON

and

INET_NTOA

-Original Message-
From: Felix [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 11:49 AM
To: PHP list
Subject: [PHP] MySQl IP Address Storage


Hello all

Can anyone suggest their best idea for a way to store IP addresses in a
MySQL Database?

Felix


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: caching madness

2001-09-20 Thread John Lim

Hello Christian,

Try this:

Header(Cache-control: private, no-cache);
Header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); # Past date
Header(Pragma: no-cache);

The explaination of how it works is here:

http://php.weblogs.com/stories/storyReader$550

Let me if it works, or if you can improve on this.

Bye, John


Christian Haines [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 hi all,

 i have tried everything not to get a page to cache..

 server-side:

   header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
   header('Last-Modified: '. gmdate('D, d M Y H:i:s') .' GMT');
   header('Cache-Control: no-cache, must-revalidate');
   header('Pragma: no-cache')

 client-side:

 meta http-equiv = Expires content = Tue, 20 Aug 1996 14:25:27 GMT


 does anyone have any idea how to make sure pages do not cache?


 many thanks in advance,
 christian




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread * RzE:

Original message
From: Jeff Lewis [EMAIL PROTECTED]
Date: Thu, Sep 20, 2001 at 11:59:32AM -0400
Message-ID: 013e01c141ed$3d51f340$76a1a8c0@LEWISJCIT
Subject: [PHP] Parsing text file and dividing column into three...PLEASE help :)

 I have a very large text file that is set up like so:  It contains
 some smaller columns but one HUGE one that contains the body of a
 resume.  I am looking for help on processing this file.  What I
 need to do is convert the final column into three columns.  Each
 column can have no more than 4000 characters, is this possible?
 Well I know it's possible but can someone help me?  I am down to
 my last options :(

/Original message

Reply

Dunno what you want to do exactly, but have you ever thought about
split()?

Something like: $myColumns = split (|, $contents);

/Reply

-- 

* RzE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] radio buttons

2001-09-20 Thread RNie

 Just a hunch... but try value=1ndash;24 and see how that works, so
 basically substitute - for ndash;

 I can't see the rest of your code and what else you might be appending to
 $msgtxt, so it could be something else...

Yes it was something else. I did a wrong comparison with the variable:

$empleados= in stead of $empleados==. So it was set to be an empty
string. Still doesn't explain the 0 though, but anyhow, it works now



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] More Image gallery

2001-09-20 Thread Daniel Alsén

A little contribution from me as well...

I have altered the Todd Kennedy script a bit.
Instead of reading a textfile for the filenames it scans the directory and
displays all pictures (jpegs) that are there.

Go get it at: http://www.mindbash.com/scripts/mygallery.zip

# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   |  #


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Generating variable names 'on the fly'

2001-09-20 Thread Charlie Killian

Neil, look under variable variables in the php manual. They're what you
need:
http://www.php.net/manual/en/language.variables.variable.php

Charlie


Neil Freeman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi there,

 How do I generate variable names 'on the fly'? I wish to have variable
 names along the lines of $genre_category_1, $genre_category_2,
 $genre_category_3 etc.

 Ideally it would be along the lines of this...

 ###
 $current_field_number = 1;
 $genre_number_fields = 7;

 while ($current_field_number  $genre_number_fields)
 {
 //this var will change on every loop
 $genre_desc = $db_movies_genres-Record[$current_field_number];

 //something along the lines of...(you get the idea)
 $str_category = genre_category_ . $current_field_number;
 $$str_category = $genre_desc;

 $current_field_number++;
 }
 ###

 Any help would be greatly appreciated.

 Neil
 
  Email:  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Please help!!! Trying to write some chat script!

2001-09-20 Thread Sheridan Saint-Michel

You can use a flat file and work around problems like you described by using
flock, for example.  I do agree a DB is the best way to go 99.9% of the time
though.  I just wanted to give an overview of that covered most of the
possible
ways to write a chat room.

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: nico_oreka [EMAIL PROTECTED]
To: Sheridan Saint-Michel [EMAIL PROTECTED]; Diadon
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 2:01 AM
Subject: Re: [PHP] Please help!!! Trying to write some chat script!


 I made a chatboard script that i use on two websites (http://nayco.free.fr
,
 http://luxregina.free.fr )
 One thing important to know is that you MUST NOT use a text file : When
two
 people write together, messages are scrambled and the script displays
wierd
 things 
  use SQL, as it's faster, easier to use, and has got no 'lock'
problem
 ...

 If you want my script . tell me !!


 (°-Nayco,
 //\[EMAIL PROTECTED]
 v_/_ http://nayco.free.fr


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] archives posting ip address not name

2001-09-20 Thread Charlie Killian

Why does the marc.aimsgroup archives post my IP address and not my name when
posting to the newsgroup? Is there anyway I can change this?

Charlie Killian
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] about image gallery

2001-09-20 Thread Aniceto Lopez

thanks Daniel
yours doen't need a text file with the image file names
but this is usefull when you want to establish the order
thumbs are shown

little trick:
both, big imgs and thumbs should be same file type but
I use jpg for big ones and gif for thumbs. after procesing
them (thumbs) in image software I change the .gif extension
to .jpg and it works!
Gif is better for little images using a few colors so little image size


Aniceto Lopez
www.lamundial.net
download and spread our free music


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Wow

2001-09-20 Thread Jonas K

thx alot :)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread Jeff Lewis

Ok, I have written code to go through the file grabbing pretty much what I
need.  Now in the array after explode ($oldline=explode(|, $buffer);) I
need to split apart $oldline[9].  Each element should hold no more than 4000
characters.  So I will dump this all into a new array.  What would be the
best way to do this?

Jeff
- Original Message -
From: * RzE: [EMAIL PROTECTED]
To: Jeff Lewis [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 12:16 PM
Subject: Re: [PHP] Parsing text file and dividing column into three...PLEASE
help :)


  I have a very large text file that is set up like so:  It contains
  some smaller columns but one HUGE one that contains the body of a
  resume.  I am looking for help on processing this file.  What I
  need to do is convert the final column into three columns.  Each
  column can have no more than 4000 characters, is this possible?
  Well I know it's possible but can someone help me?  I am down to
  my last options :(

 /Original message

 Reply

 Dunno what you want to do exactly, but have you ever thought about
 split()?

 Something like: $myColumns = split (|, $contents);

 /Reply



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] about image gallery

2001-09-20 Thread Daniel Alsén

 yours doen't need a text file with the image file names
 but this is usefull when you want to establish the order
 thumbs are shown

A matter of taste i guess. I wanted a script that needed as little work as
possible after i uploaded it.

Next thing to do is add page numbers for faster navigation. Coming up :)

 little trick:
 both, big imgs and thumbs should be same file type but
 I use jpg for big ones and gif for thumbs. after procesing
 them (thumbs) in image software I change the .gif extension
 to .jpg and it works!
 Gif is better for little images using a few colors so little image size

I have actually played around with that a bit. I found that jpegs actually
get smaller than the gifs if you want some sort of quality.

- Daniel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQL Connectivity test

2001-09-20 Thread Jason Bell

Thanks lance and David for the reply.  :)

Yes, I suspected as much, *BUT* let me explain what I am trying to do:

I have a script I am writing that uses a MySQL backend. I'm including an
initial configuration interface via the webbrowser. During initial
configuration, the user provides parameters for dbhost, dbname, dbpass etc
etc...

If I simply try and connect, and it fails, I don't want my script to error
out, or even display an error... I just want it to move along and let me
deal with informing the user that his database configuration does not work
correctly.

now, to do this, could I do something as simple as:

$conntest = @mysql_connect($dbhost,$dbuser,$dbpass);
if ($conntest == FALSE) {
// Do my Oops didn't work stuff here
} else {
// Continue with whatever it was I was doing.
}

would that work as I expect it to?

thanks!

Jason

- Original Message, by David Robley - 
 Trying to connect is usually a good indicator :-)

 mysql_connect returns a positive link identifier on success or an error
 message on failure. That should do what you want.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] importing a text file

2001-09-20 Thread Dominica Anderson

I have a text file that is formatted as such 

Something - SomethingElse 
4 blank lines 
SomethingMore 
4 blank lines 
Something - SomethingElse 
4 blank lines 
SomethingMore 
4 blank lines 
and so on 

Anyone have any ideas on what I would use to get this
into seperate 
records that are $Something, $SomethingElse,
$SomethingMore for displaying 
in php or even importing into mysql? 

I would even go for $Something and just $SomethingMore
with $Something 
really being $Something-$SomethingElse. I don't know
if that makes sense. 

Any help would be greatly appreciated.


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson

Hello everyone-

I'm trying to have multiple uploads in one form so my input tag looks like
this:

input type=FILE name=imageFile[] value= size=10
input type=FILE name=imageFile[] value= size=10
input type=FILE name=imageFile[] value= size=10

The problem I'm running into is that I know php usually sets the name of the
file to $userfile_name and sets the mime type of the file to $userfile_type
and the size to $userfile_size.  My question is how does php handle
multipule inputs with arrays like above?

Thanks,
jay


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Simon Kimber

Hi All,

I have a PHP script that i want to run every few minutes (via cron) but I
only want it to run if it isn't already running.

Is there something in cron itself to solve this or is there a way within PHP
to detect that another instance of the current script is running and if so
exit the new instance before it does anything...

eg. I could have a function to use like so:

if (already_running($SCRIPT_NAME)) {
exit();
}

Thanks in advance!

Simon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Jack Dempsey

i'm sure there are more elegant solutions, but you could control the running
of your php script via a perl script called by cronin perl check to see
if the process is already running, and if so exit, else start it

jack

-Original Message-
From: Simon Kimber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 1:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Is CRON'd PHP script already running?


Hi All,

I have a PHP script that i want to run every few minutes (via cron) but I
only want it to run if it isn't already running.

Is there something in cron itself to solve this or is there a way within PHP
to detect that another instance of the current script is running and if so
exit the new instance before it does anything...

eg. I could have a function to use like so:

if (already_running($SCRIPT_NAME)) {
exit();
}

Thanks in advance!

Simon


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Felix

Thank you Robert.
Felix
- Original Message - 
From: Robert Covell [EMAIL PROTECTED]
To: Felix [EMAIL PROTECTED]; PHP list [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 10:55 AM
Subject: RE: [PHP] MySQl IP Address Storage


 INET_ATON
 
 and
 
 INET_NTOA
 
 -Original Message-
 From: Felix [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 20, 2001 11:49 AM
 To: PHP list
 Subject: [PHP] MySQl IP Address Storage
 
 
 Hello all
 
 Can anyone suggest their best idea for a way to store IP addresses in a
 MySQL Database?
 
 Felix
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Detect if javascript is enabled

2001-09-20 Thread Ole Victor

Hi,

Does anyone know a simple trick to get PHP detect if the user's browser has
javascript enabled?

--
Olé



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Richard Heyes

 ...in perl
 check to see
 if the process is already running, and if so exit...

Or just do this at the top of the cron'ed php script.
--
Richard Heyes
I know not with what weapons World War III will be fought, but World War IV
will be fought with sticks and stones. - Albert Einstein



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson

Hello everyone-

I'm trying to have multiple uploads in one form so my input tag looks like
this:

input type=FILE name=imageFile[] value= size=10
input type=FILE name=imageFile[] value= size=10
input type=FILE name=imageFile[] value= size=10

The problem I'm running into is that I know php usually sets the name of the
file to $userfile_name and sets the mime type of the file to $userfile_type
and the size to $userfile_size.  My question is how does php handle
multipule inputs with arrays like above?

Thanks,
jay


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Jason Bell

Felix,

Just to save you the headache that I encountered,  the column that you plan
to store your IP address in needs to be an unsigned integer when using
INET_ATON and INET_NTOA

If it's not, all addresses stored will come out as 127.0.0.0 (I think that
was what it was...).

Also, these are MySQL functions, not PHP functions. Not sure if you knew
that already, but it wasn't specified on the list...


INET_ATON converts from Decimal IP and INET_NTOA converts back to Decimal
IP, so you'd use it like this:

INSERT INTO mytable (ipaddress) VALUES (INET_ATON('192.168.1.1'));

SELECT INET_NTOA(ipaddress) FROM mytable;

Make sense?

- Original Message -
From: Felix [EMAIL PROTECTED]
To: Robert Covell [EMAIL PROTECTED]; PHP list
[EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 11:29 AM
Subject: Re: [PHP] MySQl IP Address Storage


 Thank you Robert.
 Felix
 - Original Message -
 From: Robert Covell [EMAIL PROTECTED]
 To: Felix [EMAIL PROTECTED]; PHP list
[EMAIL PROTECTED]
 Sent: Thursday, September 20, 2001 10:55 AM
 Subject: RE: [PHP] MySQl IP Address Storage


  INET_ATON
 
  and
 
  INET_NTOA
 
  -Original Message-
  From: Felix [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 20, 2001 11:49 AM
  To: PHP list
  Subject: [PHP] MySQl IP Address Storage
 
 
  Hello all
 
  Can anyone suggest their best idea for a way to store IP addresses in a
  MySQL Database?
 
  Felix
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] include() problem...

2001-09-20 Thread Matthew Walker

I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get(include_path));' it prints it properly. But when I
try and do an include, I get the following error.
 
Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/test.php on line 2
 
Help? Please? I'm at a loss as to how to fix this, and I kind of need
to.
 
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001




Re: [PHP] Re: [PHP-DB] Cross site authentication

2001-09-20 Thread Justin Buist

My reason for using SSL was that the username/password combination
wouldn't be transmitted in plaintext... that's all.  If you're passing the
creditials in plaintext to the Win2k machine though going to SSL for the
auth on PHP/Linux wouldn't really make any sense I suppose.

Justin Buist
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI  49512
Ph. 616.554.2700
Fx. 616.554.3331
Mo. 616.291.2612

On Wed, 19 Sep 2001, Evan Nemerson wrote:

 SSL would be useless. It has no facilities for authentication, which is what
 we need here. Basically, SSL encrypts communications between two computers-
 it doesn't care which two and is therefore vulnerable to man-in-the-middle
 attacks.


 On Wednesday 19 September 2001 08:22, you wrote:
   Customers are authenticating through an IIS server against a database on
   Win2K.  How do I securely pass this information to a separate
   PHP/apache/UNIX system? Since any parameters could be forged, it seems
   I'd need a cryptographic approach.  Does anyone have experience with a
   cross-platform solution (ASP/IIS/Win2K and PHP/apache/Linux)?
 
  Perhaps I'm making this too simple; but what exactly is the problem?  You
  have a DB on a Win2k box with user authentication information and some
  scripts in IIS that use that to handle user logins, right?  When you toss
  them over to the PHP/Linux system do it via SSL, encode the
  username/password in some GET or POST data, and let the PHP scripts
  authenticate them against the same Win2k database, then give them a
  session variable with their user credientials.
 
  This is of course assuming that you can get the PHP on Linux and your DB
  on Wkn2k talking, which might currently be prevented by a networking
  issue.  If you can't fix the network look into mechanisms for replicating
  the data from the Win2k machine to the Linux machine on a nightly/hourly
  basis.
 
  Justin Buist
  Trident Technology, Inc.
  4700 60th St. SW, Suite 102
  Grand Rapids, MI  49512
  Ph. 616.554.2700
  Fx. 616.554.3331
  Mo. 616.291.2612



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MySQl IP Address Storage

2001-09-20 Thread Felix

Thank you very much.

Felix
- Original Message -
From: Jason Bell [EMAIL PROTECTED]
To: PHP list [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 12:49 PM
Subject: Re: [PHP] MySQl IP Address Storage


 Felix,

 Just to save you the headache that I encountered,  the column that you
plan
 to store your IP address in needs to be an unsigned integer when using
 INET_ATON and INET_NTOA

 If it's not, all addresses stored will come out as 127.0.0.0 (I think that
 was what it was...).

 Also, these are MySQL functions, not PHP functions. Not sure if you knew
 that already, but it wasn't specified on the list...


 INET_ATON converts from Decimal IP and INET_NTOA converts back to Decimal
 IP, so you'd use it like this:

 INSERT INTO mytable (ipaddress) VALUES (INET_ATON('192.168.1.1'));

 SELECT INET_NTOA(ipaddress) FROM mytable;

 Make sense?

 - Original Message -
 From: Felix [EMAIL PROTECTED]
 To: Robert Covell [EMAIL PROTECTED]; PHP list
 [EMAIL PROTECTED]
 Sent: Thursday, September 20, 2001 11:29 AM
 Subject: Re: [PHP] MySQl IP Address Storage


  Thank you Robert.
  Felix
  - Original Message -
  From: Robert Covell [EMAIL PROTECTED]
  To: Felix [EMAIL PROTECTED]; PHP list
 [EMAIL PROTECTED]
  Sent: Thursday, September 20, 2001 10:55 AM
  Subject: RE: [PHP] MySQl IP Address Storage
 
 
   INET_ATON
  
   and
  
   INET_NTOA
  
   -Original Message-
   From: Felix [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 20, 2001 11:49 AM
   To: PHP list
   Subject: [PHP] MySQl IP Address Storage
  
  
   Hello all
  
   Can anyone suggest their best idea for a way to store IP addresses in
a
   MySQL Database?
  
   Felix
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
  
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail:
[EMAIL PROTECTED]
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Jeb Anderson Scarbrough

If you put the file into the include directory specified in the php.ini 
(.:/usr/lib/php) then I believe you should do:

include(mysql.php);

NOT

include(DB/mysql.php);

Someone please correct me if I'm wrong.




I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get(include_path));' it prints it properly. But when I
try and do an include, I get the following error.

Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/test.php on line 2

Help? Please? I'm at a loss as to how to fix this, and I kind of need
to.

--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker

I've tried including just a file that was in the /usr/lib/php directory.
No luck. I get exactly the same error (with the correct file name,
obviously). Also, note in the error that include() is seeing
include_path=''. What's up with that?

-Original Message-
From: Jeb Anderson Scarbrough [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 20, 2001 12:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] include() problem...

If you put the file into the include directory specified in the php.ini 
(.:/usr/lib/php) then I believe you should do:

include(mysql.php);

NOT

include(DB/mysql.php);

Someone please correct me if I'm wrong.




I've got a very odd problem. I'm trying to include 'DB/mysql.php', from
the /usr/lib/php directory, and it's not working. My include_path is set
properly (.:/usr/lib/php) and when I do
'print_r(ini_get(include_path));' it prints it properly. But when I
try and do an include, I get the following error.

Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='')
in /usr/local/httpd/htdocs/test.php on line 2

Help? Please? I'm at a loss as to how to fix this, and I kind of need
to.

--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

_
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.281 / Virus Database: 149 - Release Date: 9/18/2001



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Security with include() function

2001-09-20 Thread SED

Hi,

I was wandering if someone includes php-file with passwords, private
paths etc. on a different server like this: 

include (http://someserver/file.php;);

Will this same person be able to echo all the variables in that file.php
script? Or is it in each and every time processed via php.exe before
delivered?

Thanks!
SED

 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Even more image gallery

2001-09-20 Thread Daniel Alsén

Updated the Todd script again...

Now there are page numbers added with the next and prev links.

http://www.mindbash.com/scripts/mygallery.zip

Hepp!
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED]  | +46 704 86 14 92 #
# ICQ: 63006462   |  #


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] importing text file

2001-09-20 Thread Dominica Anderson

I have a text file that is formatted as such 

Something - SomethingElse 
4 blank lines 
SomethingMore 
4 blank lines 
Something - SomethingElse 
4 blank lines 
SomethingMore 
4 blank lines 
and so on 

Anyone have any ideas on what I would use to get this
into seperate 
records that are $Something, $SomethingElse,
$SomethingMore for displaying 
in php or even importing into mysql? 

I would even go for $Something and just $SomethingMore
with $Something 
really being $Something-$SomethingElse. I don't know
if that makes sense. 

Any help would be greatly appreciated.


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] importing text file

2001-09-20 Thread Boget, Chris

 I would even go for $Something and just $SomethingMore
 with $Something really being $Something-$SomethingElse. 
 I don't know if that makes sense. 
 Any help would be greatly appreciated.

Take a look at file(); and just loop through the resulting array
and removing all the blank elements.

Chris



RE: [PHP] importing text file

2001-09-20 Thread Jack Dempsey

checkout http://php.net/manual/en/function.file.php

-Original Message-
From: Dominica Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 20, 2001 2:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] importing text file


I have a text file that is formatted as such 

Something - SomethingElse 
4 blank lines 
SomethingMore 
4 blank lines 
Something - SomethingElse 
4 blank lines 
SomethingMore 
4 blank lines 
and so on 

Anyone have any ideas on what I would use to get this
into seperate 
records that are $Something, $SomethingElse,
$SomethingMore for displaying 
in php or even importing into mysql? 

I would even go for $Something and just $SomethingMore
with $Something 
really being $Something-$SomethingElse. I don't know
if that makes sense. 

Any help would be greatly appreciated.


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] database on CD

2001-09-20 Thread Tim Olsen

Ok, Is this possible and how?
I would like to put a mysql database on CD (or something like it). I then 
want to grab info from the database (maybe using a java applet) and use it 
to make xml, etc. I dont want to have to install anything on the computer 
that the CD is running on.
Anyone seen something like this?
Ideas?

Thanks.
-Tim

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] importing text file

2001-09-20 Thread Dominica Anderson

ok here is an example that someone gave me...it
works..it splits up the file but it comes out as

$data_values[0] = Something
$data_values[1] = SomethingElse
$data_values[0] = SomethingMore

$data_values[0] = Something
$data_values[1] = SomethingElse
$data_values[0] = SomethingMore

and so on

how do I get this to where its $Something,
$SomethingElse, $SomethingMore

thanks...


?PHP

$fp = fopen(test.txt,r); 
$file = fread($fp,filesize(test.txt)); 
fclose($fp); 

$records = explode(\n\n\n\n\n,$file); 
foreach($records as $record_num = $data) { 
$data_values = explode( - ,$data); 
foreach($data_values as $data_num = $record) { 
echo \$data_values[$data_num] = $recordbrp; 
} 
} 


?
--- Jack Dempsey [EMAIL PROTECTED] wrote:
 checkout http://php.net/manual/en/function.file.php
 
 -Original Message-
 From: Dominica Anderson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 20, 2001 2:14 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] importing text file
 
 
 I have a text file that is formatted as such 
 
 Something - SomethingElse 
 4 blank lines 
 SomethingMore 
 4 blank lines 
 Something - SomethingElse 
 4 blank lines 
 SomethingMore 
 4 blank lines 
 and so on 
 
 Anyone have any ideas on what I would use to get
 this
 into seperate 
 records that are $Something, $SomethingElse,
 $SomethingMore for displaying 
 in php or even importing into mysql? 
 
 I would even go for $Something and just
 $SomethingMore
 with $Something 
 really being $Something-$SomethingElse. I don't know
 if that makes sense. 
 
 Any help would be greatly appreciated.
 
 
 __
 Terrorist Attacks on U.S. - How can you help?
 Donate cash, emergency relief information

http://dailynews.yahoo.com/fc/US/Emergency_Information/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 
 


__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] database on CD

2001-09-20 Thread Joseph Bannon

It should be possible, especially if you use Java. But, telling MySQL where
the database is located is the trick.

Joseph

CollegeSucks.com - See PHP in ACTION!

-Original Message-

Ok, Is this possible and how?
I would like to put a mysql database on CD (or something like it). I then 
want to grab info from the database (maybe using a java applet) and use it 
to make xml, etc. I dont want to have to install anything on the computer 
that the CD is running on.
Anyone seen something like this?
Ideas?










-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson

Quick question... how do I get the information out of the $imageFile array
that is here in the phpinfo?


  HTTP_POST_FILES[imageFile] Array
(
[name] = Array
(
[0] = 101x_button.gif
[1] = am_button.gif
)

[type] = Array
(
[0] = image/gif
[1] = image/gif
)

[tmp_name] = Array
(
[0] = /tmp/phpCEMAXc
[1] = /tmp/phpVN1Cd9
)

[size] = Array
(
[0] = 1093
[1] = 2866
)

)





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] database on CD

2001-09-20 Thread Michael A. Peters

One possible solution (I have not tried) is to force a symlink-

cd /var/database/mysql
ln -sf /mnt/cdrom/path/to/mydatabase mydatabase

You would have to make sure the database was for the right platform (a MySQL database 
created on a sparc64, for example, would not work on a PowerPC)

Is there any reason in particular why you don't want to just put a mysqldump onto the 
cd that gets loaded by the 
local machine?

On Thu, 20 Sep 2001 13:37:54 -0500
Joseph Bannon [EMAIL PROTECTED] wrote:

 It should be possible, especially if you use Java. But, telling MySQL where
 the database is located is the trick.
 
 Joseph
 
 CollegeSucks.com - See PHP in ACTION!
 
 -Original Message-
 
 Ok, Is this possible and how?
 I would like to put a mysql database on CD (or something like it). I then 
 want to grab info from the database (maybe using a java applet) and use it 
 to make xml, etc. I dont want to have to install anything on the computer 
 that the CD is running on.
 Anyone seen something like this?
 Ideas?
 
 
 
 
 
 
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] radio buttons

2001-09-20 Thread Richard Baskett

Actually it does explain it, you set the variable to false, which of course
is 0, so that's why you had a 0 :)

Also a good way of seeing if the variable is set, no equaling 0, ,  ,
false, etc is by using the empty function  if (empty($empleados))

Glad you figured it out though!

Cheers

Rick

 Just a hunch... but try value=1ndash;24 and see how that works, so
 basically substitute - for ndash;
 
 I can't see the rest of your code and what else you might be appending to
 $msgtxt, so it could be something else...
 
 Yes it was something else. I did a wrong comparison with the variable:
 
 $empleados= in stead of $empleados==. So it was set to be an empty
 string. Still doesn't explain the 0 though, but anyhow, it works now
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] MySQl IP Address Storage

2001-09-20 Thread Don Read


On 20-Sep-2001 Felix wrote:
 Hello all
 
 Can anyone suggest their best idea for a way to store IP addresses in a
 MySQL Database?
 

INT UNSIGNED

and use the MySQL functions INET_ATON()  INET_NTOA() for converting.

If you're on a pre-3.23 MySQL server then:


// Convert IP string (XXX.YYY.WWW.ZZZ) to float and back

function inet_aton($a) {
$inet = 0.0;
// $a=preg_replace('/^[0-9a-f:]*:/', '', $a); // eat IPv6 off the front
$t = explode('.', $a);
while (list(,$i) = each($t)) {
$inet *= 256.0;
$inet += $i;
};
return $inet;
}

function inet_ntoa($n) {
$t=array(0,0,0,0);
$msk = 16777216.0;
$n += 0.0;
if ($n  1)
return('nbsp;');
for ($i = 0; $i  4; $i++) {
$k = (int) ($n / $msk);
$n -= $msk * $k;
$t[$i]= $k;
$msk /=256.0;
};
$a=join('.', $t);
return($a);
}

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] What is the difference?

2001-09-20 Thread Jay Paulson

What's the difference between these two variable?

$HTTP_POST_FILES[imageFile][name][0]
$HTTP_POST_FILES[imageFile][name][1]

$imageFile[name][0]
$imageFile[name][1]

The reason why I ask this is I get this error below when I echo out
$imageFile[name][0] etc.

Warning: Undefined index: name in
/home/lbjs/lbjs.com/htdocs/user_admin/redirect.php on line 1787

Thanks,
jay


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Don Read


On 20-Sep-2001 Simon Kimber wrote:
 Hi All,
 
 I have a PHP script that i want to run every few minutes (via cron) but I
 only want it to run if it isn't already running.
 
 Is there something in cron itself to solve this or is there a way within PHP
 to detect that another instance of the current script is running and if so
 exit the new instance before it does anything...
 
 eg. I could have a function to use like so:
 
 if (already_running($SCRIPT_NAME)) {
   exit();
 }
 
 Thanks in advance!
 

in a shell wrapper:

#!/bin/sh

mkdir $HOME/LCK.script  /dev/null 21 || exit 1;

 ... do_yer_thang

rmdir $HOME/LCK.script

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Detect if javascript is enabled

2001-09-20 Thread Mark

On Thu, 20 Sep 2001 19:41:55 +0200, Ole Victor wrote:
Hi,

Does anyone know a simple trick to get PHP detect if the user's
browser has
javascript enabled?

the easiest way is to set a cookie w/ javascript, but you won't know
until the second request.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Detect if javascript is enabled

2001-09-20 Thread Philip Hallstrom

You could also have Javscript do something like:

script
document.location.href = theyvegotjavascript.php;
/script

other wise they don't...

-philip

On Thu, 20 Sep 2001, Mark wrote:

 On Thu, 20 Sep 2001 19:41:55 +0200, Ole Victor wrote:
 Hi,
 
 Does anyone know a simple trick to get PHP detect if the user's
 browser has
 javascript enabled?

 the easiest way is to set a cookie w/ javascript, but you won't know
 until the second request.



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Modularity--Optimizing Includes and Libs

2001-09-20 Thread ~~~i LeoNid ~~

On Wed, 19 Sep 2001 12:30:50 -0700 (PDT) impersonator of
[EMAIL PROTECTED] (Bora Paksoy) planted I saw in php.general:

that PHP parses/compiles pages everytime a new request
comes in. So, does this mean we have to minimize the
amount of code per page (which also means to minimize
number of includes) to improve response time? I mean,

This was my concern too, since this is a script language, and not
precompiled binary calls:((. I usually make it the compromize way: small,
simple (unlikely to be ever changed), although widely used functions, are
repeated inside every main script file; and big, less common, functions -
are _included_, for better maintainability/documentation. Don't know how
much it helps performance-wise though.
--
i Leonid

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Multiple Uploads in one form

2001-09-20 Thread Jay Paulson

Hello-

I'm having a problem once I upload a file and I need to copy it to a new
directory using php.  The error message I keep getting is this:

Warning: Unable to create
'/home/krox/krox.com/htdocs/images/101x_button.gif': Permission denied in
/php/news/news.class.php on line 227

My question is how do I give permission so that I can copy the file to the
correct place?

Thanks,
Jay


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] codes in php for going back to previous page

2001-09-20 Thread Wee Chua

Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can anyone
help? Thank you.

Calvin Chua



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Php codes for going back to last page

2001-09-20 Thread Wee Chua

Hi all,
I know how to forward a page with PHP, but what if the page I want to
forward is the previous page or last page. In javascript, the code is like
javascript:historygo(-1). The reason why I want to go back to previous page
is because I don't want to lose any information on previous page. Can anyone
help? Thank you.

Calvin Chua

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Permission Denied when copying file?

2001-09-20 Thread Jay Paulson

Hello-

I'm having a problem once I upload a file and I need to copy it to a new
directory using php.  The error message I keep getting is this:

Warning: Unable to create
'/home/krox/krox.com/htdocs/images/101x_button.gif': Permission denied in
/php/news/news.class.php on line 227

My question is how do I give permission so that I can copy the file to the
correct place?

Thanks,
Jay


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >