Im running xampp and i see the Pear folders in the php subdirectory. I have the html_quickform folder but i dont know where to place it?
Do i place it in the first Pear folders or the next Pear folders? I created a HTML folder on the first Pear folder to place it in but im getting this error:
**index.php**
require_once('HTML/QuickForm/QuickForm.php');
.
Warning: require_once(HTML/Common.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\Jonny\Desktop\projects\xampp\php\PEAR\HTML\QuickForm\QuickForm.php on line 33
Fatal error: require_once() [function.require]: Failed opening required 'HTML/Common.php' (include_path='C:\Users\Jonny\Desktop\projects\xampp\php\PEAR') in C:\Users\Jonny\Desktop\projects\xampp\php\PEAR\HTML\QuickForm\QuickForm.php on line 33
However the warning says i need html/common.php but there's no such thing in the Pear installation. THe only place i see common.php is in the second Pear folder but it is in the root not a HTML folder.
Judging from this question, you need to follow the instructions to install PEAR. And then you'll have a pear.bat which you need to run from the prompt.
In a nutshell:
c:\...\pear\go-pear.bat
It's better to use the installer to set it up:
pear(.bat) install html_quickform
(.bat if it's windows.)
It'll create the following structure:
C:\...\pear\HTML\QuickForm.php
C:\...\pear\HTML\QuickForm\...
etc. pp.
Doublecheck in your php.ini that C:\...\pear is in your include_path.
Then:
<?php
require_once 'HTML/QuickForm.php';
Thanks to Till's instructions i was able to do it(Windows)
For Windows users If you installed xampp under C:\,
Go to C:\xampp\php (type it on the command prompt, under this folder there is the pear.bat file)
Execute pear.bat by the following line pear.bat install html_quickform it will install the necessary folders
It will create the HTML folder that contains the QuickForm.php file .You can see it by checking under C:\xampp\php\PEAR\HTML
In the program you call it by simply doing:
require_once("HTML/QuickForm.php");
$form = new HTML_QuickForm(); // with form being the QuickForm() object.
Related
I followed the hyperledger composer tutorial to create a admin card and it is already imported, but when I execute "composer card list" to check the cards it returned this error.
Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
My OS is mac OS 12, and all the relevant environments are latest.
How should I handle this problem?
this is a bug with the underlying NodeJS readdir function, its list everything in the folder even the hidden files.in your case just go to the ./compser/cards folder in your home directory and delete the hidden files in that folder
This happened to us and We found out that by mistake we have created a file in ".composer/card" folder. Once we deleted that file, the issue got resolved.
recently I try to install pylucene on a server in my own home directory because I have no root priviledge.
Now I have successfully installed ant and JCC locally on CentOS under my own home directory. The directory of JCC is "/home/myname/.local/lib/python2.6/site-packages"
I have also successfully "make" under the pylucene directory, but when "make install" it shows that it tries to move some files into the directory " /usr/lib64/python2.6/site-packages/" which I have no permission to access it.
I do changed the Makefile several places as required.
In the comments it says:
PREFIX: where programs are normally installed on your system (Unix).
But there is no variable named as PREFIX
I changed
PREFIX_PYTHON=/usr
ANT=/home/myname/packages/apache-ant-1.9.7/bin/ant
PYTHON=$(PREFIX_PYTHON)/bin/python2.6
JCC=$(PYTHON) -m jcc.__main__
NUM_FILES=8
When I read the Makefile I do not see a environmental variable that controls the installing directory or I miss something ?
SOlved
Thank you guys. I have figured it out.
I just move the builded “lucene” folder directly to my local "site-packages" directory and it works.
INSTALL_OPT=--prefix <path>
The homebrew formula has an example of this.
While intstalling laraveldaily/quickadmin I got the following error.
Please help me to solve my problem.
As you can read in the error message
intervetion/image requires ext-fileinfo
You need to enable ext-fileinfo by editing your php.ini and change the following line by removing the ; at the beginning.
From:
;extension=php_fileinfo.dll
To:
extension=php_fileinfo.dll
Find out which php.ini to edit
Run php --ini from a terminal. Make sure you run this command from terminal as the CLI version of PHP may have loaded another php.ini than the web version. Your phpinfo() may not contain the correct path.
As error describes, laraveldaily/quickadmin requires intervention/image which again requires ext-fileinfo. This library is maintained by php_fileinfo.dll
php_fileinfo.dll is a dll(library file) which contains modules to guess the content type and encoding of a file by looking for certain magic byte sequences at specific positions within the file.
To fix this error first go to the directory of your php installation.Go to the ext folder and make sure that php_fileinfo.dll is present.
Now open your php.ini file (To locate that, type php --ini on the command line, also suggested by #peh) .
In the php --ini file just add the following line.
extension=php_fileinfo.dll
and recheck with the composer.
My PHPStorm 7 installation is throwing this error whenever I try to add a box. Am I missing something?
I pointed to the vagrant.bat in installation directory as told here
Am I supposed to install ruby too? Didn't say something like that in vagrant's site though.
The path to the .bat file you are using (...\embedded\gems\...) suggests that it is ruby related .. and may require ruby for proper executing (the error message you see confirms such suggestion).
Instead, choose vagrant executable from C:\Program Files (x86)\HashiCorp\Vagrant\bin\ folder.
If .bat file is absent -- choose .exe one instead.
I'm running into an issue trying to get codesniffer working with Xampp (1.7.1). I've got pear running by editing the include_path in php.ini.
When I try to run phpcs I get the following errors:
Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in C:\xampp\php\phpcs on Line 31
Warning: include_once(): Failed opening 'PHP/Codesniffer/CLI.php' for inclusion (include_path="\xampp\php\pear") in C:\xampp\php\phpcs on line 31
Fatal error: Class 'PHP_CodeSniffer_CLI' not found in C:\xampp\php\phpcs on line 34
Anyone have any idea what's going on here?
It definitely sounds like the PHP include path is wrong, even though PEAR itself is working. It is a bit strange though.
Do you have a \xampp\php\pear\PHP\CodeSniffer\CLI.php file? If not, can you find where it is under the \xampp\php\pear directory?
If it is, for example, actually at \xampp\php\pear\source\pear\PHP\CodeSniffer\CLI.php then you'll need to change your include_path to be \xampp\php\pear\source\pear. But this could then break your PEAR install, which probably means PEAR is not configured correctly.
If this is the case, it's worth uninstalling PHP_CodeSniffer, changing the location of PEAR's php_dir configuration variable, and then reinstalling PHP_CodeSniffer.
For example:
pear uninstall php_codesniffer
pear config-set php_dir \xampp\php\pear
pear install php_codesniffer
(sorry, I'm not sure if pear on windows requires the drive letter in the path, so just check the current value using pear config-get php_dir and adjust the path based on that format.)
I hope that info helps you move forward a bit.
PEAR might have also setup an include path in the phpcs executable (-d include_path="''") which is overriding the default. This is particularly annoying if you forget to create a default php.ini file until after phpcs is installed.