小编The*_*לום的帖子

Gmail发送限制

我正在使用PHPMailer通过SMTP通过我们公司的Gmail帐户发送邮件的网站上开发软件.通过该软件,客户注册该站点并收到收据和视频票.注册时,每位客户发送两封电子邮件.然后,在事件开始之前,我们想要重新发送所有视频票.

我想知道发送电子邮件的限制是什么.我们可以使用PHPMailer通过SMTP每天每小时,每小时发送多少封电子邮件?

谢谢.

更新:

我们正在使用Google Apps开展业务

php gmail phpmailer

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

PayPal交易列表

这是设置:

我有一个客户端的站点设置.客户:

  1. 访问该网站
  2. 输入我们记录的基本信息
  3. 通过"立即购买"按钮进入Pay​​Pal
  4. 通过PayPal进行付款
  5. 返回网站

我想知道的是如何获得所有交易的清单?我有登录PayPal以及API的用户名,密码和签名,但对我的生活,我不能在互联网上找到一个地方,让如何从贝宝拉事务的列表或者通过PHP或例子jQuery的/的JavaScript/AJAX.

有没有人有任何想法?例子?

提前致谢.

更新:

我能够为这个问题开发出一个解决方案.请参阅下面的代码和评论.

javascript php jquery json paypal

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

Phonegap网络连接 - 无法读取未定义的属性"类型"

我一整天都在寻找答案,Google-sphere没有提供任何答案.我已经尝试了所有我知道如何做的事情,并通过建议的解决方案和答案工作,没有任何工作.

概括地说,我试图建立一个Phonegap用于应用程序AndroidApple移动设备和我需要的功能之一是同时检测网络状态和网络连接的类型.以下是我正在使用的代码.

Firing device ready警报火灾关闭,然后我得到的错误Cannot read property 'type' of undefined,然后通过的循环Navigator对象.当我浏览对象的每个属性时,我没有看到旧版本中使用的connection属性甚至network属性.

有人有主意吗?

的index.html

<!DOCTYPE html>
<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- jQuery Core -->
<script src="js/jquery-1.11.1.min.js"></script>
<!-- The main engine for the software. -->
<script src="js/main.js"></script>

<!-- Third party plugins -->
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="barcodescanner.js"></script>
<script type="text/javascript" src="childbrowser.js"></script>
<script type="text/javascript" src="js/barcode.js"></script>

<title>index</title>

<script>
document.addEventListener("deviceready", onDeviceReady, false);
</script>

</head>
<body>


<script>
barcode_app.initialize();
</script> …
Run Code Online (Sandbox Code Playgroud)

android ios phonegap-plugins cordova

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

ReferenceError:未定义摄像头

我正在尝试开发一个PhoneGap使用相机功能的应用程序.我正在关注https://build.phonegap.com/plugins/768上的插件文档,但没有运气.每次我尝试使用该功能时,我在Android设备上构建和测试时都会收到错误"ReferenceError:Camera is not defined".

这是我的index.html的头部:

<script type="text/javascript" src="phonegap.js"></script>
<script type="text/javascript" src="cordova.js"></script>
Run Code Online (Sandbox Code Playgroud)

这是我用来使用相机功能的脚本:

<script>
            function take_picture(){
                try{
                    navigator.camera.getPicture(cameraSuccess, cameraError, {
                        quality: 50,
                        destinationType: Camera.DestinationType.DATA_URL
                    });
                }catch(e){
                    alert(e);
                }
            }

            function cameraSuccess(imageData){
                try{
                    $("#camera_image").attr('src', imageData);
                }catch(e){
                    alert(e);
                }
            }

            function cameraError(message){
                try{
                alert('Failed because: '+message);
                }catch(e){
                    alert(e);
                }
            }
            </script>
Run Code Online (Sandbox Code Playgroud)

因为我正在使用PhoneGap Build,这里是我正在使用的config.xml标签:

<gap:config-file platform="android" parent="/manifest">
    <uses-permission name="android.permission.CAMERA" />
</gap:config-file>

<feature name="http://api.phonegap.com/1.0/camera"/>

<feature name="Camera">
    <param name="android-package" value="org.apache.cordova.CameraLauncher" />
    <param name="ios-package" value="CDVCamera" />
