xampp

Can't install Tomcat with xampp control panel

只愿长相守 提交于 2019-12-23 22:28:16
问题 I successfully installed xampp v3.2.1 following the JetBrains guide. In there it has been said that Once stopped, we can click the X next to the server we want to install as a Windows Service . For example, we can install Apache as a Windows Service. After clicking the X , we have to confirm installation by clicking Yes . I just did that for Tomcat but it's giving a message of [Tomcat] Service was NOT (un)installed! What to do? A pic so you can see as well 回答1: Figured it out! I went to C:

How to fix Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in C:\xampp\htdocs\.. on line 22 ERROR

泄露秘密 提交于 2019-12-23 22:16:07
问题 I'm new to PHP and have taken a script as an example online. I have setup Xampp and the php is installed and working. I've attempted to setup a local mailserver with hMailServer, however I'm not entirely sure if that's setup correctly. Anyhow, here's the PHP code: <?php $subject=""; $detail=""; $customer_mail=""; $name=""; // Contact subject $subject ="$subject"; // Details $message="$detail"; // Mail of sender $mail_from="$customer_mail"; // From $header="from: $name <$mail_from>"; // Enter

session_start() keeps the file load forever

心不动则不痛 提交于 2019-12-23 19:12:00
问题 I'm using PHP with XAMPP. My PHP files work, but if I call session_start() in anywhere in the script and run it, writing "Waiting for localhost" at the page title, and page is loading forever, just shows a blank page and keeps loading. I've also tried enabling the errors and no errors shown. This runs: <?php echo "test"; ?> This doesn't run (blank page and the page is loading forever) <?php session_start(); echo "test"; ?> EDIT: Due to Fred's suggestion, I'm posting my session information

Printing directly from PHP using printer_write() function

笑着哭i 提交于 2019-12-23 19:03:17
问题 I found a code printing directly from PHP: $printer = "cups-pdf"; $ph = printer_open($printer); if ($ph) { $content = "Hello World..."; printer_set_option($ph, PRINTER_MODE, "RAW"); printer_write($ph, $content); printer_close($ph); } else { echo "Couldn't connect..."; } I'm trying to test it using XAMPP on Ubuntu 14.04 LTS. But it gives me an error: Fatal error: Call to undefined function printer_open() in /opt/lampp/htdocs/test/test.php on line 4` How do I fix it? 回答1: Currently, there is no

Pages wont load if it has session_start(); in it

眉间皱痕 提交于 2019-12-23 18:02:49
问题 I've recently switched from years of WAMP to XAMPP because I wanted PHP 7, but I've noticed something I've never experienced before, it wont load php files that have session_start(); in them. I just get "Waiting for localhost..." in Chrome/IE/FF. As soon as I remove that line the page loads. Worked fine in wamp. Basically every page that contains session_start(); wont load, super weird. But if I remove it, they load and show. Why? error log just notices [Sun Dec 27 02:52:19.346602 2015] [mpm

Xampp 7.0.1 Apache crashes when I use session_start()

眉间皱痕 提交于 2019-12-23 17:33:43
问题 When I start a session using session_start() in PHP my Apache server just stops working. I am using Xampp 7.0.1 for Windows. My config file looks like this: <?php error_reporting(E_ALL); //session_start(); //ob_start(); header('Content-Type: text/html; charset=utf-8'); //Rest of the code ?> Even if I put it on the first line of the file it doesn't work. Does anybody know how to fix this? The weird thing is that it is only happening in this specific map structure. i.e. C:\xampp\htdocs

Newly added column is not visible

可紊 提交于 2019-12-23 15:46:32
问题 I am using xampp on localhost. I created a table and then altered it, adding one more column after some time. The newly added column is not visible when I browse the table data, but it is when I see the table structure. Why can't I see it in the table data? I am using the portable package of xampp. Also, queries regarding to that column are running fine. 回答1: I got a way for that: Export the table that is not showing a particular column on browsing Drop the table Import it 回答2: I had a

XAMPP not parsing PHP

强颜欢笑 提交于 2019-12-23 15:25:52
问题 I just installed XAMPP 1.8.1 and have restarted my computer, started running Apache and MySQL, and created a test file in a test folder in my htdocs directory under XAMPP. When I go to xampp/index.php, their page comes up fine. But my test file only returns the actual characters in my PHP file in the "Response" tab in firebug, but a completely blank white screen in the window. The file is definitely .php extension - can anyone help? The crazy thing is, I had this working 6 months ago just

macOS Sierra installing PHP Extension intl

纵饮孤独 提交于 2019-12-23 13:05:16
问题 I am trying to get magento 2.x to run on my machine. I am using xampp 5.6 with the same php version and running a virtual apache server. As seen in this screenshot The PHP Extension intl. is missing. I was researching on how it can be added / activated. I tried uncommenting the extension in the php.ini of xampp but it still appears as missing. I tried to follow this guide, but when I try to install intl with sudo pecl install intl it fails with 2 warnings and 1 error generated. make: *** [php

Can't seem to set my php.exe path in pear.bat

こ雲淡風輕ζ 提交于 2019-12-23 10:41:30
问题 I installed PEAR and when I try to run it, I receive this message: PHP_PEAR_PHP_BIN is not set correctly. Please fix it using your environment variable or modify the default value in pear.bat The current value is: .\php.exe In the pear.bat file that error message is generated as such: :PEAR_PHPBIN_ERROR ECHO PHP_PEAR_PHP_BIN is not set correctly. ECHO Please fix it using your environment variable or modify ECHO the default value in pear.bat ECHO The current value is: ECHO %PHP_PEAR_PHP_BIN%