小编Ash*_*edi的帖子

未捕获的异常'PDOException',消息'找不到驱动程序'

大家好我需要你的帮助

我收到了错误

Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in /home/rails/public_html/newidenty/server.php:12 Stack trace: 
#0 /home/rails/public_html/newidenty/server.php(12): PDO->__construct('mysql:dbname=ra...', 'rails_identy', 'rails_identy') 
#1 /home/rails/public_html/newidenty/registration.php(2): include('/home/rails/pub...') 
#2 {main} thrown in /home/rails/public_html/newidenty/server.php on line 12.
Run Code Online (Sandbox Code Playgroud)

我正在使用118.139.182.107/~rails/HTML/test.php拥有PHP版本的所有信息并显示PDO库.

我的主机提供说他们在其中安装PDO但是遇到问题

我的代码是

<?php
    $dsn      = 'mysql:dbname=*****;host=localhost';
    $username = '*****';
    $password = '*****';

    // error reporting (this is a demo, after all!)
    ini_set('display_errors',1);error_reporting(E_ALL);

    // Autoloading (composer is preferred, but for this example let's just do this)
    require_once('oauth2-server-php/src/OAuth2/Autoloader.php');
    OAuth2\Autoloader::register();
    $PDO = new PDO("mysql:dbname=*****;host=localhost",$username,$password);
    // $dsn is the Data …
Run Code Online (Sandbox Code Playgroud)

php pdo oauth

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

我怎么知道我的剩余Soundcloud API限制?

我在我的应用程序中使用Sound-Cloud API,我创建了一些API.它昨天工作正常但现在显示

error:string(47)"请求的URL以HTTP代码429响应.

我检查了Sound-Cloud文档,找到了与Too many请求相关的HTTP Code 429.

在这里,我关心的是如何知道我的所有请求和重新请求的数量.

php soundcloud

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

codeigniter(CI)的会话问题

我在使用codeigniter开发的live上获得了php会话错误

A PHP Error was encountered

Severity: Warning

Message: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/userts4m/public_html/development/relatioweb/admin/index.php:1)

Filename: Session/Session.php

Line Number: 140

Backtrace:

File: /home/userts4m/public_html/development/relatioweb/application/admin/controllers/User.php
Line: 9
Function: __construct

File: /home/userts4m/public_html/development/relatioweb/admin/index.php
Line: 293
Function: require_once
Run Code Online (Sandbox Code Playgroud)

在localhost工作很好.但当我在服务器上升时,我们正面临着这个问题.

我该怎么办 ...

php mysql codeigniter

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

How to draw divs to a specific position without collapse already exits div or without override

I am working on a demo where page have selectable jQuery for creation square block(area).

用户可以选择任何区域并用颜色写一些注释,整个块将显示指定位置.它工作正常.

但我主要担心的是,如果有人选择相同的区域或选择包含已存在块的区域.我如何限制它.

  1. 两个块都应该退出.
  2. 两者都不应该在同一个位置.

DEMO

html javascript css jquery jquery-ui-selectable

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