this is probably a simple mistake but i have been racking my brain to figure it out.. time to ask for some input. thanks
This is the error i receive
Parse error: syntax error, unexpected T_ELSE in /homepages/7/d228892592/htdocs/www.audiospecialistsofhopkinsville.com/sendEmail.php on line 41
here is the code
<?php
/**********
* Your Settings
**********/
$www_dir = realpath(dirname(__FILE__)); //leave it, unless your're knowing what you're doing :)
$current_dir = dirname($_SERVER["REQUEST_URI"]); //leave it, unless your're knowing what you're doing :)
$upload_dir_prefix = $www_dir . "http://www.audiospecialistsofhopkinsville.com/htdocs/gal.php"//; //The place for your Images, make sure to make it writeable for your webserver (chmod 757)
//trailing slash required
//connection-infos for your database
$db_host = "localhost"; //change!!
$db_user = "rob"; //change!!
$db_pass = "open"; //change!!
$db_name = "http://www.audiospecialistsofhopkinsville.com/htdocs/gal.php"; //change!!
//extensions for your images
$pic_ext = array("jpg", "jpeg", "png", "gif");
//file-size limit in MB
$max_file_size = 2;
//Mainpage-setting
$img_per_page = 20; //define how much pictures should be placed on each page
//Userdate
$conf_user = "rob"; //change!!
$conf_pass = "open"; //change!!
$use_js_order = true; // set it to false, if you don't like to use the drag and drop sorting within the gallerymanagement,
// but you will be able to sort too
//instead of using the SWF Uploader
$use_jupload = true; //true - false
$version = "1.3";
/**********
* After completing upload a message will be displayed and after that a redirect occurs
* these settings can be changed in
*
* swfu220B4/handler.js line 98 and 99
**********/
//different sizes
/*****
* If you like to get fixed dimensions you have to add $c_width and $c_height too
* add $s-possibilies as much as you need
*****/
//width -> maximum-width
//width -> maximum-height
//c_width -> fixed-width
//c_height -> fixed-height
$size[1] = array("width" => 50, "height" => 50, "c_width" => 50, "c_height" => 50);
$size[2] = array("width" => 800, "height" => 600);
//3 ... reserved for original image
$size[30] = array("width" => 1024, "height" => 768);
$size[4] = array("width" => 105, "height" => 105);
$size[5] = array("width" => 175, "height" => 175);
$size[6] = array("width" => 250, "height" => 250, "c_width" => 250, "c_height" => 250);
$size[7] = array("width" => 400, "height" => 300);
/*** dont' change [+]
* important variables for resizing
* ***/
$width = $size[$s]["width"];
$c_width = $size[$s]["c_width"];
$height = $size[$s]["height"];
$c_height = $size[$s]["c_height"];
/*** dont' change [-] ***/
/**** Session Part ****/
ini_set("session.gc_maxlifetime",84600);
@session_start();
$auth = $_SESSION["auth"];
?>