Jump to content

devWhiz

Members
  • Posts

    266
  • Joined

  • Last visited

About devWhiz

  • Birthday 10/29/1992

Profile Information

  • Gender
    Male
  • Location
    Akron, Ohio
  • Age
    23

Contact Methods

  • Yahoo
    brjohnson29@ymail.com

Recent Profile Visitors

2,352 profile views

devWhiz's Achievements

Regular Member

Regular Member (3/5)

1

Reputation

  1. Try this.. <?php require 'PHPMailer-master/PHPMailerAutoload.php'; print "OK HERE WE GO<br><br>"; $activation = md5(uniqid(rand(), true)); $mail = new PHPMailer; $mail->SMTPDebug = 0; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'mail.smtp.com'; // Specify main and backup SMTP servers //$mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'xyz.abc@any.com'; // SMTP username $mail->Password = 'password'; // SMTP password //$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 25; // TCP port to connect to $mail->From = 'xyz.abc@any.com'; $mail->FromName = 'tim'; $mail->addAddress('any.one@gmail.com', 'User'); // Add a recipient $mail->isHTML(true); // Set email format to HTML $message ="http://www.something...y=$activation"; $mail->Subject = 'Here is the subject'; $mail->Body = " $message"; $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; //print "code is: $activation"; if(!$mail->send()) { echo 'Message could not be sent.'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent'; } ?>
  2. Try this echo "<table border='3' width = '150'>"; echo "<tr><th>{$column1}</th><th>{$column2}</th><th>{$column3}</th></tr>";
  3. I'm not sure I get what you mean? Is your script not displaying anything? Any errors being displayed? The only thing I see that would cause an error is your $qry variable being undefined.
  4. What are the contents of the $data variable?
  5. $xml = simplexml_load_string($data); $this->followers_count = intval($xml->followers_count); $this->friends_count = intval($xml->friends_count); $this->listed_count = intval($xml->listed_count); $this->statuses_count = intval($xml->statuses_count); $this->profile_image_url = $xml->profile_image_url;
  6. I would extract the data from the column, create a .php file with the content inside the file, and then you can use the script and delete when finished.
  7. if(file_exists("./files/items/1234-5678.pdf")){ }
  8. SimpleXMLElement::attributes should be what you need.. If you want to post the xml, I may be able to help you out more.
  9. Good Morning! Welcome to PHPFreaks!
  10. For future reference, as an alternative to editing .htaccess you could have made a folder in the root of your website called "products" and then took products.php and renamed it index.php and put it in the products folder, then include any scripts needed to generate the products page. That would show up as www.yoursite.com/products By editing .htaccess, it can work for all scripts with the .php extension, which would be better in my opinion.
  11. I wish people would do my work for me lol... Oh wait.. Not really.. No fun in that. It will get you nowhere...
  12. Personally, I use IMAP to authenticate Gmail in my scripts.. $imapHost = '{imap.gmail.com:993/imap/ssl}INBOX'; $openStream = imap_open($imapHost, $gmailAddress, $gmailPassword);
  13. No problem. What ended up being the issue?
×
×
  • 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.