what is code for email sending through localhost pc..?
Answers were Sorted based on User's Feedback
Answer / tanmoy
localhost pc not support to send mail.
but we can check it in our localhost web browser by this code:
$val= mail($to,$sub,$message,$headers);
echo "TO::".$to."<br>";
echo "FROM::".$fr."<br>";
echo "Sub::".$sub."<br>";
echo "Message:".$message."<br>";
exit();
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / adrevol
You can send mails using mail() function in php.
But you need to configure the SMTP in your php.ini file
by default, it will be set to localhost
change the entry of SMTP = localhost to
SMTP =mail.xxx.com
Is This Answer Correct ? | 5 Yes | 6 No |
how we can crop an image and how we can display it..
if i give Limit for mysql query through php command line script like this for ex. $limit=500; $total_items = 1500; for($start=0;$start<$total_items;){ $command = "/usr/bin/php -q /home/sitename/public_html/admin/feedmanager/test.php feedid ".$_GET['feedid']." start ".$start." end ".$limit ; $start = $start+$limit; $command_result = system($command); } so it's execute command for 3 times so it give limit to sql query but if i have 27000 data so it takes long time? so my question is that is that any way from php command line script that i can use for collect all the data at once?
How do you compare strings in java?
What are the options to transfer session ids?
How would you declare a function that receives one parameter name hello?
Write the code for upload a video file in PHP.How will You Play this in Your Page.?
2 Answers ASD Lab, Convex Digital,
What are the functions used in php?
Why json is used in php?
How do I find out the number of parameters passed into function?
Is php a web server?
How can I find the width and height of an image resource?
2 Answers Rushmore Consultancy,
What is fetch array in php?