Jump to content

Deoctor

Members
  • Posts

    663
  • Joined

  • Last visited

Everything posted by Deoctor

  1. open ur smtp.php file and change the values class Mail_smtp extends Mail { /** * SMTP connection object. * * @var object * @access private */ var $_smtp = null; /** * The SMTP host to connect to. * @var string */ var $host = 'localhost'; /** * The port the SMTP server is on. * @var integer */ var $port = 25; /** * Should SMTP authentication be used? * * This value may be set to true, false or the name of a specific * authentication method. * * If the value is set to true, the Net_SMTP package will attempt to use * the best authentication method advertised by the remote SMTP server. * * @var mixed */ var $auth = false; /** * The username to use if the SMTP server requires authentication. * @var string */ var $username = ''; /** * The password to use if the SMTP server requires authentication. * @var string */ var $password = ''; /** * Hostname or domain that will be sent to the remote SMTP server in the * HELO / EHLO message. * * @var string */ var $localhost = 'localhost'; /** * SMTP connection timeout value. NULL indicates no timeout. * * @var integer */ var $timeout = null; /** * Whether to use VERP or not. If not a boolean, the string value * will be used as the VERP separators. * * @var mixed boolean or string */ var $verp = false; /** * Turn on Net_SMTP debugging? * * @var boolean $debug */ var $debug = false; /** * Indicates whether or not the SMTP connection should persist over * multiple calls to the send() method. * * @var boolean */ var $persist = false; indicated to the smtp server which u are using.
  2. hai thorpe. he is using an free hosting service so i dont think he could able to do that..
  3. then ur server might not be supportive to the pear(smtp autentication).so i dont think u can use it out..
  4. just check these artilces which can help u out http://www.cyberciti.biz/tips/rhel-install-php-net-smtp-email-socket.html http://pear.php.net/manual/en/guide.users.commandline.installing.php also when u open php.ini it should have this line uncommented.
  5. just check these artilces which can help u out http://www.cyberciti.biz/tips/rhel-install-php-net-smtp-email-socket.html http://pear.php.net/manual/en/guide.users.commandline.installing.php also when u open php.ini it should have this line uncommented.
  6. hai i wrote this one long back just check it out $ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://chaitu09986025424.blog.co.in");curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);$output = curl_exec($ch);echo $output; if u like to get the code with the html tags then use the echo like this. echo htmlspecialchars($output); if u want the exact source code of the website then u can get it more easily. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"><table align="center" border="1" bordercolor="black" > <tr><td align="center" bgcolor="Green">Enter Website :<input name="Website" type="text" size="100" value="http://" ></td></tr> <tr><td align="center"><input type="submit" name="submitBtn" value="Submit"></td></tr></table> </form><?phperror_reporting (off);// Get the HTML source of google$site_address=$_POST['Website'];//$count = file ('http://rediff.com/'); $count = file ($site_address);// Loop through our arrayif($site_address==''|| $count==''){ echo "Please enter a valid URL";}else{foreach ($count as $line_num => $line) {$line_new=htmlspecialchars($line);echo "<table align='center' width='95%' border='0' cellpadding='5' cellspacing='5'><tr style='background:red;font-color:white;font-weight:strong;'> <td colspan='2'>Line #{$line_num} :</td><td bgcolor=yellow width=100%><font face=Verdana, Arial, Helvetica, sans-serif size=2><b>$line_new</b></font></td></tr></table><br>\n";}}?> if u want to check the last one the working example is at http://drvirusindia.co.cc/code.php
  7. just check ur phpinfo() in it u can find out.. include_path.;C:\xampp\php\PEAR.;C:\xampp\php\PEAR
  8. authenticate ur mail using this one <?php require_once "Mail.php"; $from = "Chaitu <drvirusindia@gmail.com>"; $to = "Chaitu <drvirusindia@gmail.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>Message successfully sent!</p>"); } ?> might be it will help u out. just check whether PEAR installed in ur machine
  9. there is no way in php u have to whitelist the email id or the domain..
  10. check this out GetSQLValueString($_SESSION['MM_Username'], "text")); i think if u remove the GetSQLValueString it will work..
  11. try this instead of header function echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1; URL=all_admin.php\">";
  12. echo these values and check, also do one thing. use the unset($_SESSION['type']);unset($_SESSION['name']);unset($_SESSION['level']); to unset the cookies and clear ur browser and check it out again.. if possible paste ur entire code back here.. so that it would be useful to resolve it properly
  13. as the other users already told it is quite risky to use the text file.use a database instead and make a column so that u can make it as 1 once u use it off. <? //$url = 'http://www.whatismyip.com/'; $url='http://www.ip-adress.com/what_is_my_ip/'; $cUrl = curl_init(); curl_setopt($cUrl,CURLOPT_VERBOSE,1); //curl_setopt($cUrl,CURLOPT_HTTPPROXYTUNNEL,true); curl_setopt($cUrl,CURLOPT_PROXYTYPE,CURLPROXY_HTTP); curl_setopt($cUrl,CURLOPT_PROXY,'208.43.64.236:808'); curl_setopt($cUrl,CURLOPT_SSL_VERIFYPEER,false); curl_setopt($cUrl,CURLOPT_URL,$url); curl_setopt($cUrl,CURLOPT_TIMEOUT,320); $PageContent = curl_exec($cUrl); curl_close($cUrl); echo $PageContent; ?> so at the proxy number which i have specified u can use the random one.
  14. Hai try this to send emails using the gmail as an smtp.. <?php require_once "Mail.php"; $from = "Chaitu <drvirusindia@gmail.com>"; $to = "Chaitu <drvirusindia@gmail.com>"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; $host = "ssl://mail.example.com"; $port = "465"; $username = "smtp_username"; $password = "smtp_password"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { echo("<p>" . $mail->getMessage() . "</p>"); } else { echo("<p>Message successfully sent!</p>"); } ?> but you require a correct user id and password to use it. u can use the gmail user id and pass ...
  15. the javascript will do it out..I am not an expert of javascript,but i got this for one of my programs <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas. microsoft.com/intellisense/ie5"> <script id="clientEventHandlersJS" language="javascript"> <!-- function Button1_onclick() { var locator = new ActiveXObject "WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration"); var e = new Enumerator (properties); document.write("<table border=1>"); dispHeading(); for (;!e.atEnd();e.moveNext ()) { var p = e.item (); document.write("<tr>"); document.write("<td>" + p.Caption + "</td>"); document.write("<td>" + p.IPFilterSecurityEnabled + "</td>"); document.write("<td>" + p.IPPortSecurityEnabled + "</td>"); document.write("<td>" + p.IPXAddress + "</td>"); document.write("<td>" + p.IPXEnabled + "</td>"); document.write("<td>" + p.IPXNetworkNumber + "</td>"); document.write("<td>" + p.MACAddress + "</td>"); document.write("<td>" + p.WINSPrimaryServer + "</td>"); document.write("<td>" + p.WINSSecondaryServer + "</td>"); document.write("</tr>"); } document.write("</table>"); } function dispHeading() { document.write("<thead>"); document.write("<td>Caption</td>"); document.write("<td>IPFilterSecurityEnabled</td>"); document.write("<td>IPPortSecurityEnabled</td>"); document.write("<td>IPXAddress</td>"); document.write("<td>IPXEnabled</td>"); document.write("<td>IPXNetworkNumber</td>"); document.write("<td>MACAddress</td>"); document.write("<td>WINSPrimaryServer</td>"); document.write("<td>WINSSecondaryServer</td>"); document.write("</thead>"); } //--> </script> </head> <body> <INPUT id="Button1" type="button" value="Button" name="Button1" language="javascript" onclick="return Button1_onclick()"> </body> </html> try this in IE 7 or 6,, in ie 8 it might not work..
  16. check this out http://www.apachefriends.org/en/xampp.html
  17. you're right, size has nothing to do with it in this case, which is why i didn't check for the file size, i checked the MIME type which is what is going to tell you if people are trying to be sneaky with renaming file extensions, etc. the code checks the MIME type of the file using getimagesize (just because the word size is in the function name, doesn't mean that its only use), and if the MIME type does not match that of any in the array, the file is not uploaded. be sure to read entire post, and even test the code before making such statements. i cannot understand is ur problem.. the comment i made was not for you MR. one more user has given that to check filesize.. so mind ur words.... do read the post fully before replying
  18. this could not happen,, skype me at chaitanya09986025424
  19. this is happening coz,, in the 6.php i have given an echo for message.. if the webpage is showing u the values then write the mail function mail($to, $subject, $message, $headers); this will send u the mails. i just wanted to check whether the values are getting picked up correctly..
  20. hai i have redone the code.check this out and it is working fine.. 6.php <?php $site_source=$_POST['site_source']; $keyword=$_POST['keyword']; $site=$_POST['site']; $ip=$_POST['ip']; $status=$_POST['status']; $propertyval=$_POST['propertyval']; $fname=$_POST['fname']; $sname=$_POST['sname']; $daytime=$_POST['daytime']; $evening=$_POST['evening']; $address=$_POST['address']; $mortgagebal=$_POST['mortgagebal']; $adcredit=$_POST['adcredit']; $postcode=$_POST['postcode']; $appamt=$_POST['appamt']; $collectively=$_POST['collectively']; $unsecured_creditors=$_POST['unsecured_creditors']; $mobile=$_POST['mobile']; $email=$_POST['email']; $besttime=$_POST['besttime']; // Send email with result to the user $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'To: xxxxxxxx@xxxxxx.co.uk' . "\r\n"; $headers .= 'From: xxxxxxxxxxxxxx' . "\r\n"; $headers .= 'X-Mailer: PHP/' . phpversion(); // Mail it $subject = "xxxxxxxxxxxxxxx"; $message = <<<EOF <table align="center" width="95%" border="0" cellpadding="5" cellspacing="5"> <tr style="background:red;font-color:white;font-weight:strong;"> <td colspan="2">Site Information</td> </tr> <tr style="background:#F8F8F8"> <td>Site Source</td> <td>$site_source</td> </tr> <tr style="background:#EFEFEF"> <td>Keyword</td> <td>$keyword</td> </tr> <tr style="background:#F8F8F8"> <td>Site Referrer</td> <td>$site</td> </tr> <tr style="background:#EFEFEF"> <td>IP Address</td> <td>$ip</td> </tr> <tr style="background:red;font-color:white;font-weight:strong;"> <td colspan="2">App Information</td> </tr> <tr style="background:#F8F8F8"> <td>Status</td> <td>$status</td> </tr> <tr style="background:#EFEFEF"> <td>propertyval</td> <td>$propertyval</td> </tr> <tr style="background:#F8F8F8"> <td>Forename</td> <td>$fname</td> </tr> <tr style="background:#EFEFEF"> <td>Surname</td> <td>$sname</td> </tr> <tr style="background:#F8F8F8"> <td>Home Tel</td> <td>$daytime</td> </tr> <tr style="background:#EFEFEF"> <td>evening tel</td> <td>$evening</td> </tr> <tr style="background:#F8F8F8"> <td>add</td> <td>$address</td> </tr> <tr style="background:#EFEFEF"> <td>mortgagebal</td> <td>$mortgagebal</td> </tr> <tr style="background:#EFEFEF"> <td>adcredit</td> <td>$adcredit</td> </tr> <tr style="background:#EFEFEF"> <td>postcode</td> <td>$postcode</td> </tr> <tr style="background:#EFEFEF"> <td>appamt</td> <td>$appamt</td> </tr> <tr style="background:#EFEFEF"> <td>collectively</td> <td>$collectively</td> </tr> <tr style="background:#EFEFEF"> <td>howmany</td> <td>$unsecured_creditors</td> </tr> <tr style="background:#EFEFEF"> <td>mobile</td> <td>$mobile</td> </tr> <tr style="background:#EFEFEF"> <td>email</td> <td>$email</td> </tr> <tr style="background:#EFEFEF"> <td>best</td> <td>$besttime</td> </tr> </table> EOF; echo $message; ?> 7.php <?php extract($_REQUEST); /* 1) fname 2) sname 3) status 4) add 5) propertyval 6) mortgagebal 7) adcredit postcode 9) appamt 10) collectively 11) daytime 12) evening 13) mobile 14) email 15) besttime */ ?> <form action="6.php" method="post" name="online"> <table> <tbody> <tr> <td class="height" colspan="2"> <h2>About You</h2> </td> <td colspan="2" class="height"> <h2>Your Property(if applicable)</h2> </td> <td class="height"> </td> </tr> <tr> <td><label for="firstname">First Name:</label></td> <td><input name="fname" tabindex="1" type="text"></td> <td><label for="status">Status:</label></td> <td><select name="status" tabindex="13" size="1"> <option value="0">Please Select</option> <option value="1">Homeowner</option> <option value="2">Tenant</option> <option value="3">Living with Parents</option> <option value="4">Other</option> </select> </td> </tr> <tr> <td><label for="sname">Surname:</label></td> <td> <input name="sname" tabindex="2" type="text"></td> <td><label for="propertyval">Property Value:</label></td> <td> <input name="propertyval" tabindex="14" value="£" type="text"></td> </tr> <tr> <td><label for="add">Address:</label></td> <td> <input name="address" tabindex="3" type="text"></td> <td><label for="mortgage">Mortgage Balance</label></td> <td> <input name="mortgagebal" tabindex="15" value="£" type="text"></td> </tr> <tr> <td> </td> <td> <input name="address2" tabindex="4" type="text"></td> <td> </td> <td> </td> </tr> <tr> <td><label for="town">Town:</label></td> <td> <input name="town" tabindex="5" type="text"></td> <td> <h2><label for="history">Your History</label></h2> </td> </tr> <tr> <td><label for="county">County:</label></td> <td> <input name="county" tabindex="6" type="text"></td> <td><label for="adcredit">Do you have any “adverse credit” i.e CCJs or defaults?</label></td> <td> <select name="adcredit" tabindex="16" size="1"> <option value="0">Yes</option> <option value="1">No</option> <option value="2">Unsure</option> </select> </td> </tr> <tr> <td><label for="postcode">Post Code:</label></td> <td> <input name="postcode" tabindex="7" type="text"></td> <td><label for="appamt">Approx how much unsecured debt do you have?</label></td> <td> <select name="appamt" tabindex="17" size="1"> <option value="0">Please select…</option> <option value="1000">£500-£1000</option> <option value="2000">£1000-£2000</option> <option value="3000">£2000-£3000</option> <option value="4000">£3000-£4000</option> <option value="5000">£4000-£5000</option> <option value="6000">£5000-£6000</option> <option value="7000">£6000-£7000</option> <option value="8000">£7000-£8000</option> <option value="9000">£8000-£9000</option> <option value="10000">£9000-£10,000</option> <option value="12000">£10,000-£12,000</option> <option value="14000">£12,000-£14,000</option> <option value="16000">£14,000-£16,000</option> <option value="18000">£16,000-£18,000</option> <option value="20000">£18,000-£20,000</option> <option value="22000">£20,000-£22,000</option> <option value="24000">£22,000-£24,000</option> <option value="26000">£24,000-£26,000</option> <option value="28000">£26,000-£28,000</option> <option value="30000">£28,000-£30,000</option> <option value="32000">£30,000-£32,000</option> </select> </td> </tr> <tr> <td colspan="2"> <h2>Contact Details</h2> </td> <td><label for="collectively">Collectively how much are your monthly payments?</label></td> <td> <input name="collectively" tabindex="18" value="£" type="text"></td> <td> </td> </tr> <tr> <td><label for="daytime">Daytime Tel:</label></td> <td> <input name="daytime" tabindex="8" type="text"></td> <td><label for="howmany">How many unsecured creditors do you have?</label></td> <td> <select name="unsecured_creditors" tabindex="19" size="1"> <option value="0">please select</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="10+">10+</option> </select> </td> </tr> <tr> <td><label for="evening">Evening Tel:</label></td> <td> <input name="evening" tabindex="9" type="text"></td> <td> </td> <td> </td> </tr> <tr> <td><label for="mobile">Mobile:</label></td> <td> <input name="mobile" tabindex="10" type="text"></td> <td colspan="2"> <h2>Additional Comments</h2> </td> <td> </td> </tr> <tr> <td><label for="email">Email:</label></td> <td> <input name="email" tabindex="11" type="text"></td> <td colspan="2" rowspan="2"> <textarea rows="3" cols="40" input="" name="comments" tabindex="20" type="text"></textarea> </td> <td></td> <td> </td> </tr> <tr> <td><label for="best">Best Time to Contact:</label></td> <td> <select name="besttime" tabindex="12" size="1"> <option value="any">Any</option> <option value="am">Am</option> <option value="pm">Pm</option> </select> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td colspan="2" style="text-align: right;"></td> <tr> <td><input type="submit" name="submit" value="Submit"></td> </tr> </tr> <tr> </tr> <tr> </tr> <tr> <td colspan="2"><label for="help">If you require help in filling in this form please do not hesitate to contact us,</label></td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> <input name="ip" value="<<?php echo $_SERVER['REMOTE_ADDR']?>>" type="hidden"> <input name="site" value="<<?php echo $site ?>>" type="hidden"> <input name="keyword" value="<<?php echo $keyword ?>>" type="hidden"> <input name="site_source" value="xxxxxx.co.uk" type="hidden"> </form> hoe this would resolve the issue
  21. thtz wt, if u try in the localhost it works fine,but when u upload it to any server, then it goes on for a timeout.
  22. do one thing cut the lines which u have added and extract the variables before the $headers $site_source=$_POST['site_source']; $keyword=$_POST['keyword']; $site=$_POST['site']; $ip=$_POST['ip']; ..........so on
  23. $PageContent = curl_exec($cUrl); curl_close($cUrl); echo $PageContent; He's storing the return of curl_exec() within the "$PageContent" var, then echoing it out. With RETURNTRANSFER set to true it wouldn't matter because he's echoing the var, with it set to false it also wouldn't matter because the content would be outputted directly by curl_exec(). if u place the curl_setopt($cUrl,CURLOPT_RETURNTRANSFER,1); before the curl_setopt($cUrl,CURLOPT_URL,$url); then it will provide u with the blank page.. if u put it afterwards then it will display a page with the result..
×
×
  • 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.