Jump to content

KaramChand

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

KaramChand's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. OK. I think adding a custom HEADER info to the HTTP post is more reliable. I have added a header like: HttpAddRequestHeaders( m_HttpOpenRequest, "CustomApplicationName: Appname\r\n", -1, HTTP_ADDREQ_FLAG_ADD | HTTP_ADDREQ_FLAG_REPLACE ) Now I can set the header info in PHP using header(...) method but how to get value of a customer header in PHP i.e. the other way around :)
  2. Actuall $_POST dosnt work. I am doing a WININET POST method from my C app but the PHP is always getting $_POST as NULL. Is it because i am doing a raw post from my app and not through a variable which generally happens in a web app. If you are comfortable with Wininet then I can post the WinInet Win32 code so that you help further. -- Karam
  3. Hmmm..... POST works for me as of now but I would like it to be more secure. More info on the token part? Sorry, but I am more of a C programmer then PHP :)
  4. [!--quoteo(post=381821:date=Jun 9 2006, 07:59 AM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ Jun 9 2006, 07:59 AM) [snapback]381821[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code] <?php    if (!$_POST) {       //echo error msg    } else {       //run script . . .    } ?> [/code] [/quote] I think this should solve the issue. Will check it up tomorrow from office and let you know how it went.
  5. Hello, In our product, we use PHP for webservices that is inbuilt in the app. Basically, the tool calls the PHP over which is hosted over internet and communicates using XML. We send the data as raw post and in the PHP we get it as: $xmlrcvd = file_get_contents(“php://input”); Now if the user accesses the page from the browser then no POST is sent and strlen($xmlrcvd) would be 0 which is correct. But file_get_contents(..) is only available from 4.3.0 and above. Calling the script below that version throws up a fatal error. I would like to check the PHP version before the above statement but would like to show different message if the file is requested by the browser or from the application. What is the best way to do this? Add a custom header message or check if there is a valid POST available or not.
  6. Hello, We send our software upgrade details over email once a user has given his old order number and email address. We generate the mail format using the following code: [code]                            $message  =     "Greetings,\n\nBlahBlahBlah\n\n";                $message .=    "BlahBlahBlah\n\n";                $message .=     "BlahBlahBlah\n";                $message .=    "BlahBlahBlah\n\n";                $message .=    "BlahBlahBlah";                $message .=    "BlahBlahBlah\n\n";                $message .=  "BlahBlahBlah\n\n";                $message .=    "BlahBlahBlah\n\n";                $message .=    "BlahBlahBlah\n\n";                $message .=    "BlahBlahBlahn\n";                $message .=    "BlahBlahBlah\n\n";                $message .=    "BlahBlahBlah\n\n";                $message .=    "Regards,\nKaram Chand";                             $headers .=  "Bcc: support_upgrade@xxx.com\r\n";                            $myname  = "Karam Chand Support";                            $myemail = "noreply@xxx.com";                            $subject = "Blah Blah Blah - Download instructions and registration code";                                                         $ret = mail( $email, $subject, $message, $headers ); [/code] As you can see we send a BCC to us too. We receive all the upgrade mails but sometimes some of our customers dont get it. The percentage is like 20% which is pretty huge. What might be the problem?
×
×
  • 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.