Giter Site home page Giter Site logo

Comments (2)

youngj avatar youngj commented on July 30, 2024

See http://sms.envaya.org/serverapi/upgrade30.html

On Thu, Jun 7, 2012 at 7:21 AM, rref
[email protected]
wrote:

I have these error on application log when it checking messages.
I also use only these code as server URL/sms.php

 require_once "config.php";
require_once "EnvayaSMS.php";
//$request = EnvayaSMS::get_request();

header("Content-Type: text/xml");

$porr = new EnvayaSMS_OutgoingMessage();
$porr->id = $idall;
$porr->to = $_POST['mobile'];
$porr->message = $_POST['message'];
$porr->type= 'sms';


Reply to this email directly or view it on GitHub:
#28

from envayasms.

rref avatar rref commented on July 30, 2024

im using EnvayaSMS 3.0.1 , so this line header("Content-Type: text/xml"); is header("Content-Type: {$request->get_response_type()}"); and its the same thing..
maybe it get wrong becouse i made function eg. send_sms() {
require_once "config.php";
require_once "EnvayaSMS.php";
$request = EnvayaSMS::get_request();

header("Content-Type: {$request->get_response_type()}");

$porr = new EnvayaSMS_OutgoingMessage();
$porr->id = $idall;
$porr->to = $_POST['mobile'];
$porr->message = $_POST['message'];
$porr->type= 'sms'; }

but when i put require_once "config.php";
require_once "EnvayaSMS.php"; out from function send_sms()
i get error on web page, but no error on app log. :S

from envayasms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.