SHOW:
|
|
- or go back to the newest paste.
1 | $CurlConnect = curl_init(); | |
2 | curl_setopt($CurlConnect, CURLOPT_URL, 'https://geraboleto.sicoobnet.com.br/geradorBoleto/GerarBoleto.do'); | |
3 | curl_setopt($CurlConnect, CURLOPT_POST, 1); | |
4 | curl_setopt($CurlConnect, CURLOPT_RETURNTRANSFER, 1 ); | |
5 | curl_setopt($CurlConnect, CURLOPT_POSTFIELDS, http_build_query( | |
6 | array( | |
7 | 'dados_pra_passar_via_post' => '...', | |
8 | ... | |
9 | ) | |
10 | )); | |
11 | $result = curl_exec($CurlConnect); | |
12 | ||
13 | - | $resultnew = str_replace('<img src="', "<img src="http://urlasboluta.com.br/", $result) |
13 | + | |
14 | ||
15 | $resultnew = str_replace('<img src="', '<img src="http://urlasboluta.com.br/', $result) | |
16 | ||
17 | - | phptopdf_html($resultnew, '', 'legacy_html_example.pdf'); |
17 | + | |
18 | ||
19 | phptopdf_html($resultnew, '', 'legacy_html_example.pdf'); | |
20 | ||
21 | ?> |