lavalant Posted May 4, 2007 Share Posted May 4, 2007 I have the WAMP server installed (Windows, Apache, MysQl and PHP) I made a very small php script <?php echo "text returned from server"; ?> the java script I have written to read this file this line is generating an access denied error message XMLHttpRequestObject.open(“GET”, myphpfile.php); - getting access denied error message they are both running on localhost, anyone know how to resolve this. Link to comment https://forums.phpfreaks.com/topic/50053-access-denied-when-trying-to-read-php-script-using-javascrtipt/ Share on other sites More sharing options...
trq Posted May 4, 2007 Share Posted May 4, 2007 Do you gert the expected results accessing the page directly? PS: The second arg is also a string. XMLHttpRequestObject.open("GET", "myphpfile.php"); Link to comment https://forums.phpfreaks.com/topic/50053-access-denied-when-trying-to-read-php-script-using-javascrtipt/#findComment-245682 Share on other sites More sharing options...
lavalant Posted May 4, 2007 Author Share Posted May 4, 2007 Sorry yeh I put the second argument as string, nothing is displayed on the page, the only thing i get is the small error icon on the bottom of the browser window(ie explorer) when i double click it points to that line number with the above text and says access denied. I wasn't sure if wamp had to be configured in some way. Link to comment https://forums.phpfreaks.com/topic/50053-access-denied-when-trying-to-read-php-script-using-javascrtipt/#findComment-245688 Share on other sites More sharing options...
angelodev Posted May 4, 2007 Share Posted May 4, 2007 Would you post just a bit more of your code? Maybe your problem is not in that statement. Link to comment https://forums.phpfreaks.com/topic/50053-access-denied-when-trying-to-read-php-script-using-javascrtipt/#findComment-245748 Share on other sites More sharing options...
mainewoods Posted May 5, 2007 Share Posted May 5, 2007 the 'XMLHttpRequestObject' object does not work with ie. ie uses an AciveXObject to implement ajax. Link to comment https://forums.phpfreaks.com/topic/50053-access-denied-when-trying-to-read-php-script-using-javascrtipt/#findComment-245791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.