Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread B i g D o g
Some great articles for sockets...might help out... http://www.phpbeginner.com/columns/demitrious/sockets http://www.phpbeginner.com/columns/demitrious/sockets-connection B i g D o g - Original Message - From: Josh Levine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June

[PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
I'm using UNIX, not windows, so there is no php.ini in UNIX. I only use the ./configure command which is -- snip -- ./configure --with-apache=../apache_1.3.26 --with-ibm-db2=/usr/lpp/db2_06_01 --with-openssl=../openssl-0.9.6d --with-mcrypt=../../lib --without-mysql

RE: [PHP] Re: PHP does not work??

2002-06-26 Thread Jay Blanchard
[snip] I'm using UNIX, not windows, so there is no php.ini in UNIX. [/snip] Look here /etc/apache/php.ini-dist or /etc/apache/php.ini. There is an ini file for PHP, and you may have to rename php.ini-dist to php.ini. Once done, look for ; You should do your best to write your scripts so that

[PHP] FOXED - no success in replacing file content using fgets/fputs and str_replace

2002-06-26 Thread Naintara Jain
I need to replace some html code in about 100 files. Wanted to do this through code, and am using fgets() to get a line at a time from the file, this string is saved in variable $line. Then I check for the occurrence of the search string in $line using strpos(). If found, I echo some

RE: [PHP] FOXED - no success in replacing file content using fgets/fputs and str_replace

2002-06-26 Thread Leotta, Natalie (NCI/IMS)
Some editors let you find/replace in files in a certain folder. That might be easier. I know UltraEdit let you do this and it only takes a few minutes. To me, that is much less labor-intensive than trying to write code to do it, unless you're trying to learn things while you do it. :-)

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:13 PM, Scott Fletcher wrote: I'm using UNIX, not windows, so there is no php.ini in UNIX. Sorry, don't take offense if I ask if you've been living under a rock -- I only use Linux, and there is definitely a php.ini file that you use. I put mine in

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
I didn't know that. Thanks for the info. I think it would be best that I not use php.ini. I can write the script to register the variable. What would be a demo script that would work? I'm having a little trouble understanding that on the php.net website. Most of the script that use global

[PHP] passing variable arguments from select

2002-06-26 Thread Haddad Said
Hi, i am having a problem passing variables from a drop down menu in a form; from action=test.php action=post select name=example option selected one/option option two/option /form So how will the values of $example be assigned in test.php? THanks -- PHP General Mailing List

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
Hi Erik! This is my 2nd posting, not sure what happened to my first one. Sorry about not seeing your previous posting before. Windows crashed on me. My fault. I didn't know we can use php.ini in UNIX or Linux. Cool! Haven't been using it on UNIX for a long time. I think I can leave it out

[PHP] include_module()

2002-06-26 Thread Anil Garg
Hi, Is include_module() a predefined functioin of php. I couldnt find it in documentaion. Is there any way i can view all the functions availabe together?? thanks anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] redeclaring functions

2002-06-26 Thread Taylor York
I am having a problem with two scripts that use the same function name. The two functions do the exact same thing...but when the include files are called, the second file recieves a redeclare error. Suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Apache Directives for php as module

2002-06-26 Thread Jason G Trusty
Hello, I read the support pages at php.net regarding php.ini. Am I correct in the assumption that so long as you have php compiled as a module for apache that you can than use apache style directives to override the default php.ini? Furthmore, are these override directives allowed in a vhost

[PHP] Re: Synchronize FTP sites with PHP?

2002-06-26 Thread Philip Hallstrom
I'm sure it's been done, but you might first look at wget and save some time. On Wed, 26 Jun 2002, Jeff Lewis wrote: We're using a FTP Control program here but it's very old and I'm wondering if anyone has used PHP to sync up FTP sites, to connect to a remote server and check if there is

[PHP] Re: Passing Form Values

2002-06-26 Thread Taylor York
I would suggest posting the vars to a page, which will open up a new javascript window, then .write() the values into the javascript window from the main page. OpenWindow = window.open(, newWindow, height=400, width=300,toolbar=yes,scrollbars=yes,menubar=yes);

[PHP] Re: redeclaring functions

2002-06-26 Thread Taylor York
And sorry but no, I can't just delete one of the functions...these scripts are used in many other places by themselves without the other..so script A has to be able to have this function on its own page, and so does script B on its own page. Taylor York [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] PHP ob_gzhandler, IIS 4.0, and .js/.css files

