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 #176960 is a reply to message #176955] Fri, 10 February 2012 10:20 Go to previous message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma:
Senior Member
On Feb 9, 5:11 pm, "Álvaro G. Vicario"
<alvaro.NOSPAMTH...@demogracia.com.invalid> wrote:
> 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.

There are a couple of libraries listed on http://www.json.org/ for it.
I can't recall which one of them I used when I last did an asp project
but whichever one it was, worked well (and is still working).
[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: Thu Nov 28 20:16:54 GMT 2024

Total time taken to generate the page: 0.04386 seconds