xampp

Xampp php_pdo_odbc not working

拜拜、爱过 提交于 2020-01-30 08:09:06
问题 Xampp linux version: 7.1 OS: Ubuntu 14.04 I already uncommented extensions=php_pdo_odbc.dll in opt/lampp/etc/php.ini but odbc is not showing image here 回答1: you are using linux, so forget about .dll windows extension : first you will need to check if you have the extension or not : print_r(PDO::getAvailableDrivers()); this will print an array with the currently installed PDO Drivers, if you didn't get the odbc driver , try to enable it : sudo phpenmod pdo_odbc then check again, if not

What is the proper way to declare variables in php?

那年仲夏 提交于 2020-01-30 06:31:48
问题 I was using variables in my php file without declaring them. It was working perfect in old version of localhost (i.e vertrigoServ 2.22). But when I moved to latest version of localhost (i.e xampp 3.2.1), I encountered variables declaration warnings and errors something like this: Notice: Undefined variable: att_troops_qty in D:\Installed Programs\htdocs\dashboard\WarLord\PHP_Code\MyAjax.php on line 1247 So I declared all the variables at the top of php file like this: $page = ""; $att_troops

C#连接XAMPP中的mysql 数据库(windows)

喜欢而已 提交于 2020-01-29 16:35:18
https://blog.csdn.net/c337134154/article/details/45952725 今天尝试了一下用C#连接XAMPP中的mysql,总结一下网上的各种资料,希望能让看到这篇博客的人少走一些弯路 开发环境是vs2013 xampp v3.2.1 1.首先给出mysql 连接C#的connector,感觉到官网上下载比较麻烦,就直接把我的网盘地址甩出来了 百度云盘链接 官网地址 2.里面有一个bin的压缩包,把解压后的文件复制到C#项目中的bin中,并且添加到项目中的引用 并且添加 using MySql.Data; using MySql.Data.MySqlClient; 3. xampp 需要打开apache和mysql,并且用shell通过命令行启动mysql 4. 粘出C#windows form的源代码,如果不想再继续看下去的话直接粘到项目中,添加几个控件测试一下就结束任务了 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks;

XAMPP 下apache部署网站,多个虚拟机(空间)配置

安稳与你 提交于 2020-01-29 03:59:44
1、首先修改C盘WINDOWS/system32/drivers/etc目录下的 hosts 文件,用记事本打开,加入: 127.0.0.1 www.a.com 127.0.0.1 www.b.com 2、 打开xampp/apache/conf/httpd.conf文件,搜索 “Include conf/extra/httpd-vhosts.conf”,确保Include conf/extra/httpd-vhosts.conf前面没有 # 注释符,也就是确保引入了 vhosts 虚拟主机配置文件。 开启了httpd-vhosts.conf,默认的httpd.conf默认配置失效(确保 httpd-vhosts.conf 文件里也开启了虚拟主机配置,见第3条),访问此IP的域名将全部指向 vhosts.conf 中的第一个虚拟主机。 3、在虚拟主机设置文件xampp/apache/conf/extra/httpd-vhosts.conf里设置: 取消 NameVirtualHost *:80 前面的 ##,这样就启用了 vhosts.conf ,默认的httpd.conf默认配置失效。虚拟主机配置将只设置在 httpd-vhosts.conf 里。 <VirtualHost *:80> DocumentRoot /xampp/htdocs/a ServerName www.a

Getting ''Access denied for user 'root'@'localhost' (using password: YES)'' when I have no password on root [duplicate]

此生再无相见时 提交于 2020-01-26 04:01:27
问题 This question already has answers here : MySQL ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES) (36 answers) Closed 11 days ago . So I am trying to send data to a database but I am getting denied access when trying. PS: I don't have a password to root. <?php $userName = $_POST['registerName']; $userPassword = $_POST['registerPassword']; $userEmail = $_POST['registerEmail']; $userStudie = $_POST['registerStudie']; $userYear = $_POST['registerYear']; if (

Error on sending mail with XAMPP

不羁的心 提交于 2020-01-25 07:03:54
问题 Hi I keep getting the error, Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\ and I changed the sendmail in the php.ini to: sendmail_from = 12343OHBS@gmail.com $to='12343OHBS@gmail.com';//assigns the email address to the reciever part of the script $subject='User Comments OHBS.com'; $header='test'; $name=($_POST['Name']); $email=($_POST['Email']); $Question=($_POST['MessageTitle']); // the mail, the .= function is used to

XAMPP. Apache cant start. api-ms-win-crt-runtime-|1-1-0.dll is missing from your computer

南楼画角 提交于 2020-01-24 21:54:27
问题 When I start apache in XAMPP. The program cant start because api-ms-win-crt-runtime-|1-1-0.dll is missing from your computer. How I fix it?! 回答1: You need to install the following windows update: KB2999226 (Update for Universal C Runtime in Windows) The missing dll api-ms-win-crt-runtime-l1-1-0.dll is installed with a Windows update. To resolve this issue, download and install the Update for Universal C Runtime in Windows from Microsoft. (Source) Sidenote: The details page from Microsoft was

PHP Cannot POST error running XAMPP

£可爱£侵袭症+ 提交于 2020-01-23 18:23:26
问题 Using the following files in the same directory I have been getting a cannot POST error while running XAMPP 1.8.3 and [PHP: 5.5.15. <html> <head> <title> IsEven </title> </head> <body> <form action= "IsEven.php" method="post"> Enter a number: <input type="text" name="number" /> <input type="submit" value="submit" /> </form> </body> </html> Here is my PHP file <?php //Assign Values to the variable. $number = $_POST['number']; //If statements to check Even number or not. //Is_numeric, Isset()

Error when saving in Web Storm (Permission Denied)

 ̄綄美尐妖づ 提交于 2020-01-23 06:50:08
问题 When I click save in Web Storm I get the following Error: Could not save project: java.io.FileNotFoundException:/Applications/XAMPP/xamppfiles/htdocs/[myFileName]/.idea/workspace.xml~ (Permission denied) As far as I can tell my changes are being saved. Can any one tell me what's causing this and if it's something I need to be concerned about. 来源: https://stackoverflow.com/questions/12733824/error-when-saving-in-web-storm-permission-denied

Unable to change Apache port number in Xampp

梦想与她 提交于 2020-01-22 15:25:14
问题 I just downloaded Xampp server xampp-win32-1.8.2-0-VC9.zip file for windows and tried to start the apache server. But the server failed to start with the following message: XAMPP now starts as a console application. Instead of pressing Control-C in this console window, please use xampp_stop.exe to stop XAMPP, because it lets XAMPP end any current transactions and cleanup gracefully. (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. :