znelbok
03-14-2012, 12:29 PM
1) Script Title: PHP Photo Album script v2.11
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm
3) Describe problem:
Hi Guys
I am not a code junkie so my skills with html, js etc are very limited.
I tried the script but I get an error. I am pretty sure I followed the intsruction correctly and I think I got the PHP working preoperly on my IIS (w2k3) server.
Initially I had an 403 error and a message saying I could not execute scripts, but I fixed that.
I followed the instrucitons here for installing and setting up php
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
The php.ini file was oroginally called php.ini-production which I copied and renamed. ( I hope this was right).
Webpage error details (from ie7)
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E)
Timestamp: Thu, 15 Mar 2012 00:01:20 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.2/cameras/Cam1/getalbumpics.php?id=Cam1
Message: 'Cam1' is undefined
Line: 29
Char: 1
Code: 0
URI: http://192.168.0.2/cameras/Camera1.php
This is the file Camera1.php. Its pretty much just what is given on the page - just want to see it working before I try spicing it up.
<html>
<head>
<script type="text/javascript" src="http://192.168.0.2/cameras/Cam1/getalbumpics.php?id=Cam1"></script>
<script type="text/javascript">
//Optional, manual description for particular pictures inside album
//Syntax: albumid.desc[index]="Picture description here"
//eg: myvacation.desc[2]="This is description for the 3rd picture in the album"
//eg: myvacation.desc[6]="This is description for the 7th picture in the album"
</script>
<script type="text/javascript" src="ddphpalbum.js">
/***********************************************
* PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="ddphpalbum.css" />
</head>
<body>
<script type="text/javascript">
new phpimagealbum({
albumvar: Cam1, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [3,2],
sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: true, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
thumbnailviewer.loadimage(thumbref.src, "fit2screen")
}
})
</script>
</body>
</html>
Thanks for any help
Mick
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm
3) Describe problem:
Hi Guys
I am not a code junkie so my skills with html, js etc are very limited.
I tried the script but I get an error. I am pretty sure I followed the intsruction correctly and I think I got the PHP working preoperly on my IIS (w2k3) server.
Initially I had an 403 error and a message saying I could not execute scripts, but I fixed that.
I followed the instrucitons here for installing and setting up php
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
The php.ini file was oroginally called php.ini-production which I copied and renamed. ( I hope this was right).
Webpage error details (from ie7)
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E)
Timestamp: Thu, 15 Mar 2012 00:01:20 UTC
Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://192.168.0.2/cameras/Cam1/getalbumpics.php?id=Cam1
Message: 'Cam1' is undefined
Line: 29
Char: 1
Code: 0
URI: http://192.168.0.2/cameras/Camera1.php
This is the file Camera1.php. Its pretty much just what is given on the page - just want to see it working before I try spicing it up.
<html>
<head>
<script type="text/javascript" src="http://192.168.0.2/cameras/Cam1/getalbumpics.php?id=Cam1"></script>
<script type="text/javascript">
//Optional, manual description for particular pictures inside album
//Syntax: albumid.desc[index]="Picture description here"
//eg: myvacation.desc[2]="This is description for the 3rd picture in the album"
//eg: myvacation.desc[6]="This is description for the 7th picture in the album"
</script>
<script type="text/javascript" src="ddphpalbum.js">
/***********************************************
* PHP Photo Album script v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<link rel="stylesheet" type="text/css" href="ddphpalbum.css" />
</head>
<body>
<script type="text/javascript">
new phpimagealbum({
albumvar: Cam1, //ID of photo album to display (based on getpics.php?id=xxx)
dimensions: [3,2],
sortby: ["file", "asc"], //["file" or "date", "asc" or "desc"]
autodesc: "Photo %i", //Auto add a description beneath each picture? (use keyword %i for image position, %d for image date)
showsourceorder: true, //Show source order of each picture? (helpful during set up stage)
onphotoclick:function(thumbref, thumbindex, thumbfilename){
thumbnailviewer.loadimage(thumbref.src, "fit2screen")
}
})
</script>
</body>
</html>
Thanks for any help
Mick