I'm using mailer.php (modifed) to send form data and an image file attachment
$FileName = $GUID . "." . $FileExtension;
$ImagePath = "images/" . $FileName;
$Attachment = chunk_split(base64_encode(file_get_contents($ImagePath)));
It works on one website but not another.
I've made sure the folder "images" exists however the image doesn't seem to show up in this folder (it does on the good website) so I suspect the issue is not with mailer.php but rather it is that the form is not uploading the image.
Does the copy move the image or copy it? there is no sign of the original in any other folder on either website.
The form was created in Dreamweaver here is the snippet
<td><div align="left">Upload Your Photo</div></td>
<input type="file" name="Image_File" id="Image_File" />
So why should it work on one website but not the other and what can I do to resolve this issue?
if the code is identical on both site, then you need to chmod folder images on the not-working-site to 0777 to allow php script to write to it.
In other words, try to set write permission for images folder
Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number.
For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…