NetworkError:500内部服务器错误 - php Web服务

any wrong for this function ?? NetworkError: 500 Internal Server Error

private function getWebService() {
    require_once ('lib/nusoap.php');
    $param = array( 'your_name' => 'Monotosh Roy');
    $client = new soapclient('http://192.168.1.100/WebServiceSOAP/server.php');
    $response = $client->call('get_message',$param);
    if($client->fault)
    {
        echo "FAULT: <p>Code: (".$client->faultcode."</p>";
        echo "String: ".$client->faultstring;
    }
    else
    {
        echo $response;
    }

}

1个回答



错误消息</ p>


NetworkError:500内部服务器错误</ p >
</ blockquote>

显示网络/连接出现问题。
从您的计算机到本地服务器或从本地服务器到soap-interface:</ p>


http://192.168.1.100/WebServiceSOAP/server。 php </ p>
</ blockquote>

您可以从开发机器访问此地址,还是查看该机器的日志。 应该发生错误。

您还可以在192.168.1.100设置该计算机的请求记录,这样您就可以重现从应用程序发送的导致500错误的内容。</ p>

SOAP请求/响应日志记录 </ p>
</ div>

展开原文

原文

The error message

NetworkError: 500 Internal Server Error

shows that something is wrong with the network/ connection. Either from your machine to the local one or from your local server to the soap-interface at:

http://192.168.1.100/WebServiceSOAP/server.php

Can you access this address from your dev-machine or have a look at the logs of that machine. There should be an occurred error. You can also set up an request logging for that machine at 192.168.1.100 so you could reproduce what was sent from your application that caused the 500- error.

SOAP Request/Response logging

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
HTTP 错误 500.0 - Internal Server Error

求解决方法,php模块路径 extension_dir = "C:\php\ext" WIN 2012 R2安装好IIS8.5和配置好PHP访问本地http://localhost/ 出现 HTTP 错误 500.0 - Internal Server Error C:\php\php-cgi.exe - FastCGI 进程意外退出 最可能的原因: IIS 收到了请求;但在处理请求过程中出现内部错误。此错误的根本原因取决于处理该请求的是哪一个模块以及出现此错误时工作进程中出现了何种情况。 IIS 无法访问网站或应用程序的 web.config 文件。如果 NTFS 权限设置不正确,便会出现这种情况。 IIS 无法处理网站或应用程序的配置。 已经过身份验证的用户没有使用此 DLL 的权限。 该请求将被映射到托管处理程序,但不会安装 .NET 可扩展功能。 可尝试的操作: 确保 web.config 文件的 NTFS 权限正确,并允许访问 Web 服务器的计算机帐户。 检查事件日志中是否记录了任何附加信息。 确认 DLL 的权限。 如果请求被映射到托管处理程序,则安装 .NET 可扩展功能。 创建跟踪规则以跟踪此 HTTP 状态代码的失败的请求。有关为失败的请求创建跟踪规则的详细信息,请单击此处。 详细错误信息: 模块 FastCgiModule 通知 ExecuteRequestHandler 处理程序 FastCGI 错误代码 0xc0000005 请求的 URL http://localhost:80/index.php 物理路径 C:\inetpub\wwwroot\index.php 登录方法 匿名 登录用户 匿名 详细信息: 此错误表明在处理请求时出现问题。Web 服务器收到了请求,但在处理过程中出现错误,导致 500 错误。 查看详细信息 » Microsoft 知识库文章: 294807

Laravel - DataTables不会显示结果:“Ajax错误”和“500内部服务器错误”

<div class="post-text" itemprop="text"> <p>I'm new to <code>Laravel PHP Framework</code> and currently continue project that was left by someone. so, because of it, i try to replicate his code <strong>to create new data list using <a href="https://datatables.net/" rel="nofollow noreferrer">DataTables</a> library</strong> </p> <p>what i want to achieve is simple thing, <strong>just show data list</strong>. it's using new table. I will go advance to create other feature like <code>edit</code>, <code>details</code>, <code>action</code> etc. but currently, just to show the data list is still failed.</p> <p><strong>Error:</strong></p> <blockquote> <p><strong>DataTables warning: table id=table - Ajax error. For more information about this error, please see <a href="http://datatables.net/tn/7" rel="nofollow noreferrer">http://datatables.net/tn/7</a></strong></p> </blockquote> <p>This error appears, whenever i try to get data appear. <a href="https://i.stack.imgur.com/1p3B9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1p3B9.png" alt="enter image description here"></a></p> <p>using Chrome's developer tools not help much, i didnt get details whats wrong :</p> <p><a href="https://i.stack.imgur.com/NwO5T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NwO5T.png" alt="chrome developer tool"></a></p> <p><strong>Chrome's Developer Tools, Network Tab :</strong></p> <p><a href="https://i.stack.imgur.com/CrCaH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CrCaH.png" alt="enter image description here"></a></p> <p><strong>The Tables :</strong></p> <p><a href="https://i.stack.imgur.com/UiovR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UiovR.png" alt="enter image description here"></a></p> <p>**The View Code : **</p> <pre><code>@extends('layouts.admin.main') @section('pageTitle', 'Sodaqoh Revenue') @push('head') &lt;!-- DataTables --&gt; &lt;link href="{{ asset('plugins/datatables/dataTables.bootstrap4.min.css') }}" rel="stylesheet" type="text/css"&gt; &lt;link href="{{ asset('plugins/datatables/buttons.bootstrap4.min.css') }}" rel="stylesheet" type="text/css"&gt; &lt;!-- Responsive datatable examples --&gt; &lt;link href="{{ asset('plugins/datatables/responsive.bootstrap4.min.css') }}" rel="stylesheet" type="text/css"&gt; @endpush @section('content') &lt;div class="row"&gt; &lt;div class="col-12"&gt; &lt;div class="card m-b-20"&gt; &lt;div class="card-body"&gt; &lt;table id="table" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th width="5"&gt;#&lt;/th&gt; &lt;th&gt;{{ __('Name') }}&lt;/th&gt; &lt;th&gt;{{ __('Month') }}&lt;/th&gt; &lt;th&gt;{{ __('Year') }}&lt;/th&gt; &lt;th&gt;{{ __('Total') }}&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- end col --&gt; &lt;/div&gt; @endsection @push('scripts') &lt;script src="{{ asset('plugins/jquery-sparkline/jquery.sparkline.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/jquery-sparkline/jquery.sparkline.min.js') }}"&gt;&lt;/script&gt; &lt;!-- Required datatable js --&gt; &lt;script src="{{ asset('plugins/datatables/jquery.dataTables.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/dataTables.bootstrap4.min.js') }}"&gt;&lt;/script&gt; &lt;!-- Buttons examples --&gt; &lt;script src="{{ asset('plugins/datatables/dataTables.buttons.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/buttons.bootstrap4.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/jszip.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/pdfmake.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/vfs_fonts.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/buttons.html5.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/buttons.print.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/buttons.colVis.min.js') }}"&gt;&lt;/script&gt; &lt;!-- Responsive examples --&gt; &lt;script src="{{ asset('plugins/datatables/dataTables.responsive.min.js') }}"&gt;&lt;/script&gt; &lt;script src="{{ asset('plugins/datatables/responsive.bootstrap4.min.js') }}"&gt;&lt;/script&gt; &lt;script&gt; var oTable; oTable = $('#table').DataTable({ processing: true, serverSide: true, dom: 'lBfrtip', order: [[ 3, "asc" ]], pagingType: 'full_numbers', buttons: [ { extend: 'print', autoPrint: true, customize: function ( win ) { $(win.document.body) .css( 'padding', '2px' ) .prepend( '&lt;img src="{{ asset('assets/images/logo.png') }}" style="float:right; top:0; left:0;height: 40px;right: 10px;background: #101010;padding: 8px;border-radius: 4px" /&gt;&lt;h5 style="font-size: 9px;margin-top: 0px;"&gt;&lt;br/&gt;&lt;font style="font-size:14px;margin-top: 5px;margin-bottom:20px;"&gt; @yield('pageTitle')&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;&lt;font style="font-size:8px;margin-top:15px;"&gt;{{date('Y-m-d h:i:s')}}&lt;/font&gt;&lt;/h5&gt;&lt;br/&gt;&lt;br/&gt;' ); $(win.document.body).find( 'div' ) .css( {'padding': '2px', 'text-align': 'center', 'margin-top': '-50px'} ) .prepend( '' ); $(win.document.body).find( 'table' ) .addClass( 'compact' ) .css( { 'font-size': '9px', 'padding': '2px' } ); }, title: '', orientation: 'landscape', exportOptions: {columns: ':visible'} , text: '&lt;i class="fa fa-print" data-toggle="tooltip" title="" data-original-title="Print"&gt;&lt;/i&gt;', //className: 'btn btn-primary' }, {extend: 'colvis', text: '&lt;i class="fa fa-eye" data-toggle="tooltip" title="" data-original-title="Column visible"&gt;&lt;/i&gt;'}, {extend: 'csv', text: '&lt;i class="fa fa-file-excel" data-toggle="tooltip" title="" data-original-title="Export CSV"&gt;&lt;/i&gt;'} ], //sDom: "&lt;'table-responsive fixed't&gt;&lt;'row'&lt;p i&gt;&gt; B", sPaginationType: "bootstrap", destroy: true, responsive: true, scrollCollapse: true, oLanguage: { "sLengthMenu": "_MENU_ ", "sInfo": "Showing &lt;b&gt;_START_ to _END_&lt;/b&gt; of _TOTAL_ entries" }, lengthMenu: [[10, 25, 50, 100], [10, 25, 50, 100]], ajax: { url: '{!! route('sodaqoh-revenue.list-index') !!}', data: function (d) { d.range = $('input[name=drange]').val(); } }, columns: [ // { data: "rownum", name: "rownum" }, { data: "name", name: "name" }, { data: "month", name: "month" }, { data: "year", name: "year" }, { data: "total", name: "total" } ], }).on( 'processing.dt', function ( e, settings, processing ) {}); $("#table_wrapper .dt-buttons").appendTo("#table_wrapper .dataTables_length"); $('#formsearch').submit(function () { oTable.search( $('#search-table').val() ).draw(); return false; } ); oTable.page.len(25).draw(); function modalDelete(id) { swal({ title: "Are you sure?", text: "Delete this record", type: "warning", showCancelButton: !0, confirmButtonText: "Yes, delete it!", cancelButtonText: "No, cancel!", confirmButtonClass: "btn btn-success", cancelButtonClass: "btn btn-danger m-l-10", buttonsStyling: !1 }).then(function() { deleteRecord(id); }, function(t) { "cancel" === t &amp;&amp; swal("Cancelled", "Your data is safe :)", "error") }) } function deleteRecord(id){ $.ajax({ url: '{{route("sodaqoh-revenue.index")}}' + "/" + id + '?' + $.param({"_token" : '{{ csrf_token() }}' }), type: 'DELETE', complete: function(data) { oTable.draw(); swal("Deleted!", "Data is successfully deleted", "success"); } }); } &lt;/script&gt; @endpush </code></pre> <p><strong>The Controller :</strong></p> <pre><code>&lt;?php namespace App\Http\Controllers\Admin; use App\DzikirPlaylistCategory; use App\DzikirPlaylist; use App\Http\Controllers\Controller; use App\SodaqohRevenue; use App\User; use DB; use Illuminate\Http\Request; use Session; class SodaqohRevenueController extends Controller { protected $rules = [ 'id' =&gt; 'required', 'name' =&gt; 'required', 'month' =&gt; 'required', 'year' =&gt; 'required', 'total' =&gt; 'required', 'point_total' =&gt; 'required', 'point_rate' =&gt; 'required', ]; public function index() { return view('admin.sodaqoh-revenue.index'); } public function listIndex(Request $request) { DB::statement(DB::raw('set @rownum=0')); $model = SodaqohRevenue::all(); $datatables = app('datatables')-&gt;of($model); // -&gt;editColumn('status', function ($model) { // return $model-&gt;getStatusLabel(); // }) // -&gt;addColumn('point', function ($model) { // return $model-&gt;userDetail ? $model-&gt;userDetail-&gt;point : 0; // }) // -&gt;addColumn('action', function ($model) { // return "&lt;a href='". route('user-apps.show', ['id' =&gt; $model-&gt;id]) ."' class='btn btn-primary btn-sm'&gt;&lt;i class='fa fa-eye'&gt;&lt;/i&gt;&lt;/a&gt;"; // }); return $datatables-&gt;make(true); } } </code></pre> <p><strong>The Model :</strong></p> <pre><code>&lt;?php namespace App; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Notifications\Notifiable; class SodaqohRevenue extends BaseModel { use SoftDeletes; const ROLE_APPS = 1; const ROLE_SUPERADMIN = 10; const STATUS_ACTIVE = 1; const STATUS_NEED_CONFIRMATION = 5; const STATUS_BLOCKED = 0; const REGISTER_TYPE_GENERAL = 1; const REGISTER_TYPE_GOOGLE = 2; const REGISTER_TYPE_FACEBOOK = 3; use Notifiable; protected $table = 'revenue'; protected $fillable = [ 'id', 'name', 'month', 'year', 'total', 'point_total', 'point_rate', ]; protected $hidden = [ 'created_by', 'updated_by' ]; public function __construct(array $attributes = array()) { parent::__construct($attributes); } public function scopeRoleMobileApp($query) { return $query-&gt;where($this-&gt;table . '.role', self::ROLE_APPS); } } </code></pre> <p><strong>The Web Route :</strong></p> <pre><code>... Route::get('/sodaqoh-revenue/list-index', ['as' =&gt; 'sodaqoh-revenue.list-index', 'uses' =&gt; 'Admin\\SodaqohRevenueController@listIndex']); Route::resource('/sodaqoh-revenue', 'Admin\\SodaqohRevenueController'); ... </code></pre> <p><strong>Laravel Log:</strong></p> <blockquote> <p><strong>[2019-07-04 21:35:56] local.ERROR: Cannot use Illuminate\Notifications\Notifiable as Notifiable because the name is already in use {"userId":1,"email":"info.zipedia@gmail.com","exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 64): Cannot use Illuminate\Notifications\Notifiable as Notifiable because the name is already in use at /Users/zulkifli/zipediaPrj/webZipedia-zul-dev@github/app/SodaqohRevenue.php:7) [stacktrace]#0 {main} "}</strong></p> </blockquote> <p>Any Idea what's wrong ? any help is appreciated.</p> </div>

