Re: [PHP] Reading files in PHP 5.3.0

2009-09-13 Thread tedd
At 12:32 AM -0400 9/13/09, Paul M Foster wrote: On Sat, Sep 12, 2009 at 10:22:10AM -0400, tedd wrote: At 6:02 PM -0400 9/11/09, Paul M Foster wrote: I typically use us2.php.net, which is hosted by Hurricane Electric. Paul Paul: I wouldn't use Hurricane Electric if their accounts

Re: [PHP] Reading files in PHP 5.3.0

2009-09-12 Thread tedd
At 6:02 PM -0400 9/11/09, Paul M Foster wrote: I typically use us2.php.net, which is hosted by Hurricane Electric. Paul Paul: I wouldn't use Hurricane Electric if their accounts were provided for free! The following is an experience I had with Hurricane Electric and support for my opinion

Re: [PHP] Reading files in PHP 5.3.0

2009-09-12 Thread Paul M Foster
On Sat, Sep 12, 2009 at 10:22:10AM -0400, tedd wrote: At 6:02 PM -0400 9/11/09, Paul M Foster wrote: I typically use us2.php.net, which is hosted by Hurricane Electric. Paul Paul: I wouldn't use Hurricane Electric if their accounts were provided for free! The following is an experience

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread tedd
At 5:06 PM -0700 9/10/09, Tommy Pham wrote: So did anything change in PHP5.3.0 that would preclude the code below from working? Am I going crazy? Or did Apple f...@# something up in this release? Thanks, Steve BEGIN CODE -snip- Does anyone else see every line above ending with a

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Ashley Sheridan
On Fri, 2009-09-11 at 08:04 -0400, tedd wrote: At 5:06 PM -0700 9/10/09, Tommy Pham wrote: So did anything change in PHP5.3.0 that would preclude the code below from working? Am I going crazy? Or did Apple f...@# something up in this release? Thanks, Steve BEGIN CODE -snip-

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread tedd
At 1:15 PM +0100 9/11/09, Ashley Sheridan wrote: On Fri, 2009-09-11 at 08:04 -0400, tedd wrote: At 5:06 PM -0700 9/10/09, Tommy Pham wrote: So did anything change in PHP5.3.0 that would preclude the code below from working? Am I going crazy? Or did Apple f...@# something up in this

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Tommy Pham
--- On Fri, 9/11/09, Ashley Sheridan a...@ashleysheridan.co.uk wrote: From: Ashley Sheridan a...@ashleysheridan.co.uk Subject: Re: [PHP] Reading files in PHP 5.3.0 To: tedd tedd.sperl...@gmail.com Cc: Tommy Pham tommy...@yahoo.com, php-general@lists.php.net Date: Friday, September 11, 2009

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Paul M Foster
On Fri, Sep 11, 2009 at 05:48:42AM -0700, Tommy Pham wrote: I just checked my 'Mail Options' again. It's always been 'compose as text'. But I can't guaranteed that Yahoo actually does it. Been having problems with Yahoo lately (both mail and Yahoo hosting of www.php.net). Maybe I

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Andrew Ballard
On Fri, Sep 11, 2009 at 8:15 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-09-11 at 08:04 -0400, tedd wrote: At 5:06 PM -0700 9/10/09, Tommy Pham wrote:   So did anything change in PHP5.3.0 that would preclude the code below from working?  Am I going crazy?  Or did Apple

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Steve Brown
function parseResponseHeaders($header_file) {     $http_found = $error_found = false;     $http_reponse = $error_message = NULL;     $response = array();     $response['ResponseCode'] = NULL;     $response['ErrorMessage'] = NULL;     if (!is_file($header_file) ||

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Tommy Pham
--- On Fri, 9/11/09, Paul M Foster pa...@quillandmouse.com wrote: From: Paul M Foster pa...@quillandmouse.com Subject: Re: [PHP] Reading files in PHP 5.3.0 To: php-general@lists.php.net Date: Friday, September 11, 2009, 8:57 AM On Fri, Sep 11, 2009 at 05:48:42AM -0700, Tommy Pham wrote

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread Paul M Foster
On Fri, Sep 11, 2009 at 08:38:13AM -0700, Tommy Pham wrote: --- On Fri, 9/11/09, Paul M Foster pa...@quillandmouse.com wrote: From: Paul M Foster pa...@quillandmouse.com Subject: Re: [PHP] Reading files in PHP 5.3.0 To: php-general@lists.php.net Date: Friday, September 11, 2009, 8:57

[PHP] Reading files in PHP 5.3.0

2009-09-10 Thread Steve Brown
I've been beating my head against a wall all day and can't figure this one out. The code below worked perfectly in PHP5.2.4. However, I recently upgraded to PHP5.3.0 and this code no longer works. The function below accepts the path to a text file containing headers from a cUrl session (example

Re: [PHP] Reading files in PHP 5.3.0

2009-09-10 Thread Tommy Pham
--- On Thu, 9/10/09, Steve Brown sbrow...@gmail.com wrote: From: Steve Brown sbrow...@gmail.com Subject: [PHP] Reading files in PHP 5.3.0 To: php-general@lists.php.net Date: Thursday, September 10, 2009, 4:13 PM I've been beating my head against a wall all day and can't figure this one out

[PHP] Reading files from Win 2003 Server

2007-10-04 Thread Alexis
Hi, I have a script located on an Ubuntu box and I am trying to read files located on a Win 2003 Server. I have 'mounted', if that's the right term to use, a connection from Ubuntu to Server 2003 and can read the files fine via the desktop, etc. If the Win Server name is say 'WinServer' and

[PHP] reading files through ssl protocal

2003-09-23 Thread Chris Edwards
Hi Trying to read a file via ssl. It seems to read the file ok. The content is correct. But I get this when using the https protocol. Warning: fgets(): SSL: fatal protocol error or Warning: fread(): SSL: fatal protocol error When I use regular http, I do not get the warning. Anyone

[PHP] Reading files question

2003-07-17 Thread Beauford.2005
I have a file that has the 130 lines which follows the example below. Option Value=146Barnaby What I need to do is read this file, remove one line, add another line, and then resave it. I have tried the different fget functions etc. to read the file, but all I get is the name part and nothing

Re: [PHP] Reading files question

2003-07-17 Thread Curt Zirzow
Beauford.2005 [EMAIL PROTECTED] wrote: I have a file that has the 130 lines which follows the example below. Option Value=146Barnaby What I need to do is read this file, remove one line, add another line, and then resave it. I have tried the different fget functions etc. to read the file,

[PHP] Reading files over SSL using fopen or fsockopen

2003-03-11 Thread Dan Mullen
Hi, I am trying to read the contents of a file using fopen or fsockopen over a secure SSL connection. I have a script working fine over a non-SSL connection, but it just won't work over SSL. I have tried using fsockopen with the port set to 443, (I have checked this and the file I am trying to

Re: [PHP] Reading files over SSL using fopen or fsockopen

2003-03-11 Thread Ernest E Vogelsinger
At 14:35 11.03.2003, Dan Mullen said: [snip] I am trying to read the contents of a file using fopen or fsockopen over a secure SSL connection. I have a script working fine over a non-SSL connection, but it just won't work over SSL. I have tried using

[PHP] Reading files

2003-02-27 Thread Chris Blake
Greetings... When the following runs.. === ?php $handle = fopen (fopen.txt, r); $date = date(l dS of F Y h:i:s: A); while (!feof ($handle)) ; { $buffer = fgets($handle, 4096); echo 'textarea'. $buffer.

Re: [PHP] Reading files

2003-02-27 Thread Ferhat Can
Hi Chris, You should delete the ; after the while statement because it causes an infinite loop. - Original Message - From: Chris Blake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 16:29 Subject: [PHP] Reading files Greetings... When

Re: [PHP] Reading files

2003-02-27 Thread 1LT John W. Holmes
while (!feof ($handle)) ; Take that semi-colon away. You're running this loop continously. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reading files from a directory

2001-08-24 Thread Niklas Lampén
I have problem with reading files from directory. This is the code: ? $Handle = opendir('/www/publico2/docs/map'); while ($file = readdir($Handle)) { print $filebr\n; }; ? That is ALL code on a script file. These are the file in directory: . .. array_maker.php4 map.php4 renamer.php4