Anyone tried this before ?

http://smssync.ushahidi.com/

I've tried the given php sample...but it's not working ...

False payload something....

Dani AI

Generated

A short, focused checklist for debugging a PHP receiver for an SMS‑forwarding Android client. , since asked for code and error details, the most useful things to capture before asking for help are: the raw HTTP request (headers + body), the HTTP response code your script sends, and any webserver/PHP error logs. is right that this type of tool is Android‑centric, so platform differences matter when choosing a client.

Key steps to try now:

  • Log the raw request so you can see exactly what the client sends (headers and body). Capture both $_POST and the raw input stream.
  • Confirm the endpoint returns an HTTP 2xx status (no redirects) and a simple plain-text body while debugging.
  • Reproduce the same request with curl or Postman to isolate whether the problem is the PHP script or the client.
  • Check server modules (mod_security, firewalls) and any authentication token the client may require.
  • Avoid writing logs into web-accessible folders and remove debug logs after troubleshooting.

A minimal PHP debug snippet to log request data:

<?php
$raw = file_get_contents('php://input');
$hdrs = function_exists('getallheaders') ? getallheaders() : [];
file_put_contents('/tmp/smssync_debug.log', date('c')." ".$_SERVER['REMOTE_ADDR']." HEADERS: ".print_r($hdrs,true)." BODY: ".$raw."\n", FILE_APPEND);
header('HTTP/1.1 200 OK');
echo "OK";
?>

When asking for further help, post the captured raw request, exact response code/body, PHP version, and any server error log lines. Also note whether the client uses JSON or form-encoded POSTs and whether TLS/redirects are involved.

Recommended Answers

All 2 Replies

Post the specific PHP erroneous code section and the error to be able to work from what you've got?

Damn, That's only for Android users. I use Iphone only. I guess that wouldn't be useful for me!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.