Jump to content

carbonize

Members
  • Posts

    824
  • Joined

  • Last visited

Posts posted by carbonize

  1. Yes you are right in regards to it being removed in PHP 6. I would personally just send all your customers an email saying that you are disabling register globals at a set date and that way they have plenty of time to update their scripts. Most scripts they have obtained would of been updated anyway (hopefully) and possibly contain security fixes. If it's their own script then they need to get off their backsides and fix them anyway.

  2. I just tested using this bit of code

     

    >$add_headers = 'From: YYY@MyDomain.net' . "\r\n" . 'Return-path: YYY@MyDomain.net' . "\r\n";
    
    mail('webmaster@carbonize.co.uk', 'test' , 'Just a test message' , $add_headers, "-fYYY@MyDomain.net");

     

     

    and here is the header

     

    >Received: from nobody by matra.tchmachines.com with local (Exim 4.69)
    (envelope-from <YYY@MyDomain.net>)
    id 1NG6ly-0001se-39
    for webmaster@carbonize.co.uk; Thu, 03 Dec 2009 03:10:46 -0500
    

     

    Wonder if there is a problem with the sendmail on the habs server or if it is running in safe mode for some reason.

     

     

    BTW this bit of code

     

    $add_headers = 'From: YYY@MyDomain.net' . "\r\n" . 'Return-path: YYY@MyDomain.net' . "\r\n";

     

    would be better as

     

    $add_headers = "From: YYY@MyDomain.net\nReturn-path: YYY@MyDomain.net\n";

  3. The only solution is the one you have been given. I use the -femail@address.com in my mail sending and this is my header

     

    >Received: from nobody by matra.tchmachines.com with local (Exim 4.69)
    (envelope-from <noreply@carbonize.co.uk>)
    id 1NFswf-00040K-CZ
    for webmaster@carbonize.co.uk; Wed, 02 Dec 2009 12:24:53 -0500
    

     

    So you need to check your code again or if you wish feel free to email me a copy to look at.

  4. Whenever I click 'Mark Board As Read' the forum returns this error:

     

    [#20312] Sorry, but you do not have permission to use this feature. If you are not logged in, you may do so using the form below if available.

  5. Dadamail 4 is in beta and supports Twitter but only if certain modules are installed. Was just curious if the two modules it requires are installed on TCH servers?

     

    You can read what they are at hxxp://dadamailproject.com/support/documentation-dada-4_0_0-beta_1/features-twitter_support.pod.html

     

    <edit>Why does the forum put a space between support. and pod ?

  6. I stopped using ereg a few years ago as I prefered the power of preg. You can only support old functions for so long until you have to say that's it and turn them off. If we all lived by your philosophy of not changing things we would still be all using $HTTP_GET_VARS instead of just $_GET or we would all still be designing websites that looked right in IE5.5 and Netscape 4.

     

    Oh and please learn what deprecated means. Here's what it says on php.net/ereg

     

    This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

     

    "DEPRECATED as of PHP 5.3.0" not removed. This means they are planning on removing it and so you will get a warning that the function is deprecated if you use it but, and this is the important part, IT WILL STILL WORK. As web developers it is up to us to keep up with the latest functions, changes, ideas and PHP will give you a warning when something has become deprecated so you have time to learn what it has been replaced with or a better way of doing it.

×
×
  • Create New...