Reputation: 2811
Please forgive the simplicity of this question. The answer will be obvious to many of you. But since I'm completely new to php and JSON, and I can't find a concrete answer on Google, I need to ask.
I have the following:
The question is very simple. Where on the server do I put the php file? Any directory? A specific location? I just need a simple working answer. Not concerned about security or anything fancy at this stage. Please help.
Also, does anyone know of a very simple tutorial that talks about php, json, and working on the server side for someone like me who's completely new to it?
Upvotes: 1
Views: 157
Reputation: 16214
Your server must be available with a one of the given folders
if any of the folder you can see in your server then this is the place where you need to place your php files
basic Introductory Tutorial for PHP with examples
Basic Introductory Tutorial For JSON
Upvotes: 2
Reputation: 3381
To run your php script you will need an http server on your server that handles php script.
For example you can use the apache web server with mod_php. You then can put your php file in the server default web folder or configure another one.
Upvotes: 1
Reputation: 2407
As long as the php file is accessible by http you are fine. So pretty much anywhere.
here is a tutorial. http://www.itnewb.com/tutorial/Introduction-to-JSON-and-PHP
Upvotes: 1