[PHP] Re: detecting end of line - php 4.1.2

2003-03-21 Thread Travers Carter
tring up into an arrray of lines $file = explode("\n", $file_buffer); // process each line in turn foreach ($lines as $line_num => $line) { // Unfilemaker each line (Vertical Tab --> \n), filemaker uses Vertical Tabs // to represent line breaks inside fields, so we con

Re: [PHP] running PHP through command shell

2003-03-19 Thread Travers Carter
Jason Wong wrote: > On Wednesday 19 March 2003 16:34, Foong wrote: > >> Does anybody knows why I get call to undefined function for mysql_connect >> when running PHP through command shell. but it works fine when accessing >> the script through web browser. > > Most likely your php binary (CLI, n