Closed myjavarama4 closed 9 years ago
Už to funguje
Tak nic, hlásí to ŠPATNÉ URL, ale když napíšu tohle, což nedává smysl
ProductInfoEil::getProduct(ProductInfoEil::SERVER_URL . 'shop/moreinfo.asp?catalogid=587277', $soubor);
Když zadám tohle, tak to hlásí zase
PHP Warning: file_get_contents(http://dealer.tsbohemia.cz/shop/moreinfo.asp?catalogid=587277): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in ...\nfw\class\core\simpledom\simple_html_dom.php:76
ProductInfoEil::getProduct(ProductInfoTSBohemia::SERVER_URL . 'shop/moreinfo.asp?catalogid=587277', $soubor);
musis tam mit === 3x, protoze 0 je taky false
Pořád stejná chyba
ty 3 === jsou tam, aby fungovalo, když je to dobře
ano, ale co když je špatné url
Tu kontrolu na domenu musime dat jeste pred to cteni te stranky a ten warning je v poradku, vysvetlim na obede
ProductInfoEil::getProduct(ProductInfoTSBohemia::SERVER_URL . 'shop/moreinfo.asp?catalogid=587277', $soubor);
Hlásí chybu
PHP Warning: file_get_contents(http://dealer.tsbohemia.cz/shop/moreinfo.asp?catalogid=587277): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in ...\nfw\class\core\simpledom\simple_html_dom.php:76
Poslední commit