怎么修复'ERROR 2002(HY000):无法通过套接字连接到本地MySQL服务器'/var/run/mysqld/mysqld.sock'(2“没有这样的文件或目录”)'

<div class="post-text" itemprop="text"> <p>I am trying to install docker in a laravel project. Everything seems to work, except that when I try to import data into my comic, I get this error:</p> <p>I import width command line: </p> <p><code>docker-compose exec app php artisan db:import --local</code></p> <p>I must also say that this is a large amount of data that I am trying to import</p> <blockquote> <p>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")</p> </blockquote> <p>I did research on the internet to find a solution. I saw many but none walked with me. </p> <p>I use docker to create a development environment. Here are my configurations</p> <h3>Dockerfile</h3> <pre><code>FROM php:7.1.20-fpm # Copy composer.lock and composer.json COPY composer.lock composer.json /var/www/ # Set working directory WORKDIR /var/www # Install dependencies RUN apt-get update &amp;&amp; apt-get install -y \ build-essential \ mysql-client \ libpng-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ locales \ zip \ jpegoptim optipng pngquant gifsicle \ vim \ unzip \ git \ curl # Clear cache RUN apt-get clean &amp;&amp; rm -rf /var/lib/apt/lists/* # Install extensions RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ RUN docker-php-ext-install gd # Install composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Add user for laravel application RUN groupadd -g 1000 www RUN useradd -u 1000 -ms /bin/bash -g www www # Copy existing application directory contents COPY . /var/www # Copy existing application directory permissions COPY --chown=www:www . /var/www # Change current user to www USER www # Expose port 9000 and start php-fpm server EXPOSE 9000 CMD ["php-fpm"] </code></pre> <h3>docker-compose</h3> <pre><code>version: '3' services: #PHP Service app: build: context: . dockerfile: .docker/Dockerfile env_file: .env image: digitalocean.com/php container_name: app #restart: unless-stopped tty: true environment: SERVICE_NAME: app SERVICE_TAGS: dev working_dir: /var/www volumes: - ./:/var/www - ./php/local.ini:/usr/local/etc/php/conf.d/local.ini networks: - app-network depends_on: - db - webserver #Nginx Service webserver: image: nginx:alpine container_name: webserver restart: unless-stopped tty: true ports: - "8000:80" - "443:443" volumes: - ./:/var/www - ./nginx/conf.d/:/etc/nginx/conf.d/ networks: - app-network #MySQL Service db: image: mysql:5.7.22 container_name: db restart: unless-stopped tty: true ports: - "13306:3306" environment: MYSQL_DATABASE: merchline MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} SERVICE_TAGS: dev SERVICE_NAME: mysql volumes: - dbdata:/var/lib/mysql/ - ./mysql/my.cnf:/etc/mysql/my.cnf networks: - app-network #Docker Networks networks: app-network: driver: bridge #Volumes volumes: dbdata: driver: local </code></pre> </div>

PHP Curl:将客户端证书发送到响应服务器(Client-Auth)

<div class="post-text" itemprop="text"> <p>I'm trying to connect a webservice which requires client-auth. At first I tried this example: <a href="http://www.binarytides.com/use-clientside-ssl-certificate-curl-php/" rel="nofollow">http://www.binarytides.com/use-clientside-ssl-certificate-curl-php/</a></p> <p>This doesn't work for me, because:</p> <pre><code> curl: (58) unable to use client certificate (no key found or wrong pass phrase?) </code></pre> <p>After that I found an old website from 2005 - <a href="http://curl.haxx.se/mail/archive-2005-09/0138.html" rel="nofollow">http://curl.haxx.se/mail/archive-2005-09/0138.html</a> Here you can read that you have to split your PEM-Certificate-File into separate Key- and Cert-Files. In short: It works! Now I can do this:</p> <pre><code> curl -d "param=12345" -G -v --key mykey.pem --cacert mycacert.pem --cert myclientcert:PASSPHRASE https://webservice.xyz </code></pre> <p>But how can I translate this command to a PHP-Script? </p> </div>

错误消息“禁止您在另一台PC上没有访问/在此服务器上的权限”