2002-06-26 Thread TSAI,EDWARD (HP-Cupertino,ex1)
I am looking for ways to improve performance for delivering content from a couple of CDSes in a Vignette solution. (which get as large as 100kb), so I am looking into HTTP compression (which looks like it can compress our files down to 12kb). I found a few commericial vendors such as Pipeboost

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Hurring
There is no feasable way to hide data being submitted to your website. Anything that a user's browser can send, the user can telnet to port 80 of your server and spoof. You can try POSTing data, which will not appear in the URL, but dont even waste time trying to hide submitted data, rather,

RE: [PHP] redeclaring functions

2002-06-26 Thread Andrew Chase
http://www.php.net/manual/en/function.include-once.php http://www.php.net/manual/en/function.function-exists.php HTH, -Andy -Original Message- From: Taylor York [mailto:[EMAIL PROTECTED]] I am having a problem with two scripts that use the same function name. The two functions do

[PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread php
tecnically whats the diffrance if I do: require(http://localhost/image.gif;); or require(http://www.domain.com/image.gif;); ? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] trans-id enabled not working?

2002-06-26 Thread Jerry Artman
I am experiencing a problem with NN6.2. When I link to a url from a popup the session id is not being appended to the url. The destination page check session variables and redirects to an error page. If I add the query portion ?PHPSESSID=,?php session_id() ? to the link string it works.

Re: [PHP] passing variable arguments from select

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:51 PM, Haddad Said wrote: Hi, i am having a problem passing variables from a drop down menu in a form; from action=test.php action=post select name=example option selected one/option option two/option /form You should do it like this (be sure to

Re: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 03:19 PM, [EMAIL PROTECTED] wrote: tecnically whats the diffrance if I do: require(http://localhost/image.gif;); or require(http://www.domain.com/image.gif;); ? The first one requires the file at localhost/image.gif, and the second one requires the file

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:56 PM, Scott Fletcher wrote: I tried that and it worked. I have one question, what about the hyperlink? People will see the option in the hyperlink. You know. Is there a way around it to hid that in the hyperlink? If by hyperlink you mean the URL

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 02:37 PM, Scott Fletcher wrote: I didn't know that. Thanks for the info. I think it would be best that I not use php.ini. On the contrary, I think it would be best if you read through it and read about it at http://www.php.net/manual/en/configuration.php

[PHP] Java Pop UP...

2002-06-26 Thread Doug Coning
Hi everyone... I have a php page that return rows from a database. I then have an href link to the individual thread as such: a href='73things_thread.php?threadID=.$row-postid.' target='_blank'. This works, it opens a new window which has the detailed information needed. However, how would I

Re: [PHP] diffrance : require(); a file from localhost and from a domain.

2002-06-26 Thread php
I think thats more than obvious Erik.. I asked for the tecnical diffrance. Anybody? On Wednesday, June 26, 2002, at 03:19 PM, [EMAIL PROTECTED] wrote: tecnically whats the diffrance if I do: require(http://localhost/image.gif;); or require(http://www.domain.com/image.gif;); ?

Re: [PHP] Re: PHP does not work??

2002-06-26 Thread Scott Fletcher
Um, alright, I'll just leave the code in the hyperlink the way it is. It is not possible to use the form or post of some sort for the hyperlink. form will work with the submit button where we can use post or hidden. Hyperlink meant words or sentences that have underline underneath it, when

[PHP] large tables scroll down:(

2002-06-26 Thread Anil Garg
Hi, for viewing long tables. when i say SELECT * FROM abc i miss the upper entries of the table as they scroll down. is there something by which i can view a table page by page(as | more in unix) thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Java Pop UP...

2002-06-26 Thread Richard Baskett
a href=javascript:void() onclick=window.open('73things_thread.php?threadID=?=$row-postid?','Threa d','width=300,height=255,resizable,scrollbars,status=yes') onmouseover=window.status='Gets rid of javascript void' onmouseout=window.status=''Link Text/a Rick I haven't failed, I've found 10,000

[PHP] New Newsgroups

2002-06-26 Thread Peter
Does anyone else out there use Outlook Express to get the posts from this newsgroup? Yesterday a dialog popped up to say there were new newsgroups (php.docs.de etc), I acknowledged this but the same message came up again just now! Did this happen to anyone else or was it just me?! -- PHP

Re: [PHP] Java Pop UP...

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 03:37 PM, Doug Coning wrote: I have a php page that return rows from a database. I then have an href link to the individual thread as such: a href='73things_thread.php?threadID=.$row-postid.' target='_blank'. This works, it opens a new window which has

Re: [PHP] large tables scroll down:(

2002-06-26 Thread Jerome Houston
there's a couple problems with your question: we don't know what tool you're using, what database you're you're using, and most importantly, this is not a PHP question. please use a hammer for a nail, and a screwdriver for a screw. thanks. From: Anil Garg [EMAIL PROTECTED] Hi, for viewing

Re: [PHP] New Newsgroups

2002-06-26 Thread Greg Donald
On Wed, 26 Jun 2002, Peter wrote: Does anyone else out there use Outlook Express to get the posts from this newsgroup? Yesterday a dialog popped up to say there were new newsgroups (php.docs.de etc), I acknowledged this but the same message came up again just now! Did this happen to anyone else

Re: [PHP] diffrance : require(); a file from localhost and from adomain.

2002-06-26 Thread Rasmus Lerdorf
That is the technical difference. Both will make HTTP requests and issue a GET request to fetch the image file. One opens a connection to localhost (normally the loopback at 127.0.0.1) and the other opens a connection to www.domain.com (at whatever ip that resolves to) -Rasmus On Wed, 26 Jun

Re: [PHP] large tables scroll down:(

2002-06-26 Thread Anil Garg
sorry folks by mistake i sent it to the wrong list. bye - Original Message - From: Jerome Houston [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 4:02 PM Subject: Re: [PHP] large tables scroll down:( there's a couple problems with your

Fw: [PHP] New Newsgroups

2002-06-26 Thread Rick Emery
Somewhat related to this discussion. There are some posters to this email list that appear as Newsgoup entries in my OutLook Express. Most posters, however, are identified as mail, not news postings. Peter is one of those that appears as a News post. I've looked at the headers of his

Re: Fw: [PHP] New Newsgroups

2002-06-26 Thread Rasmus Lerdorf
People can post to this group from nntp://news.php.net On Wed, 26 Jun 2002, Rick Emery wrote: Somewhat related to this discussion. There are some posters to this email list that appear as Newsgoup entries in my OutLook Express. Most posters, however, are identified as mail, not news

[PHP] casting user-defined objects

2002-06-26 Thread Erik Price
I have been playing around and am unable to explicitly cast an object instance from one user-defined type to another, using the traditional type-casting syntax nor with the settype() function. I feel like I should mention this as an annotation in the man page, but I was hoping someone could

Re: [PHP] Session Events

2002-06-26 Thread Al Baker
Well, since HTTP is stateless you can really say that this event happens in either of two places: - The next page accessed by the user with that session ID - As an event in the backend. If it's the first, I would recommend just having a lib_session that verifies a timer or whatever and then

[PHP] Advantage of CURL over using LYNX

2002-06-26 Thread Dennis Moore
I need to grab some data from a CGI program running on a different server. I have been toying around executing LYNX using the passthru command. I seem to be able to grab the data just fine using lynx -source -preparsed $URL. I've started reading about CURL. I am wondering if it is worth

Re: [PHP] debugger

2002-06-26 Thread B i g D o g
There are some IDE's that support debugging or you can just use the parser. It will tell you the problem and spit out a warning or error depending on how you have your php.ini set up. I usually have display_errors on so that I can use that as my debugger. Then when I go on a live server I have

Re: [PHP] PHP sockets/daemon problem

2002-06-26 Thread Josh Levine
Thanks! Those were a huge help...turns out the problem was with the daemon and not my code. --Josh Levine B I G D O G wrote: Some great articles for sockets...might help out... http://www.phpbeginner.com/columns/demitrious/sockets

Re: [PHP] Java Pop UP...

2002-06-26 Thread Dennis Moore
Don't you mean Javascript? I am not sure if I understand your question...but here goes... Your PHP code will be executed first at the server side. You can use PHP to include or write out your Javascript functions in the head of your page. From here you can execute your javascript normally.

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread David Freeman
Wouldn't you ultimately be better off moving most of this sort of thing into style sheets and then have the designers play with the style sheets instead? What if your designer wants to change from a two column table to a four column table. Or change the menu from a vertical

Re: [PHP] debugger

2002-06-26 Thread Anil Garg
hi thanx for ur mail. In fact i have to make changes in the code written by someone else. I want to use debugger to know the path in which the files are called. Which is the debugger for php? thanx anil - Original Message - From: B i g D o g [EMAIL PROTECTED] To: Anil Garg [EMAIL

[PHP] Gradients using GD

2002-06-26 Thread Anzak Wolf
After much pain and suffering I figured out how to do dual color Gradients using GD in an oval. While it is not as clean as I'd like it works and can be tweaked as needed. In the process I also found some very cool Gradient effects that could be used as well. I'm currently working on

[PHP] Image GD Wizardry!

2002-06-26 Thread Shane
One would think that pulling binary data from a DB using the function imageCreateFromString would allow you to output that string to any format. (GIF JPEG PNG) or whatever is supported by your version of GD. But this code flakes out and creates no image if it reads from a binary file made by a

RE: [PHP] Image GD Wizardry!

2002-06-26 Thread Lazor, Ed
It sounds like you're describing the difference between data type and data format. In other words, jpg, bmp, and gif files are all binary data. What makes them unique is the format of that binary data, which is why it's necessary to specify the correct file extension to properly process the

[PHP] Floating point exception (8)

2002-06-26 Thread Devin Atencio
Dear PHP, I am not sure if this is the mailinglist I need to address but I recently installed Apache 1.3.26 (Unix) PHP/4.2.1 mod_perl/1.27 AuthMySQL/2.20 mod_ssl/2.8.9 OpenSSL/0.9.6a, running on FreeBSD 4.3-STABLE. I notice that in my error logs for Apache I see the following line every few

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Peter J. Schoenster
On 25 Jun 2002 at 17:40, Jean-Christian Imbeault wrote: Some of the issues are things like how to make it painless for both the designers and me if one day, out of the blue, a designers decides that the background colour should be changed, or the graphics changed. Or even worse the two

Re: [PHP] appending to XML file before closing tag

2002-06-26 Thread Brian White
rantmode Hey - if you read my post a little more carefully you would see that I was bemoaning the effective passing of *SGML*. I was on a nostaligia trip. I am well aware that SGML is a bit of a complicated beheamoth, but it you have a decent SGML parser ( such as Omnimark or SP) you could do

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Justin French
on 26/06/02 11:53 PM, Mark Gallagher ([EMAIL PROTECTED]) wrote: Theoretically this could still be done only with editing of the stylesheet. Of course, it's not that simple - Mozilla comes closest to decent browser support for that sort of radical change, and even it's not there yet. well,

[PHP] Another Pop-Up problem..

2002-06-26 Thread Doug Coning
Thanks all who have helped with my Javascript / PHP pop-up. I've got it to work now where it will pop up a window. However, now it returns the same record each time. So which ever record you click first, it will bring that window up for each item. How do I reset or clear out the value so that

Re: [PHP] Image GD Wizardry!

2002-06-26 Thread Dennis Moore
I think GIF support was removed from GD several releases ago due to licensing reasons... /dkm - Original Message - From: Shane [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 6:48 PM Subject: [PHP] Image GD Wizardry! One would think that pulling binary data

[PHP] Design Tips

2002-06-26 Thread David Redmond
Hi All, I'm about to put myself in the deep end by attempting to create an PHP app that will perform the role of a proxy server. The application has to perform the following based on the URL that the web client will be requesting. URL Requested: https://servername/id0001/ 'id0001' is a unique

[PHP] preg and Perl 6 (upcoming..not current preg handling)

2002-06-26 Thread Peter Thoenen
Anybody know if PHP 4.x (5.x?) will be sticking with Perl5 RegEx syntax for preg's or will it be changing to the new Perl6 RegEx syntax (which I really dislike but what can you do, Larry has spoken). If we do plan to move to Perl6 RegEx, please implement the P5 modifier -Peter

[PHP] Using COM to generate excel file - php version of vb Sheets(Report First page).Copy After:=Sheets(1)

2002-06-26 Thread Andrew Braund
Win2Kpro, PHP4.2.1, Apache 1.3.26dev I would like to make a copy of a sheet in an existing excel spreadsheet from within PHP using COM. I can open an existing .xls file and rename a sheet using; 8= $excel = new COM(Excel.Application) or die(Excel could not be started);

[PHP] base64_encode

2002-06-26 Thread Gerard Samuel
What other characters are possible from the output of base64_encode() except [A-Za-z0-9] ?? Thanks -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: redeclaring functions

2002-06-26 Thread John Holmes
And sorry but no, I can't just delete one of the functions...these scripts are used in many other places by themselves without the other..so script A has to be able to have this function on its own page, and so does script B on its own page. And sorry but no, you can't have two functions

RE: [PHP] PHP not working on Apache at XP Pro.

2002-06-26 Thread sonjaya
If you use win xp pro try use phptriad is working in my winbox , phptriads include = apache+mysql+php. You can download in sourceforge. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] base64_encode

2002-06-26 Thread Andrew Braund
Googling on ascii table base64 got me; http://ulla.mcgill.ca/arts150a/sample_exam.htm a nice little table with the base 64 characters (also got http://email.about.com/library/weekly/aa070201a.htm which discribes base64) So in answer to your question the extras look like + and /. 26+26+10+2=64

Re: [PHP] base64_encode

2002-06-26 Thread Gerard Samuel
Thanks Andrew Braund wrote: Googling on ascii table base64 got me; http://ulla.mcgill.ca/arts150a/sample_exam.htm a nice little table with the base 64 characters (also got http://email.about.com/library/weekly/aa070201a.htm which discribes base64) So in answer to your question the extras look

[PHP] closing a browser-window with php

2002-06-26 Thread nik crosina
hi news group my first post, so please be gentle ;-) my problem is that i have to open a browser page of specific size and coordinates from a macromedia director movie. but: the only call i can send from there is for a browser window without any attributes (so i can't control size or

Re: [PHP] closing a browser-window with php

2002-06-26 Thread Gerard Samuel
No, php do not open and close windows. But you can use php to echo javascript that will open and close windows... nik crosina wrote: hi news group my first post, so please be gentle ;-) my problem is that i have to open a browser page of specific size and coordinates from a macromedia

RE: [PHP] closing a browser-window with php

2002-06-26 Thread Peter
Nik, for that you will have to use JavaScript as PHP is server side only .. not Client side Cheers -Original Message- From: nik crosina [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 12:12 PM To: [EMAIL PROTECTED] Subject: [PHP] closing a browser-window with php

RE: [PHP] closing a browser-window with php

2002-06-26 Thread Martin Towell
use javascript... php can't interact w/ the browser unless you go through js or vbs so you'd do something like this: -- MM Page -- Start -- !-- content here -- !-- MM Object that opens window (New Win) -- -- MM Page -- End -- -- New Win -- Start -- script win = window.open(real_url,

Re: [PHP] Design Tips

2002-06-26 Thread Andrew Brampton
Not so long ago (well last week), I wrote a PHP proxy script which worked in the form: www.myserver.com/proxy/www.whatever.com/blah and it would request the page www.whatever.com/blah and then display it changing all the links on the page to point to my proxy script... The whole script took a

Re: [PHP] More on removing item from cart

2002-06-26 Thread Analysis Solutions
Hey Vicki: On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: I'm checking the cart structure by printing the following code inserted right after the if($save); line (is this the best way to check on the contents of an array?) while (list($key,$value) = each($cart)) { print

Re: [PHP] preg and Perl 6 (upcoming..not current preg handling)

2002-06-26 Thread Rasmus Lerdorf
We are using the PCRE library for this. I don't think there are any plans to drop the Perl5 syntax. On Wed, 26 Jun 2002, Peter Thoenen wrote: Anybody know if PHP 4.x (5.x?) will be sticking with Perl5 RegEx syntax for preg's or will it be changing to the new Perl6 RegEx syntax (which I

[PHP] Help and advice sought - search/replace

2002-06-26 Thread Jason Soza
Just looking for a pointer or functions I can use to do this... I have a spreadsheet with a couple thousand entries that I'll be using for populating a MySQL database. The spreadsheet has names listed in last, first - the database I'll be populating has separate fields for first and last names.

Re: [PHP] Advantage of CURL over using LYNX

2002-06-26 Thread Daniel Tryba
On Wed, Jun 26, 2002 at 05:59:00PM -0400, Dennis Moore wrote: I need to grab some data from a CGI program running on a different server. I have been toying around executing LYNX using the passthru command. I seem to be able to grab the data just fine using lynx -source -preparsed $URL.

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
There are a ton of template systems. Look here for performance benchmarks: http://www.phpinsider.com/benchmarks_phemplate Unfortunately pattemplate isn't tested so I don't know how it rates. I downloaded the scripts and added patTemplate to the mix. It's average, rating in the middle on

Re: [PHP] More on removing item from cart

2002-06-26 Thread Jason Wong
On Thursday 27 June 2002 10:52, Analysis Solutions wrote: Hey Vicki: On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote: I'm checking the cart structure by printing the following code inserted right after the if($save); line (is this the best way to check on the contents of an

[PHP] Fork Or Cron?

2002-06-26 Thread apokalyptik
I'm the author of a little used, little cared about ftp indexing script (http://www.apokalyptik.com/ftp/) and i'm working on - slowly - releasing version 2.0. Version 1 runs as a cron job (or a daemon) and its one monolithic piece of code that handles managing of the queue of new and old sites

RE: [PHP] Help and advice sought - search/replace

2002-06-26 Thread Niklas Lampén
If your list looks like this: Salo, Mika Räikkönen, Kimi Häkkinen, Mika And there is no other commas in the list, you can do it something like this: ? $commaSeparatedList = join(\n, file(NAMES.txt)); $tabSeparatedList = preg_replace(, , \t, $commaSeparatedList); $arrayOfTabSepList =

<    1   2