</feature>
Run Code Online (Sandbox Code Playgroud)

android ios cordova phonegap-build

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

将目录添加到Apache Server

我有一个运行XAMPP/Apache的Windows XP系统.我已经在外部硬盘驱动器上有文件,我想提供它而不将它们移动到与Apache安装相同的驱动器上.

这是我到目前为止所尝试的:

在主HTTPD.conf文件中:

别名/ client_files D:/ clients/files

<目录D:/ clients/files>

选项索引FollowSymLinks MultiViews

AllowOverride all

   Order Allow,Deny
        Allow from all
Run Code Online (Sandbox Code Playgroud)

</目录>

但我得到的唯一结果是:

访问被禁止!

您无权访问请求的对象.它受读保护或服务器无法读取.

如果您认为这是服务器错误,请与网站管理员联系.

错误403

本地主机

Apache/2.4.7(Win32)OpenSSL/1.0.1e PHP/5.5.6

我还尝试添加到HTTPD-VHOSTS.conf文件:

ServerName client_files

ServerAlias client_files

DocumentRoot"D:/ clients/files"

并且:

<VirtualHost*:80>

ServerAdmin webmaster@dummy-host.example.com

DocumentRoot"D:/ clients/files"

ServerName client_files

ServerAlias client_files

ErrorLog"logs/dummy-host.example.com-error.log"

CustomLog"logs/dummy-host.example.com-access.log"常见

</虚拟主机>

但这些都没有奏效.我可以在世界上如何向Apache安装添加另一个目录,并通过"localhost/client_files"之类的东西访问它?

有什么建议?

更新: [已解决]

根据下面的@Pedro Nunes的回答,我现在在文件的末尾有我的httpd.conf文件,其中包含Pedro回答的"需要所有授权"行,现在解决了这个问题:

别名/ client_files D:/ clients/files

<目录D:/ clients/files>

要求全部授予

选项索引FollowSymLinks MultiViews

AllowOverride all

   Order Allow,Deny
        Allow from all
Run Code Online (Sandbox Code Playgroud)

</目录>

apache xampp

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

页面超出屏幕边缘

这是我第二次遇到这个问题,我正要揪着头发试图解决它。我正在创建一个网站,并且刚刚开始。html在 css 中,我将和标签的边距和填充设置body为 0,并且页面延伸超过屏幕的右边缘。

我尝试修改这些元素的 css 以包含 100% 宽度,但水平滚动条仍然存在,并且页面仍然超出屏幕边缘。

我还尝试将overflow值设置为隐藏,但正如预期的那样,这只带走了滚动条。很明显,页面仍然超出了屏幕的右边缘。

有什么想法吗?

html css

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

CSS类未应用于所有类似元素

我有一个页面,在三个容器中有三个按钮.每个容器中的第一个按钮具有相同的id,每个容器中的第二个按钮具有相同id的按钮,并且每个容器中的第三个按钮具有相同的按钮id.我有一个Javascript接受传入信息的脚本,并相应地更改按钮中文本的颜色.不幸的是,当脚本检测到需要进行更改并尝试应用相应的CSS时,只有第一个容器中的按钮才会应用CSS.我真的不明白为什么每个具有相同元素的元素id都没有将CSS应用于它.

Javascript行动:

document.getElementById('button_1').className = "buttonActive";
Run Code Online (Sandbox Code Playgroud)

按钮元素:

<button id="button_1" class="button"><span id="button_text_1">Button 1</span></button>
<button id="button_2" class="button"><span id="button_text_2">Button 2</span></button>
<button id="button_3" class="button"><span id="button_text_3">Button 3</span></button>

<button id="button_1" class="button"><span id="button_text_1">Button 1</span></button>
<button id="button_2" class="button"><span id="button_text_2">Button 2</span></button>
<button id="button_3" class="button"><span id="button_text_3">Button 3</span></button>

<button id="button_1" class="button"><span id="button_text_1">Button 1</span></button>
<button id="button_2" class="button"><span id="button_text_2">Button 2</span></button>
<button id="button_3" class="button"><span id="button_text_3">Button 3</span></button>
Run Code Online (Sandbox Code Playgroud)

html javascript css

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