<div class="post-text" itemprop="text"> <p>I have configured Apache server on my laptop. But when I try to access a file <code>trial.html</code> on the server from another computer on the same network, I get the error </p> <p><strong>Forbidden</strong> You don't have the permission to access /trial.html on this server</p> <hr> <p><em>Apache/2.4.9 (Win64) PHP/5.5.12 Server</em></p> <p>My httpd.conf file is</p> <pre><code># This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See &lt;URL:http://httpd.apache.org/docs/2.4/&gt; for detailed information. # In particular, see # &lt;URL:http://httpd.apache.org/docs/2.4/mod/directives.html&gt; # for a discussion of each configuration directive. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/access_log" # with ServerRoot set to "/usr/local/apache2" will be interpreted by the # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" # will be interpreted as '/logs/access_log'. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # If a drive letter is omitted, the drive on which httpd.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths to avoid confusion. ServerSignature On ServerTokens Full # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # Do not add a slash at the end of the directory path. If you point # ServerRoot at a non-local disk, be sure to specify a local disk on the # Mutex directive, if file-based mutexes are used. If you wish to share the # same ServerRoot for multiple httpd daemons, you will need to change at # least PidFile. # ServerRoot "c:/wamp/bin/apache/apache2.4.9" Define APACHE24 Apache2.4 # # Mutex: Allows you to set the mutex mechanism and mutex file directory # for individual mutexes, or change the global defaults # # Uncomment and change the directory if mutexes are file-based and the default # mutex file directory is not on a local disk or is not appropriate for some # other reason. # # Mutex default:logs # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the &lt;VirtualHost&gt; # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. # #Listen 12.34.56.78:80 Listen 0.0.0.0:80 Listen [::0]:80 # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # Example: # LoadModule foo_module modules/mod_foo.so # LoadModule access_compat_module modules/mod_access_compat.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule allowmethods_module modules/mod_allowmethods.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_core_module modules/mod_authn_core.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_socache_module modules/mod_authn_socache.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule authz_core_module modules/mod_authz_core.so #LoadModule authz_dbd_module modules/mod_authz_dbd.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule buffer_module modules/mod_buffer.so LoadModule cache_module modules/mod_cache.so LoadModule cache_disk_module modules/mod_cache_disk.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule data_module modules/mod_data.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule headers_module modules/mod_headers.so #LoadModule heartbeat_module modules/mod_heartbeat.so #LoadModule heartmonitor_module modules/mod_heartmonitor.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_debug_module modules/mod_log_debug.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule lua_module modules/mod_lua.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_express_module modules/mod_proxy_express.so #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_html_module modules/mod_proxy_html.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule ratelimit_module modules/mod_ratelimit.so #LoadModule reflector_module modules/mod_reflector.so #LoadModule remoteip_module modules/mod_remoteip.so #LoadModule request_module modules/mod_request.so #LoadModule reqtimeout_module modules/mod_reqtimeout.so #LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so #LoadModule session_module modules/mod_session.so #LoadModule session_cookie_module modules/mod_session_cookie.so #LoadModule session_crypto_module modules/mod_session_crypto.so #LoadModule session_dbd_module modules/mod_session_dbd.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so #LoadModule socache_dbm_module modules/mod_socache_dbm.so #LoadModule socache_memcache_module modules/mod_socache_memcache.so #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule watchdog_module modules/mod_watchdog.so #LoadModule xml2enc_module modules/mod_xml2enc.so LoadModule php5_module "c:/wamp/bin/php/php5.5.12/php5apache2_4.dll" #PHPIniDir c:/wamp/bin/php/php5.5.12 &lt;IfModule unixd_module&gt; # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User daemon Group daemon &lt;/IfModule&gt; # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # &lt;VirtualHost&gt; definition. These values also provide defaults for # any &lt;VirtualHost&gt; containers you may define later in the file. # # All of these directives may appear inside &lt;VirtualHost&gt; containers, # in which case these default settings will be overridden for the # virtual host being defined. # # # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin admin@example.com # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # ServerName localhost:80 HostnameLookups Off # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "c:/wamp/www/" # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # &lt;Directory /&gt; AllowOverride none Require all denied &lt;/Directory&gt; # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # &lt;Directory "c:/wamp/www/"&gt; # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove Require local &lt;/Directory&gt; # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # &lt;IfModule dir_module&gt; DirectoryIndex index.php index.php3 index.html index.htm &lt;/IfModule&gt; # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # &lt;Files ".ht*"&gt; Require all denied &lt;/Files&gt; # # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a &lt;VirtualHost&gt; # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a &lt;VirtualHost&gt; # container, that host's errors will be logged there and not here. # #ErrorLog "logs/error.log" ErrorLog "c:/wamp/logs/apache_error.log" # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn &lt;IfModule log_config_module&gt; # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common &lt;IfModule logio_module&gt; # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio &lt;/IfModule&gt; # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a &lt;VirtualHost&gt; # container, they will be logged here. Contrariwise, if you *do* # define per-&lt;VirtualHost&gt; access logfiles, transactions will be # logged therein and *not* in this file. # CustomLog "c:/wamp/logs/access.log" common # # If you prefer a logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # #CustomLog "logs/access.log" combined &lt;/IfModule&gt; &lt;IfModule alias_module&gt; # # Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: # Alias /webpath /full/filesystem/path # # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a &lt;Directory&gt; section to allow access to # the filesystem path. # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ "c:/wamp/bin/apache/apache2.4.9/cgi-bin/" &lt;/IfModule&gt; &lt;IfModule cgid_module&gt; # # ScriptSock: On threaded servers, designate the path to the UNIX # socket used to communicate with the CGI daemon of mod_cgid. # #Scriptsock cgisock &lt;/IfModule&gt; # # "c:/wamp/bin/apache/apache2.4.9/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # &lt;Directory "c:/wamp/bin/apache/apache2.4.9/cgi-bin"&gt; AllowOverride None Options None Require all granted &lt;/Directory&gt; &lt;IfModule mime_module&gt; # # TypesConfig points to the file containing the list of mappings from # filename extension to MIME-type. # TypesConfig conf/mime.types # # AddType allows you to add to or override the MIME configuration # file specified in TypesConfig for specific file types. # #AddType application/x-gzip .tgz # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note: Not all browsers support this. # AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz # # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 # # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi # For type maps (negotiated resources): #AddHandler type-map var # # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI): # (You will also need to add "Includes" to the "Options" directive.) # #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml &lt;/IfModule&gt; # # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # #MIMEMagicFile conf/magic # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html # # # MaxRanges: Maximum number of Ranges in a request before # returning the entire resource, or one of the special # values 'default', 'none' or 'unlimited'. # Default setting is to accept 200 Ranges. #MaxRanges unlimited # # EnableMMAP and EnableSendfile: On systems that support it, # memory-mapping or the sendfile syscall may be used to deliver # files. This usually improves server performance, but must # be turned off when serving from networked-mounted # filesystems or if support for these functions is otherwise # broken on your system. # Defaults: EnableMMAP On, EnableSendfile Off # #EnableMMAP off EnableSendfile off # AcceptFilter: On Windows, none uses accept() rather than AcceptEx() and # will not recycle sockets between connections. This is useful for network # adapters with broken driver support, as well as some virtual network # providers such as vpn drivers, or spam, virus or spyware filters. AcceptFilter http none AcceptFilter https none # Supplemental configuration # # The configuration files in the conf/extra/ directory can be # included to add extra features or to modify the default configuration of # the server, or you may simply copy their contents here and change as # necessary. # Server-pool management (MPM specific) #Include conf/extra/httpd-mpm.conf # Multi-language error messages #Include conf/extra/httpd-multilang-errordoc.conf # Fancy directory listings Include conf/extra/httpd-autoindex.conf # Language settings #Include conf/extra/httpd-languages.conf # User home directories #Include conf/extra/httpd-userdir.conf # Real-time info on requests and configuration #Include conf/extra/httpd-info.conf # Virtual hosts #Include conf/extra/httpd-vhosts.conf # Local access to the Apache HTTP Server Manual #Include conf/extra/httpd-manual.conf # Distributed authoring and versioning (WebDAV) #Include conf/extra/httpd-dav.conf # Various default settings #Include conf/extra/httpd-default.conf # Configure mod_proxy_html to understand HTML4/XHTML1 &lt;IfModule proxy_html_module&gt; Include conf/extra/proxy-html.conf &lt;/IfModule&gt; # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf # # Note: The following must must be present to support # starting without SSL on platforms with no /dev/random equivalent # but a statically compiled-in mod_ssl. # &lt;IfModule ssl_module&gt; SSLRandomSeed startup builtin SSLRandomSeed connect builtin &lt;/IfModule&gt; # # uncomment out the below to deal with user agents that deliberately # violate open standards by misusing DNT (DNT *must* be a specific # end-user choice) # #&lt;IfModule setenvif_module&gt; #BrowserMatch "MSIE 10.0;" bad_DNT #&lt;/IfModule&gt; #&lt;IfModule headers_module&gt; #RequestHeader unset DNT env=bad_DNT #&lt;/IfModule&gt; #IncludeOptional "c:/wamp/vhosts/*" Include "c:/wamp/alias/*" </code></pre> <p>How do I go about solving this issue?</p> </div>

jQuery自动完成在本地服务器上工作但在Web服务器上失败?

<div class="post-text" itemprop="text"> <p>The code is same on both <code>Web server</code> and <code>local server</code> but using firebug I get two kinds of response links:</p> <p>Works fine</p> <pre><code>GET http://localhost/www.test.co.uk/index.php/home_Controller/getSearch/r </code></pre> <p>"NetworkError: 404 Not Found </p> <pre><code> GET http://www.test.co.uk/index.php/home_Controller/getSearch/r" </code></pre> <p>And this is my JS:</p> <pre><code> $(document).ready(function(){ $('#performsearch').keyup(function(e){ //if key is enter stop search if(e.which == 13) { e.preventDefault(); } var searched = $('#performsearch').val() var fullurl = $('#hiddenurl').val() + 'index.php/home_Controller/getSearch/' + searched $.getJSON(fullurl,function(result){ var elements = []; $.each(result,function(i,val){ elements.push(val.title) }) $('#performsearch').autocomplete({ source : elements }) }) }) }) </code></pre> </div>

如何在Windows服务器中使用PHP重定向404错误页面

<div class="post-text" itemprop="text"> <p>I want to Redirect 404 error page to index.php page since we have completely renamed all urls.. We are using PHP and the server is Windows.. We can do this in .htaccess file on Linux server.. But no idea How to do it in Windows.. Please help. <a href="https://stackoverflow.com/questions/11462996/having-trouble-redirecting-old-php-url-to-the-new-asp-page">This is the Question Simillar to my Question</a></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration&gt; &lt;system.webServer&gt; &lt;httpErrors&gt; &lt;error statusCode="500" subStatusCode="100" path="/iisHelp/500-100.asp" responseMode="ExecuteURL" /&gt; &lt;/httpErrors&gt; &lt;/system.webServer&gt; &lt;system.web&gt; &lt;customErrors mode="Off"&gt; &lt;error statusCode="404" redirect="/index.html" /&gt; &lt;/customErrors&gt; &lt;/system.web&gt; &lt;system.net&gt; &lt;mailSettings&gt; &lt;smtp deliveryMethod="Network" from="postmaster@embassyresidency.com"&gt; &lt;network defaultCredentials="true" host="embassyresidency.com" /&gt; &lt;specifiedPickupDirectory pickupDirectoryLocation="C:\inetpub\mailroot\Pickup" /&gt; &lt;/smtp&gt; &lt;/mailSettings&gt; &lt;/system.net&gt; </code></pre> <p></p> <p>I've used this code in web.config. But redirection is not working.. Any other ideas..</p> </div>

使用store.php将TiddlyWiki 5保存到服务器

<div class="post-text" itemprop="text"> <p>On the server, all in the same directory, and with all permissions set temporarily to 777 (including the directory itself):</p> <ul> <li>index.html (a copy of the <a href="http://tiddlywiki.com/empty.html">empty TiddlyWiki</a>)</li> <li><a href="https://code.google.com/p/bidix/source/browse/trunk/TiddlyHome/_th/lib/store.php">store.php</a></li> </ul> <p>I have edited the user list in store.php, and checked that the store.php page loads in the browser without errors.</p> <pre><code>$USERS = array( 'myuser'=&gt;'mypass', 'UserName2'=&gt;'Password2', 'UserName3'=&gt;'Password3'); </code></pre> <p>And set the following in the Control Pannel "Saving" tab:</p> <ul> <li>Wiki Name: <code>myuser</code></li> <li>Password: <code>mypass</code></li> <li>Server URL: <code>http://myhostnoerrors/my_dir/store.php</code></li> <li>Upload Directory: <code>.</code></li> <li>Backup Directory: <code>.</code></li> </ul> <p>When I click the save button (or try to create a new Tiddler), I see the badge "Starting to save wiki" in the upper right, but the save icon stays red, and the file is not updated on my server (even if I refresh).</p> <p>The "Network" Web Developer Tool in Firefox shows that the POST request is going to the right location and with the right information, but returns a 403 Forbidden error.</p> <p>What am I doing wrong? Has anyone been able to use store.php successfully with version 5.1.7?</p> </div>

如何检查是否可以从Ubuntu / Apache / PHP Web服务器访问Active Directory服务器?

<div class="post-text" itemprop="text"> <p>How can i check if my webserver wich have Ubuntu/Apache/PHP is inside a windows active diretory ?</p> <p>I have php-ldap and openssl php extensions enabled, but i still can not login using ldap.</p> <p>the ldap bind returns false.</p> <p>The code is the same that works on my local machine.</p> <p>There is some network command line i can use from ubuntu to check it ?</p> <p>Or even a php function instead of ldap_connect and ldap_bind ?</p> <p>Thank´s in advance </p> <p><strong>EDIT:</strong></p> <p>this is the code i use to test the connection it works on my local machine and not in the webserver :</p> <pre><code>&lt;?php $useremail = 'myuser'; $data['password'] = 'mypassword'; $adServer = "ldap://my.veryowndomain.com"; $ldap = ldap_connect($adServer); var_dump($useremail); $ldaprdn = 'myveryowndomain' . "\\" . $useremail; ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0); $bind = @ldap_bind($ldap, $ldaprdn, $data['password']); var_dump($bind); echo "1 ldap_error: " . var_dump(ldap_error($conn))."&lt;hr&gt;"; ldap_get_option($conn, LDAP_OPT_DIAGNOSTIC_MESSAGE, $err); echo "2 ldap_get_option: ". $err."&lt;hr&gt;"; echo ' &gt;&gt; 3 '. var_dump( ldap_errno() )."&lt;hr&gt;"; echo ' &gt;&gt; 4 '.var_dump( ldap_err2str( ldap_errno() ) )."&lt;hr&gt;"; if ($bind) { $filter="(sAMAccountName=" . $useremail . ")"; $result = ldap_search($ldap,"DC=myveryowndomain,DC=com,DC=br",$filter); echo '&lt;hr&gt; 5 result'."&lt;hr&gt;"; var_dump($result); ldap_sort($ldap,$result,"sn"); $info = ldap_get_entries($ldap, $result); echo '&lt;hr&gt; 6 result'."&lt;hr&gt;"; var_dump($info); if ( $info['count'] &gt;= 1 ) { $success = true; $usernome = $info[0]['cn'][0]; $usernetworkUser = $info[0]['samaccountname'][0]; $useremail = $info[0]['mail'][0]; $userimage = base64_encode($info[0]['thumbnailphoto'][0]); echo ($ret); } else { $success = false; echo '7 not authorized'."&lt;hr&gt;"; } } else { echo ' &gt;&gt; 8 '. var_dump( ldap_errno() )."&lt;hr&gt;"; echo ' &gt;&gt; 9 '.var_dump( ldap_err2str( ldap_errno() ) )."&lt;hr&gt;"; $success = false; echo '10 Fail to connect to'."&lt;hr&gt;"; } if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { echo "Using LDAPv3&lt;br&gt;"; } else { echo "Failed to set protocol version to 3"; } @ldap_close($ldap); </code></pre> </div>

