Jump to content

knutsford

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About knutsford

  • Rank
    Member
  1. Any way if (date("I", $temp_time)) { $temp_time += 3600; } should work - thanks for your help
  2. I had understood that Europe/London took care of BST at at the right time of the year but obviously not
  3. You mean I needed the Z in strtotime($date); to make it work?
  4. Ok I have added if (date("I", $temp_time)) { $temp_time += 3600; } before converting it back to a date and time but I didn't think I needed to
  5. The date looks like 2019-08-13T13:30:00.000Z. I am confused. I though date_default_timezone_set('Europe/London'); took care of British Summer time and would convert it. What should my code look like then?
  6. I am having trouble coverting a untix tiem stamp to British Summer time $date = substr($row[18], 0, -1); date_default_timezone_set('Europe/London'); $temp_time = strtotime($date); $local_date = date('Y-m-d H:i', $temp_time); $date has the date in GMT time and I want to take care of the Britsh Summer Time difference but local_date is GMT time as well. I thought date_default_timezone_set('Europe/London'); was supposed to add an hour if it is British Summer Time? How do I take care of BST? Thanks
  7. knutsford

    emoji

    They are a ? in Wordpad
  8. knutsford

    emoji

    I am trying to download information from a MySQL database to excel one of of fields has emoji's in it but they are coming out as a ? in excel. How do I get them appear as an emoji in Excel? I am using header("Content-type: text/csv; charset=utf-8"); header("Content-Encoding: utf-8"); Should it be something different to utf-8 to get it to work? Google just says use utf-8 Thanks
  9. knutsford

    curl

    I have this bit of curl code $email_url = "http://xxxxx/user_emails.php"; $email_record = array( 'form_name' => "network", 'email' => trim($form_state['values']['email']) ); $curl_request = curl_init(); curl_setopt($curl_request, CURLOPT_URL, $email_url); curl_setopt($curl_request, CURLOPT_POST, 1); curl_setopt($curl_request, CURLOPT_POSTFIELDS, $email_record); curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, true); $curl_response = curl_exec($curl_request); echo "bbb"; echo $curl_response; curl_close($curl_request); But it isn't working and I can't see why http://xxxxx/user_emails.php exist and there are no error when I load it It takes forever then the bbb gets echo'd but I don't get anything from echo $curl_response; even if all that is in http://xxxxx/user_emails.php is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <?php echo "fail"; ?> </body> </html> Can someone see what is wrong please - thanks
  10. Thanks. I have gone through the code and manged to speed it up a bit. It is definitively doing more before collapsing in a heap. I think the main problem that is taking the time up is resizing and storing umpteen images per Property. As many as 9 or 10 in some cases. I am going to ask if he needs that many
  11. The cause is that is is looping through over 100 properties in an xml file. I have tried flushing the buffer within the loop to stop the timeout but that isn't working. None of my echo's in the loop are appearing on the screen
  12. Is that supposed to be a serious answer? All I want to know is what is the php 5.6. equivalent of set_time_limit(0); ini_set('max_execution_time', 0); ini_set('memory_limit', '-1');
  13. I have a script that is loading down properties but it is timing out by the look of it. How do I stop it from timing out in PHP 5.6 please? set_time_limit(0); ini_set('max_execution_time', 0); ini_set('memory_limit', '-1'); Doesn't seem to make any difference Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.