我想创建一个每X次打开一个网页的cronjob.
此网页受密码保护.htaccess(user = admin,passwor = pass).我给出的指示如下:
wget --user=admin --password='pass' http://www.mywebsite.com/test.php
Run Code Online (Sandbox Code Playgroud)
但是cron给了我以下错误:
--2012-05-02 10:14:01-- http://www.mywebsite.com/test.php
Resolving www.mywebsite.com... IP
Connecting to www.mywebsite.com|IP|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required
Reusing existing connection to www.mywebsite.com:80.
HTTP request sent, awaiting response... 403 Forbidden
2012-05-02 10:14:01 ERROR 403: Forbidden.
Run Code Online (Sandbox Code Playgroud)
我也尝试过:
wget admin:pass@http://www.mywebsite.com/test.php
Run Code Online (Sandbox Code Playgroud)
但有类似的错误.我怎么解决?预先感谢您的帮助.
在wordpress mysql数据库中,wp_postmeta table表中有大多数行meta_key='price',meta_value='XXX'其中XXX是一个数字.
meta_value是一个longtext字段.存储在其中的数字具有不同的形状,实际上一些存储有点,意味着千位(10.000表示一万)其他存储有逗号,意味着百分之一(10,00表示十).
如何删除点和逗号,以便有一个纯数字,没有百分之?换句话说,100.000应该是100000而10,00应该是10
,请提前感谢您的答案!