在此服务器上找不到请求的URL / be,但存在路由 - Laravel

<div class="post-text" itemprop="text"> <p>I have a route in a routes.php </p> <p><code>Route::get('/be','AuthController@be');</code></p> <p>When I goto : </p> <p><code>http://l.fc.com:8888/be</code></p> <p>I kept getting </p> <blockquote> <p>Not Found</p> </blockquote> <p><strong>The requested URL /be was not found on this server.</strong></p> <hr> <p>I notice the root one work perfectly fine. </p> <p>When I go to : <code>http://l.fc.com:8888/</code></p> <p>It ran through this </p> <p><code>Route::get('/', array('as'=&gt;'sign-in','uses'=&gt;'AuthController@getSignin'));</code></p> <p>What should I look into ? </p> <hr> <h1>htppd.conf</h1> <pre><code># # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See &lt;URL:http://httpd.apache.org/docs/2.2&gt; for detailed information. # In particular, see # &lt;URL:http://httpd.apache.org/docs/2.2/mod/directives.html&gt; # for a discussion of each configuration directive. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo_log" # with ServerRoot set to "/Applications/MAMP/Library" will be interpreted by the # server as "/Applications/MAMP/Library/logs/foo_log". # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # Do not add a slash at the end of the directory path. If you point # ServerRoot at a non-local disk, be sure to point the LockFile directive # at a local disk. If you wish to share the same ServerRoot for multiple # httpd daemons, you will need to change at least LockFile and PidFile. # ServerRoot "/Applications/MAMP/Library" # # PidFile: The file in which the server should record its process # identification number when it starts. # &lt;IfModule !mpm_netware.c&gt; PidFile logs/httpd.pid &lt;/IfModule&gt; # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the &lt;VirtualHost&gt; # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. # #Listen 12.34.56.78:80 Listen 8888 # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # Example: # LoadModule foo_module modules/mod_foo.so # LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbd_module modules/mod_authn_dbd.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule cache_module modules/mod_cache.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule dbd_module modules/mod_dbd.so LoadModule bucketeer_module modules/mod_bucketeer.so LoadModule dumpio_module modules/mod_dumpio.so LoadModule echo_module modules/mod_echo.so LoadModule case_filter_module modules/mod_case_filter.so LoadModule case_filter_in_module modules/mod_case_filter_in.so LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule include_module modules/mod_include.so LoadModule filter_module modules/mod_filter.so LoadModule substitute_module modules/mod_substitute.so LoadModule charset_lite_module modules/mod_charset_lite.so LoadModule deflate_module modules/mod_deflate.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule headers_module modules/mod_headers.so LoadModule ident_module modules/mod_ident.so LoadModule usertrack_module modules/mod_usertrack.so #LoadModule unique_id_module modules/mod_unique_id.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule version_module modules/mod_version.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_scgi_module modules/mod_proxy_scgi.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule ssl_module modules/mod_ssl.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule asis_module modules/mod_asis.so LoadModule info_module modules/mod_info.so LoadModule cgi_module modules/mod_cgi.so LoadModule fastcgi_module modules/mod_fastcgi.so LoadModule cgid_module modules/mod_cgid.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule imagemap_module modules/mod_imagemap.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule perl_module modules/mod_perl.so LoadModule wsgi_module modules/mod_wsgi.so LoadModule xsendfile_module modules/mod_xsendfile.so LoadModule php7_module /Applications/MAMP/bin/php/php7.1.1/modules/libphp7.so # AddType application/x-httpd-php .php .phtml &lt;IfModule !mpm_netware_module&gt; &lt;IfModule !mpm_winnt_module&gt; # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User ssoun Group #-1 &lt;/IfModule&gt; &lt;/IfModule&gt; &lt;IfModule xsendfile_module&gt; XSendFile on &lt;/IfModule&gt; # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # &lt;VirtualHost&gt; definition. These values also provide defaults for # any &lt;VirtualHost&gt; containers you may define later in the file. # # All of these directives may appear inside &lt;VirtualHost&gt; containers, # in which case these default settings will be overridden for the # virtual host being defined. # # # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin you@example.com # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # ServerName localhost:8888 # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # # MAMP DOCUMENT_ROOT !! Don't remove this line !! # DocumentRoot "/Users/ssoun/code/francis/public" # This should be changed to whatever you set DocumentRoot to. # &lt;Directory "/Users/ssoun/code/francis/public"&gt; # Options All # AllowOverride All # Order allow,deny # Allow from all # XSendFilePath "/Applications/MAMP/htdocs" # &lt;/Directory&gt; # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # &lt;Directory /&gt; Options Indexes FollowSymLinks AllowOverride None &lt;/Directory&gt; # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # &lt;IfModule dir_module&gt; DirectoryIndex index.html index.php &lt;IfModule perl_module&gt; DirectoryIndex index.pl &lt;/IfModule&gt; &lt;IfModule wsgi_module&gt; DirectoryIndex index.wsgi index.py &lt;/IfModule&gt; &lt;/IfModule&gt; # # AccessFileName: The name of the file to look for in each directory # for additional configuration directives. See also the AllowOverride # directive. # AccessFileName .htaccess # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # &lt;FilesMatch "^\.ht"&gt; Order allow,deny Deny from all Satisfy All &lt;/FilesMatch&gt; &lt;Files ~ "^\.DS_Store"&gt; Order allow,deny Deny from all &lt;/Files&gt; # # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a &lt;VirtualHost&gt; # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a &lt;VirtualHost&gt; # container, that host's errors will be logged there and not here. # ErrorLog "/Applications/MAMP/logs/apache_error.log" # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel error &lt;IfModule log_config_module&gt; # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common &lt;IfModule logio_module&gt; # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio &lt;/IfModule&gt; # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a &lt;VirtualHost&gt; # container, they will be logged here. Contrariwise, if you *do* # define per-&lt;VirtualHost&gt; access logfiles, transactions will be # logged therein and *not* in this file. # #CustomLog "/Applications/MAMP/logs/apache_access.log" common # # If you prefer a logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # #CustomLog "/Applications/MAMP/logs/apache_access.log" combined &lt;/IfModule&gt; &lt;IfModule alias_module&gt; # # Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: # Alias /webpath /full/filesystem/path # # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a &lt;Directory&gt; section to allow access to # the filesystem path. # # We include the /icons/ alias for FancyIndexed directory listings. If you # do not use FancyIndexing, you may comment this out. # Alias /favicon.ico "/Applications/MAMP/bin/favicon.ico" Alias /icons/ "/Applications/MAMP/Library/icons/" &lt;Directory "/Applications/MAMP/Library/icons"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; Alias /phpMyAdmin "/Applications/MAMP/bin/phpMyAdmin" Alias /phpmyadmin "/Applications/MAMP/bin/phpMyAdmin" &lt;Directory "/Applications/MAMP/bin/phpMyAdmin"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; Alias /phpPgAdmin "/Applications/MAMP/bin/phpPgAdmin" Alias /phppgadmin "/Applications/MAMP/bin/phpPgAdmin" &lt;Directory "/Applications/MAMP/bin/phpPgAdmin"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; Alias /phpLiteAdmin "/Applications/MAMP/bin/phpLiteAdmin" Alias /phpliteadmin "/Applications/MAMP/bin/phpLiteAdmin" &lt;Directory "/Applications/MAMP/bin/phpLiteAdmin"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; Alias /SQLiteManager "/Applications/MAMP/bin/SQLiteManager" Alias /sqlitemanager "/Applications/MAMP/bin/SQLiteManager" &lt;Directory "/Applications/MAMP/bin/SQLiteManager"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; Alias /MAMP "/Applications/MAMP/bin/mamp" &lt;Directory "/Applications/MAMP/bin/mamp"&gt; Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; Alias /adminer "/Applications/MAMP/bin/adminer" &lt;Directory "/Applications/MAMP/bin/adminer"&gt; DirectoryIndex adminer.php Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all &lt;/Directory&gt; # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ "/Applications/MAMP/cgi-bin/" Alias /perl/ "/Applications/MAMP/cgi-bin/" &lt;IfModule perl_module&gt; PerlModule ModPerl::Registry &lt;Location /perl&gt; SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI &lt;/Location&gt; &lt;/IfModule&gt; &lt;/IfModule&gt; &lt;IfModule cgid_module&gt; # # ScriptSock: On threaded servers, designate the path to the UNIX # socket used to communicate with the CGI daemon of mod_cgid. # #Scriptsock logs/cgisock &lt;/IfModule&gt; # # "/Applications/MAMP/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # &lt;Directory "/Applications/MAMP/cgi-bin"&gt; AllowOverride None Options None Order allow,deny Allow from all &lt;/Directory&gt; # # DefaultType: the default MIME type the server will use for a document # if it cannot otherwise determine one, such as from filename extensions. # If your server contains mostly text or HTML documents, "text/plain" is # a good value. If most of your content is binary, such as applications # or images, you may want to use "application/octet-stream" instead to # keep browsers from trying to display binary files as though they are # text. # DefaultType text/plain &lt;IfModule mime_module&gt; # # TypesConfig points to the file containing the list of mappings from # filename extension to MIME-type. # TypesConfig /Applications/MAMP/conf/apache/mime.types # # AddType allows you to add to or override the MIME configuration # file specified in TypesConfig for specific file types. # #AddType application/x-gzip .tgz # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note: Not all browsers support this. # #AddEncoding x-compress .Z #AddEncoding x-gzip .gz .tgz # # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz # # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.) # AddHandler cgi-script .cgi .pl # For type maps (negotiated resources): #AddHandler type-map var # # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI): # (You will also need to add "Includes" to the "Options" directive.) # #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml &lt;/IfModule&gt; # # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # &lt;IfModule mime_magic_module&gt; MIMEMagicFile /Applications/MAMP/conf/apache/magic &lt;/IfModule&gt; # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html # # # EnableMMAP and EnableSendfile: On systems that support it, # memory-mapping or the sendfile syscall is used to deliver # files. This usually improves server performance, but must # be turned off when serving from networked-mounted # filesystems or if support for these functions is otherwise # broken on your system. # #EnableMMAP off #EnableSendfile off # Supplemental configuration # # The configuration files in the /Applications/MAMP/conf/apache/extra/ directory can be # included to add extra features or to modify the default configuration of # the server, or you may simply copy their contents here and change as # necessary. # Server-pool management (MPM specific) #Include /Applications/MAMP/conf/apache/extra/httpd-mpm.conf # Multi-language error messages #Include /Applications/MAMP/conf/apache/extra/httpd-multilang-errordoc.conf # Fancy directory listings #Include /Applications/MAMP/conf/apache/extra/httpd-autoindex.conf # Language settings #Include /Applications/MAMP/conf/apache/extra/httpd-languages.conf # User home directories #Include /Applications/MAMP/conf/apache/extra/httpd-userdir.conf # Real-time info on requests and configuration #Include /Applications/MAMP/conf/apache/extra/httpd-info.conf # Virtual hosts Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf # Local access to the Apache HTTP Server Manual #Include /Applications/MAMP/conf/apache/extra/httpd-manual.conf # Distributed authoring and versioning (WebDAV) #Include /Applications/MAMP/conf/apache/extra/httpd-dav.conf # Various default settings #Include /Applications/MAMP/conf/apache/extra/httpd-default.conf # Secure (SSL/TLS) connections #Include /Applications/MAMP/conf/apache/extra/httpd-ssl.conf # # Note: The following must must be present to support # starting without SSL on platforms with no /dev/random equivalent # but a statically compiled-in mod_ssl. # &lt;IfModule ssl_module&gt; SSLRandomSeed startup file:/dev/urandom 1024 SSLRandomSeed connect file:/dev/urandom 1024 # # Uncomment the next line if Apache should not accept SSLv3 connections, to learn more google for "POODLE SSLv3". # SSLProtocol All -SSLv2 -SSLv3 &lt;/IfModule&gt; </code></pre> <hr> <h1>vhosts</h1> <pre><code># # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # &lt;URL:http://httpd.apache.org/docs/2.2/vhosts/&gt; # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # NameVirtualHost *:8888 &lt;VirtualHost *:8888 &gt; ServerName l.di.com DocumentRoot "/Users/ssoun/code/dynamic-interior/public/" &lt;Directory "/Applications/MAMP/htdocs/code/dynamic-interior/public/"&gt; Options All AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; &lt;VirtualHost *:8888 &gt; ServerName l.fc.com DocumentRoot "/Users/ssoun/code/francis/public" &lt;Directory "/Applications/MAMP/htdocs/code/francis/public/"&gt; Options All AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> </div>

