www.webdeveloper.com
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 16 to 30 of 62

Thread: Send SMS (text messages) via PHP

  1. #16
    Join Date
    Apr 2007
    Posts
    1,664
    SMS gateway services will allow for this. you typically pay for each ext message but can upsell the value of them. Read the post above for an example service we used to run.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  2. #17
    Join Date
    Apr 2006
    Posts
    493
    protip: for us carriers 99% of text messaging can be accessed by email via

    yournumber@yourcarrier'sDomain

    example being #@verizon.com

  3. #18
    Join Date
    Jan 2009
    Posts
    8
    Hi im trying to get this to work and im not having any luck can u explain how to get this php to work ive never worked with it b4. when i hit submit the actual php file comes up and nothing happens

  4. #19
    Join Date
    Apr 2007
    Posts
    1,664
    So are you running this on a testing server on your PC?

    You need to call the files via http://domain, on a WAMP/LAMP box probably http:/localhost/testpage.php. If you access it via the file structure like, c:\path\to\files\.test.php it'll not be run through the server's php interpreter so you get the text file. You can acesss HTML via the file structure because the .html file extensin is probably associated with a browser. It'll display correctly, directly opened in a browser but PHP will not. So if you mix that up you'll get the problem you're having. An HTML page with a form with the action to a PHP page opened via the file structure in a browser. The HTML page will display but the PHP one will show as text.

    Always view PHP pages through the webserver, eg http://yadda/yadda.
    Last edited by SyCo; 01-13-2009 at 09:45 AM.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  5. #20
    Join Date
    Jan 2009
    Posts
    8

    Thumbs up

    i uploaded it to my host here is the site http://www.miamicriminallawattorney.com/sample.html it doesnt look right i know because im not @ that point yet to make it look nice im just trying to get the text thing working first. ty so very much for your information thus far.

    Smoke1

    this is the message i get

    Method Not Allowed

    The requested method POST is not allowed for the URL /scripts/send_sms.php.

    i would like to do away with the carrier drop down and have that hidden along with the "to" section just a given that its going to go there so people do not abuse the texting and start using the site to text thier friends and eat up the transfer data quota.
    Last edited by Smoke1; 01-13-2009 at 11:08 AM.

  6. #21
    Join Date
    Apr 2007
    Posts
    1,664
    Contact your Host. I think that's a configuration error. They should allow POST. You should create a simple test page with a simple form that posts to itself and reads an input with php.

    Something like this

    PHP Code:
    <html>
    <body>
    <?
    if(isset($_POST['test'])echo $_POST['test'];
    ?>
    <form method="post" action="<?php echo $_SERVER['SCRIPT_NAME']?>">
        <input type="text" name="test" id="test">
        <input type="submit">
    </form>
    </body>
    </html>
    Check for errors and forward them to your host. Use the simple URL to report the problem to keep confusion to a minimum.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  7. #22
    Join Date
    Jan 2009
    Posts
    8

    Unhappy

    is this kinda right......?

    link is http://www.miamicriminallawattorney....s/testies.html

    and the php is http://www.miamicriminallawattorney....ripts/test.php

    this is all like chineese to me man im more lost than a blind man on a deserted island lookin for a tity bar.

  8. #23
    Join Date
    Apr 2007
    Posts
    1,664
    For a final test try this and just this on a new page.
    PHP Code:
    <?
    phpinfo
    ();
    ?>
    save it as info.php and visit it via an http:// address in your browser.

    You should get a page with blue boxes full of server information.

    Who is your host?

    If you don't get the info page then they have not configured their server correctly. If they clam to support PHP they have screwed up badly. My advice, go somewhere else. If they can't get something simple like this right, run away, they will never be able to handle the security aspects of running a server.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  9. #24
    Join Date
    Jan 2009
    Posts
    8
    this is the link http://www.miamicriminalattorney.com/scripts/info.php

    i made the php file with just what you had put in and this is what it told me

    Not Found

    The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it.

  10. #25
    Join Date
    Apr 2007
    Posts
    1,664
    You have to answer all the questions asked of you in the replies to your posts. It's frustrating helping you when you don't answer, because without the info we're guessing and that's a waste of time.

    So again, who is your host?

    What package/account/deal do you have with them.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  11. #26
    Join Date
    Jan 2009
    Posts
    8
    cc.earthlink.net is the host and we have the general $19 a month plan

  12. #27
    Join Date
    Apr 2007
    Posts
    1,664
    There is no $19 a month plan. What is the plans name?

    http://www.earthlink.net/web-hosting/

    It looks like they support PHP in the $17.98 prosite plan and they should support POST too in all accounts.

    You need to contact Earthlink support.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  13. #28
    Join Date
    Jan 2009
    Posts
    8
    its starter site web hosting plan
    Domain: miamicriminallawattorney.com
    Hosting Bill Plan: Starter Site
    Web Space: 5000 MB
    Data Transfer: 20 GB/month
    Monthly Fee: $19.95


    i just installed this on the server is this what i was missing



    phpBB
    phpBB is a popular way to add forums to a Web site. The straightforward administration interface lets you get up and running quickly, while phpBB's flexibility lets you customize the look and feel of your forums to match your Web site.


    phpBB Final Installation
    Version: 2.0.21
    Install Date: Tue Jan 13 10:40:31 PST 2009






    Installation Notes

    The phpBB script files can be found in your /webdocs/phpbb folder.

    After installation, click Set Up Your Forums to create an admin username and password for your forum. Complete this step immediately to secure your forum.

    After setup, several directories must be removed in order to ensure the security of your forum. Use the file manager to delete the following folders: /phpbb/install and /phpbb/contrib

  14. #29
    Join Date
    Apr 2007
    Posts
    1,664
    OK Smoke. You're new here and to PHP, so I've really been patient. I asked you to contact your host. That's the next thing you have to do. You should have already don't that by now so we know if that's the problem. I even gave you a simple script to make communication with them easier and more clear. There is nothing more that can be done for you until you do that.

    The starter site package has PHP5 so you should be able to use it. PHPbb is a forum script package included free with your hosting. Not a great bargain as it's free anyway but it might be easier to install. Only install it if you want to add a forum/message board to your site. It's not the solution you are looking for to this problem. Contact your host and if they don't fix it tell us what they said.
    Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.

  15. #30
    Join Date
    Jan 2009
    Posts
    8
    ty so much for the patience and willingness to help me out u rock

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles