xampp

MySQL “Foreign key constraint is incorretly formed”

狂风中的少年 提交于 2019-12-11 04:05:59
问题 I am having trouble with this code. CREATE TABLE Reservation ( Movie_Title varchar(255) NOT NULL, Theatre_No int NOT NULL, Complex_Name varchar(255) NOT NULL, Start_Time datetime NOT NULL, CustomerID int NOT NULL, Number_of_Tickets int NOT NULL, PRIMARY KEY (Movie_Title, Theatre_No, Complex_Name, Start_Time, CustomerID), FOREIGN KEY (Movie_Title) REFERENCES Showings(Movie_Title), FOREIGN KEY (Theatre_No) REFERENCES Showings(Theatre_No), FOREIGN KEY (Complex_Name) REFERENCES Showings(Complex

My PHP code is commented out

喜夏-厌秋 提交于 2019-12-11 03:50:33
问题 Before everything happened, I was running this wordpress install for developing themes using xampp. But I decided to upgrade the memory of this machine from 2GB to 6GB since I need extra room for applications. I back-up my code in a separate partition by copying them. Since I have a 32bit OS at the time, I format the computer and installed a 64bit version. All is well and fine the OS side. When I setup my web dev environment something goes wrong. When I imported my htdocs back, first by just

All localhost http links are redirecting to https

烂漫一生 提交于 2019-12-11 03:33:18
问题 I am stuck up with a Strange problem. I am a php beginner All my php files link, Image source, stylesheet are pointing to Https even though in code its http. My Web page is working fine in Firefox but i am facing this issue in Chrome. Example When i view page source in chrome i get this code <link rel='stylesheet' id='jshop-style-css' href='https://localhost:8080/wordpress/wp-content/themes/jshop/style.css?ver=4.2.3' type='text/css' media='all' /> whereas in Firefox i get <link rel=

XAMPP and Skype Port Conflict on Windows 10

情到浓时终转凉″ 提交于 2019-12-11 03:19:35
问题 I know some of you knew that Skype usually conflicts with XAMPP, because of the port. However if you are trying to use Windows 10 there are no advance option on how to avoid Skype using ports like 80 or 443. (Sorry I can't find advance option on Skype on Windows 10) Any hint on how to make Skype not to use ports 80 or 443 on Windows 10? Thanks in advance! 回答1: How about unistalling Skype from Windows 10 and installing the desktop version? I'm not sure, because I don't own Win10, but in my

MySQL Can't connect to server on localhost with PHP

你说的曾经没有我的故事 提交于 2019-12-11 03:12:19
问题 I'm using XAMPP 1.7.2 and can connect to MySQL via cmd and SQLYog, but not programmatically. This PHP code: $conn = mysql_connect('localhost', 'root', '*****'); if (!$conn) { die('Could not connect: '. mysql_error()); } gives me: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10013) in C:\test\login.php on line 10 Could not connect: Can't connect to MySQL server on 'localhost' (10013) How do I debug this issue? 回答1: Your connection shows an Error

Trying to install asp.net on xampp

自作多情 提交于 2019-12-11 02:45:22
问题 im trying to run aspx files on my xampp installation But the Apache Server doesn't Start. What i did: Installed a clean Xampp. Installted the mod_aspdotnet-2.2.0.2006-setup-r2.msi changed my httpd.conf: #asp.net LoadModule aspdotnet_module modules/mod_aspdotnet.so AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo <IfModule mod_aspdotnet.cpp> AspNetMount /SampleASP "C:\xamppASP\htdocs" Alias /SampleASP "C:\xamppASP\htdocs"

Installing gRPC for localhost

…衆ロ難τιáo~ 提交于 2019-12-11 02:26:17
问题 I'm working with PHP library of Google Cloud Firestore, it requires me to install and enable the gRPC extension.. I've read the guide which says Windows users can download and enable DLLs from PECL. Support for Windows is experimental In the PECL site I can see many links to tgz and DLL files but without any explanation of how to use or activate them in the XAMPP as a localhost 回答1: With the help of this link.. I found that these steps will activate gRPC From PECL site.. choose DLL of the

Can't install gmagick on Windows 7 XAMPP

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:06:42
问题 I have XAMPP 1.8.1 with PHP 5.4.7 installed. When I add php_gmagick_ts.dll to my php.ini (I made sure that I need the ts and not the nts version), upon restarting Apache I'm getting these errors: The procedure entry point php_checkuid_ex could not be located in the dynamic link library php5ts.dll and after that one: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_gmagick_ts.dll' - The specified procedure could not be found. Any help? 回答1: AFAIK there is currently no

PHP Instanciation and late static binding context

 ̄綄美尐妖づ 提交于 2019-12-11 02:05:52
问题 Short version This code $out = new static(); makes PHP to quit unexpectedly and silently, using either xampp or wampserver in Windows. Long version I'm working on an old project which runs flawlessly on ubuntu 15.10 with NGinX/php-fpm php5.5.9 (dev) and also on Ubuntu 14.04 with apache2.4/Fast-CGI php5.5.13 (production). Today, a designer colleague of mine just checked out this same repo to edit some html/css. Unfortunately he hasn't been able to run the project using either Xampp:v3.2.2 (PHP

using htaccess to remove .php from URL

眉间皱痕 提交于 2019-12-11 02:05:49
问题 MY URL: http://localhost/test.php I am using: .htaccess: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] PHP: $url = $_GET['url']; echo var_dump($url); But all I get for $url is:NULL NULL NULL NULL NULL NULL 回答1: Edit: adjusted to handle both the redirect and the rewrite. RewriteEngine On RewriteBase / # Redirect .php URLs to rewritten URLs RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)\