找到跨服务器内存泄漏

<div class="post-text" itemprop="text"> <p>I have a social network based on elgg open source platform (PHP) and I've been having some memory related problems with it.</p> <pre><code>Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 23456789 bytes) in somefile.php </code></pre> <p>My web application architecture contains 2 apache web servers (linux) with a load balancer between them. about 3-4 times a day the web application collapses and it takes about 2-3 mins for it to go back up again by its own. Knowingly this is just a patch (an ugly one as well) I upgraded the memory on both of the servers and I updated the php.ini to memory_limit = 512M. I know i still need to locate the memory leak but i just wanted to see how bad was it, and to see if it actually helps.</p> <p>My real question is: since i have two web servers running the code, how come the entire application collapse and not just one of the servers each time?</p> <p>Thanks in advance, Itay</p> </div>

从实例配置文件元数据服务器检索凭据时出错:使用Laravel s3

<div class="post-text" itemprop="text"> <p>I am developing a web application using Laravel. In my application, I develop a feature for uploading the file to the server. But, I will store the files in the Amazon S3 bucket instead. So, I am just following the Laravel official documentation - <a href="https://laravel.com/docs/5.5/filesystem" rel="nofollow noreferrer">https://laravel.com/docs/5.5/filesystem</a>. But I am getting an error. Please see what I have done below.</p> <p>First I run this command to install required package in the terminal</p> <pre><code>composer require league/flysystem-aws-s3-v3 </code></pre> <p>Then in the environment file, I added these variable</p> <pre><code>AWS_IAM_KEY=xxxxxxx AWS_IAM_SECRET=xvxxxx AWS_REGION=eu-west-2 AWS_BUCKET=xxxxxxx </code></pre> <p>Then in the controller, I upload like this.</p> <pre><code>$request-&gt;file('photo_file')-&gt;store( 'activity_files/'.uniqid(), 's3' ); </code></pre> <p>When I upload the file, it is giving me this error.</p> <pre><code>Error retrieving credentials from the instance profile metadata server. (cURL error 7: Failed to connect to 169.254.169.254 port 80: Network unreachable (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)) </code></pre> <p>What is wrong with my code?</p> </div>

Php代码用于加密客户端输入数据并在服务器端解密

