Ajax

0 karthikkumar krishnamoorthy · December 22, 2014
I am getting the Access denied while calling this method.
"xmlHttp.open("GET","foodStore.php?food="+food, true);"

Note : i didn't host the php file using any server

Post a Reply

Replies

Oldest  Newest  Rating
+2 Steven the awesome · December 22, 2014
You need a PHP engine to run a PHP file. So you need a server like Xampp or Wamp, which translates the PHP code in HTML code.
0 Adrian Boisclair · December 31, 2014
I noticed that when accessing the files at localhost/folder/index.html then my server wouldn't run the PHP code...
BUT if I access the files from my given ip (10.0.0.X/folders/index.html) then the PHP code will run.  Just a heads up.
  • 1

Javascript

107,037 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators