Jump to content

smiles

Members
  • Posts

    774
  • Joined

  • Last visited

Posts posted by smiles

  1. uhm ... so strange, last week I check a simplemail.php , it say I should check out parameter in php.ini includes SMPT and SMPT_port, they get right value. Today, I check the SMPT connection by using Run -> Typing telnet localhost 25 -> It say failed connection ; after that I try to use Outlook Express to send mail and it runs well :) and now, back to simplemail.php it says the new error Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in ... line ..

    <?php$To = "b@yahoo.com";$Text = "This is a test.";$Html = "<H1>This is a test.</H1>";$Subject = "PHP Mail Test";$message = "";$headers = "From: a@mail.com\n";$headers .= "X-Mailer: PHP4\n";$headers .= "X-Priority: 3\n";$headers .= "MIME-Version: 1.0\n";$headers .= "Content-Type: multipart/alternative;boundary=\"==MIME_BOUNDRY_alt_main_message\"\n\n";$headers .= "This part of the E-mail should never be seen. If you arereading this, consider upgrading your e-mail client to a MIME-compatibleclient.";$message .= "--==MIME_BOUNDRY_alt_main_message\n";$message .= "Content-Type: text/plain; charset=ISO-8859-1\n";$message .= "Content-Transfer-Encoding: 7bit\n\n";$message .= $Text . "\n\n";$message .= "--==MIME_BOUNDRY_alt_main_message\n";$message .= "Content-Type: text/html; charset=ISO-8859-1\n";$message .= "Content-Transfer-Encoding: 7bit\n\n";$message .= "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0Transitional//EN\">\n";$message .= "<HTML><BODY>\n";$message .= $Html . "\n";$message .= "</BODY></HTML>\n\n";$message .= "--==MIME_BOUNDRY_alt_main_message--\n";mail($To, $Subject, $message, $headers); ?>// get this code from PHP Bugs

  2. its for a 360Degrees picture, when it gets to last frame it needs to jump to the first and when it gets to the first it needs to jump to the last.
    it hurts my brain :)
  3. small question : did you get no problem with testing sending email in Xampp ?If yes please guide me a way, I always get warning error with php.ini but when I check that file, every parameter is okay ???uhm but when I check SMPT server connection, it says connection failed, does this mean I can't send email by anyway ?why ISP still gave me a mail address ?

  4. codes in this post is very useful for me, but I want to ask more about link typing your BBcode used

    [url]http://.....[/url]

    for link like below

    ...$patterns[] = '@\[url\](.*)\[/url\]@'; // Matches [url]URL[/url]$replaces[] = '<a href="$1" target="_blank">$1</a>';  ...$a_answer = preg_replace( $patterns, $replaces, $a_answer);

    how can I just typing the url address and it appears as link without using

    [url] ... [/url]

    thanks !

  5. my friend send me an invitation from a site, this site suggest me to fill my email and password, I fill exactly my email address but fill another password like 123456 but that site tell me that is wrong password, after check this site carefully, I fill my password and it accepted, that password is belong to Yahoo site's possesion , why another site can check right or wrong password ???thanks !!!

  6. you see nothing, at least it must has the last sentence ???seem that you have to change elseif (isset($_REQUEST['Email'])) to else (isset($_REQUEST['Email']))and this for sure...else (isset($_REQUEST['Email'])){...if(mail( "****@tsrealms.com", "$Email","$Subject", "From: $Email" ) &&mail( "$Email", "A copy of your Application", "$Subject", "From: The Shattered Realms" )){echo "Sent";}else{echo "Can't send";}...}

  7. my page follow the style sheet having the main font is Verdana, Tahoma, Arial, san-serifbut when I typing text in textarea, I bet that it is Times font and serif one, anyone know how to change the font in textarea to Verdana also ?thanks !!!

  8. so at one time, we just output either text or imageanyway, I had finished the thumbnail problem lastnight :)imagejpeg($thumb,"path to save copied image",100); thanks you, all of you :)

  9. Well, I found some in php.net, I see that I can resized image to smaller one

    <?php// File and new size$filename = 'file.jpg';$percent = 0.2;// Content typeheader('Content-type: image/jpeg');// Get new sizeslist($width, $height) = getimagesize($filename);$newwidth = $width * $percent;$newheight = $height * $percent;// Load$thumb = imagecreatetruecolor($newwidth, $newheight);$source = imagecreatefromjpeg($filename);// Resizeimagecopyresampled($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);// Outputimagejpeg($thumb); ?>

    everything is all right but when I try to put something at the bottom of the code

    .....// Outputimagejpeg($thumb); echo "Hello World";?>

    resized image appear but the text doesn't appear :)

  10. I know in Flash has Pop up term, but as far as I know, it doesn't like a web page having in Pop up If using getURL the "a certain size and no scroll bar or tool bar or navigation bar" is impossibleMaybe you should back to Javascript for it :)

×
×
  • Create New...