Why does this not work ???

From: gray (agenr_at_agent.com)
Date: 11/30/04


Date: Tue, 30 Nov 2004 13:48:03 GMT

Any ideas why this does not work ???

$fp = fopen ("test.txt", "rb") or die("Couldn't open file");
$mystring = filesize($fp);
echo $mystring
$mydata = fread($fp, filesize($fp));
echo $mydata;

It seems every PHP snippet I use, does not seem to work, without some
re-writing. Any ideas. I am using PHP Version 4.3.9

TIA



Relevant Pages

  • Re: Script unix : check string
    ... i am writing my first shell script under Solaris 10, ... MYSTRING=`grep -i error $MyFile` ... echo " reponse yes" ... Could you please tell me how the line "if $MySTRING is not NULL" can be ...
    (comp.unix.solaris)
  • Re: Inhalt einer Textbox ins Clipboard copieren
    ... Clipboard um ihn in einn Internetformular einzufügen. ... Dim myString As String ... Dim myData As DataObject ...
    (microsoft.public.de.excel)
  • Re: Script unix : check string
    ... i am writing my first shell script under Solaris 10, ... MYSTRING=`grep -i error $MyFile` ... echo " reponse yes" ... Could you please tell me how the line "if $MySTRING is not NULL" can be ...
    (comp.unix.solaris)
  • Re: Script unix : check string
    ... i am writing my first shell script under Solaris 10, ... MYSTRING=`grep -i error $MyFile` ... echo " reponse yes" ... Could you please tell me how the line "if $MySTRING is not NULL" can be ...
    (comp.unix.solaris)