 in question. In any case, you'd need a very expensive cart to have taxes that high and a similar line to strip the commas would work. Barand is right - you should not store the values with the commas but we'd need to see all of the code to properly fix it.
Looks to me like you carefully strip commas out of $totalex but then use $total without stripping out commas.
You were right. I was not refreshing the sftp client, assuming incorrectly that it refreshed on a change in directories. In the script itself I was trapping the error on the resize incorrectly. I think I may have it now. You caught two errors. Now to fix the resize error.  Thanks for the help.
The simple test script that I posted in its entirety does not work so there is nothing past the echo '<br>$result: '.$result; line. I have used sftp to look for the file. Can't display it. In the full script the resize throws an error because it is not there. I am pretty sure that It is not there.
I have moved the upload directory out of public_html and I'm using fileinfo to revalidate mime type in addition to the gd getsimagesizes and the resize. I believe I can strip the EXIF data when I resize but I'll need to put some of it back because I don't want to remove copyright.
I have a script that uploads files fine on my local server running MAMP but when I upload it I get no file upload. I have tried to simplify as much as possible to troubleshoot and came up with the following script: <?php ini_set('display_errors', 1); error_reporting(E_ALL); define('BASE_DIR', '/home/lineligh/public_html/Art3/'); define('IMG_UPLOAD_DIR',BASE_DIR.'artwork/'); $id='4'; print_r($_FILES); if (isset($_FILES['picture']['name'])) { //check size if ($_FILES['picture']['size'] > 900000) { $uploaderr = true; $uploaderrmsg.='File must be less than 900,000 bytes<br />'; } //check type if ($_FILES['picture']['type']!= "image/jpeg" && $_FILES['picture']['type']!= "image/png") { $uploaderr = true; $uploaderrmsg.='File must be a jpeg or png<br />'; } $uploaddir = IMG_UPLOAD_DIR; $uploadfile = $uploaddir. $id. '.'. end((explode(".", $_FILES["picture"]["name"]))); $result = move_uploaded_file($_FILES['picture']['tmp_name'], $uploadfile); echo '<br>'.$_FILES['picture']['tmp_name']."</br>"; echo $uploadfile; echo '<br>$result: '.$result; }?> Which produces the following output: Array ( [picture] => Array ( [name] => Olivia-IMG_8678.jpg [type] => image/jpeg [tmp_name] => /tmp/phpe5Vpyq [error] => 0 [size] => 192649 ) ) /tmp/phpe5Vpyq /home/lineligh/public_html/Art3/artwork/4.jpg $result: 1 So, the file gets to the server, the move_uploaded_file function claims that it successfully renames the file and puts it in /home/lineligh/public_html/Art3/artwork/ but if I look for the file it is not there. I'm stumped as to what else to check. Webhosting company swears that my permissions are correct.
The header was sent because of a blank line at the end of an included php file and because of the warning messages. Once I got rid of both the blank line and the warnings it works. Thank you all for the help.
Adding http:// makes no difference Setting Error Reporting to E_ALL gives me warnings about undeclared variables and undefined indexes followed by an error because the header was already sent. error_reporting(E_ERROR); results in the same blank screen.
Can't you just "SELECT FROM in_chatroom WHERE 1" and display all the usernames? The table should have everyone who has been active in the last 5 minutes.
I think that perhaps the problem is this line: if($_POST['formSubmitRequest'] == "SubmitRequest") which says only create and send the message if the field formSubmitRequest contains the value SubmitRequest but the button is named submit and the value has a space in it. <input type="submit" name="submit" id="submit" value="Submit Request" /> You need to change the form or the script so that names and values match.
The line mail($to,$email_subject,$email_body,$headers); sends an email message to the address contained in $to, with the subject line contained in $email_subject, and the message contents is whatever is in the variable $email_body but you are trying to send yourself information that you are putting in $message. You need to do something like this: // build message $message = "Drake Centre Event Form.\n\n"; $message.= "name: $name\n\n"; $message.= "address: $address\n\n"; $message.= "phone_number: $phone_number\n\n"; $message.= "cell_number: $cell_number\n\n"; $message.= "email_address: $email_address\n\n"; $message.= "event_date: $event_date\n\n"; $message.= "event_time: $event_time\n\n"; $message.= "attendance: $attendance\n\n"; $message.= "banquet_room: $banquet_room\n\n"; $message.= "both_rooms: $both_rooms\n\n"; $message.= "bar_area: $bar_area\n\n"; $message.= "contact_name: $contact_name\n\n"; $message.= "phone_number: $phone_number\n\n"; $message.= "dvd: $dvd\n\n"; $message.= "questions: $questions\n\n"; mail($to,$email_subject,$message,$headers); What error messages do you get now that they display?However frustrating your team's season has been, it cannot rival Virtus Entella's. The Italian side are not losing games, though - they are not playing any.
The club, based near Genoa in northern Italy, are still waiting to discover if they will be featuring in the second or third tier this season, all while both leagues get on with their fixtures without them.
Virtus Entella were relegated from Serie B - the second division - via the play-offs last season.
Normally that would be that.
But Serie B sides Cesena, Bari and Avellino all went bankrupt this summer. Virtus Entella and other affected clubs claimed they should get a reprieve but, following complicated legal battles, the second tier went ahead with only 19 teams.
But after Virtus Entella played their opening Serie C game, a 3-1 win at Gozzano on 17 September, they were given another lifeline.
The Italian National Olympic Committee (Coni) decided a points deduction for Cesena should apply to 2017-18 and not 2018-19, meaning Virtus Entella would move up one place in last season's Serie B table and avoid relegation.
The club were told to stop playing in Serie C because they would be moved up a division. All of their fixtures were cancelled.
But the Italian Football Federation (FIGC) stepped in and said Coni did not have the authority for such a decision - so it plans to meet with the TAR, a regional administrative court, on Tuesday, 9 October to decide what happens to Virtus Entella.
Entella defender Gabriel Cleur spoke to BBC World Service's World Football Show about the situation.
"Some players have contracts for Serie C and if they were to go into Serie B, there's a different budget and different money," he said.
"So we don't know if we're getting paid Serie B or Serie C wages. Some players are getting delayed on their payment but most are getting paid, the minimal pay - the Serie C standard wages.
"Players have families to look after. Most of the players aren't on ridiculous money or have savings they can fall back on."
Cleur is a 20-year-old Australian living in Italy - without any family - for his football career.
"Because I'm younger, I don't have savings to fall back on and if I want tickets to go home, it affects it," he said. "The players with families are stressed because they don't know if they're going to have to change teams. What happens if they stay here on a lesser wage?"
The Entella players had planned to visit FIGC headquarters and stage a protest, but the club's directors advised them not to.
"The 9 October decision isn't for when our next game is - just whether we are in Serie B or Serie C. But it could be 15 or 22 October, another sentencing date, to see when we can play.
"We want to put pressure on. The directors are saying maybe it's not the best idea."
The players are