I am trying to write image tags that are stored in text that is being written to by a php script. The problem I have is when it writes to the file it includes a / between all the " or ' in the tag.
<img src=\'images.jpg\' alt=\'Image\' />
How can I solve this? I have done quite a lengthly search and have yet to find any resonable solution. For all those interested here is the code I have used to write to the TXT file. Extreamly simple and straightforward:
/* OPEN THE FILE */
$handle1 = fopen($file1, "w");
/* WRITE TO THE FILE */
/* CLOSE THE FILE */
// MARK THE FILE AS WRITABLE
$writable = 1;
I thank all those who try and help. It is greatly appreciated.
Writing image tags via PHP.
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users