<div class="post-text" itemprop="text"> <p>I want to encrypt password and confirm password field at the client side and after it reaches to the server side via some network it should be decrypted to it's original form again.</p> <p>Below is the code of a javascript file (enc.js) that i wrote which will encrypt data at the client side. I am unable to decrypt it at the server side.</p> <pre><code>$(document).ready(function() { $("#login_submit").click ( function() { var password=$("#password").val(); var pass=CryptoJS.MD5(password).toString(); var q=$("#salt").val(); var encp = CryptoJS.MD5(q + pass).toString(); $("#password").attr('value', encp); }); }); </code></pre> <p>The above code is working absolutely fine, but i need some help to decrypt the encrypted data at the server side which has been encrypted using <code>CryptoJS.MD5()</code> at the client side.</p> <p>Below is the code of clent side web page (register.php)</p> <pre><code>&lt;?PHP session_start(); session_regenerate_id(true); if(!isset($_SESSION['user'])) { header("location:../login/log.php"); } else if(($_SESSION['user']) != "admin") { echo "&lt;br&gt;&lt;br&gt;"; header( "refresh:3; url=nopage.php" ); echo "&lt;center&gt;Access Denied&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='nopage.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; } else { require_once("./include/membersite_config.php"); include_once "../validation/Validator.php"; require("../connection123.php"); $protocol = strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https') === FALSE ? 'http' : 'https'; $host = $_SERVER['HTTP_HOST']; $script = $_SERVER['SCRIPT_NAME']; $params = $_SERVER['QUERY_STRING']; $currentUrl = $protocol . '://' . $host . $script . '?' . $params; $head=$v-&gt;valHeader($currentUrl); ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"&gt; &lt;head&gt; &lt;meta http-equiv="Cache-Control" content="no-cache"/&gt; &lt;meta http-equiv="Cache-Control" content="no-store"/&gt; &lt;meta http-equiv="Cache-Control" content="must-revalidate"/&gt; &lt;meta http-equiv="Cache-Control" content="private"/&gt; &lt;meta http-equiv="Cache-Control" content="pre-check=0"/&gt; &lt;meta http-equiv="Cache-Control" content="post-check=0"/&gt; &lt;meta http-equiv="Cache-Control" content="max-stale=0"/&gt; &lt;meta http-equiv="Pragma" content="no-cache"/&gt; &lt;meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT"/&gt; &lt;link rel="STYLESHEET" type="text/css" href="style/fg_membersite.css" /&gt; &lt;script type='text/javascript' src='scripts/gen_validatorv31.js'&gt;&lt;/script&gt; &lt;link rel="STYLESHEET" type="text/css" href="style/pwdwidget.css" /&gt; &lt;script src="scripts/pwdwidget.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; window.history.forward(); function noBack(){window.history.forward()} noBack(); window.onload=noBack; window.onpageshow=function(evt){if(evt.persisted)noBack()} window.onunload=function(){void(0)} &lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="../js/jquery-1.8.3.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="../js/jquery_md5.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="../js/md5.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" language="javascript" src="../js/enc.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body bgcolor="#FFFFCC"&gt; &lt;?php $current_url = $_SERVER['REMOTE_ADDR'].$_SERVER['PHP_SELF']; $v=new validator(); error_reporting(0); $url=$_SERVER['HTTP_REFERER']; $headerAdd=$v-&gt;valHeader($url); $salt = substr(md5(uniqid(rand(), true)), 0, 32); ?&gt; &lt;div align="left"&gt; &lt;table width="1214" border="0"&gt; &lt;tr&gt; &lt;td width="867"&gt;&lt;a href='login-home.php'&gt;Back&lt;/a&gt;&lt;/td&gt; &lt;?php // make a random id $_SESSION["token"] = md5(uniqid(mt_rand(), true)); echo '&lt;td width="331"&gt;&lt;a href="logout.php?csrf=' . $_SESSION["token"] . '"&gt;Logout&lt;/a&gt;&lt;/td&gt;'; ?&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;?php $token= md5(uniqid()); $_SESSION['delete_customer_token']= $token; session_write_close(); ?&gt; &lt;br /&gt;&lt;br /&gt; &lt;!-- Form Code Start --&gt; &lt;div id='fg_membersite'&gt; &lt;form id='register' name='register' action='afterregister.php' method='post' accept-charset='UTF-8'&gt; &lt;fieldset &gt; &lt;legend&gt;Register New Account Here&lt;/legend&gt; &lt;div class='short_explanation'&gt;* Required fields&lt;/div&gt; &lt;div&gt;&lt;span class='error'&gt;&lt;?php echo $fgmembersite-&gt;GetErrorMessage(); ?&gt; &lt;/span&gt;&lt;/div&gt; &lt;div class='container'&gt; &lt;input type="hidden" name="token" value="&lt;?php echo $token; ?&gt;" /&gt; &lt;input type="hidden" name="registeracct" value="Register Account" /&gt; &lt;label for='name' &gt;Your Full Name*: &lt;/label&gt;&lt;br/&gt; &lt;input type='text' name='name' id='name' value='' maxlength="30" autocomplete="off" /&gt;&lt;br/&gt; &lt;span id='register_name_errorloc' class='error'&gt;&lt;/span&gt; &lt;/div&gt; &lt;div class='container'&gt; &lt;label for='username' &gt;UserName*:&lt;/label&gt;&lt;br/&gt; &lt;input type='text' name='username' id='username' value='' maxlength="30" autocomplete="off"/&gt;&lt;font-color='#FF0000'&gt;[Only letters without space]&lt;/font&gt; &lt;input id="salt" type="hidden" name="salt" maxlength=50 value=&lt;?php echo $salt;?&gt;/&gt; &lt;br/&gt; &lt;span id='register_username_errorloc' class='error'&gt;&lt;/span&gt; &lt;/div&gt; &lt;div class='container' style='height:80px;'&gt; &lt;label for='username' &gt;Email id*:&lt;/label&gt;&lt;br/&gt; &lt;input type='text' name='email' id='email' value='' maxlength="300" autocomplete="off"/&gt;&lt;br/&gt; &lt;label for='p_word' &gt;Password*:&lt;/label&gt;&lt;br/&gt; &lt;div class='pwdwidgetdiv' id='thepwddiv' &gt;&lt;/div&gt; &lt;noscript&gt; &lt;input type='password' name='password' id='password' maxlength="30" autocomplete="off" /&gt; &lt;/noscript&gt; &lt;div id='register_password_errorloc' class='error' style='clear:both'&gt;&lt;/div&gt; &lt;label for='p_word' &gt;Confirm Password*:&lt;/label&gt;&lt;br/&gt; &lt;div class='pwdwidgetdiv' id='cnfpwddiv' &gt;&lt;/div&gt; &lt;noscript&gt; &lt;input type='password' name='cnpwd' id='cnpwd' maxlength="30" autocomplete="off" /&gt; &lt;/noscript&gt; &lt;div id='register_password_errorloc' class='error' style='clear:both'&gt;&lt;/div&gt; &lt;br/&gt; &lt;/div&gt;&lt;br/&gt; &lt;br/&gt; &lt;br/&gt; &lt;br/&gt; &lt;div class='container'&gt; &lt;input type="submit" id="login_submit" name="Submit" value="Submit" /&gt; &lt;/div&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;script type='text/javascript'&gt; // &lt;![CDATA[ var pwdwidget = new PasswordWidget('thepwddiv','password'); pwdwidget.MakePWDWidget(); var pwdwidget = new PasswordWidget('cnfpwddiv','cnpwd'); pwdwidget.enableGenerate = false; pwdwidget.MakePWDWidget(); var frmvalidator = new Validator("register"); frmvalidator.EnableOnPageErrorDisplay(); frmvalidator.EnableMsgsTogether(); frmvalidator.addValidation("name","req","Please provide your name"); frmvalidator.addValidation("username","req","Please provide a username"); frmvalidator.addValidation("email","req","Please provide a email-id"); frmvalidator.addValidation("password","req","Please provide a password"); frmvalidator.addValidation("cnpwd","req","Please re-enter password"); // ]]&gt; &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; &lt;?php } ?&gt; Below is the code of server side (afterregister.php) &lt;?php session_start(); session_regenerate_id(true); $s_id=session_id();//PHPSESSID error_reporting(0); require("../connection123.php"); include_once "../validation/Validator.php"; include_once "../validation/val.php"; $v=new Validator(); if(mysqli_connect_errno()) { echo "Connection Failed: " . mysqli_connect_errno(); exit(); } $array=array('token','registeracct','name','username','salt','email','password','cnpwd','Submit'); $n=$v-&gt;array_equal($_POST,$array); if($n!=0){ $redirect="../nopage.php"; die('&lt;script type="text/javascript"&gt;window.location.href="' . $redirect . '";&lt;/script&gt;'); } $ip=""; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { //check ip from share internet $ip1 = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { //to check ip is pass from proxy $ip1 = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip1 = $_SERVER['REMOTE_ADDR']; if(filter_var($ip1,FILTER_VALIDATE_IP)){ $ip=$ip1; }else{ header("location:../nopage.php"); } } $formname=""; if(isset($_POST['registeracct'])) { $formname= $_POST['registeracct']; } $token = $_SESSION['delete_customer_token']; unset($_SESSION['delete_customer_token']); session_write_close(); //echo $formname; $stmt = $mysqli -&gt; prepare("SELECT logindt FROM tblaudit ORDER BY logindt DESC LIMIT 1"); $stmt-&gt; execute(); $stmt-&gt;store_result(); $stmt-&gt; bind_result($result1); $login=""; if($stmt-&gt;fetch()) { $login=$result1; } //echo $login; //echo $ip; $name1=$v-&gt;validateSQLInjectionlogin($_POST['name']); $name2=$v-&gt;xss_protect($name1); $name=$v-&gt;validf_name($name2); //echo $name; /** if($name==""){ $redirect="../nopage.php"; die('&lt;script type="text/javascript"&gt;window.location.href="' . $redirect . '";&lt;/script&gt;'); }**/ $name1=$v-&gt;validateSQLInjectionlogin($_POST['username']); $usernamee=$v-&gt;xss_protect($name1); $username=$v-&gt;validf_name($usernamee); //echo $username; $salt1=$v-&gt;validateSQLInjectionlogin($_POST['salt']); $salt=$v-&gt;xss_protect($salt1); $email=""; if(isset($_POST['email'])) { $email= $_POST['email']; } //echo $email; $name1=$v-&gt;validateSQLInjection($_POST['password']); $password=$v-&gt;xss_protect($name1); //$pass=md5($salt . md5($password)); $pass=md5($password); //echo $pass; $cnfpwd1=$v-&gt;validateSQLInjection($_POST['cnpwd']); $cnfpwd=$v-&gt;xss_protect($cnfpwd1); //echo $cnfpwd; $no='no'; $confirmcode = 'y'; $stmt1 = $mysqli -&gt; prepare("SELECT distinct username FROM users WHERE username=?"); $stmt1-&gt;bind_param("s", $username); $stmt1-&gt;execute(); $stmt1-&gt;store_result(); $stmt1-&gt; bind_result($result2); $stmt5 = $mysqli -&gt; prepare("SELECT distinct email FROM users WHERE email=?"); $stmt5-&gt;bind_param("s", $email); $stmt5-&gt; execute(); $stmt5-&gt;store_result(); $stmt5-&gt;bind_result($result3); /** if($formname=="" or $name=="" or $username=="" or $salt=="" or $password=="" or $cnfpwd=="" ) { $redirect="../nopage.php"; die('&lt;script type="text/javascript"&gt;window.location.href="' . $redirect . '";&lt;/script&gt;'); }**/ if ($token &amp;&amp; $_POST['token']==$token) { if($stmt1-&gt;fetch()) { echo "&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;Username already exists. Please provide a unique username&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='register.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; $stmt1-&gt;close(); } else if (strlen($username) &lt; 5 OR strlen($username) &gt; 20) { echo "&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;Username should be within 5-20 characters long.&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='register.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; } elseif(!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/i", $email)) { echo "&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;Enter a valid Email-id.&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='register.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; } elseif($stmt5-&gt;fetch()) { echo "&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;Email-id already exists. Please provide a unique email-id&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='register.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; $stmt5-&gt;close(); } else if (!preg_match('/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z]{8,}$/', $password)) { echo "&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;Password should contain minimum 8 characters, atleast an uppercase letter, a lowercase letter and a number.&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='register.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; } else if($password != $cnfpwd) { echo "&lt;br&gt;&lt;br&gt;"; echo "&lt;center&gt;Confirm password not matched!&lt;/center&gt;"; echo "&lt;center&gt;&lt;a href='register.php'&gt;Back&lt;/a&gt;&lt;/center&gt;"; } else { $stmt2 = $mysqli-&gt;prepare("insert into users(name,username,email,password,confirmcode,locked) values(?,?,?,?,?,?)"); $stmt2-&gt;bind_param('ssssss',$name,$username,$email,$pass,$confirmcode,$no); $stmt2-&gt;execute(); $stmt3=$mysqli-&gt;prepare("insert into session(id,username,salt,session_id) values(?,?,?,?)"); $stmt3-&gt;bind_param('ssss',$ip,$username,$salt,$s_id); $stmt3-&gt;execute(); // create the audit trail //$stmt4 = $mysqli-&gt;prepare("insert into tblaudit (uID,editor,formname,whenpost,ip) values(?,?,?,NOW(),?)"); //$stmt4-&gt;bind_param('ssss',$userid,$editor,$formname,$ip); //$stmt4-&gt;execute(); $stmt4=$mysqli-&gt;prepare("update tblaudit set formname=?, whenpost= NOW() where logindt=?"); $stmt4-&gt;bind_param('ss',$formname,$login); $stmt4-&gt;execute(); include "thank-you-regd.html"; $stmt2-&gt;close(); $stmt3-&gt;close(); $stmt4-&gt;close(); $mysqli-&gt;close(); } } else { echo "unable to register a new account"; } ?&gt; </code></pre> </div>

通过PHP连接到映射的SQL服务器

<div class="post-text" itemprop="text"> <p>I am working with an already built database on 2008 Server R2 platform, and am wanting to create an application to query said DB.</p> <p>All of my experience is with local installs of MySQL, however this database is an MS SQL server 10.50.</p> <p>My question is this, The SQL server is a mapped drive to the web server, I've got all proper PHP drivers and SQLsrv extensions installed and am getting proper phpinfo read outs, everything is functioning properly, but I am stumped as to how to connect to the SQL server. To clarify,</p> <p>My application lives on the web server, I am wanting to connect via php to the SQL server which is mapped to the web server. I'm using windows authentication. </p> <p>The connection PHP i have written so far looks like this</p> <pre><code>&lt;?php $serverName = "SmartCM.IMG"; $connectionInfo = array( "Database"=&gt;"SMARTCM"); $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn ) { echo "Connection established.&lt;br /&gt;"; }else{ echo "I tried, but it didn't work out... sorry.&lt;br /&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;"; die( print_r( sqlsrv_errors(), true)); } ?&gt; </code></pre> <p>This is the error read out I get</p> <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; 08001 [SQLSTATE] =&gt; 08001 [1] =&gt; 53 [code] =&gt; 53 [2] =&gt; [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. [message] =&gt; [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [53]. ) [1] =&gt; Array ( [0] =&gt; HYT00 [SQLSTATE] =&gt; HYT00 [1] =&gt; 0 [code] =&gt; 0 [2] =&gt; [Microsoft][ODBC Driver 11 for SQL Server]Login timeout expired [message] =&gt; [Microsoft][ODBC Driver 11 for SQL Server]Login timeout expired ) [2] =&gt; Array ( [0] =&gt; 08001 [SQLSTATE] =&gt; 08001 [1] =&gt; 53 [code] =&gt; 53 [2] =&gt; [Microsoft][ODBC Driver 11 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. [message] =&gt; [Microsoft][ODBC Driver 11 for SQL Server]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. ) ) </code></pre> </div>

将转换的MQTT字符串传递给MYSQL

<div class="post-text" itemprop="text"> <p>I'm attempting to convert MQTT strings and add them into mysql, I have managed to convert the strings and have them display correctly in the chrome console but im missing the bit between the javascript and PHP to pass the data across.</p> <p>I have tried some of the things outlined in other question on this site but i can get them to work, i tried to use AJAX but again couldn't get it to work where am i going wrong or what am i missing?</p> <p>all the below code is run server side.</p> <pre><code>var hostname = "127.0.0.1"; var port = 1884; // Create a client instance var client = new Paho.MQTT.Client(hostname, Number(port), "clientId"); // set callback handlers client.onConnectionLost = onConnectionLost; client.onMessageArrived = onMessageArrived; // connect the client client.connect({ onSuccess: onConnect }); // called when the client connects function onConnect() { // Once a connection has been made, make a subscription and send a message. console.log("onConnect"); client.subscribe("test"); } // called when the client loses its connection function onConnectionLost(responseObject) { if (responseObject.errorCode !== 0) { console.log("onConnectionLost:" + responseObject.errorMessage); } } // called when a message arrives function onMessageArrived(message) { var raw = message.payloadString; message.length = raw.length; message.raw = raw; var data = {}; data.major = raw.slice(-10,-4); data.mac = raw.substring(5,17); data.hostname = raw.substring(18,30); data.minor = raw.slice(-8,-4); var str = data.hostname; var location = str.replace(`C129E53D0F45`, `PINK`) .replace(`FD139CD46385`, `DARKORANGE`) .replace(`EB72F2609789`, `DEEPSKYBLUE`) .replace(`DBECEE45AE6F`, `RED`) .replace(`E47D6D760A7F`, `WHITE`) .replace(`C3D7EDB7EF28`, `WHITE`) .replace(`E3A3BD636EA3`, `GREEN`) .replace(`D6F579FC35C9`, `YELLOW`); var beacon = parseInt(data.minor ,16); var topic2 = ('[value="'+location+','+beacon+', '+data.mac+'"]') console.log("Message arrived: topic=" + message.destinationName + ", message=" + topic2); } &lt;/script&gt; &lt;?php $servername = "127.0.0.1"; $username = "user"; $password = "password"; $dbname = "test"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn-&gt;connect_error) { die("Connection failed: " . $conn-&gt;connect_error); } $sql = "INSERT INTO test.track (`location`,`beacon`, `mac`) VALUES ('+location+','+beacon+', '+data.mac+')"; if ($conn-&gt;query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error; } $conn-&gt;close(); ?&gt; </code></pre> </div>

如何配置XAMPP以远程连接MySQL

<div class="post-text" itemprop="text"> <p>I have a problem to connect my online MySQL database from my local system. </p> <p>I installed XAMPP on my Windows 7 and created a PHP file with this code: </p> <pre><code>&lt;?php $db_path = mysqli_connect('printcity24.com', 'printci1_admin', 'xr10s20191', 'printci1_db', '3306'); if(!$db_path) { echo mysqli_connect_error(); }else{ echo "Connected successfully"; } ?&gt; </code></pre> <p>Then i created a database on my website : www.printcity24.com </p> <p>My web host admin configured my host and opened firewall. </p> <p>When i use XAMPP command line to connect to my database every thing is ok, i can connect to my database remotely with this code : </p> <pre><code># mysql -u printci1_admin -p -h printcity24.com </code></pre> <p>but when i use php code to connect to my database i get this error : </p> <pre><code> Warning: mysqli_connect(): MySQL server has gone away in D:\Xampp Server\htdocs\st\index.php on line 2 Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in D:\Xampp Server\htdocs\st\index.php on line 2 MySQL server has gone away </code></pre> <p>I upload my php code on to other <a href="https://mehrac.ir/test/index.php" rel="nofollow noreferrer">websites</a> and test for connection and everything is "ok" but on my local xampp can't connect. </p> <p>In <a href="https://stackoverflow.com/questions/42095946/php-not-connecting-to-remote-mysql">this link</a> said i have to use this command : </p> <pre><code>setsebool -P httpd_can_network_connect=1 </code></pre> <p>but I don't know where to put this code and how to configure my xampp. </p> </div>

Wamp 3.0.4,服务器在线,但我无法访问我的项目

<div class="post-text" itemprop="text"> <p>im working on a prestashop site using wamp 3.0.4 i manage to put the server online (i can access through internet using my ip address ex. 1.2.3.4:8080) but when i try to go to my project folder i get 403 forbidden. I tried setting "Allow from all" in all directories in httpd.conf, i also set my virtual hosts in httpd-vhost.conf and windows hosts file.</p> <p>when i request publicip:8080 on another computer (not in my LAN) the wamp index previewed and i can access Tools(phpinfo, phpmyadminn) &amp; Your Aliases(phpmyadmin, phpsysinfo, sqlbuddy, webgrin) but i can't access my project.</p> <p>please help i don't know what else to try! </p> <p>httpd.conf</p> <pre><code># # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See &lt;URL:http://httpd.apache.org/docs/2.4/&gt; for detailed information. # In particular, see # &lt;URL:http://httpd.apache.org/docs/2.4/mod/directives.html&gt; # for a discussion of each configuration directive. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/access_log" # with ServerRoot set to "/usr/local/apache2" will be interpreted by the # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" # will be interpreted as '/logs/access_log'. # # NOTE: Where filenames are specified, you must use forward slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # If a drive letter is omitted, the drive on which httpd.exe is located # will be used by default. It is recommended that you always supply # an explicit drive letter in absolute paths to avoid confusion. ServerSignature On ServerTokens Full # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # Do not add a slash at the end of the directory path. If you point # ServerRoot at a non-local disk, be sure to specify a local disk on the # Mutex directive, if file-based mutexes are used. If you wish to share the # same ServerRoot for multiple httpd daemons, you will need to change at # least PidFile. # ServerRoot "c:/wamp64/bin/apache/apache2.4.18" Define APACHE24 Apache2.4 # # Mutex: Allows you to set the mutex mechanism and mutex file directory # for individual mutexes, or change the global defaults # # Uncomment and change the directory if mutexes are file-based and the default # mutex file directory is not on a local disk or is not appropriate for some # other reason. # # Mutex default:logs # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the &lt;VirtualHost&gt; # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. # #Listen 12.34.56.78:80 Listen 0.0.0.0:8080 Listen [::0]:8080 # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # Example: # LoadModule foo_module modules/mod_foo.so # LoadModule access_compat_module modules/mod_access_compat.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule allowmethods_module modules/mod_allowmethods.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule auth_form_module modules/mod_auth_form.so #LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_core_module modules/mod_authn_core.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authn_socache_module modules/mod_authn_socache.so #LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule authz_core_module modules/mod_authz_core.so #LoadModule authz_dbd_module modules/mod_authz_dbd.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule buffer_module modules/mod_buffer.so LoadModule cache_module modules/mod_cache.so LoadModule cache_disk_module modules/mod_cache_disk.so #LoadModule cache_socache_module modules/mod_cache_socache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule data_module modules/mod_data.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule http2_module modules/mod_http2.so #LoadModule headers_module modules/mod_headers.so #LoadModule heartbeat_module modules/mod_heartbeat.so #LoadModule heartmonitor_module modules/mod_heartmonitor.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so #LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so #LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so #LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_debug_module modules/mod_log_debug.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule lua_module modules/mod_lua.so #LoadModule macro_module modules/mod_macro.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_express_module modules/mod_proxy_express.so #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule proxy_html_module modules/mod_proxy_html.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so #LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so #LoadModule ratelimit_module modules/mod_ratelimit.so #LoadModule reflector_module modules/mod_reflector.so #LoadModule remoteip_module modules/mod_remoteip.so #LoadModule request_module modules/mod_request.so #LoadModule reqtimeout_module modules/mod_reqtimeout.so LoadModule rewrite_module modules/mod_rewrite.so #LoadModule sed_module modules/mod_sed.so #LoadModule session_module modules/mod_session.so #LoadModule session_cookie_module modules/mod_session_cookie.so #LoadModule session_crypto_module modules/mod_session_crypto.so #LoadModule session_dbd_module modules/mod_session_dbd.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule slotmem_plain_module modules/mod_slotmem_plain.so #LoadModule slotmem_shm_module modules/mod_slotmem_shm.so #LoadModule socache_dbm_module modules/mod_socache_dbm.so #LoadModule socache_memcache_module modules/mod_socache_memcache.so #LoadModule socache_shmcb_module modules/mod_socache_shmcb.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule version_module modules/mod_version.so LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule watchdog_module modules/mod_watchdog.so #LoadModule xml2enc_module modules/mod_xml2enc.so LoadModule php5_module "c:/wamp64/bin/php/php5.6.19/php5apache2_4.dll" &lt;IfModule unixd_module&gt; # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User daemon Group daemon &lt;/IfModule&gt; # 'Main' server configuration # # The directives in this section set up the values used by the 'main' # server, which responds to any requests that aren't handled by a # &lt;VirtualHost&gt; definition. These values also provide defaults for # any &lt;VirtualHost&gt; containers you may define later in the file. # # All of these directives may appear inside &lt;VirtualHost&gt; containers, # in which case these default settings will be overridden for the # virtual host being defined. # # # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin admin@example.com # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # ServerName localhost:8080 # # Deny access to the entirety of your server's filesystem. You must # explicitly permit access to web content directories in other # &lt;Directory&gt; blocks below. # &lt;Directory /&gt; Options FollowSymLinks AllowOverride all Order deny,allow Allow from all Allow from 127.0.0.1 &lt;/Directory&gt; # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # HostnameLookups Off # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "c:/wamp64/www/entrecueros/" &lt;Directory "c:/wamp64/www/entrecueros/"&gt; # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options +Indexes +FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all Allow from all Require all granted # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove Require all granted &lt;/Directory&gt; # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # &lt;IfModule dir_module&gt; DirectoryIndex index.php index.php3 index.html index.htm &lt;/IfModule&gt; # # The following lines prevent .htaccess and .htpasswd files from being # viewed by Web clients. # &lt;Files ".ht*"&gt; Require all denied &lt;/Files&gt; # # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a &lt;VirtualHost&gt; # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a &lt;VirtualHost&gt; # container, that host's errors will be logged there and not here. # #ErrorLog "logs/error.log" ErrorLog "c:/wamp64/logs/apache_error.log" # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn &lt;IfModule log_config_module&gt; # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common &lt;IfModule logio_module&gt; # You need to enable mod_logio.c to use %I and %O LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio &lt;/IfModule&gt; # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a &lt;VirtualHost&gt; # container, they will be logged here. Contrariwise, if you *do* # define per-&lt;VirtualHost&gt; access logfiles, transactions will be # logged therein and *not* in this file. # CustomLog "c:/wamp64/logs/access.log" common # # If you prefer a logfile with access, agent, and referer information # (Combined Logfile Format) you can use the following directive. # #CustomLog "logs/access.log" combined &lt;/IfModule&gt; &lt;IfModule alias_module&gt; # # Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar # # Alias: Maps web paths into filesystem paths and is used to # access content that does not live under the DocumentRoot. # Example: # Alias /webpath /full/filesystem/path # # If you include a trailing / on /webpath then the server will # require it to be present in the URL. You will also likely # need to provide a &lt;Directory&gt; section to allow access to # the filesystem path. # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the target directory are treated as applications and # run by the server when requested rather than as documents sent to the # client. The same rules about trailing "/" apply to ScriptAlias # directives as to Alias. # ScriptAlias /cgi-bin/ "c:/wamp64/cgi-bin/" &lt;/IfModule&gt; &lt;IfModule cgid_module&gt; # # ScriptSock: On threaded servers, designate the path to the UNIX # socket used to communicate with the CGI daemon of mod_cgid. # #Scriptsock cgisock &lt;/IfModule&gt; # # "c:/Apache24/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # &lt;Directory "c:/wamp64/cgi-bin"&gt; AllowOverride None Options None Require all granted &lt;/Directory&gt; &lt;IfModule mime_module&gt; # # TypesConfig points to the file containing the list of mappings from # filename extension to MIME-type. # TypesConfig conf/mime.types # # AddType allows you to add to or override the MIME configuration # file specified in TypesConfig for specific file types. # #AddType application/x-gzip .tgz # # AddEncoding allows you to have certain browsers uncompress # information on the fly. Note: Not all browsers support this. # AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz # # If the AddEncoding directives above are commented-out, then you # probably should define those extensions to indicate media types: # AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 # # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype. These can be either built into the server # or added with the Action directive (see below) # # To use CGI scripts outside of ScriptAliased directories: # (You will also need to add "ExecCGI" to the "Options" directive.) # #AddHandler cgi-script .cgi # For type maps (negotiated resources): #AddHandler type-map var # # Filters allow you to process content before it is sent to the client. # # To parse .shtml files for server-side includes (SSI): # (You will also need to add "Includes" to the "Options" directive.) # #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml &lt;/IfModule&gt; # # The mod_mime_magic module allows the server to use various hints from the # contents of the file itself to determine its type. The MIMEMagicFile # directive tells the module where the hint definitions are located. # #MIMEMagicFile conf/magic # # Customizable error responses come in three flavors: # 1) plain text 2) local redirects 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 404 /missing.html #ErrorDocument 404 "/cgi-bin/missing_handler.pl" #ErrorDocument 402 http://www.example.com/subscription_info.html # # # MaxRanges: Maximum number of Ranges in a request before # returning the entire resource, or one of the special # values 'default', 'none' or 'unlimited'. # Default setting is to accept 200 Ranges. #MaxRanges unlimited # # EnableMMAP and EnableSendfile: On systems that support it, # memory-mapping or the sendfile syscall may be used to deliver # files. This usually improves server performance, but must # be turned off when serving from networked-mounted # filesystems or if support for these functions is otherwise # broken on your system. # Defaults: EnableMMAP On, EnableSendfile Off # #EnableMMAP off EnableSendfile off # AcceptFilter: On Windows, none uses accept() rather than AcceptEx() and # will not recycle sockets between connections. This is useful for network # adapters with broken driver support, as well as some virtual network # providers such as vpn drivers, or spam, virus or spyware filters. AcceptFilter http none AcceptFilter https none # Supplemental configuration # # The configuration files in the conf/extra/ directory can be # included to add extra features or to modify the default configuration of # the server, or you may simply copy their contents here and change as # necessary. # Server-pool management (MPM specific) #Include conf/extra/httpd-mpm.conf # Multi-language error messages #Include conf/extra/httpd-multilang-errordoc.conf # Fancy directory listings Include conf/extra/httpd-autoindex.conf # Language settings #Include conf/extra/httpd-languages.conf # User home directories #Include conf/extra/httpd-userdir.conf # Real-time info on requests and configuration #Include conf/extra/httpd-info.conf # Virtual hosts Include conf/extra/httpd-vhosts.conf # Local access to the Apache HTTP Server Manual #Include conf/extra/httpd-manual.conf # Distributed authoring and versioning (WebDAV) #Include conf/extra/httpd-dav.conf # Various default settings #Include conf/extra/httpd-default.conf # Configure mod_proxy_html to understand HTML4/XHTML1 &lt;IfModule proxy_html_module&gt; Include conf/extra/proxy-html.conf &lt;/IfModule&gt; # Secure (SSL/TLS) connections #Include conf/extra/httpd-ssl.conf # # Note: The following must must be present to support # starting without SSL on platforms with no /dev/random equivalent # but a statically compiled-in mod_ssl. # &lt;IfModule ssl_module&gt; SSLRandomSeed startup builtin SSLRandomSeed connect builtin &lt;/IfModule&gt; Include "c:/wamp64/alias/*" </code></pre> <p>httpd-vhost</p> <pre><code># # Virtual Hosts # &lt;VirtualHost *:8080&gt; ServerName localhost DocumentRoot c:/wamp64/www/ &lt;Directory "c:/wamp64/www/"&gt; Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted &lt;/Directory&gt; &lt;/VirtualHost&gt; &lt;VirtualHost *:8080&gt; ServerAdmin webmaster@example.com DocumentRoot C:/wamp64/www/Entrecueros/ ServerName entrecueros ServerAlias entrecueros &lt;Directory "C:/wamp64/www/Entrecueros/"&gt; Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> </div>

从同一网络中的localhost访问IIS 7中内置的文件服务器(映射)

<div class="post-text" itemprop="text"> <p>I have a web application developed in a local PC in Windows using</p> <ul> <li><strong>PHP 5.4.25</strong></li> <li><strong>Apache 2.4.7</strong></li> <li><strong>XAMPP 1.8.2</strong></li> </ul> <p>Now I want some files to be copied from a file server built in IIS 7 which is in the same network.</p> <p>IIS 7 listens at random port number starting from 65000, other than this I have no idea how it was set up.</p> <p>I have tried the following methods</p> <ul> <li>ftp_login() with proper username &amp; password which has every rights</li> <li>copy('\\servername\folder\test.txt','path\to\my\folder')</li> <li>file_exists('\\servername\folder\test.txt')</li> <li>fopen('\\servername\folder\test.txt')</li> <li>opendir('\\servername\folder\')</li> <li>scandir('\\servername\folder\')</li> </ul> <p>But PHP error says, <strong><code>Permission denied or Access is denied.</code></strong> Sometimes it says, "The server has actively refused connection"</p> <p>My question is what changes should I make in IIS 7 or in my web application. </p> <p>I will answer any further questions on this. Thanks in advance.</p> </div>

如何提高Node.js Express Server响应时间

<div class="post-text" itemprop="text"> <p>I'm trying to improve the Server Response Time of an angular 6 app. At the beginning this app was being hosted as simple production of angular over an apache2 web server. After I updated this app to universal, meaning now it is being run over node.js with express, I noticed that the Server Response time increased really high. I tried using cache headers but nothing seam to make a difference. </p> <p>The comparison is illustrated by inspecting the network on google chrome:<br><br> <b>BEFORE</b><br><br> <img src="https://i.imgur.com/CwoLYve.png" alt="before"><br><br> <b>AFTER</b><br><br> <img src="https://i.imgur.com/T8Hfe2h.png" alt="after"><br><br></p> <p>Could this be because of the proxy or redirection to the port which the app is listening ?</p> </div>

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

汽车行驶工况构建2019 D题.zip

1. 标记0与0之间的片段位置 2.标记所之间的毛刺数的位置 3.去掉毛刺数据 速度 并生成 新的数组 4.标记时间段 5. 0与0之间 如果有不连续的时间片段 置零 先找到时间间隔 再看间隔时间对应

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

专为程序员设计的数学课

<p> 限时福利限时福利,<span>15000+程序员的选择!</span> </p> <p> 1、原价 115 元,限时特价仅需 49 元!<br> 2、购课后添加学习助手(微信号:csdnxy68),按提示消息领取编程大礼包!并获取讲师答疑服务! </p> <p> <br> </p> <p> 套餐中一共包含5门程序员必学的数学课程(共47讲) </p> <p> 课程1:《零基础入门微积分》 </p> <p> 课程2:《数理统计与概率论》 </p> <p> 课程3:《代码学习线性代数》 </p> <p> 课程4:《数据处理的最优化》 </p> <p> 课程5:《马尔可夫随机过程》 </p> <p> <br> </p> <p> 哪些人适合学习这门课程? </p> <p> 1)大学生,平时只学习了数学理论,并未接触如何应用数学解决编程问题; </p> <p> 2)对算法、数据结构掌握程度薄弱的人,数学可以让你更好的理解算法、数据结构原理及应用; </p> <p> 3)看不懂大牛代码设计思想的人,因为所有的程序设计底层逻辑都是数学; </p> <p> 4)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; </p> <p> 5)想修炼更好的编程内功,在遇到问题时可以灵活的应用数学思维解决问题。 </p> <p> <br> </p> <p> 在这门「专为程序员设计的数学课」系列课中,我们保证你能收获到这些:<br> <br> <span> </span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">①价值300元编程课程大礼包</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">②应用数学优化代码的实操方法</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">③数学理论在编程实战中的应用</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">④程序员必学的5大数学知识</span> </p> <p class="ql-long-24357476"> <span class="ql-author-24357476">⑤人工智能领域必修数学课</span> </p> <p> <br> 备注:此课程只讲程序员所需要的数学,即使你数学基础薄弱,也能听懂,只需要初中的数学知识就足矣。<br> <br> 如何听课? </p> <p> 1、登录CSDN学院 APP 在我的课程中进行学习; </p> <p> 2、登录CSDN学院官网。 </p> <p> <br> </p> <p> 购课后如何领取免费赠送的编程大礼包和加入答疑群? </p> <p> 购课后,添加助教微信:<span> csdnxy68</span>,按提示领取编程大礼包,或观看付费视频的第一节内容扫码进群答疑交流! </p> <p> <img src="https://img-bss.csdn.net/201912251155398753.jpg" alt=""> </p>

