Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-21-2008, 02:19 PM
seyz4all seyz4all is offline
Newbie
 
Join Date: Aug 2008
Posts: 8
Rep Power: 0
seyz4all is on a distinguished road
Default Pc sms to mobile phone problem

can anybody help with php code that can change the sender id to text, so that the receiver would see somethin like "James company" and not "012565355"...
in this case i am using a gsm phone connected to my pc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-21-2008, 05:18 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,203
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Pc sms to mobile phone problem

Can you post your the code you are currently using?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-21-2008, 05:20 PM
orjan's Avatar   
orjan orjan is offline
Programming Professional
 
Join Date: Sep 2007
Location: Sunne, Värmland, Sweden
Age: 33
Posts: 328
Last Blog:
Procedural Programming...
Rep Power: 9
orjan has a spectacular aura aboutorjan has a spectacular aura aboutorjan has a spectacular aura about
Default Re: Pc sms to mobile phone problem

Everything depends on how your phone allows the sms sending from the PC. If there is a API and how you can control it. I think your problem is not in first hand a PHP problem.

You need to understand how your mobile sends sms from the computer. many phone manufacturers only allow this through a certain interface.

For text senders, I'm not sure about how that is provided, I don't think many operators provide that service for gsm phones.

at least in Europe, this is almost only provided by premium sms services from the operators.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-22-2008, 02:18 AM
seyz4all seyz4all is offline
Newbie
 
Join Date: Aug 2008
Posts: 8
Rep Power: 0
seyz4all is on a distinguished road
Default Re: Pc sms to mobile phone problem

there softwares like ozeki sms server that connects to the phone via the computer but the script..

here is the send script

Code:
<?php
  $gatewayURL  =   'http://localhost:9333/ozeki?'; 
  $request = 'login=admin'; 
  $request .= '&password=abc123'; 
  $request .= '&action=sendMessage'; 
  $request .= '&messageType=SMS:TEXT'; 
  $request .= '&recepient='.urlencode('+36205222245'); 
  $request .= '&messageData='.urlencode("Hello World"); 

  $url =  $gatewayURL . $request;  

  //Open the URL to send the message 
   file($url); 
?>
my question is, how can i add sender and make a text in there like ('john company') to be seen by the receiver instead of my phone number.

This is the second example code they have...

Code:
<?php
if ($submit=="Send")
{
$url='http://localhost:9333/ozeki?'; 
$url.="action=sendMessage";
$url.="&login=admin";
$url.="&password=abc123"; 
$url.="&recepient=".urlencode($recepient);
$url.="&messageData=".urlencode($message); 
$url.="&sender=".urlencode($sender);
file($url);
}
?> 
<html>
<form method=post action='index.php'> 
<table border=0>
<tr> 
<td>Sender</td><td><input type='text' name='sender'></td> 
</tr>
<tr> 
<td>Recepient</td><td><input type='text' name='recepient'></td> 
</tr>
<tr> 
<td>Message</td><td><input type='text' name='message'</td> 
</tr>
<tr> 
<td colspan=2><input type=submit name=submit value=Send> 
</form>
</tr>
</table>
</form> 
</html>

Last edited by seyz4all; 08-22-2008 at 02:21 AM. Reason: needed to add somthin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Applications for Your Mobile Phone Kernel Programming News 0 08-12-2008 02:41 PM
Mobile Phone Keys Jordan Technology Ramble 5 05-15-2008 02:25 AM
Detect Mobile Phone Chan JavaScript and CSS 1 09-06-2007 01:04 AM


All times are GMT -5. The time now is 07:34 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads