OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Sun Oct 07 2001 - 06:09:44 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 7 Oct 2001 11:09:44 -0000 Issue 920

    Topics (messages 70257 through 70281):

    Re: phpdoc designer wanted
            70257 by: Andrew Brampton
            70278 by: Hojtsy Gabor

    Re: need help for php and C langauge
            70258 by: Richard Lynch

    Re: Delete element from an array (PHP3)
            70259 by: Richard Lynch

    Re: Change linux password using php
            70260 by: Evan Nemerson

    Re: Problem assigning url like path/script.php/argument
            70261 by: Emile Bosch

    How to read a text file with variable line length?
            70262 by: Carlos Fernando Scheidecker Antunes
            70274 by: Richard Lynch

    ZIPing and UnZIPing files with PHP.
            70263 by: Carlos Fernando Scheidecker Antunes
            70275 by: Richard Lynch
            70281 by: hassan el forkani

    $i++ + string??
            70264 by: Christian C.
            70266 by: 602e23
            70273 by: Richard Lynch

    Upgrade Issues
            70265 by: Evan

    Re: hi whats wrong with this code
            70267 by: Richard Lynch

    Re: Dynamic Forms and Arrays
            70268 by: Richard Lynch

    Re: $HTTP_SESSION_VARS invisible in a function with register_globals=Off
            70269 by: Richard Lynch

    Re: Naming image generated by ImageJPEG()
            70270 by: Richard Lynch

    Re: probs with exec(), system() etc... [again]
            70271 by: Richard Lynch

    Re: creating images to files
            70272 by: Richard Lynch

    Referencing sequentially numbered variables
            70276 by: GF
            70277 by: Rasmus Lerdorf

    All Chinese fabrics & their producers
            70279 by: prhx.hichina.com

    change word in a file
            70280 by: Alawi Albaity

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    Just like to say that the design looks nice & clean to me

    You must report back to us when u are all done...

    Andrew
    ----- Original Message -----
    From: "Hojtsy Gabor" <gobaphp.net>
    To: <php-generallists.php.net>
    Sent: Saturday, October 06, 2001 8:28 PM
    Subject: [PHP] phpdoc designer wanted

    > Hi!
    >
    > I would like to ask somebody to help us out to design a really
    > cool interface for the Windows HTML Help version of the PHP manual.
    >
    > There is an absolutely alpha stage plan currently up there
    > at http://www.goba.hu/chm_proto.chm The design was made by me.
    > The dropdown menus are made with HierMenus, the icons are from
    > a desktop theme created by a person named Copland.
    >
    > I am not satisfied with the design, and I can only be satisfied
    > with a real cool professional one, I am unable to produce.
    >
    > There are many cool plans about the CHM version. A list
    > can be seen there at the phpdoc list archive:
    > http://marc.theaimsgroup.com/?l=phpdoc&m=100177061800667&w=2
    >
    > The programming is on the way, but a designer is wanted
    > here to help out. Full credit will be given to the person,
    > who can make a cool professional design for the CHM version.
    >
    > Thanks in advance for any help in making the best help
    > system for the best web programming language on the planet.
    >
    > Goba [from te phpweb and phpdoc team]
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > For additional commands, e-mail: php-general-helplists.php.net
    > To contact the list administrators, e-mail: php-list-adminlists.php.net
    >
    >

    attached mail follows:


    > Just like to say that the design looks nice & clean to me
    > You must report back to us when u are all done...

    But I don't like the design. IMHO it is quite unprofessional...
    It bear the marks of an amateur designer (me). And I don't
    like the graphics result...

    Goba [from te phpweb and phpdoc team]

    attached mail follows:


    You can add your own modules easily enough.

    Read the last half of one of Rasmus' most recent talks on
    http://conf.php.net

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: bhavin panchal <bhavinrndinfo.com>
    To: <ceol-i-e.com>
    Cc: <php-generallists.php.net>
    Sent: Saturday, October 06, 2001 1:18 AM
    Subject: need help for php and C langauge
    

    > > Dear Friends, > > I got your email address from http://new.php.net > > I am working as php programmer in one of the company of india. > > and my problem is i want to use my own functions which are written in C Programming language in to my php codes. > is it possible or not kindly let me know what to do if i want to use other language functions in php kindly Help me > > > thanking you, > > bhavin >

    attached mail follows:


    It's a known issue, but I could have sworn there was an easy work-around...

    Try checking out what the value is, if isset() works properly, or if list/each works right.

    *SOME* combination of code is safe cross-platform, IIRC...

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: John Steele <overlordvisionww.com>
    To: Richard Lynch <ceol-i-e.com>; <php-generallists.php.net>
    Sent: Saturday, October 06, 2001 6:04 AM
    Subject: Re: [PHP] Re: Delete element from an array (PHP3)
    

    > Richard, > > Unfortunately unset() isn't working for this on two different versions of PHP3 that I've tried. It seems the element is empty, but the reference is still there. Something seems to have changed in PHP4 when passing a multi-dimensioned array to a function and calling unset() on an element... > > >unset() should work... > > > >There were (beta?) versions where it would leave behind some detrius, but > >IIRC, you were safe if you used list/each... > > > >> In PHP4, unset($myarray['3']['someindex'}) removes this element (inside > >a class function passed $myarray). I need to do the same for PHP3 - what is > >the simplest way to accomplish this? > >> > >> I guess I'm looking for a function that supports PHP3 or PHP4, say: > >> > >> function unset_arr ($array) { > >> if (phpversion() < 4) > >> // get rid of the array element here... > >> else > >> unset ($array); > >> } > >> > >> I'm assuming that I will have to do some shuffling of the array, and > >possibly return a new array with that element missing? > >> > >> Thanks for any help on this, > >> John > > -- > /* SteeleSoft Consulting John Steele - Systems Analyst/Programmer > * We also walk dogs... PHP/MySQL/Linux/Hosting - jsteelewriteme.com > * http://www.steelesoftconsulting.com > */

    attached mail follows:


    Yeah, it is my understanding that Mandrake is based on Redhat. The algorithm used, according to john the ripper, is FreeBSD MD5 (i guess they have their own version of it...) There are different salts for each username (which i am guessing would be the username since if you change the username in the shadow file and leave the password you can't login- *DON'T USE THE ROOT ACCOUNT TO TEST THIS!!!*). I'll keep working on it as long as i find it interesting.

    On Friday 05 October 2001 05:02 pm, you wrote: > Thanks for the replies, > Don't worry about the Mandrake specific stuff; I'm on Redhat. although it > seems to the same as what you're talking about; > > My shadow is in format: > fakeaccount:$1$5PXJfLSQ$LSxsnZfHzBrkDdT2NZefK.:11600:0:99999:7::: > > (the password was 'password') > > I probably would not have the .php script make the changes; it would need > to run as root and I can't have that. I would make a simple C program which > would go 'changepwd <username> <newpasswordencrypted>' as i said before. > this means i can have that run as root, and -know- all it will do is change > passwords. Yeah I would probably put the requirement to put in old password > as well, although to get to that screen you need to get there anyway ... > > Evan Nemerson wrote: > > Here's what I got from the mandrake security mailing list so far: > > > > > > > > > > This is strange. I was just going to write a mail to this list about > > this. it seems that /etc/shadow accepts both crypt passwords (the short > > passwd) and MD5 passwords. (34 characters with $ and slashes does seem > > to me like md5). I found this because I was transferring users between > > servers so I copy and pasted the passwords and it worked on both > > occasions. very strange... > > > > Bye > > -- > > Haim > > > > On Thu, Oct 04, 2001 at 11:07:57PM -0700, Evan Nemerson wrote: > >> Does anyone know what algorithm is used on the passwords in the > >> /etc/shadow or /etc/passwd files? All the documentation I can find says > >> crypt is used with two characters of salt which should output 13 > >> characters. However my shadow file shows 34 character strings with > >> dollar signs and slashes (shouldn't the output be alpha-numeric???). I > >> already checked md5- nope. > >> > >> Please reply to my e-mail address since i don't subscribe to this list > >> (sorry, but i get enough php-general to keep me busy). > >> > >> > >> Thanks in advance, > >> Evan Nemerson

    attached mail follows:


    the solution for this is quite simple, you have to chekc out the article on hotscripts.com

    search in the PHP library for PHP Snurk, it does things like THE URL IS: http://www.hotscripts.com/Detailed/3746.html

    blah.php?test=12

    becomes:

    blah.php/test/12

    OR

    blah.php/12

    Good luck, Emile Bosch

    I hope that that is waht you mean "Pierre-Yves" <pylemsympatico.ca> schreef in bericht news:006601c13f73$bccac9c0$0100a8c0py... Hello,

    I am trying to use a URL like path/script.php/argument and later retrieve argument using $PATH_INFO. The problem is that all image on my page are broken and the css and javascript file are not found when I use an URL like this.

    Any idea why ?

    py

    p.s. I am trying to avoid ?arg=value on this file...

    attached mail follows:


    Hello all,

    I would like to ask the following help concerning text files.

    I've got column delimited text files and I need to read each line/record to populate a MySQL table.

    I understand that when you use fread($file, $length) you must specify the length of each line. The problem is that the last column is a description column and it can be from zero chars to 50 chars long. Because of that the length of each line is not a fixed number.

    What to do in a situation like this?

    Thanks in advance,

    Carlos Fernando Scheidecker Antunes.

    attached mail follows:


    http://php.net/fgets

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: Carlos Fernando Scheidecker Antunes <nandoantunes.eti.br>
    Newsgroups: php.general
    To: <php-generallists.php.net>
    Sent: Sunday, October 07, 2001 9:19 PM
    Subject: How to read a text file with variable line length?
    

    > Hello all, > > I would like to ask the following help concerning text files. > > I've got column delimited text files and I need to read each line/record to > populate a MySQL table. > > I understand that when you use fread($file, $length) you must specify the > length of each line. The problem is that the last column is a description > column and it can be from zero chars to 50 chars long. Because of that the > length of each line is not a fixed number. > > What to do in a situation like this? > > Thanks in advance, > > Carlos Fernando Scheidecker Antunes.

    attached mail follows:


    Hello all,

    I am wondering if there's any PHP lib to unzip and zip ZIP files on a UNIX/Linux enviroment.

    How to ZIP and unZIP files using PHP?

    Can anyone point me the way on this?

    Thanks in advance,

    Carlos Fernando Scheidecker Antunes.

    attached mail follows:


    I think http://php.net/zlib can do this...

    If not, you can use http://php.net/exec to execute pkzip or gzip or whatever it is that will do what you want.

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: Carlos Fernando Scheidecker Antunes <nandoantunes.eti.br>
    Newsgroups: php.general
    To: <php-generallists.php.net>
    Sent: Sunday, October 07, 2001 9:21 PM
    Subject: ZIPing and UnZIPing files with PHP.
    

    > Hello all, > > I am wondering if there's any PHP lib to unzip and zip ZIP files on a > UNIX/Linux enviroment. > > How to ZIP and unZIP files using PHP? > > Can anyone point me the way on this? > > Thanks in advance, > > Carlos Fernando Scheidecker Antunes.

    attached mail follows:


    just a guess if you can do that from the shell then you should be able to do that from your php script exec (gzip.......) regards

    At 04:21 08/10/01, Carlos Fernando Scheidecker Antunes wrote: >Hello all, > >I am wondering if there's any PHP lib to unzip and zip ZIP files on a >UNIX/Linux enviroment. > >How to ZIP and unZIP files using PHP? > >Can anyone point me the way on this? > >Thanks in advance, > >Carlos Fernando Scheidecker Antunes. > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Hello :c)

    Can any one explain to me why this is not working?? $i = 1; while ($i <= 10) { echo "$i++ <br>"; } i is staying set to 1 (and it never ends :c)

    but this works: $i = 1; while ($i <= 10) { print("$i <br>"); $i++;

    }

    Thanks

    --
    Merci
    Christian Charette
    www.charetx2.com
    

    attached mail follows:


    >>>>> "Christian" == Christian C <cc.com> writes:

    Christian> Hello :c) Christian> Can any one explain to me why this is not working?? Christian> $i = 1; Christian> while ($i <= 10) { Christian> echo "$i++ <br>"; Christian> } Christian> i is staying set to 1 (and it never ends :c)

    how about this: $i = 1; while ($i <= 10) { echo $i++ . " <br>"; }

    attached mail follows:


    > Can any one explain to me why this is not working?? > $i = 1; > while ($i <= 10) { > echo "$i++ <br>"; > } > i is staying set to 1 (and it never ends :c) > > but this works: > $i = 1; > while ($i <= 10) { > print("$i <br>"); > $i++; > > }

    Embedding $i inside a string is a convenience, but you can't do mathematicaly operations inside a string...

    How, for example, is PHP supposed to know you actually want $i++ to be an increment instead of just ASCII "artwork" or output like you might do:

    echo "$i+++++++++++++++++++++++$i<BR>\n";

    You can do this, though:

    echo $i++, "<BR>";

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    

    attached mail follows:


    I recently upgraded to PHP 4.06 from 4.02 and have encountered another possible problem.

    I create a link to the mysql database with mysql_connect, all future querys opt out of the link identifier with: mysql_db_query([db name], [query]); If the script makes too many querys, somewhere around 5 (I'm not sure), the link is dropped and the mysql_db_query command appears to try and re-establish the link. and the script returns the error:

    Warning: Access denied for user: 'nobodylocalhost' (Using password: NO) in /home/httpd/html/distsupp/admin/security.inc on line 61

    Warning: MySQL Connection Failed: Access denied for user: 'nobodylocalhost' (Using password: NO) in /home/httpd/html/distsupp/admin/security.inc on line 61

    Warning: MySQL: A link to the server could not be established in /home/httpd/html/distsupp/admin/security.inc on line 61

    This line of code is: $result = mysql_db_query($distadmdb, $query) or error(mysql_error());

    This didn't happen in 4.02. In fact, if I change back to 4.02 and reload the same page, I don't get this problem. Is this behavior to be expected, is there a configuration option that I should look for that sets the max querys per link?

    attached mail follows:


    > <? > $conn = db_connect();

    This didn't work, and you have no error-checking, so you didn't notice, and march blindly forward over the cliff...

    For a production server, a simple and reasonably safe thing to do would be:

    $conn = db_connect() or error_log(__FILE__ . ' ' . __LINE__ . ': ' . mysql_error());

    You'll have to:

    tail /path/to/apache/error_log

    The path could easily be /etc/httpd/logs or /usr/local/apache/logs/ or, well, just about anything if you worked at it when you compiled Apache...

    You could also change php.ini to change where errors are logged if you want to pull them out from Apache's errors...

    > if (empty($HTTP_POST_VARS["HelpDeskID"])) > { > $CurrentID=1; > } > else > { > > $CurrentID=$HTTP_POST_VARS["HelpDeskID"]; > } > > $RSHelpDesk_query=mysql_query(("select QorA, Message from CSHelpDeskEntries where " > ."HelpDeskID = ".$CurrentID),$conn);

    Here, $conn isn't any good, and you're trying to use it, but even if it was, if your SQL was wrong, you have no error checking and will walk off another cliff.

    Also, the concatenation (.) and inner ()'s are kinda silly.

    > $RSHelpDesk=mysql_fetch_array($RSHelpDesk_query); > > if($RSHelpDesk["QorA"] == 'A') { > header("Location: http://www.thegardenzone.co.nz/login/wizardanswer.php?HelpDeskID=.$CurrentID ", false); > } > > $RSItems_query = mysql_query(("select Response, GoToID from CSHelpDeskEntryItems where " > ."HelpDeskID = ".$CurrentID),$conn); > > $RSItems = mysql_fetch_array($RSItems_query); > > ?> > > i get this error message arguement supplied not a valaid resource > > thanks in advance from new zealand

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    

    attached mail follows:


    > I need some help with using arrays in a form. I am currently creating a > survey. The first page allows the user to select their skills from a list. > The second page generates an array and textboxes for each skill that was > selected on the first page. > For example, page 2 of user 1's form may have $skill_1, $skill_2 and > $skill_5 as arrays (with textboxes) and user 2 may have $skill_8, $skill_9 > and $skill_20. > > I would like to create an array that contains all of the user's arrays when > the form is submitted (i.e. $user_arrays=array($skill_1, $skill_2, > $skill_5) for user 1 and $user_arrays=array($skill_8, $skill_9, $skill_20) > for user 2. > > I have tried different ways of doing it, like creating the $user_array at > the same time I create the skills arrays, but when the form is submitted the > arrays are empty.

    You will lose a lot less hair if you do it the way the FAQ suggests:

    http://php.net/FAQ.php

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    

    attached mail follows:


    Upgrade, I think...

    Check the ChangeLog.

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: John K. Hohm <jhohmacm.org>
    Newsgroups: php.general
    To: <php-generallists.php.net>
    Sent: Saturday, October 06, 2001 10:05 AM
    Subject: $HTTP_SESSION_VARS invisible in a function with
    register_globals=Off
    

    > I am using PHP 4.0.5 on Debian GNU/Linux with register_globals=Off. > > I cannot gain access to $HTTP_SESSION_VARS from a function, no matter what > I try. This is not the case for other global associative arrays. For > example, this page: > > <? > function setup () > { > global $HTTP_SESSION_VARS, $X; > session_start(); > ++$HTTP_SESSION_VARS['a']; > ++$X['a']; > } > setup(); > ?><html><body>$HTTP_SESSION_VARS['a']=<?=$HTTP_SESSION_VARS['a']?> > <br>$X['a']=<?=$X['a']?> > </body></html> > > gives this output every time: > > $HTTP_SESSION_VARS['a']= > $X['a']=1 > > If I move the ++$HTTP_SESSION_VARS['a']; line to just below the call of > setup(), it works as expected, incrementing that value each reload. > > Why is the real $HTTP_SESSION_VARS invisible from inside a function?!? >

    attached mail follows:


    > This is the script file image.php: > <?php > Header("Content-type: image/jpeg"); > $im = imagecreatefromjpeg("picture.jpg"); > ImageJPEG($im); > ImageDestroy($im); > ?> > > It's called by index.html: <img src="image.php" ... > > > Problem: "Save picture as" results filename image.jpg (IE4) > How can I name the file?

    There are many different ways, to cover all the browsers.

    Some Content-disposition: headers, with or without filename= and, for one minor version of IE, you need to do this:

    <img src="image.php/image.jpg" ...>

    It looks goofy, but Apache and PHP will ignore it while IE will insist on using the URL as the filename regardless of what headers you send...

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    

    attached mail follows:


    news://news.php.net

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: Christian Dechery <cdecheryeasynet.com.br>
    Newsgroups: php.general
    To: <php-generallists.php.net>
    Sent: Saturday, October 06, 2001 1:15 PM
    Subject: probs with exec(), system() etc... [again]
    

    > I posted yesterday a message about some probs with exec() system() etc.. > > but I lost all the emails coming from the list... and would like that - if > someone responded - to send it again to me, thanks... >

    attached mail follows:


    You shouldn't have a space between $ and im, and you would need to give write access to 'pic.png' to either the world or at least to the 'nobody' user.

    That's a pretty big security problem, though...

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: Robert Lenne <robert.lennehyperisland.se>
    Newsgroups: php.general
    To: <php-generallists.php.net>
    Sent: Saturday, October 06, 2001 1:39 PM
    Subject: creating images to files
    

    > > Hi. > > I'm have a problem creating images to files. I can create and display images > with this code: > > <? > Header("Content-type: image/png"); > $im = imageCreateFromPng("image.png"); > ImagePng($im); > ImageDestroy($im); > ?> > > But i want to save the image to a file. I have tried the follwing code but I > get "Warning: imagepng: unable to open 'pic.png' for writing in > /public_html/imgtest.php on line 11". > > <?php > $im = imageCreateFromPng("image.png"); > ImagePNG($ im,"pic.png"); > ImageDestroy($im); > ?> > <img src="pic.png" border=0> > </body> > </html> > > (Line 11 is "ImagePNG($ im,"pic.png");") > > Anyone? > > Robert >

    attached mail follows:


    I have 13 variables, col1-col13. Is there a way, other than making an array, to address these variables in a loop? In some languages you are allowed to reference these as if they were an array, i.e., col1 could be addressed as col[1]. This does not seem to be the case with PHP. What I would like to do, would be analagous to:

    for ($i=1;$1<14;$i++) { $header .= $col[$i]; }

    This does not work, but it demonstrates what I hope to be able to do. Is this possible?

    attached mail follows:


    ${"col$i"}

    On Sat, 6 Oct 2001, GF wrote:

    > I have 13 variables, col1-col13. Is there a way, other than making an > array, to address these variables in a loop? In some languages you are > allowed to reference these as if they were an array, i.e., col1 could be > addressed as col[1]. This does not seem to be the case with PHP. What I > would like to do, would be analagous to: > > for ($i=1;$1<14;$i++) { > $header .= $col[$i]; > } > > This does not work, but it demonstrates what I hope to be able to do. Is > this possible? > > > >

    attached mail follows:


    Dear Sir/Madam

    Re.A CD of All Chinese fabrics and their Producers

    If you are interested in getting a CD (free of Charge) of all Chinese fabrics and its suppliers, please give an email message to luojwmail.jxptt.zj.cn with "YES" in subject line and detailed address/business/contact person/telephone No.in body, we'll send the CD to you by airmail as soon as possible.

    We were told that you are in the business of fabrics, if you are not interested in it, please no reply, we'll never send message to you again.

    Best regards G.X.James ================================================================= ±¾Óʼþ²ÉÓÃ--¾øÃܵµ°¸--·þÎñÆ÷Èí¼þ·¢ËÍ¡ª¡ªÎÞÐèSMTPÖм̸ßËÙȺ·¢£¬¿ì¼«ÁË! Ö÷Ò³:http://hongjian.126.com ¾µÏñ:http://hongjian.126.com et ×¢Òâ:±¾Èí¼þ½öÏÞÓںϷ¨ÓÃ;£¬Èç¹û·¢ËÍÀ¬»øÓʼþÔì³Éºó¹û¸ÅÓÉʹÓÃÕß×ÔÐге£!

    attached mail follows:


    I have file and name it file.txt

    the file data is

    ----
    hello ho are vistor 
    i love the vistor that visit my site 
    

    ---

    now i want to change a word in my data this word is : vistor

    how can i do this ??

    __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1