微信公众平台开发入门

本套课程的设计完全是为初学者量身打造,课程内容由浅入深,课程讲解通俗易懂,代码实现简洁清晰。通过本课程的学习,学员能够入门微信公众平台开发,能够胜任企业级的订阅号、服务号、企业号的应用开发工作。 通过本课程的学习,学员能够对微信公众平台有一个清晰的、系统性的认识。例如,公众号是什么,它有什么特点,它能做什么,怎么开发公众号。 其次,通过本课程的学习,学员能够掌握微信公众平台开发的方法、技术和应用实现。例如,开发者文档怎么看,开发环境怎么搭建,基本的消息交互如何实现,常用的方法技巧有哪些,真实应用怎么开发。

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

IE主页被篡改修复

IE主页修复。IE主页被篡改修复。一键修复IE主页

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

土豆SDK(Java版)-非官方

由于土豆SDK一直建设中,最近几天抽空写了一套java的SDK。包含了现有的所有请求协议。本套SDK中仅提供了oAuth的方式(引用oAuth.net的java版示例),并没有在框架中实现,涉及到登录

Java8零基础入门视频教程

这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!

【数据结构与算法综合实验】欢乐连连看(C++ & MFC)案例

这是武汉理工大学计算机学院数据结构与算法综合实验课程的第三次项目:欢乐连连看(C++ & MFC)迭代开发代码。运行环境:VS2017。已经实现功能:开始游戏、消子、判断胜负、提示、重排、计时、帮助。

