小编Dex*_*aru的帖子

模态不显示 bulma css

我想在单击按钮但不起作用时显示模式。这里是代码:

    <button class="button is-warning is-pulled-right" onclick="refs.modalEdicion.open()">
        <span>Editar</span>
    </button>
    <div class="modal" id="modalEdicion">
        <div class="modal-background"></div>
        <div class="modal-content">
            <p class="image is-4by3">
            <img src="https://bulma.io/images/placeholders/1280x960.png" alt="">
            </p>
        </div>
        <button class="modal-close is-large" aria-label="close"></button>
    </div>
Run Code Online (Sandbox Code Playgroud)

html css bulma

2
推荐指数
1
解决办法
1万
查看次数

file_get_contents 无法打开流:无法分配请求的地址

当我尝试将 url 传递给 file_get_contents 时,我得到了这个

警告:file_get_contents(http://localhost:8001/els/get_data_from_radius.php?id=1&u=GERONIMO-ANGELA-GLADIS-17010-16407&p=5T7U5756876O93FPG7F2B56B89359488&s=1&action=2&ud=524288/5242880):失败打开流:无法分配请求地址位于 /var/local/entropia/model/MonitoreoRadiusWrapper.php第108

我的功能是

public static function activar_servicio($ws_host, $id_rad, $user, $pass, $simultaneo, $ud_mikrotik) {
    $url = $ws_host . ":8001/els/get_data_from_radius.php?id=$id_rad&u=$user&p=$pass&s=$simultaneo&action=2&ud=$ud_mikrotik";

    $result = file_get_contents($url);

    return json_decode($result);
}
Run Code Online (Sandbox Code Playgroud)

我在带有 nginx 的 docker 容器中使用 php 7。

php nginx php-7

2
推荐指数
1
解决办法
8378
查看次数

标签 统计

bulma ×1

css ×1

html ×1

nginx ×1

php ×1

php-7 ×1