How i can correct this error

Hello I tried to connect matlab to mysql with this code in file exchange but i had always this error
Error during URL reading. Retrying...
thanks
[EDITED, Jan, copied from comment section]
This message is due to this code. it can't read the url
url= 'http://www.myserver.com/php_input.php';
while done==0
try
% Try to read the URL
HTML = urlread(url,'POST',opt);
done = 1;
catch
% If an error has occurred wait for some time before re-trying
disp('Error during URL reading. Retrying...');
done = 0;
pause(0.2);
end
end

5 Commenti

Jan
Jan il 15 Set 2012
You forgot to ask a question. What does the documentation or the author tell your about the cause of this message?
Jan
Jan il 15 Set 2012
The command lasterror will tell you the corresponding error message.
Pamela
Pamela il 15 Set 2012
Modificato: Pamela il 15 Set 2012
i used this line
rethrow(lasterror);
i had this error
??? Error using ==> urlread at 94
Could not POST to URL.
Error in ==> urlread at 94
else error('MATLAB:urlread:ConnectionFailed','Could not POST to URL.');
Error in ==> mysql_input at 49
HTML = urlread(url,'POST',opt);
Error in ==> test_input at 13
[out] = mysql_input(hostname,username,password,query,url);
Can i replace this url with the path of the file??
Pamela
Pamela il 16 Set 2012
there is no solution???
Jan
Jan il 16 Set 2012
@Pamela: Replace this URL with the path of which file? The message tells you, that you cannot contact the URL by POST. Do you have reasons to expect the opposite?

Accedi per commentare.

Risposte (0)

Tag

Richiesto:

il 15 Set 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by