Welcome Guest, Not a member yet? Register   Sign In
Accessing an xml file but unable to access a php file
#1

[eluser]keshavkuruva[/eluser]
Hi,

I am using code igniter to build an application. I am using ajax jquery call to call a php file and retrieve xml which is used in the javascript function.

I am able to access xml from url say for example like

http://xyc.com/fa/xml/fa.xml

But I am unable to access a php file

http://xyc.com/fa/xml/fa.php

Because I cant send a plain xml file as url in ajax call as it had to echo or return the xml. So I was using a php file to echo the same xml. But I am unable to run that file under code igniter.

Here is the ajax call.

$.ajax({

type: "POST",
url : "https://xyc.com/xml/fa.php",
dataType: "xml",
success: function(msg){


Please let me know .

Thanks in advance.

Keshav.
#2

[eluser]harman[/eluser]
can you explain complete code.




Theme © iAndrew 2016 - Forum software by © MyBB