Jump to content

lisawebs

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by lisawebs

  1. Where ? Please! I have 50 php websites and many problems with several hosting services NOT about performance, but for issues regarding miss-maintenance and basic configuration on the server, basically a poor service, either for one site or 50. Thanks!
  2. After reading an existing txt file in UNICODE format, (no problem with that) I need to rewrite the txt file again UNICODE (not UTF-8, to flash isn't the same thing) I dont need to use the UNICODE stuff internally, I just need to set something to the written file keeps the originally UNICODE format. I new previous version cannot support that what about PHP 5? Thanks a lot Lisa
  3. I tried two pieces of code, both WORK and deliver the emails but hotmail recipients never receive them, not even in the junk folder. Even adding the $from address to the hotmail address book nothing happened, so gotta be something with the structure itself. // all boundaries has been set to " " (blanks) $headers = 'From: ' . $fromaddress . "\n"; $headers .= 'To: ' . trim($addresses[$index]) . "\n"; $headers .= 'Return-Path: ' . $fromaddress . "\n"; $headers .= 'MIME-Version: 1.0' ."\n"; $headers .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '"' . "\n\n"; $headers .= $body_simple . "\n"; $headers .= '--' . $boundary . "\n"; $headers .= 'Content-Type: text/plain; charset=ISO-8859-1' ."\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n"; $headers .= $body_plain . "\n"; $headers .= '--' . $boundary . "\n"; $headers .= 'Content-Type: text/HTML; charset=ISO-8859-1' ."\n"; $headers .= 'Content-Transfer-Encoding: 8bit'. "\n\n"; $headers .= $body_html . "\n"; $headers .= '--' . $boundary . "--\n"; this one also works (but neither hoitmail friendly) $headers = "From: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Message-ID: <".time()."-".$fromaddress.">".$eol; $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "X-Mailer: PHP v".phpversion().$eol.$eol; Thanks
  4. Particularly Hotmail seems to dislike messages sent through mail() Is there any other procedure to sent emails through php? What kind of info we could place in the headers for msgs to be accepted. Can we remove the x-PHP info placed on msg headers (in case this is the main reason for servers discard the msg)
  5. Main solution was using the trim() The only problem with this code is the @hotmail.com addresses are not receiving emails (not even as junk) Yahoo and other mails are receiving normaly So I'll open a new issue about how to control the mail() info/headers to allow messages be accepted. Thanks to everyone!!! <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { $subject = 'the subject'; $message = 'hello'; $headers = 'From: lisawebs@yahoo.com' . "\r\n" . 'Reply-To: lisawebs@yahoo.com' . "\r\n"; if (mail(trim($addresses[$index]), $subject, $message, $headers)) echo "yes"; else echo "no"; }
  6. On code above, when the $to variable is set to "anyemail@domain.com" it works, msg is sent. But doing $to = $addresses[$index]; it never works, no matter how I write it (with "", with (), etc) the echo is right, it shows the right email, but the if (mail()... returns false... so what is this??? a) could be a var type issue? b) is it possible the server understand the emails comes from an array and discard them?
  7. this last code works, when I use $addresses[$index] seems that nothing is passed again I dont know what's wrong here <html><head><title>sending....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { $to = "$addresses[$index]"; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);} ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html>
  8. thanks, but is this EXPLODE() a php4 function??? or later because isnt working, gives error...
  9. no, the lista.lst file contains only one email address per line, there are no such separators... this is strange, if there's no error msg then maybe the problem isnt in php but on the server, but where? Maybe the question is what in a server can prevent these emails to be sent... because the mail system in general is working fine, besides, I've just received an email from another php program running in my server ?????? I'm lost!!
  10. the email issue with php when a visitor input an address works fine, the problem is in the loop to send an email to each address on the list.
  11. I have a set of codes to manage a simple mail list, everything's fine, except for this piece to send an email to each address, I can't figure out why this is not working, it doesn't give an error, but no emails are sent <html><head><title>sending....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { $Email = "$addresses[$index]"; mail("$Email","Welcome...","text here","From: IN21\nReply-To: alex@usa21.net"); } ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html> the file lista.lst has only this inside: alexvvv@hotmail.com|lisawebs@yahoo.com| thanks! lisawebs@yahoo.com
  12. there are 2 email addresses on lista.lst but the emails are never sent, but no error, why is this? <html><head><title>Updating file....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { mail("$addresses[$index]","Welcome...","text here","From: IN21\nReply-To: alex@usa21.net"); } ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html>
  13. I'm looking for the easiest/free mail list program to let site visitors store their emails and then use the email list to send message to everyone. It has to use Mysql server (I guess) or is there something that works on a simple txt file?
  14. I dont see any errors, I'm lost, it should be easier! Lisa
  15. Hi, I got a problem on windows web servers when trying to use text files in UNICODE instead of ANSI. Do you know how to use/display this text files as in Linux web servers? Beacuse when using locally in Windows xp has no problem. Thanks Lisa lisawebs@yahoo.com
  16. Hi, I'm using this to upload a file but doesnt work, the php part simply do nothing. PAGE 1 <html><body> <form enctype="multipart/form-data" action="http://www.usa21.net/testupload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="80000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="send file"> </form></body></html> PAGE 2 php <html><body>this is the php<br> <?php $uploaddir = ''; $uploadfile = $uploaddir. $_FILES['userfile']['name']; print "<pre>"; if ($_FILES['userfile']['size'] > 80000) print "file too big"; else if ($_FILES['userfile']['type'] != "image/jpg) print "file isnt a JPG format" else if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) { print "file was uploaded:\n"; print_r($_FILES); } else { print "unable to complete operation:\n"; print_r($_FILES); } print "</pre>"; ?> </body></html>
  17. I want to to know if the visitor to a page is using dial up conn. or anything better (as broadband) to redirect him to one page or another. Can I use php to know this? Thanks, Lisa lisawebs@yahoo.com
  18. Hi can you explain me how to convert an avi video into a wmv, is just to run the converter in the server background? How can I do this? What converter do you use? Thanks, Lisa. lisawebs@yahoo.com [quote author=SDraconis link=topic=108192.msg435776#msg435776 date=1158447787] I am not really familiar with media-convert.com, but I have made a page before where users can submit video clips and my site converts them into Windows Media.  I don't think you can do this using just a PHP script.  Our solution was to have the server run an encoder program in the background. [/quote]
  19. Hi there, will you share with me your script to upload videos? I'm comitted to share any improvement and GUI that I'll develop around this. Thanks, Lisa, lisawebs@yahoo.com
  20. Can you help me on a method to prevent video files to be cached (copied) into the Internet temp file? This is to protect content. Thanks, Lisa lisawebs@yahoo.com [quote author=gmwebs link=topic=111377.msg451296#msg451296 date=1160734788] I may be missing the point completely here (wouldn't be the first time) but surely you could just supply the full path to the file you wish to delete? Have a look at some snippets below. I know it can be done in one line, but I am using these variables elsewhere in the script. [code] // Set the temp directory relative to the executing script $temp_dir = "../tmp"; // Set the filename suffix to a UNIX timestamp $filename = time(); // Assign the full path to the file to a variable $tempfile = $temp_dir."/tmp_".$filename; // Delete the temporary file unlink($tempfile); [/code] HTH [/quote]
  21. I've seen that videos in Yahoo or Youtube are not been cached or copied on the Internet temp folder. Can PHP help on this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.