FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » 6 line php 2 asp
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: 6 line php 2 asp [message #176955 is a reply to message #176948] Thu, 09 February 2012 17:11 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 08/02/2012 22:40, Pettt[CZ] escribió/wrote:
> Guys, this is your humble ASP colleague asking for help.
> I have no experience with PHP and I need this 6 line page translated
> to ASP
>
> $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);

If I recall correctly, ASP was already abandoned when JSON was invented
so you'll have to write your own JSON routines.


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Headers in fpassthru() output
Next Topic: Query or Array functions
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 20:20:46 GMT 2024

Total time taken to generate the page: 0.03657 seconds