Re: [PHP] File question

2003-10-01 Thread - Edwin -
Hehe...

- Edwin - <[EMAIL PROTECTED]> wrote:

> Hi Raditha,
> 
> Raditha Dissanayake <[EMAIL PROTECTED]> wrote:
> 
> > Hi Edwin,
> > Didn't you read the disclaimer? you could be in serious trouble.
> 
> ...[snip]...
> 
> Disclaimer? No, not really. I've been sleeping for a long time...
> Maybe, you can tell me...

I got it... Kinda slow today... still drowsy...

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] File question

2003-10-01 Thread - Edwin -
Hi Raditha,

Raditha Dissanayake <[EMAIL PROTECTED]> wrote:

> Hi Edwin,
> Didn't you read the disclaimer? you could be in serious trouble.

...[snip]...

Disclaimer? No, not really. I've been sleeping for a long time...
Maybe, you can tell me...

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] File question

2003-10-01 Thread Raditha Dissanayake
Hi Edwin,
Didn't you read the disclaimer? you could be in serious trouble.
- Edwin - wrote:

Hi,

I'm no "genius" ;) but...

"ketvin" <[EMAIL PROTECTED]> wrote:

 

Dear geniuses,

A simple question here, i have a file, says, list.txt 

it is a simple text file and simple field like:

aa , bb , cc , dd

now i want to use php script to read that list.txt file, and put the
data in an array, is there any simple way i could do that ? 

   

...maybe you're looking for this:

 http://www.php.net/fgetcsv

Or, just check the other (file) functions here:

 http://www.php.net/manual/en/ref.filesystem.php

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
 



--
Raditha Dissanayake.

http://www.radinks.com/sftp/  |  http://www.raditha/megaupload/
Lean and mean Secure FTP applet with  |  Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB  |  with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] File question

2003-10-01 Thread Martin Towell
Try something like this (quick and dirty...)
 
$file_array = file("list.txt");
$myarray = explode(",", $file_array[0]);
 
HTH
Martin
 
-Original Message-
From: ketvin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 October 2003 5:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] File question


Dear geniuses,
 
 
A simple question here, i have a file, says, list.txt 
 
it is a simple text file and simple field like:
 
aa , bb , cc , dd
 
 
 
now i want to use php script to read that list.txt file, and put the data in
an array, is there any simple way i could do that ? 
 
 
thanks 


Re: [PHP] File question

2003-10-01 Thread - Edwin -
Hi,

I'm no "genius" ;) but...

"ketvin" <[EMAIL PROTECTED]> wrote:

> Dear geniuses,
> 
> 
> A simple question here, i have a file, says, list.txt 
> 
> it is a simple text file and simple field like:
> 
> aa , bb , cc , dd
> 
> now i want to use php script to read that list.txt file, and put the
> data in an array, is there any simple way i could do that ? 
> 

...maybe you're looking for this:

  http://www.php.net/fgetcsv

Or, just check the other (file) functions here:

  http://www.php.net/manual/en/ref.filesystem.php

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



[PHP] File question

2003-09-30 Thread ketvin



Dear geniuses,
 
 
A simple question here, i have a file, says, 
list.txt 
 
it is a simple text file and simple field 
like:
 
aa , bb , cc , dd
 
 
 
now i want to use php script to read that 
list.txt file, and put the data in an array, is there any simple way i could do 
that ? 
 
 
thanks 
___

This mail is protected by Silicon Communications S/B

The information contained in this message maybe confidential and protected from 
disclosure. If you are not the intended recipient of this message,  please delete this 
message immediately. You are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited.  


~~~This email has been scanned by our anti-virus system. For precaution, please make 
sure you scan every attachment in this email. Please use at your own risk. Thank you. 
:) Mailadmin~~~ 
___

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

RE: [PHP] File Question

2002-08-08 Thread Maxim Maletsky

Ray,

__FILE__ is the constant (there's also __LINE__) that is defined right
within the file, so its value cannot be modified.

Look up here:
http://www.php.net/manual/en/language.constants.php



Sincerely,

Maxim Maletsky

PHP Beginner
www.phpbeginner.com


> -Original Message-
> From: Ray Hunter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 08, 2002 10:26 PM
> To: PHP GEN
> Subject: Re: [PHP] File Question
> 
> I guess my question is does PHP support additional macros like this?
> 
> 
> .: B i g D o g :.
> 
> 
> - Original Message -
> From: "B i g D o g" <[EMAIL PROTECTED]>
> To: "PHP GEN" <[EMAIL PROTECTED]>
> Sent: Thursday, August 08, 2002 2:23 PM
> Subject: [PHP] File Question
> 
> 
> > I have been looking all over the manual and I have not found
anything
> for
> "
> > __FILE__ " does anyone know where I can get more info on its use in
PHP?
> >
> >
> > .: B i g D o g :.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



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




Re: [PHP] File Question

2002-08-08 Thread Ray Hunter

I guess my question is does PHP support additional macros like this?


.: B i g D o g :.


- Original Message -
From: "B i g D o g" <[EMAIL PROTECTED]>
To: "PHP GEN" <[EMAIL PROTECTED]>
Sent: Thursday, August 08, 2002 2:23 PM
Subject: [PHP] File Question


> I have been looking all over the manual and I have not found anything for
"
> __FILE__ " does anyone know where I can get more info on its use in PHP?
>
>
> .: B i g D o g :.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


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




[PHP] File Question

2002-08-08 Thread B i g D o g

I have been looking all over the manual and I have not found anything for "
__FILE__ " does anyone know where I can get more info on its use in PHP?


.: B i g D o g :.


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