RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-410776

Vadim's questions

Martin Hope
Vadim
Asked: 2022-08-16 22:49:19 +0000 UTC

如何获得排序的类别和子类别数组?

  • 0

我得到了所有不和谐子类别的列表,我不知何故需要订购它们。我可以设置父 0,然后以某种方式将它们拉出子类别吗?

在此处输入图像描述

结论:

<?php
  $args = array('taxonomy' => 'product_cat');
  $categories = get_categories( $args );
?>
                
<?php foreach($categories as $category): ?>
  <div><?= $category->name ?></div>
<?php endforeach; ?>
wordpress woocommerce
  • 1 个回答
  • 38 Views
Martin Hope
Vadim
Asked: 2022-08-29 21:26:02 +0000 UTC

如果父元素有另一个元素,如何向元素添加样式?

  • 0

是否可以检查下一个元素?假设它发生了header,那么intro。如果 after headeris intro,则添加header属性。

我试图这样做,但它不起作用:

.header + .intro .header {
    position: absolute;
}

还是只是JS完成了?

css
  • 1 个回答
  • 42 Views
Martin Hope
Vadim
Asked: 2022-08-29 02:46:52 +0000 UTC

通过静态 modx 文件编辑模板

  • 0

是否可以通过文件编辑模板,而不是通过管理面板,而不仅仅是模板

在此处输入图像描述

modx
  • 1 个回答
  • 19 Views
Martin Hope
Vadim
Asked: 2022-08-19 23:58:40 +0000 UTC

phpmailer 错误

  • 1

通过邮件发送数据时,我得到:

错误:SMTP 连接()失败。https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

在我得到的日志中:

2022-06-19 15:56:54 连接:打开 ssl://smtp.mail.ru:587, timeout=300, options=array() 2022-06-19 15:56:54 连接失败。错误 #2:stream_socket_client():SSL 操作失败,代码为 1 394] 2022-06-19 15:56:54 连接失败。错误 #2:stream_socket_client():无法启用加密 [D:\progs\OpenServer\OpenServer\domains\dist\phpmailer\SMTP.php 第 394 行] 2022-06-19 15:56:54 连接失败。错误 #2:stream_socket_client():无法连接到 ssl://smtp.mail.ru:587(未知错误)[D:\progs\OpenServer\OpenServer\domains\dist\phpmailer\SMTP.php 第 394 行] 2022 -06-19 15:56:54 SMTP 错误:无法连接到服务器:(0) SMTP connect() 失败。https://github.com/PHPMailer/PHPMailer/wiki/疑难解答 错误:SMTP 连接()失败。https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

php代码:

<?php

    use PHPMailer\PHPMailer\PHPMailer;
    use PHPMailer\PHPMailer\Exception;
    use PHPMailer\PHPMailer\SMTP;

    require "phpmailer/Exception.php";
    require "phpmailer/PHPMailer.php";
    require "phpmailer/SMTP.php";

    $mail = new PHPMailer();
    $mail->isSMTP();                   // Отправка через SMTP
    $mail->Host   = 'smtp.mail.ru';  // Адрес SMTP сервера
    $mail->SMTPAuth   = true;          // Enable SMTP authentication
    $mail->Username   = 'testinfo@domain.by';
    $mail->Password   = 'prizrak';    // ваш пароль
    $mail->SMTPSecure = 'ssl';         // шифрование ssl
    $mail->Port       = 587;   
    $mail->SMTPDebug = 4;            // порт подключения
    
    $mail->setFrom('testinfo@domain.by', 'Иван Иванов');    // от кого
    $mail->addAddress('vasya_petrov@mail.ru', 'Вася Петров'); // кому
    
    $mail->Subject = 'Тест';
    $mail->msgHTML("<html><body>
                    <h1>Здравствуйте!</h1>
                    <p>Это тестовое письмо.</p>
                    </html></body>");
    // Отправляем
    if ($mail->send()) {
    echo 'Письмо отправлено!';
    } else {
    echo 'Ошибка: ' . $mail->ErrorInfo;
    }

?>

新日志:

2022-06-19 16:35:18 连接:打开到 ssl://smtp.mail.ru:465,timeout=300,options=array()
2022-06-19 16:35:18 连接:打开
2022- 06-19 16:35:18 SMTP INBOUND:“220 smtp3.mail.ru ESMTP 准备就绪(正在为您的域寻找邮件?访问https://biz.mail.ru)”
2022-06-19 16:35:18服务器 -> 客户端:220 smtp3.mail.ru ESMTP 准备就绪(正在为您的域寻找邮件?访问https://biz.mail.ru)
2022-06-19 16:35:18 客户端 -> 服务器:EHLO dist
2022 -06-19 16:35:19 SMTP 入站:“250-smtp3.mail.ru”
2022-06-19 16:35:19 SMTP 入站:“250-SIZE 73400320”
2022-06-19 16:35:19 SMTP 入站:“250-8BITMIME”
2022-06-19 16:35:19 SMTP 入站:“250-管道”
2022-06-19 16:35:19 SMTP 入站:“250 AUTH PLAIN LOGIN XOAUTH2
” PLAIN LOGIN XOAUTH2
2022-06-19 16:35:19 请求的身份验证方法:
未指定 2022-06-19
16:35:19 请求的身份验证方法不可用:
2022-06-19 16:35:19 已选择身份验证方法:登录
2022-06-19 16:35:19 客户端-> 服务器:身份验证登录
2022-06-19 16:35:19 SMTP 入站:“ 334 VXNlcm5hbWU6"
2022-06-19 16:35:19 服务器-> 客户端:334 VXNlcm5hbWU6
2022-06-19 16:35:19 客户端-> 服务器:dGVzdEBkZXdwb2ludC5ieQ==
2022-06-19 16:334 UGFzc3dvcmQ6"
2022-06-19 16:35:19 服务器 -> 客户端:
334
UGFzc3dvcmQ6 5.7.0 NEOBHODIM parol prilozheniya https://help.mail.ru/mail/security/protection/external / 需要应用程序密码”
2022-06- 19 16:35:20 SERVER -> CLIENT: 535 5.7.0 NEOBHODIM parol prilozheniya https://help.mail.ru/mail/security/protection/external / 需要应用程序密码
2022-06-19 16:35:20 SMTP 错误:密码命令失败:535 5.7.0 NEOBHODIM parol prilozheniya https://help.mail.ru/mail/security/protection/external / 应用程序密码是必需的
SMTP 错误:无法验证。
2022-06-19 16:35:20 客户端-> 服务器:退出 2022-06-19
16:35:20 SMTP 入站:“221 2.0.0 再见” 2022-06-19 16:35 :20 连接:关闭 SMTP 连接()失败。https://github.com/PHPMailer/PHPMailer/wiki/疑难解答 错误:SMTP 连接()失败。https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting



phpmailer
  • 2 个回答
  • 10 Views
Martin Hope
Vadim
Asked: 2022-08-10 18:30:15 +0000 UTC

如何布置多边形

  • 0

您需要制作一个多边形:

在此处输入图像描述

.item:nth-child(2):after {
    height: 0;
    width: 0;
    left: 242px;
    border-left: 370px solid transparent;
    border-bottom: 370px solid #212427;
    transform: translateY(-50%) rotate(-34deg);
}

我得到了这个,但这不是我需要的:

![在此处输入图像描述

html css
  • 2 个回答
  • 35 Views
Martin Hope
Vadim
Asked: 2022-08-02 19:48:55 +0000 UTC

如何布置这些块,如何从另一个元素中切割一个元素

  • 0

我需要布置 3 个块,只有在布置一个圆圈时,我才需要看到背景不是绿色,而是最外面的块的背景(红色)。

在此处输入图像描述

вёрстка
  • 1 个回答
  • 22 Views
Martin Hope
Vadim
Asked: 2022-07-25 13:57:52 +0000 UTC

mysql写入表

  • 0

是否可以像这样写入mysql表,我需要将信息显示为文本:

在此处输入图像描述

python pymysql
  • 1 个回答
  • 32 Views
Martin Hope
Vadim
Asked: 2022-07-23 23:18:14 +0000 UTC

Modx如何增加下载大小

  • 0

在此处输入图像描述

你好,告诉我如何在modx中增加下载内容的大小

modx
  • 1 个回答
  • 10 Views
Martin Hope
Vadim
Asked: 2022-05-12 07:23:57 +0000 UTC

Python,对象数组

  • 1

假设我们有一个对象数组:

array = [{'x': x, 'y': y, 'unique': True}, 
         {'x': x, 'y': y}, 
         {'x': x, 'y': y, 'unique': True}]

我正在迭代,但是如何检查对象是否具有唯一属性

python
  • 2 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5