数学建模竞赛D题“汽车行驶工况构建

第十六届“华为杯”数学建模竞赛D题“汽车行驶工况构建”论文。论文获得比赛国家二等奖,论文为原创,仅供参考。 关键词:数据处理;降维;聚类。

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

Android音视频开发全套

Android平台音视频开发全套,涉及:FFmpeg软解码解码、Mediacodec硬解码编码、Openssl音频播放、OpenGL ES视频渲染、RTMP推流等核心重要知识点。

设计模式(JAVA语言实现)--20种设计模式附带源码

课程亮点: 课程培训详细的笔记以及实例代码,让学员开始掌握设计模式知识点 课程内容: 工厂模式、桥接模式、组合模式、装饰器模式、外观模式、享元模式、原型模型、代理模式、单例模式、适配器模式 策略模式、模板方法模式、观察者模式、迭代器模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式 课程特色: 笔记设计模式,用笔记串连所有知识点,让学员从一点一滴积累,学习过程无压力 笔记标题采用关键字标识法,帮助学员更加容易记住知识点 笔记以超链接形式让知识点关联起来,形式知识体系 采用先概念后实例再应用方式,知识点深入浅出 提供授课内容笔记作为课后复习以及工作备查工具 部分图表(电脑PC端查看):

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

web网页制作期末大作业

分享思维,改变世界. web网页制作,期末大作业. 所用技术:html css javascript 分享所学所得

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/27513,点击右下方课程资料、代码、课件等打包下载

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

C++语言基础视频教程

C++语言基础视频培训课程:本课与主讲者在大学开出的程序设计课程直接对接,准确把握知识点,注重教学视频与实践体系的结合,帮助初学者有效学习。本教程详细介绍C++语言中的封装、数据隐藏、继承、多态的实现等入门知识;主要包括类的声明、对象定义、构造函数和析构函数、运算符重载、继承和派生、多态性实现等。 课程需要有C语言程序设计的基础(可以利用本人开出的《C语言与程序设计》系列课学习)。学习者能够通过实践的方式,学会利用C++语言解决问题,具备进一步学习利用C++开发应用程序的基础。

零基础学C#编程—C#从小白到大咖

本课程从初学者角度出发,提供了C#从入门到成为程序开发高手所需要掌握的各方面知识和技术。 【课程特点】 1 由浅入深,编排合理; 2 视频讲解,精彩详尽; 3 丰富实例,轻松易学; 4 每章总结配有难点解析文档。 15大章节,228课时,1756分钟与你一同进步!

编程实现学生基本信息管理程序

编程实现学生基本信息管理程序。学生基本信息包括:学号、姓名、性别、年龄、班级、学院、专业等。具体实现的管理功能如下: (1) 输入并显示多个学生的基本信息; (2) 可根据需要实现学生信息的添加; (

android 漂亮的UI界面 完整的界面设计

声明:这也是我学习时在网上下载的,鉴于分享精神,并且觉得很不错才上传上来的。。。。。 android 漂亮的UI界面 完整的界面设计 这是一个完整的UI设计,但是没写动作,这是一个公司程序员的公司任务

Anaconda详细安装及使用教程(带图文)

Anacond的介绍 Anaconda指的是一个开源的Python发行版本,其包含了conda、Python等180多个科学包及其依赖项。 因为包含了大量的科学包,Anaconda 的下载文件比较大(约 531 MB),如果只需要某些包,或者需要节省带宽或存储空间,也可以使用Miniconda这个较小的发行版(仅包含conda和 Python)。 Conda是一个开源的包、环境管理器,可以用于...

DirectX修复工具V4.0增强版

DirectX修复工具(DirectX Repair)是一款系统级工具软件,简便易用。本程序为绿色版,无需安装,可直接运行。 本程序的主要功能是检测当前系统的DirectX状态,如果发现异常则进行修复

相关热词 c# 开发接口 c# 中方法上面的限制 c# java 时间戳 c#单元测试入门 c# 数组转化成文本 c#实体类主外键关系设置 c# 子函数 局部 c#窗口位置设置 c# list 查询 c# 事件 执行顺序
立即提问
相关内容推荐