3204
7842
48
Show all posts
hbghlyj 发表于 2023-2-18 12:22 检查这个svg发现它内含一个base64的jpg Asymptote三维图不能输出矢量图, 只能输出位图.
677
110K
214
hbghlyj 发表于 2024-2-27 23:07 我們先等等,不做任何操作,也許過一陣子就好了😀
kuing 发表于 2024-11-7 13:44 又挂了……原因不明,啥也没改……
hbghlyj 发表于 2024-11-11 04:51
kuing 发表于 2024-11-11 03:11 但是 asymptote.ualberta.ca 还是好用的,只是发送出了问题?你研究一下呗,用你的网站测试一下 ...
hbghlyj 发表于 2024-11-11 18:02 编写简短的 php 脚本进行测试 成功得到輸出 teapot.pdf,沒有問題!
kuing 发表于 2024-11-11 12:01 目前本站的 /asy/index.php 的代码为 应该怎么改?
Untitled-1.php
hbghlyj 发表于 2024-11-11 20:25
kuing 发表于 2024-11-11 21:49 你是意思是在 /asy/ 下面再新建一个 php 文件,如 test.php,内容是 echo function_exists('curl_version ...
只要你编译完的PHP设置了支持 cURL 扩展,你就可以开始使用cURL函数了。使用 cURL 函数的基本思想是先使用 curl_init() 初始化 cURL会话,接着可以通过 curl_setopt() 设置需要的全部选项,然后使用 curl_exec() 来执行会话,当执行完会话后使用 curl_close() 关闭会话。这是一个使用 cURL 函数获取 example.com 主页保存到文件的例子:
示例 #1 使用 PHP cURL 模块获取 example.com 的主页
<?php$ch = curl_init("http://www.example.com/");$fp = fopen("example_homepage.txt", "w");curl_setopt($ch, CURLOPT_FILE, $fp);curl_setopt($ch, CURLOPT_HEADER, 0);curl_exec($ch);if(curl_error($ch)) { fwrite($fp, curl_error($ch));}curl_close($ch);fclose($fp);?>
kuing 发表于 2024-11-11 13:55 进入 asy/test.php,结果是 1
hbghlyj 发表于 2024-11-11 22:00 这样 cURL 确認启用了。 接下来我们检查 cURL 是否返回错误,有一个函数curl_error可以实现这个目的
$\LaTeX$ formula tutorial Reply post To last page
Mobile version
2025-7-6 08:23 GMT+8
Powered by Discuz!
Processed in 0.014266 seconds, 26 queries