NOPE.
This should work.
I get no errors on the C++ side.
User Profile
Collapse
-
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 testTblLeave a comment:
-
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 helpingLeave a comment:
-
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,Leave a comment:
-
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... -
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 didLeave a comment:
-
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...
No activity results to display
Show More
Leave a comment: