Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 10, 2011 11:27 PM by PJLaurenson
Member
69 Points
42 Posts
Sep 10, 2011 11:27 PM|LINK
Hi, I have been using the following PHP AJAX script on a site development but am wanting to recreate the function in an application I am building in ASP.NET.
Any guidance you can give would be appreciated. :-)
<?php $location = 'albums'; $album_name = $_GET['album_name']; $files = glob($location . '/' . $album_name . '/*.{jpg,gif,png}', GLOB_BRACE); $encoded = json_encode($files); echo $encoded; unset($encoded);
Thanks,
PJ
PJLaurenson
Member
69 Points
42 Posts
PHP to ASP.NET AJAX Function
Sep 10, 2011 11:27 PM|LINK
Hi, I have been using the following PHP AJAX script on a site development but am wanting to recreate the function in an application I am building in ASP.NET.
Any guidance you can give would be appreciated. :-)
<?php
$location = 'albums';
$album_name = $_GET['album_name'];
$files = glob($location . '/' . $album_name . '/*.{jpg,gif,png}', GLOB_BRACE);
$encoded = json_encode($files);
echo $encoded;
unset($encoded);
Thanks,
PJ
</div>