Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Location
    UK: Oxford
    Posts
    1,256

    Exclamation PHP gallery Script Help!

    Hi guys, I have made this gallery script, but It keeps throwing up a problem at the Very end. All tags are correct and data is correct, just keeps that the final line is wrong, "?>".

    Here it is: I have removed the main section as I am selling this script!

    <?php //First line has your configuration:
    $a=b; $b=c; ?><?PHP

    //put this file in the same directory as your pictures and call it - works!
    //mixed functionality file in order to have everything in one file.
    //Details available at http://jwebhost.co.uk/shop/product_i...products_id=59
    //
    //
    //DO NOT PUT ANYTHING IN FRONT OF THE OPENING "<?PHP" TAG;
    //IF YOU DO YOU IT ANYWAY YOU HAVE TO SET $GD_WORKAROUND="oldGD"; AND $allowZip=false;
    //
    //first parameter (e.g. "phpshow.php?image&...") is the mode
    //available modes are
    //image: returns the picture resized
    //browse: overview of all pics
    //slides: slideshow
    //opaque: semi-transparent png images for fading
    //css: stylesheet
    //
    //author: Joe Garbett, July 2009 - July 2009, [email protected]

    ----TEXT REMOVED----

    $fillup=$imgsperline-(sizeof($filter_files)-$offset);
    for($i=$fillup;$i>0;$i--)
    echo "<td class=\"browsetd\" width=\"".strval(100/$imgsperline)."%\"></td>";
    echo "</tr>\n</table></center></div>
    <table><tr><td onmouseover=\"dontHide=true\" onmouseout=\"dontHide=false\" class=\"currpic\" style=\"border-top-style:none; z-index:99; visibility:hidden; position:absolute\" id=\"infotext\">
    </td></tr></table>";
    echo "$aftertext</body>";
    echo "</html>";
    die;
    //end part for browsing through images
    ?>

    Can see anything wrong with this??

    I cant paste anything else as I dont wany other people to get hold of it, And i can reasure you, that there is nothing wrong with the rest, only the final line... =[

    Any Idea's?
    Garbott Ltd - Professional web development & consultancy services
    Oxford.Hosting - Prestigious shared, cloud, dedicated and gaming hosting solutions.

  2. #2
    Join Date
    Jun 2009
    Location
    UK: Oxford
    Posts
    1,256
    It keeps coming up with: "Parse error: syntax error, unexpected $end in /home/sites/jwebhost.co.uk/public_html/mila/gallery/phpshow.php on line 1979" <- Line 1979 is the final line which on has "?>" on it.
    Garbott Ltd - Professional web development & consultancy services
    Oxford.Hosting - Prestigious shared, cloud, dedicated and gaming hosting solutions.

  3. #3
    Join Date
    Jun 2009
    Location
    UK: Oxford
    Posts
    1,256
    Fixed it, CLOSE THIS THREAD
    Garbott Ltd - Professional web development & consultancy services
    Oxford.Hosting - Prestigious shared, cloud, dedicated and gaming hosting solutions.

Similar Threads

  1. Gallery script
    By kentcounty in forum Web Design and Content
    Replies: 5
    Last Post: 10-29-2005, 12:54 PM
  2. Need someone to set up a php photo gallery script
    By GA PunkFreak in forum Employment / Job Offers
    Replies: 1
    Last Post: 08-11-2005, 12:36 AM
  3. Gallery script(s) used on these sites
    By aaronj in forum Web Design and Content
    Replies: 1
    Last Post: 08-02-2005, 12:49 PM
  4. A Photo Gallery Script?
    By CRTicas in forum Programming Discussion
    Replies: 5
    Last Post: 05-15-2005, 07:43 AM
  5. PHP - Photo Gallery Script
    By Ice_Black in forum Programming Discussion
    Replies: 7
    Last Post: 04-16-2003, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •