xampp

htaccess - internet server error 500 on XAMPP [closed]

允我心安 提交于 2021-02-19 04:59:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Improve this question I am trying to run script on XAMPP but get "internet server error 500". Its fine when running on the live server. I assume this is a .htaccess error. The htaccess code is below: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule (.*) public/$1 [L] </IfModule> I

How to connect XAMPP MySQL local DB using JDBC?

烂漫一生 提交于 2021-02-17 21:57:51
问题 I have this Tetris game written in Java, which uses DB to record high scores. It worked ok as long as I was using remote MySQL DB, but now I'm trying to set up localhost DB using XAMPP MySQL and it keeps going like "SQLException: Communications link failure" at command: con = java.sql.DriverManager.getConnection("jdbc:mysql://localhost/score", user, psw); I guess it's either wrong URL or DB configuration, but I really don't know what to check. Any ideas? EDIT: My friend has fixed my problem

cannot find autoconf. please check your autoconf installation Xampp in CentOS

自古美人都是妖i 提交于 2021-02-17 08:52:52
问题 Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. How to resolved it ? 回答1: MAC Users You can do it easily using brew. brew install autoconf 回答2: You need to install autoconf For CentOS: # yum install autoconf

cannot find autoconf. please check your autoconf installation Xampp in CentOS

倾然丶 夕夏残阳落幕 提交于 2021-02-17 08:52:08
问题 Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. How to resolved it ? 回答1: MAC Users You can do it easily using brew. brew install autoconf 回答2: You need to install autoconf For CentOS: # yum install autoconf

Uncaught Error: Call to undefined method Kreait

让人想犯罪 __ 提交于 2021-02-17 06:11:50
问题 I just created php web server and connected it to firebase. when I tried authentication, Sign up works just fine. but the problem is in Sign in. it keeps getting this error: Fatal error: Uncaught Error: Call to undefined method Kreait\Firebase\Auth::signInWithEmailAndPassword() in /Applications/XAMPP/xamppfiles/htdocs/firebase_series/authActions.php:24 Stack trace: #0 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/firebase_series/authActions.php on line 24 here my authentication code:

PHP修改端口号后

蓝咒 提交于 2021-02-16 06:26:35
今天,想尝试复习下PHP,运行XAMPP中的Apache时遇到了此BUG 复制第二段话上网搜了下,发现只要将端口80修改即可。 首先点击config,并选择httpd.conf 然后将Listen 80 改为Listen 8080并保存 紧接着还需设置,选择config->service and port settings 将main port改为8080即可 我以为以上工作完成即可,但是当我用netbeans运行时,出现 原因我找了很久,发现是因为netbeans,运行时项目URL用了默认路径的问题 选择定制,修改路径 将http://localhost/PhpProject2/ 改为http://localhost:8080/PhpProject2/ 注意localhost:8080中间不要有任何空格 此后运行,正常 !!!! 来源: oschina 链接: https://my.oschina.net/u/4359742/blog/3314352

PHP-Intl on XAMPP 7.4.11 / Mac Catalina 10.15.7

扶醉桌前 提交于 2021-02-11 15:02:33
问题 I've recently updated to XAMPP 7.4.11, running on Mac Catalina 10.15.7. PHP-Intl does not come installed with XAMPP. Previously, I've been able to download the corresponding PHP version and intialize the Intl code – not this time. When I attempt to 'make' intl, I receive the following error: /bin/sh /Users/SLaptop/Downloads/php-7.4.11/ext/intl/libtool --mode=compile cc -I@@BITROCK_COMMON_ROOTDIR@@/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -Wno-write-strings -D

XAMPP access the database from another computer

≡放荡痞女 提交于 2021-02-11 15:01:26
问题 I have 2 server/pc. In PC 1 I installed the XAMPP and in PC 2 this is where my database is installed. I am using Oracle Database 9i (very old version) on PC 2 and on PC 1 I am using PHP 7.3.9. I already enabled the extension for oracle (pdo_oci.dll). Here is my database connection code: new PDO('oci:dbname=backend;host=192.168.10.30;', 'sa', 'backendpass'); 192.168.10.30 - is where the database is installed. Is there a way to access database from PC 1 to PC 2? 来源: https://stackoverflow.com

PHP-Intl on XAMPP 7.4.11 / Mac Catalina 10.15.7

≯℡__Kan透↙ 提交于 2021-02-11 14:58:18
问题 I've recently updated to XAMPP 7.4.11, running on Mac Catalina 10.15.7. PHP-Intl does not come installed with XAMPP. Previously, I've been able to download the corresponding PHP version and intialize the Intl code – not this time. When I attempt to 'make' intl, I receive the following error: /bin/sh /Users/SLaptop/Downloads/php-7.4.11/ext/intl/libtool --mode=compile cc -I@@BITROCK_COMMON_ROOTDIR@@/include -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -Wno-write-strings -D

GetText on Windows 10 XAMPP doesn't translate my text

五迷三道 提交于 2021-02-11 14:30:23
问题 GetText drive me crazy since few hours, I can't make it work. Here is the content of my message.po file: msgid "" msgstr "" "Project-Id-Version: TEST\n" "POT-Creation-Date: 2020-06-13 00:44+0200\n" "PO-Revision-Date: 2020-06-13 00:53+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: nl_BE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "foo" msgstr "bar" msgid "fizz" msgstr "buzz" It is stored into ./locale/nl_BE/LC