User Profile

Collapse

Profile Sidebar

Collapse
wwhitman
wwhitman
Last Activity: Dec 28 '09, 06:31 PM
Joined: Apr 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wwhitman
    replied to C++ client upload to PHP server
    in PHP
    NOPE.
    This should work.
    I get no errors on the C++ side.
    See more | Go to post

    Leave a comment:


  • wwhitman
    replied to C++ client upload to PHP server
    in PHP
    UPDATE: I think I got the C++ side working. I can go through the code and no errors are reported. The PHP script gets executed but there is no file there
    Code:
    $connection = mysql_connect('localhost','root',''); // or die('Error: ' . mysql_error()); 
    if(!$connection)
       $StatusStr = 'DatabaseError';
    else
    {
       mysql_select_db("watchdog", $connection);
       $sql = "INSERT INTO testTbl
    ...
    See more | Go to post

    Leave a comment:


  • wwhitman
    replied to C++ client upload to PHP server
    in C
    I got the C++ side to execute without errors:
    This is what I did:
    on the HttpOpenRequest I passed "POST" and the server.php file name
    then ran HttpSendRequest Ex() with NULL or 0
    Passed the header in with a internetWriteFi le
    followed by the file.
    THANX to all for helping
    See more | Go to post

    Leave a comment:


  • wwhitman
    replied to C++ client upload to PHP server
    in C
    What you see is what I am sending or better 'trying to send'. I was not aware that I had to send a header.
    I have tried this as well -except the content-type was different. I replaced the HttpOpenRequest call with the following:
    Code:
    csPost.Format("%s\r\n%s\r\n%s%d\r\n%s\r\n\r\n", 
    		  "POST /ClientUpload.php HTTP/1.0",
    		  "Content-type:application/x-www-form-urlencoded",
    		  "Content-length:",dwFileSize,
    ...
    See more | Go to post

    Leave a comment:


  • wwhitman
    started a topic C++ client upload to PHP server
    in C

    C++ client upload to PHP server

    'm having issues transferring a file from a WEB client running a C++ application to a PHP server script. I have debugged through the C++ side and no errors are reported, but the file does not appear on the server. My current environment is a Vista business system running IIS. I developed the C++ app using Microsoft's Visual Studio. I know the configuration is correct as the application does communicate with PHP scripts to transfer XML data back and...
    See more | Go to post

  • wwhitman
    replied to C++ client upload to PHP server
    in PHP
    Appears I get nothing from PHP side. I am not even sure it gets activated. I think I remember putting in some code on the PHP to write to an MySQL Db and nothing appeared, and it was the first thing I did
    See more | Go to post

    Leave a comment:


  • wwhitman
    started a topic C++ client upload to PHP server
    in PHP

    C++ client upload to PHP server

    I'm having issues transferring a file from a WEB client running a C++ application to a PHP server script. I have debugged through the C++ side and no errors are reported, but the file does not appear on the server. My current environment is a Vista business system running IIS. I developed the C++ app using Microsoft's Visual Studio. I know the configuration is correct as the application does communicate with PHP scripts to transfer XML data back...
    See more | Go to post
    Last edited by Markus; Apr 21 '09, 02:31 PM. Reason: Added [code] tags.
No activity results to display
Show More
Working...