Re: what is keep this from working



Hello

If you check the documentation in http://jp2.php.net/file_get_contents
, you will notice that the function that you are using returns a string
, and as the documentation explains the content of your file is inside
the returned string

string file_get_contents ( string filename [, bool use_include_path [,
resource context [, int offset [, int maxlen]]]] )

so you have to do something like:

$email_file_content = file_get_contents("email.html");
print $email_file_content;

regards
Arturo Valencia Milian

.



Relevant Pages

  • Re: John Resig has a new idea
    ... empty styleSheets collection, ... documentation, the behavior is unexpected. ... the property name is an "integer index", ... This index would be provided as a string for property access. ...
    (comp.lang.javascript)
  • Re: another docs problem - imp
    ... > The first sentence says that the _path_ argument is a search path. ... Correct it does not say it's a string. ... > technical documentation a bit more carefully. ... Yes, read it a second time, didn't see the alternate interpretation. ...
    (comp.lang.python)
  • Re: Reading a line of text from a stream
    ... * Reads a line of text from a stream and returns the string on * ... If maxRead is NULL then SIZE_MAX-1 is * considered ... You've accidentally left out documentation that if maxRead is not NULL, ... It is not possible to distinguish between I/O failures and allocation ...
    (comp.lang.c)
  • Re: empty vs null
    ... The documentation you refer to is for the System.String type, ... though they moved to being immutable reference types. ... to Vb.NET, suddenly we could actually compare string references, and at the same ... > references compare equal to each other. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Reading a line of text from a stream
    ... Reads a line of text from a stream and returns the string on ... If maxRead is NULL then SIZE_MAX-1 is ... The documentation above is also a bit hard to read; ... You've also neglected to explicitly specify that the terminating "\n" ...
    (comp.lang.c)