Search the Community
Showing results for tags 'PEAR'.
-
For Chapter 9, After lots of searching I found a great tutorial on how to install Pear on WAMP Server, the prerequisite to QuickForms2. It's detailed and step by step with screenshots. http://www.steptoinstall.com/install-pear-wamp-server-windows-7-8.html Once pear is installed with success it was just a matter of using using the cmd line and typing pear install HTML_Quickform2. I changed the set_include_path in login.php to: set_include_path(get_include_path() . PATH_SEPARATOR . '/wamp/bin/php/php5.5.12/pear/'); require('HTML/QuickForm2.php'); Works perfectly.
-
Hi, I'm following the cms example (Chapter 9) in the book. On a pc with xampp with windows 7 operating system and I can't figure out why when I load try to get Quickform2 to load on my login.php page I get this error message: Warning:require(classes/PEAR_Error.php): failed to open stream: No such file or directory in C:\xampp\htdocs\site1\includes\utilities.php on line 5 Fatal error: require(): Failed opening required 'classes/PEAR_Error.php' *include_path='.;C:\xampp\php\PEAR;/usr/local/pear/share.pear') in C:\xampp\htdocs\site1\includes\utilities.php on line 5 I may be mistaken but I think that the filepath is incorrect for the php.ini set and that when my utilities.php autoload function searches for the pear classes to load it can't find any. Please help. Thanks, je456
- 4 replies
-
- pear
- quickform2
-
(and 4 more)
Tagged with:
-
I apologize if this has been covered somewhere else, but I couldn't find it. I am trying to get the path to HTML QuickForm2 to work. Here is the path I have: '/C://xampp/php/pear/HTML/' But I get these errors: Warning: require(HTML_QuickForm2.php): failed to open stream: No such file or directory in C:\xampp\htdocs\hmdbo\login.php on line 9 Fatal error: require(): Failed opening required 'HTML_QuickForm2.php' (include_path='.;C:\xampp\php\pear;/C://xampp/php/pear/HTML/') in C:\xampp\htdocs\hmdbo\login.php on line 9 Can someone please help me with this? What should the right path be? Thanks, Randal
-
Great book. Chapter 9 on QuickForm2 is very interesting, and the examples as far as they go are very informative, but just echo $form or echo default renderer both produce a two column type form, first column for label, second column for input etc. PEAR documentation refers to using the Stub Renderer to manually output complex HTML implying that virtually any layout including complex tables can be achieved. I have tried to use this but failed in my attempts, and I cannot find any examples that explain the use of the Stub Renderer. The example on PEAR just says 'Output goes here', but does not show example output, and if I put a Submit Button there, it does not activate the form. Are there any easy to follow examples of creating a form with a complex layout using QuickForm2, or can someone please explain how this can be achieved, please?
- 1 reply
-
- pear
- quickform2
-
(and 3 more)
Tagged with:
-
I have a windows 7 home premium 64 bit laptop with WAMP. My Wamp 2.2 settings are Apache: 2.2.22, PHP: 5.3.13, and MySQL: 5.5.24. I tried to install the go pear file and put it into my www directory and it gave me an error of Deprecated: Function ereg() is deprecated in C:\wamp\www\go-pear.php on line 1451 Then i get an error of Warning: fsockopen() [function.fsockopenC:\wamp\www\go-pear.php on line 1074 After I try to click the next on the prompt that pops up. How can I fix it so that I can get pear to work so that I can work through the rest of the chapters. I got the go-pear.php at http://pear.php.net/go-pear and did a save page as.
-
Hallo. I use Eclipse to develop my php-code (OS: Windows 7). And Easyphp to have a database to work with. In chapter 9 ('PHP Advanced and ...' CMS) we should use the HTML_Quick2-package (from PEAR). After lots of several days of research I'm stock now: First I couldn´t find any pear folders or files in any of my PC-folders. Then I downloaded the go-pear file (the Pear Package Manager). When trying to run it from my browser (works 'best') the progress-bar arrives at 100% and stops-stocked (and I can try again F5 .. same result). Lot of deprecated functions, variable errors and other errors are shown in the browsers window interlaced with the progress of installation. Are there an easier way to get these (pear) libraries? Thanks in advance. Kåre The first example of many:: Deprecated: Function ereg() is deprecated in C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\localweb\php\pear.php on line 1451
-
Larry, In Chapter 4 of PHP 5 Advanced you asked us to install PEAR without going into specific detail of how to do it. My host has a plethora of options for installing PEAR and I don't know which to choose. Reading pear.php.net is a litte frustrating, as it seems to digress quite a bit. I was wondering if you may lend a little guidance. Thank you for your time.
-
It may be not appropriate to post here but I can't find any one to help(the authors are not reply). Do you use PEAR? I know that XAMPP 1.7.7 have install pear and the package automatically. The book that instruct me is execute go-pear.bat,which don't include in XAMPP 1.7.7. This is fine because the pear have installed, but the PEAR_ENV.reg, which I can't get it. I can't use the window command prompt (cmd) to use the pear code, maybe because of environment variable. Please help me , Larry . I am window 7 user. Thanks a lot for your precious time.