小编mur*_*hna的帖子

无法打开流:HTTP请求失败!HTTP/1.1 400错误请求

我正在访问其他网站的图片.当复制"一些(不是全部)"图像时,我收到"无法打开流:HTTP请求失败!HTTP/1.1 400错误请求"错误.这是我的代码.

$img=$_GET['img']; //another website url
$file=$img;

function getFileextension($file) {
       return end(explode(".", $file));
}
$fileext=getFileextension($file);
if($fileext=='jpg' || $fileext=='gif' || $fileext=='jpeg' || $fileext=='png' || $fileext=='x-png' || $fileext=='pjpeg'){
if($img!=''){
$rand_variable1=rand(10000,100000);
              $node_online_name1=$rand_variable1."image.".$fileext;

                $s=copy($img,"images/".$node_online_name1);
Run Code Online (Sandbox Code Playgroud)

}

http httpwebrequest

11
推荐指数
3
解决办法
4万
查看次数

如何为reindex设置cron作业

如何在Magento中设置cron作业以进行清除缓存和重新索引.我不知道如何设置重新索引的cron.但我看到每天cron默认运行magento的地方.我仍然面临在我的网站中重新索引问题.我还需要清除缓存.在Magento的网站在这里

他们说在代码中注释了logcleaning和重建索引,所以在哪个文件中我可以取消注释以设置日志清理和重建索引的cron作业?

谢谢,穆拉利.

cron magento

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

更新计划价格时,定期付款API不支持订阅配置文件

我使用paypal api进行重复计费.我想用paypal api更新计划价格.为此,我正在使用

$curl = curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp');
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
    'USER' => 'ddsds_da_api',
    'PWD' => '123412432134',
    'SIGNATURE' => 'sgdsdshds',

    'METHOD' => 'UpdateRecurringPaymentsProfile',
    'VERSION' => '108',
    'PROFILEID' => 'I-FYYMDB55ADSH',

    'NOTE' => 'Uma nota opcional, explicando o motivo da mudança',
    'AMT' => 120,
    'CURRENCYCODE' => 'BRL'
)));

$response =    curl_exec($curl);

curl_close($curl);

$nvp = array();

if (preg_match_all('/(?<name>[^\=]+)\=(?<value>[^&]+)&?/', $response, $matches)) {
    foreach ($matches['name'] as $offset => $name) {
        $nvp[$name] = urldecode($matches['value'][$offset]);
    }
} …
Run Code Online (Sandbox Code Playgroud)

paypal-subscriptions recurring-billing

7
推荐指数
1
解决办法
1345
查看次数

在mysql中输入类型

我在数据库中有passportno(varchar).
我输入的值如此001,002,003.我想显示排序顺序.

现在我写了这样的查询"select * from passport_registration where status=1 ORDER BY passportno" 然后显示这样的输出...... 077,088,099,100,1000,1001,1009,101,1010 我想显示排序顺序.怎么做?

mysql casting

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

如何编辑订单而不在magento 1.7中创建新订单

有没有办法在没有从Magento管理员创建新订单的情况下编辑Magento中的订单?我怎么能做到这一点?

edit magento

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

当没有选项时,隐藏可配置产品

在我的情况下,可配置的简单产品缺货,它不会显示在可配置的产品选项列表下.它对我来说很好.但是,当所有选项都缺货时,我如何隐藏可配置产品?在这种情况下,可配置产品不显示addtocart按钮和选项下拉列表.但是如果在此下没有选项,我需要隐藏总可配置产品.

谢谢,穆拉利

configurable magento

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

0
推荐指数
1
解决办法
2821
查看次数