An Unknown Filter Was Not Added:PHP
Hi,
I am trying to use Visual C#.NET to Upload pictures to my Linux Server. And Apache kept giving me this error "An Unknown Filter Was Not Added:PHP" I think it has something to do with the configuration of Apache. client.UploadData("http://www.myserver.com/",UploadImage); And Yup. I have already set the file permission on the server side corretly. Can any one help me with this problem? Leo |
From what I read after searching for client.UploadData this function uploads a data buffer to a resource with the specified URI.
This leads me to believe that Code:
client.UploadData("http://www.myserver.com/",UploadImage); Assuming http://www.myserver.com/ defaults to http://www.myserver.com/index.html this would just send data to a process that serves the index.html file. I think that this would not do much at all. Something better might be Code:
client.UploadData("http://www.myserver.com/loadimage.php?imagedata=",UploadImage); Another alternative is to replace the PHP script with a CGI script. The error that you received might indicate that your server is configured to default to index.php instead of index.html is which case you might be sending binary data directly to a PHP script and it is getting confused. |
Quote:
And again, thanks for your suggestion. |
From what I have read and understand putting
Code:
http://www.somedomain.com/some-php-script.php?some_php_variable="some data to be placed into some variable for processing" Code:
some_variable="some data to be placed into some variable for processing"; If you look on msdn and search for this function you will see that you can specify the method used to send the data. POST is one of the methods available. |
Quote:
|
All times are GMT -5. The time now is 05:27 PM. |