RE: [PHP] Re: Editing files by line

2002-07-16 Thread Onaje Johnston
-Original Message- From: Analysis & Solutions Sent: Tuesday, July 16, 2002 4:40 PM To: PHP List Subject: Re: [PHP] Re: Editing files by line On Tue, Jul 16, 2002 at 04:25:25PM -0400, Onaje Johnston wrote: >> >> if ($insert && $linenumber) { >But, if $linenumb

RE: [PHP] Re: Editing files by line

2002-07-16 Thread Onaje Johnston
-Original Message- >From: Analysis & Solutions >Without seeing the script, it'd be hard for us to say. So, post the >_relevant parts_ of the script to the list. Here's the code: I'm sorry, but I couldn't open a file!"; exit; } $array = file($file_name); // this is the stuff w

RE: [PHP] Re: Editing files by line

2002-07-15 Thread Onaje Johnston
reated by the file() function. When I write the edited data back to the file I am using "w+" as the mode. Is this related to the array or to the file mode? -- Onaje Johnston -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: compare arrays problem

2001-02-19 Thread Onaje Johnston
Thank you Tim and Richard. With your help I was able to figure out how to get this script working as I intended. Here's the code, in case anyone wants to do something similar in the future. :-)) $pages=mysql_query("SELECT CP.page_id, pagename FROM cluster_pagetbl as CP, pagetbl WHERE CP.cluster_

[PHP] compare arrays problem

2001-02-17 Thread Onaje Johnston
I am hoping that someone really understands arrays reads this and can tell me why the following isn't working as I expect it to. I've been trying for days to get it to work. $pages=mysql_query("SELECT CP.page_id, pagename FROM cluster_pagetbl as CP, pagetbl WHERE CP.cluster_id = '$id' AND CP.pa

[PHP] include problem using windows

2001-01-09 Thread Onaje Johnston
I've setup apache 1.3.14 with php 4.0.4. I'm getting an error when trying to include/require files. Failed opening 'tcalendar2.inc' for inclusion (include_path='./') in c:/apache/htdocs/caltest2.phtml I tried changing the include path in php.ini to 'c:/Apache/htdocs' to 'c:\Apache\htdocs' to '