Jump to content

d22552000

Members
  • Posts

    535
  • Joined

  • Last visited

    Never

Posts posted by d22552000

  1.         $body = "From:\n Name: $fullname_field\n Company: $company_field\n E-Mail: $email_field\n Phone: $phone_field\n Address: $address_field\n City State Zip: $citystate_field\n Date Needed By: $dateneeded_field\n Service Required: $service_field"n Budget: $budget_fieldn Approximate Pages: $approxpages_fieldn Connection Type: $connection_fieldn Additional Options 1: $maintenanceplan_fieldn Additional Options 2: $logowork_fieldn Additional Options 3: $brochure_fieldn Desired Domain Name: $desireddomain_fieldn Competitor's Site 1: $compurl_field\n Competitor's Site 2: $compurl2_fieldn Purpose of Site: $purposeofsite_fieldn Description of Site: $descriptionofsite_field";

    $Checked = true;//Checked

            mail($to, $subject, $body, "From:$email_field");

            } else {

            echo "blarg!";

      }

      }

        else { $error = true; }

      }

    ?>

     

    should be

     

            $body = "From:\n Name: $fullname_field\n Company: $company_field\n E-Mail: $email_field\n Phone: $phone_field\n Address: $address_field\n City State Zip: $citystate_field\n Date Needed By: $dateneeded_field\n Service Required: $service_field\n Budget: $budget_fieldn Approximate Pages: $approxpages_fieldn Connection Type: $connection_fieldn Additional Options 1: $maintenanceplan_fieldn Additional Options 2: $logowork_fieldn Additional Options 3: $brochure_fieldn Desired Domain Name: $desireddomain_fieldn Competitor's Site 1: $compurl_field\n Competitor's Site 2: $compurl2_fieldn Purpose of Site: $purposeofsite_fieldn Description of Site: $descriptionofsite_field";

    $Checked = true;//Checked

            mail($to, $subject, $body, "From:$email_field");

            } else {

            echo "blarg!";

      }

      }

        else { $error = true; }

      }

    ?>

  2. This IS php and yes I know im kinda asking for code... but it is more a question about funcitons than anything

     

    anyone know all the http things...?

     

    how to get ip...

    refferer page...

    proxy user (its an http_usr or something)

     

    and any other things you can get from a client...?

  3. I program in both PHP (compiled) and c++.  I also started asp.net and noticed it was EVEN pickier than php (if possible).

     

    Crap, asp.net is as picky as binary.  One extra space and it does barrel roles before it dies:

     

    My last error message in asp.net:

    Server Error in '/' Application.
    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    
    SQLExpress database file auto-creation error:
    
    The connection string specifies a local Sql Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:
    
       1. If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist.
       2. If the applications App_Data directory already exists, the web server account only requires read and write access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the Sql Server Express database already exists within the applications App_Data directory. Revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the Sql Server Express database already exists. This will cause an error when the provider attempts to create a duplicate of an already existing database. Write access is required because the web server accounts credentials are used when creating the new database.
       3. Sql Server Express must be installed on the machine.
       4. The process identity for the web server account must have a local user profile. See the readme document for details on how to create a local user profile for both machine and domain accounts.
    
    
    
    Source Error:
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace:
    
    [sqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
       System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +173
       System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +199
       System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) +1069
       System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +606
       System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +193
       System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +219
       System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
       System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +49
       System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +89
       System.Data.SqlClient.SqlConnection.Open() +160
       System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +67
    
    [HttpException (0x80004005): Unable to connect to SQL Server database.]
       System.Web.Management.SqlServices.GetSqlConnection(String server, String user, String password, Boolean trusted, String connectionString) +123
       System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install) +89
       System.Web.Management.SqlServices.Install(String database, String dbFileName, String connectionString) +26
       System.Web.DataAccess.SqlConnectionHelper.CreateMdfFile(String fullFileName, String dataDir, String connectionString) +388
    
    
    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
    

     

    and you know what?  I had a space before the mssql connect string:

     

    asp:mssql

     

    the space screwed it all up.

  4. Ok, heres the centering code:

    ...code...
    <p align="center"><div align="center"><span id="1" align="center">
    ..code..
    </span></div></p>
    

    And here is my CSS File:

    p,body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: medium;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    color: #9FAFFD;
    background-color: #000000;
    vertical-align: middle;
    line-height: normal;
    text-align: center;
    white-space: normal;
    border: 1px ridge #000099;
    }
    

     

    It shows left aligned no matter what I do.

  5. First off, I cannot find the regex section on this forum.  I know there is one, but I can't find it, so please don't spaz at me.

     

    Here is the regex:

    ^\.exe$
    

    and here is the second:

    ^\$5\($1|$2)\.($3|$4|???)$
    

     

    Uhmm... I'm kinda new to regex but the first one should select all files in the base dir that has .exe extension right....?  but what does the second do....???

  6. but the browser owuld liten to the modified after hte expired cause the modified was after the expired.

     

    LOL!

     

    I myself use this:

     

        header('Pragma: public');

        header('Pragma: no-cache');

        header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');

        header('Last-Modified: '.gmdate('D, d M Y H:i:s O') . ' GMT');

        header('Cache-Control: no-store, no-cache, must-revalidate');

        header('Cache-Control: pre-check=0, post-check=0, max-age=0');

     

    the O is the timezone offset.

  7. <?PHP /*CODE SNIPPED*/
    
    $input = socket_read($spawn, 1024) or die("Could not read input\n");
    $input = trim($input); $request = split("[\n\r\t]+", $input);
    $header = split("[ ]+", $request);
    
    if (strlen($header[1])==1) { $errmsg="No File Requested"; }
    foreach ($request as $value) { $totalvar .="\t".$value; }
    
    $done=0; $l=0;
    $requested = split("[ ]+", $input);
    foreach($requested as $r) {
      while($done==0) {
    print "\t".$r[$l];
    print $l;
        if ($r[$l]=="Host:") {
          $l++;
          $remote_addr=$r[$l];
          $done++;
        }
        if ($l==50) { break; break; break; }
        $l++;
      }
    }
    
    print "\n".gmdate("[d-m-y_j:i:s]")." User: ".$remote_addr." Requested: ".$header[1];
    if (!empty($errmsg)) { print $errmsg."\n"; }
    }
    
    /*CODE SNIPPED*/ ?>
    

     

    The output is:

     

          G0    E1    T2    3     4     5     6     7     8
    9     10    11    12    13    14    15    16    17    18
    19    20    21    22    23    24    25    26    27    28
    29    30    31    32    33    34    35    36    37    38
    39    40    41    42    43    44    45    46    47    48
    49    50    50    50    50    50    50    50    50    50
    50    50    50    50    50    50    50    50    50    50
    50    50    50
    [09-09-07_9:12:31] User:  Requested:
    

     

    (I only have it showing all the numbers as a test for debug)

    So why does it only have get left in input, did I mortalize it or something?

  8. Warning: file_get_contents(res:///PHP/C:\): failed to open stream: No such file
    or directory in socket.exe on line 1
    

     

    Uh, why does it ass "res:///PHP/" to the file call?  I set it to call "C:\boot.ini" as an example:

     

    $output = file_get_contents($path.$header[1]);
    

    $path is C: and $header[1] is /boot.ini

  9. hmm I think this is what hes asking and I would like to know the anser...

     

    in the following, which is the best? fastest? mose secure?

     

    if (A!=1)
    if (!A=1)
    if (A is not 1)
    if (A does not equal 1)
    

     

    Cause on my servery they all work, and my tries to time them were completely random.

×
×
  • 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.