xampp

My php sessions keep being lost after login

一个人想着一个人 提交于 2020-01-11 09:52:11
问题 I have read alot about the php security best practices on so, and I am trying hard to employ those on my xampp server. I have an include that does all my security, ddos, session management, and in there is a function called sec_session_start. The code is below, but when i try to login, and then redirect back to my home page, all the session data is gone. On my login process page, before I do a redirect, it has all the correct session data. After each header, i am doing "exit;". I have also

after changing documentroot, xampp still using default phpmyadmin

六眼飞鱼酱① 提交于 2020-01-11 07:49:28
问题 I used XAMPP to install Apache, PHP, MySQL. I then personalized the c:\xampp\apache\conf\httpd.conf file thusly: # DocumentRoot "C:/xampp/htdocs" DocumentRoot "C:\Users\edward\Documents\webs" # <Directory "C:/xampp/htdocs"> <Directory "C:\Users\edward\Documents\webs"> I now can put websites e.g. here: C:\Users\edward\Documents\webs\test which map here: http://localhost/test/ However, when copied in my own phpmyadmin site here: C:\Users\edward\Documents\webs\phpmyadmin I noticed that the URL:

PhpMyAdmin Error: Mismatch Token

陌路散爱 提交于 2020-01-11 04:54:04
问题 I've just recently been getting an error in my local installation on installed on apache on xampp. I'm running v4.0.5 of phpmyadmin. The error description is Error: Mismatch Token. Has anyone else experienced this an found a fix for it? 回答1: You can try the following Find the XAMPP php.ini file and uncomment by removing the semi-colon: session.save_path ="/tmp" Then restart apache. 回答2: Did you change anything in your apache server config files? if not, open browser, clear all history(ctrl

XAMPP

空扰寡人 提交于 2020-01-10 19:53:12
XAMPP 可以打开服务器环境后,手机可以连接电脑同步里面的文件夹 需要安装XAMPP,需要在同一个局域网(同wifi)[没wifi可以电脑安装猎豹免费wifi]获取ip,配置环境 当这些步骤做完之后手机就可以通过ip访问电脑文件夹的文件 XAMPP下载地址: https://www.apachefriends.org/download.html 官方网址->需要翻墙哦~ 安装过程就很简单了,就一个修改路径,其他的默认(反正我是这么安装的) 安装完成后,打开->首界面中有很多东西,直接关注到 Apache这一行->Config->选择第一个(是一个文件) 找到文件里面的-> DocumentRoot ""和<Directory ""> (他们两个是连着的->下一行)这里面的引号修改成目录中的内容(文件夹目录)->保存 回到界面-> Apache这一行->stop 去到浏览器输入 127.0.0.1可以打开设置的文件夹 -> 注:修改了文件之后需要重新打开一下按钮 去找到电脑的网络共享IP地址,在手机浏览器中打开即可~ 来源: https://www.cnblogs.com/Afanadmin/p/12177750.html

How to configure XAMPP to use with MSSQL?

陌路散爱 提交于 2020-01-09 11:42:06
问题 I'm trying configure XAMPP to use with MSSQL. I'm following this: Example but I still had success. I copied the files: php_pdo_sqlsrv_54_ts.dll and php_sqlsrv_54_ts.dll to folder c:\xampp\php\ext and configured php.ini in c:\xampp\php\php.ini . In php.ini I activated the extensions: extension=php_pdo_sqlsrv_54_ts.dll and extension=php_sqlsrv_54_ts.dll and created PDO section. [Pdo_sqlsrv] pdo_sqlsrv.log_severity=-1 . I am using XAMPP v3.2.1 and PHP 5.6.11 How could I make this works ? 回答1:

How to connect sql server with php using xampp?

不打扰是莪最后的温柔 提交于 2020-01-09 05:38:06
问题 I am trying to connect my SQL server with PHP using Xampp. I have already uploaded dll files in the ext folder but I am unable to connect it. My PHP version is 7.2.6. Uploaded dll files are - php_pdo_sqlsrv_72_ts.dll, php_sqlsrv_72_ts.dll. I have written this code to connect my SQL database with PHP- <?php $serverName = "INDO-SERV\SQLEXPRESS,1443"; $uid = "sa"; $pwd = "XXXXXX"; $databaseName = "web"; $connectionInfo = array("UID" => $uid, "PWD" => $pwd, "Database"=>$databaseName); $conn =

New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin

 ̄綄美尐妖づ 提交于 2020-01-08 15:52:01
问题 I have downloaded and installed XAMPP 1.8.1 for Windows on Windows 7 Ultimate. I have set up XAMPP to run together with IIS as per these instructions All good so far, my PHP sites run locally and everything except phpMyAdmin is available from the XAMPP menu. However when I try to access phpMyAdmin I get this error: Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp

New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin

与世无争的帅哥 提交于 2020-01-08 15:51:30
问题 I have downloaded and installed XAMPP 1.8.1 for Windows on Windows 7 Ultimate. I have set up XAMPP to run together with IIS as per these instructions All good so far, my PHP sites run locally and everything except phpMyAdmin is available from the XAMPP menu. However when I try to access phpMyAdmin I get this error: Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp

Linux下快速搭建php开发环境

不羁的心 提交于 2020-01-08 06:49:09
php开发环境快速搭建 一、Linux下快速搭建php开发环境 1.安装 XAMPP for Linux   XAMPP(Apache+MySQL+PHP+PERL) 是一个功能强大的建站集成软件包,使用 XAMPP 可快速搭建 PHP 开发环境。下载链接:https://www.apachefriends.org/download.html 进入下载界面选择 XAMPP for Linux 下载 启动终端输入命令 cd /下载xampp保存的路径。我的保存路径是:/home/coderose/下载。更改安装程序的安装权限,输入命令:chmod 755 xampp-linux-*-installer.run (注:星号代表你下载XAMPP的版本号)。运行安装程序输入命令:./xampp-linux-*-installer.run 安装成功后用命令:sudo /opt/lampp/lampp start 启动。 (注:cd命令:用来切换工作目录至dirname 。ls命令:列出目录下所以文件。chomd命令:修改文件权限) 2.安装PhpStorm   PhpStorm是一个轻量级且便捷的PHP IDE,其旨在提高用户效率,可深刻理解用户的编码,提供智能代码补全,快速导航以及即时错误检查。 下载链接:http://www.jetbrains.com/phpstorm/download

Xdebug Notepad++ DBPG Plugin local and global context not showing

萝らか妹 提交于 2020-01-07 07:09:40
问题 I am using Xdebug with the DBGP Notepad++ plugin I can add breakpoints fine, the watchlist will show arrays and sometimes objects and hovering over variables shows their values. However the local and global variables tabs don't show anything and whenever I hover over an object or it's method or refresh local context the plugin disconnects with an 'Undefined error' popup. No error seems to be printed in the xdebug log. I am using Notepad++ 6.4.3, Xdebug 2.2.0, Php 5.4.4, Xampp on Windows with