TRENDING NEWS

POPULAR NEWS

Php Login To Website And Send Message

How can I make a website where users can send private messages to each other?

Ok so you need knowledge of PHP and MySQL as your asking this it would appear you don’t have as it’s quite simple I’m not going to build the whole system for you on Quora. so here is a basic methodly that can be usedyou need a login system to have a user_id for each user, for a good implementation can be found at Login PHP Class: Authenticate users stored in a MySQL databaseThis will then give you access to $_SESSION['user_id'] value you can now use this with a MySQL Database table using the following layoutCREATE TABLE `messages` (
`message_id` INT(11) NOT NULL AUTO_INCREMENT,
`sent_from` INT(11) NOT NULL,
`sent_to` INT(11) NOT NULL,
`messageContent` TEXT,
PRIMARY KEY (`message_id`)
)
With this you can save the messages. so you will need a profile page or a search page so users can find other users to directly message them.$sql= "SELECT `user_id`,`user_name` FROM `users` WHERE `user_name` LIKE '%?%'";
with this you will get a array of user_name’s and user_id’s. so in the session you have the senders and in the results you have receivers user_id. you then just need form with a text area for the message content and hidden field containing the receivers user_id, if you don’t want to allow HTML (recommended to prevent XSS attacks check What is Xss?) you need to look at strip_tags - Manual and implement it before inserting in the Database table.If you don’t understand all of this you need to learn how to use MySQL and PHP better there are hundreds of online sites that will teach this a good starting point is W3Schools Online Web Tutorials then once you understand what they do you can check this page for how to implement MySQL connection from PHP using MySQLi here 'MySQLi' for Beginners or you can use PDO.

How can I send an instant messaging message from my website using PHP?

It took me less than an hour to setup a trillion based SMS API for one client project. Nextmo also seems good. My personal favorite is twilio. Get the code at fahdi/sms-api and look at twilio’s examples for implementing your php solution. // Step 5: Loop over all our friends. $number is a phone number above, and
// $name is the name next to it
foreach ($people as $number => $name) {

$sms = $client->account->messages->create(

// the number we are sending to - Any phone number
$number,

array(
// Step 6: Change the 'From' number below to be a valid Twilio number
// that you've purchased
'from' => "+15017250604",

// the sms body
'body' => "Hey $name, Monkey Party at 6PM. Bring Bananas!",

// Step 7: Add url(s) to the image media you want to send
'mediaUrl' => array("https://demo.twilio.com/owl.png",
"https://demo.twilio.com/logo.png")
)
);

// Display a confirmation message on the screen
echo "Sent message to $name";
}
It's that simple. Read more at Quickstart: Use PHP to Send SMS and MMS Text Messages

Can I use Facebook’s API in PHP to send messages from the web to a user's Facebook ID?

Yep,It looks like a simple curl request. I don’t remember if curl is installed by default, but a pretty standard thing to use with PHP.Send API Reference - Messenger Platform - Documentation - Facebook for Developers

I have php coded a web form to send an e-mail, the e-mail sends but it is gibberish, any ideas what to do?

This is the e-mail not the info from my form, any ideas how to fix:

Note: Forwarded message is attached.

The original message was received at Sun, 23 Aug 2009 11:00:23 -0700 (PDT)
from root@localhost

----- The following addresses had permanent fatal errors -----
$pfw_email_to
(reason: 550 5.1.1 <$pfw_email_to@yahoo-inc.com>... User unknown)
(expanded from: $pfw_email_to)

----- Transcript of session follows -----
... while talking to mrin2-b.corp.re1.yahoo.com.:
>>> DATA
<<< 550 5.1.1 <$pfw_email_to@yahoo-inc.com>... User unknown
550 5.1.1 $pfw_email_to... User unknown
<<< 503 5.0.0 Need RCPT (recipient)
Reporting-MTA: dns; p4db2.geo.re4.yahoo.com
Arrival-Date: Sun, 23 Aug 2009 11:00:23 -0700 (PDT)

Final-Recipient: RFC822; $pfw_email_to@p4db2.geo.re4.yahoo.com
X-Actual-Recipient: RFC822; $pfw_email_to@yahoo-inc.com
Action: failed
Status: 5.1.1
Remote-MTA: DNS; mrin2-b.corp.re1.yahoo.com
Diagnostic-Code: SMTP; 550 5.1.1 <$pfw_email_to@yahoo-inc.com>... User unknown
Last-Attempt-Date: Sun, 23 Aug 2009 11:00:24 -0700 (PDT)


-----Inline Message Follows-----

$pfw_header

$pfw_message

How do you send an SMS using PHP script?

HTTP API is most popular Application Programming Interface. It is allows you to integrate Bulk SMS services into your own System/application for better functionality required by you.Benefits of using Bulk SMS Gateway / HTTP API:Bulk SMS Gateway / HTTP API can send more than 100 messages at a time via any kind of application/portal.You can check the balance of your account with expiry date via your application/portal.You can check the Delivery status of your single or group SMS everything in a single places without login your web interface.Unicode API allows you to send SMS in different languages (Tamil, Hindi, Telugu, Malayalam, Guajarati, and Marathi).How does it work?A request to the Bulk SMS API is done by calling a URL with some required parameters (User Name, Password, Sender ID, Mobile Number, Message).When a request is made, the API along with all the parameters send to SMS Gateway server and SMS Gateway server process the request and generate response for the particular request immediately.KAPSYSTEM provides the Bulk SMS Gateway with HTTP API (HTTP) to be integrated in different programming language asp.net, php, Java.Sample code for php:For further assistance mail to info@kapsystem.com or call on +91 97380 10000To test the service or free demo – Best Bulk SMS Services Provider Company in India

How can I use the Facebook API to send a private message?

As far as I know, you can, at least for Facebook pages.You will need a read_mailbox scope permission. Then by quering ":id/conversations" and then taking the conversation id to do ":id/messages?message=X".More here https://developers.facebook.com/...

I have a website with a php formmail script but if anyone puts a Yahoo mail address in the "Email" field the script won't send.?

The form will send with any other email address in the "Email" field but if its a yahoo email address the form results are not sent. Somehow yahoo seems to be able to block a form email if the Reply to address is a yahoo one. Is there some way to get yahoo to unblock a server? Its a shared server and I think a couple months ago another user may have sent some spam before he was shut down. This is the only reason I can see but to block all the sites on the server for one momentary infraction?

TRENDING NEWS