Skip to content

u/bert1589

In this archive from Jan 2017 to Oct 2026

1
posts
33
comments
0
media
63
score
1 saved before deletion

What sort of reservations? I've built several systems that handle all different kinds, travel, hospitality, nightlife, other... interesting venues....

Could you give a little bit more detail about your inputs? Is it a regular old HTML form? Is it being POSTed from a javascript framework? How is the data hitting the PHP script?

1 points

From an app perspective you’re thinking about this all wrong. You’re talking about making a HTTP request to a web server.

The lifecycle of a HTTP request is in the form of a request and a response. The client (iOS app) is making a request to the server. The server handles that request and then returns a response to the client.

In your case, your request is a JSON object being sent from the client (iOS) to the server (PHP script). Parse that request body on the server with PHP and build your response as an object or an array and then echo it out with json_encode.

For instance:

(This is on mobile so forgive me for simple mistakes and a shortened example)

<?php //read raw POST data from stdIn if not set from a typical form POST if(!isset($_POST)){ $data = file_get_contents(“php://input”); $_POST = json_decode($data); } // handle POST data here $response = [ “firstName”=>”John”, “lastName” => “Doe” ]; //tell the client (iOS app) what type of response you’re sending back to them header(“Content-type: application/json”); //json encode the response array and echo (output it to the response) it out echo json_encode($response); /* should output: { “firstName”:”John”, “lastName”:”Doe” } */ ?>

This is obviously a very overly simplified version without any real logic but it should help you navigate a basic POST request from a mobile app.

3 points

I have a hard time believing this list is anywhere near legitimate. Sounds fishy from the start.

Also, good luck with rate limits, not just from Twilio but from the connecting carriers. Twilio can’t help with that. Then you have to managed deliverability events to hopefully try to redeliver it for you because Twilio won’t do that for you automatically either.

You’d likely have to disperse it over 100s of numbers to complete the task with any kind reasonable timeline.

-2 points

Fair enough if you're still learning. Just remember to evaluate your time as you grow as a professional. I got caught in a trap where I started underquoting because I felt "imposter syndrome." I suddenly landed a few big projects and realized that the real world supports more than $25/hr when you do good work and you can increase your own profitability by creating your own library of tools (past code / projects / scaffolds) to work off of. Just keep iterating! Good luck in your endeavors.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.