xampp

PHP Configuration for GMP and Large Number Arithmetic

依然范特西╮ 提交于 2020-01-06 02:38:10
问题 I'm using PHP to do some of the problems on projecteuler.net, but I have found that with my current installation of PHP, I cannot compute numbers long or large enough to do some of the problems. Some initial research on Stackoverflow and through Google has told me that I must install an extension to PHP in order to do math with very large numbers. One such extension that was suggested is GMP, but I am not entirely sure how to configure my PHP installation to use GMP. I am currently running

msqli does not INSERT

ぃ、小莉子 提交于 2020-01-06 01:10:08
问题 im trying to insert data from a form (via POST) into a MySQL database, it does not show any errors, but it does not show up when I check it in phpMyAdmin. <?php $amount = $_POST["amount"]; $unit = $_POST["unit"]; $date = date('Y-m-d H:i:s'); $host = "localhost"; $user = "root"; $pass = ""; $db = "finance"; $table = "silver"; $mysqli = new mysqli($host, $user, $pass, 'finance'); if(!$mysqli) { echo "<div class=\"error\">"; echo "No connection can be established"; echo "</div>"; die(); } if (

msqli does not INSERT

走远了吗. 提交于 2020-01-06 01:09:29
问题 im trying to insert data from a form (via POST) into a MySQL database, it does not show any errors, but it does not show up when I check it in phpMyAdmin. <?php $amount = $_POST["amount"]; $unit = $_POST["unit"]; $date = date('Y-m-d H:i:s'); $host = "localhost"; $user = "root"; $pass = ""; $db = "finance"; $table = "silver"; $mysqli = new mysqli($host, $user, $pass, 'finance'); if(!$mysqli) { echo "<div class=\"error\">"; echo "No connection can be established"; echo "</div>"; die(); } if (

Redis connection slow from PHP

眉间皱痕 提交于 2020-01-05 15:05:52
问题 I just started using Redis in my application, but for some reason the initial connection to the Redis server from PHP takes almost exactly 1 second. When using Predis, the latency issue doesn't occur until the first get() call, and if I try connecting manually the latency occurs on the initial connection via fsockopen() . I've read the redis latency documentation, but none of the information seemed relevant to my case. Running redis-cli --latency just seemed to product a garbled mess. I guess

Phing with PHPUnit 0 tests executed

不羁岁月 提交于 2020-01-05 13:27:43
问题 I'm trying to execute PHPUnit with phing but i'm finding some errors. I have my target: <target name="tests"> <phpunit pharlocation="C:/xampp/php/phpunit.phar" printsummary="true" haltonfailure="true" haltonerror="true"> <formatter type="xml" usefile="false"/> <batchtest> <fileset dir="."> <include name="tests/*Test*.php"/> </fileset> </batchtest> </phpunit> </target> But when i execute i have: [phpunit] <?xml version="1.0" encoding="UTF-8"?> [phpunit] <testsuites> [phpunit] <testsuite name=

Local site redirecting to live site

☆樱花仙子☆ 提交于 2020-01-05 12:56:34
问题 I'm trying to set up my web files locally for testing. I have my site files in my documents folder. I have xampp installed and have set up apache to use baseball.dev to bring up my local website. But when I try to use it, baseball.dev redirects to the live site. I'm not sure why. My httpd-vhosts file: <VirtualHost *:80> DocumentRoot "C:/Users/Kirst/Documents/GitHub/baseball-for-busy- people/" ServerName baseball.dev ServerAlias www.baseball.dev <Directory "C:/Users/Kirst/Documents/GitHub

xampp unable to start mongo module

会有一股神秘感。 提交于 2020-01-05 09:35:14
问题 Hi I downloaded mongodb msi and installed version Windows 64-bit 2008 R2+ by msi format, then i PHP Extension build is TS(Thread Safe) and VC11 so I download the php mongo driver form amazon php driver and include in php/ext folder and add php_mongo-1.6.8-5.6-vc11.dll in php.ini file but getting error like below image, help me to solve the issue. thanks to replies in advance i searched for the solution but nothing help me. 来源: https://stackoverflow.com/questions/30935503/xampp-unable-to-start

Fetching information from the database

ε祈祈猫儿з 提交于 2020-01-05 07:56:10
问题 MY UPDATED QUESTION IS HERE: Fetching information from the database MYSQL & Codeigniter please see :) I just want to ask what's the problem with this code. I've been trying to figure this out since last night. And I again, i'm posting this question. There's something wrong with my syntax I guess. function member_here() { $this->db->select(''); $this->db->from('membership'); $this->db->where('username',$this->input->post('username')); $q=$this->db->get(''); if($q->num_rows() > 0) { $data =

How do i insert telugu characters into mysql using php?

。_饼干妹妹 提交于 2020-01-05 07:39:34
问题 inserting telugu characters as category But It Shows Like This 回答1: I was facing same issue for UTF-8 characters , Everything was working on live server and staging server, but sometime it's breaking on my dev machine. The behavior was so strange, some times characters was encoded properly but on random page reload it was start breaking with Diamond Charters '���เห็นอเวิลด์!���' or Question mark '??�เห็นอเวิลด์!???' or 85% data was rendering properly 'เห็นอเวิลด์!?��' but rest 15% was showing

Why will it not install DBI?

守給你的承諾、 提交于 2020-01-05 07:12:32
问题 I have installed XAMPP on windows 10. Running Apache and mySQL, works fine. I was testing Perl, and it worked too. However it can't connect to mySQL, so I tried to install DBI, but neither PPM or CPAN was recognized by DOS. So I installed ActiveState-Perl, and then used CPAN to install DBI, and you can see the result below. Any ideas will help! Thanks!! Reading 'C:\Perl64\cpan\Metadata' Database was generated on Tue, 24 Dec 2019 06:29:03 GMT Running install for module 'DBI' Checksum for C: