You also need to add the text/html header, such as:
$headers = Content-Type: text/html \r\n;
mail([EMAIL PROTECTED], subject,$out , From: website, $headers);
jen
I read from a template, insert data and save it as a new file with html
code...
i want to send that file that is the same as $out
What's your PHP code look like?
--- Angel Gabriel [EMAIL PROTECTED] wrote:
I get absolutly NOTHING! I get the most basic HTML
page, but blank, as in
the following
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0
Transitional//EN
HTMLHEAD
META content=text/html; charset=windows-1252
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote:
Hi
I am trying to create an online survey using PHP
...I am using MySQL as
the database and MAC OS Jaguar. I do not need the
results to be added to
the database. I need to be able to send the results
of the survey to an
email
Is there an easy way to upload an entire directory? Rather than selecting the 19
files in a directory, to just select the directory, and have all its contents go with
it? (Or even a not-such-an easy way?)
Thank you very much for any hints.
Jen
First scenario is correct.
Are you trying to do this via a web-script?
Meaning, your php script is the server, and windows would be the client?
Or is your script uploading a file to another server?
Tim
- Original Message -
From: Jennifer Swofford [EMAIL PROTECTED]
To: [EMAIL
BTW, disregard my comment about GET... I confused myself. Zzz.
Jen
Try:
$_Post[name];
or $HTTP_POST_VARS[name];
In new PHP version, register_globals is set to off by default, which is
why $name isn't working for you. Although, I'm surprised GET isn't
working
Jen
I've just
Try:
$_Post[name];
or $HTTP_POST_VARS[name];
In new PHP version, register_globals is set to off by default, which is
why $name isn't working for you. Although, I'm surprised GET isn't
working
Jen
I've just built PHP from source (4.2.3) on Red Hat Linux 7.2 with
configure --with-java
--- Mike At Spy [EMAIL PROTECTED] wrote:
Anyone ever have the experience of working on a
site, working with MySQL and
then having something almost inexplicable happen?
Hmmm, yes, that would be a daily exercise for me. Ah, but I see that your
inexplicable problem has been explained... lucky.
Hello all,
I am trying to use php to read through an html file and replace all image
paths, like such:
Change images/firstimage.gif to http://www.blah.com/firstimage.gif; ...
Change somesuch/images/secondimage.jpg to
http://www.blah.com/secondimage.jpg;
So I am going through the file and
BTW - I have found errors in the regular expression that I was matching so
don't bother to point those out. ;) That shouldn't affect the nature of
the problem I was asking about.
--- Jennifer Swofford [EMAIL PROTECTED] wrote:
Hello all,
I am trying to use php to read through an html file
Thank you Marco!
Between your post and the other stuff I happened to find at the same time, I
got it working. Turned out I was making it much more difficult than it had
to be. I ended up with:
?
$filename = newexample.html;
$fd = fopen ($filename, r);
$contents = fread ($fd, filesize
FEI, it works fine on my IE6/WinXP. :) (And NS7.)
Rebekah,
When I click link to go to the second index (using IE6, WinXP) at
http://www.overbrookfarm.myiglou.com/index2.html my browser hangs and I
never get the menus. However it all works fine in Mozilla 1.0 on the same
platform.
Extraordinarily helpful; thank you very much! Thanks to both Mike and Kevin
on this.
Jen
Why does this work:
$contents =
eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg),
\blah.gif, $contents);
But this does not:
preg_match_all((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg),
I'm getting much closer to achieving my goal here. Now, I'm missing yet one more
element. Here is my code:
--
$filename = newexample.html;
$fd = fopen ($filename, r);
$contents = fread ($fd, filesize ($filename));
preg_match_all('{\/*[A-z0-9_/-]+(.gif|.jpg)}', $contents, $matches);
I need help with some regular expression matching.
Here is what I am doing. In one php file, I'm reading
in the contents of an html file. Both reside on the
same server. What I need to do is change all image
tags that are like this:
img src=directory1/directory2/directoryN/image.gif
To
Why does this work:
$contents =
eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg),
\blah.gif, $contents);
But this does not:
preg_match_all((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg),
$contents, $matches);
for ($i=0; $i count($matches[0]); $i++) {
echo matched: .$matches[0][$i].\n
}
I get this error:
the other
one would be working.
-Kevin
- Original Message -
From: Jennifer Swofford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 2:20 PM
Subject: [PHP] eregi_replace / preg_match_all
Why does this work:
$contents =
eregi_replace
17 matches
Mail list logo