php


Can't Read Input Stream | PHP [duplicate]


I have spent hours researching and cannot figure out why my messenger bot is not working, I have setup web hooks correctly and FB has approved the setup of the web hook.
file_put_contents("fb.txt", file_get_contents("php://input"));
This code produces no error, but it does not put anything into "fb.txt" file when I send the bot a message.
If I do this, the text in "fb.txt" changes, that shows me that FB is sending requests to the URL, but for some reason "PHP://Input" is not working.
file_put_contents("fb.txt", "Its Working");
The above code adds "Its working" to the file when I send the bot a message, but it will not add the contents of PHP://INPUT to the file, It just comes up blank?
What am I doing wrong?

Related Links

Selecting data from multiple tables and printing them [duplicate]
How Can I Make SHA256withRSA in PHP? How i can know what [signature bytes] in official example?
404 when accessing Codeigniter page
Parsing through command line arguments/argv
Sending email using AngularJS and Wordpress
Wordpress Pagination not appearing
Adding a search form inside a div in Wordpress
Clause IN() mysql return only one row when prepared with :pdo php [duplicate]
Go AOP is not catching my aspects
php sql Variable
read database through sql without admin login
How to use plural with phalcon multilingue plugin
Uploading 30,000 posts into Wordpress without causing an XML-RPC crash
Join two tables and put results in grid magento 1.9.x
Merging a SELECT query and a SELECT COUNT query
Subtract Stock Open cart set by default value

Categories

HOME
xpath
rust
entity-framework
events
xcode
dotnetnuke
mongoid
jersey-2.0
biztalk-2010
lda
clish
ex
webstore
exe
gravity
renderscript
deepfreeze
data-type-conversion
kamailio
maven-surefire-plugin
channel
websphere-portal
substring
ratio
background-color
xdebug
network-analysis
sendmessage
ninject
boolean-logic
memory-fences
opnet
reporting
delayed-job
universal
ms-media-foundation
cloveretl
markov-chains
spinner
love2d
code-rally
unification
aurelia-http-client
selenide
uipickerview
optionaldataexception
sendinput
section508
ssi
return-type
phppgadmin
amazon-elastic-beanstalk
redisson
subforms
gtk#
word-2007
portability
rcharts
fitbit
annotatorjs
allegro
yui3
pjax
jsf-2.3
p6spy
utf-16
persistent-object-store
jsr363
flush
ibm-was
calcite
hmisc
wlanapi
bootstrap-wysiwyg
artisan
directorysearcher
full-text-indexing
treeline
neo4jphp
fileshare
accountmanager
django-settings
san
rautomation
jquery-transit
days
cgrectmake
towers-of-hanoi
onconfigurationchanged
story
zend-pdf
msinfo32
pageheap
jzmq
navigationcontroller
django-apps
dynamic-c
qtextbrowser
play2-mini
data-dump
space-partitioning
self-tracking-entities
google-translator-toolkit
3270
downloadfile
community-server

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile