No cross-subject violation meant, just shopping where the knowledge
is...
Sorry, and thanx again
Petr
Jerry Stuckle
unread,
Feb 8, 2012, 5:02:37 PM2/8/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
You'll do better asking in an asp newsgroup, since that's your target.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net ==================
Denis McMahon
unread,
Feb 8, 2012, 10:06:54 PM2/8/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
See Jerry's comments - I can try and explain what I think the code does,
but (a) I might be wrong and (b) I know nada about ASP.
It seems to be generating a json encoded list of pathnames of all files
matching 3 popular image types in a subdirectory of "albums" that was
passed as a parameter in a get request.
The following pages should help you work your way through understanding
the php:
This might give you enough of an understanding to write the equivalent
ASP code, or it might not.
Rgds
Denis McMahon
"Álvaro G. Vicario"
unread,
Feb 9, 2012, 12:11:51 PM2/9/12
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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).