kenoli Posted March 14, 2014 Share Posted March 14, 2014 I just installed pear and html_quickform2 and everything seemed to go well. Except...I have no idea where the html_quickform2.php script is located so I can point my script at it. When I installed pear the installer indicated where it was located (/usr/bin/pear). The following is all the info I got when I installed html_quickform2: Studios-iMac:bin studio$ sudo pear install HTML_QuickForm2 downloading HTML_QuickForm2-2.0.0.tgz ... Starting to download HTML_QuickForm2-2.0.0.tgz (178,224 bytes) .....................................done: 178,224 bytes downloading HTML_Common2-2.1.0.tgz ... Starting to download HTML_Common2-2.1.0.tgz (8,630 bytes) ...done: 8,630 bytes install ok: channel://pear.php.net/HTML_Common2-2.1.0 install ok: channel://pear.php.net/HTML_QuickForm2-2.0.0 Does anyone know where html_quickform2.php is located?? --Kenoli Link to comment Share on other sites More sharing options...
Larry Posted March 14, 2014 Share Posted March 14, 2014 It should be installed in a directory that's already in your PHP path, so just including it without a full path reference should be fine. Link to comment Share on other sites More sharing options...
kenoli Posted March 15, 2014 Author Share Posted March 15, 2014 Unfortunately, I get a file not found error when I do that. I am using XAMPP and don't know if that has anything to do with the issue. I found a version of HTML_Quickform (not ver 2) in one of the XAMPP directories, but it is missing many of the methods in Larry's scripts. I presume it is something that came installed with XAMPP. I thought maybe it was stored in a directory that would be appropriate if php were installed in a unix directory. If it were and I could find it, I could set up a symbolic link. --Kenoli Link to comment Share on other sites More sharing options...
Larry Posted March 21, 2014 Share Posted March 21, 2014 Could you provide the exact code you used and the exact error? Link to comment Share on other sites More sharing options...
kenoli Posted March 22, 2014 Author Share Posted March 22, 2014 Larry -- Thanks for responding to this. I found QuickForm2.php. Instead of being where the downloaded script from ch 9 "Advanced php ..." script expected it, i.e. here: /usr/local/pear/share/pear/HTML/ It was here: /usr/share/pear/HTML/ It works now. Just had to explore a bit to find it. Thanks, --Kenoli Link to comment Share on other sites More sharing options...
Larry Posted March 22, 2014 Share Posted March 22, 2014 Kudos for figuring it out and thanks for letting us know. Link to comment Share on other sites More sharing options...
nika Posted April 1, 2014 Share Posted April 1, 2014 i can't figure out how to install pear package on windows, can you explain step by step? :/ Link to comment Share on other sites More sharing options...
nika Posted April 1, 2014 Share Posted April 1, 2014 i have found easy solution how to install pear on xamp Go to the Xaamp control panel and click shell button. It will open a cmd window. Type pear install pear_package_name. (pear_package_name means name of your pear package you want to install). For example you can type pear install Net_GeoIP-1.0.0 to install Net_GeoIP pear package. But you need an active internet connection to do this. This also canbe done offline too if you already downloaded the package. Link to comment Share on other sites More sharing options...
Larry Posted April 1, 2014 Share Posted April 1, 2014 Thanks for sharing that! Link to comment Share on other sites More sharing options...
NY H Posted April 6, 2014 Share Posted April 6, 2014 I've been going crazy with my macbook, running OS 10.4.11, with MAMP 1.9.6 (I just realized how old the version I'm running is, on my old macbook) and I'm not that familiar with the Terminal app, so I have to believe that I was doing something wrong trying to install HTML_QuickForm2-2.0.0. It just wouldn't work. So I downloaded it manually, and have no idea where to put the folder, or files, that's the laugh. My thinking was to get it working on my older box and then get it working on my latest box, on which I have the latest OS and MAMP 3, if I remember correctly. I'm sure that once I get it installed I'll have to figure out the changes to the php.ini file but want to see the installation first. I was also wondering, being the old school sort whose first box was a Lisa (going way back there) and figures out multiple ways of working with things, how you could use the login/logout, register, or even pdo's without the use of the QuickForm php. Sorry if this got long. Thanks for you help, and your writing. NY H Link to comment Share on other sites More sharing options...
Larry Posted April 7, 2014 Share Posted April 7, 2014 Yeah, you need to install PEAR packages using the command line (Terminal app on Mac OS X). As for doing the login/logout, register...(this has nothing to do with PDO) without QuickForm, that's absolutely possible. You'd just use standard HTML and PHP approaches. Link to comment Share on other sites More sharing options...
NY H Posted April 8, 2014 Share Posted April 8, 2014 I need to learn a bit about Terminal, so I'll look up what I can and give it another try. Just keep getting errors and such. Thanks Larry, figured I'd try it that way as well, but really want to get this working as you've written it. Link to comment Share on other sites More sharing options...
NY H Posted April 8, 2014 Share Posted April 8, 2014 Well, terminal gave me > Last login: Tue Apr 8 14:39:05 on consoleWelcome to Darwin!You have new mail.harlan-flybox-computer-2:~ harlan$ sudo pear install HTML_QuickForm2-2.0.0Password:Sorry, try again.Password:Sorry, try again.Password:HTTP error, got response: HTTP/1.1 410 GoneDidn't receive 200 OK from remote server. (HTTP/1.1 410 Gone)harlan-flybox-computer-2:~ harlan$ and I'm still not able to get anywhere with it. But, kind of like steelheading, I don't give up easily. Hope all are having a good one. Link to comment Share on other sites More sharing options...
Larry Posted April 9, 2014 Share Posted April 9, 2014 Try just sudo pear install HTML_QuickForm2 Link to comment Share on other sites More sharing options...
NY H Posted April 9, 2014 Share Posted April 9, 2014 Larry, thank you so much for your help but I'm still getting > Last login: Tue Apr 8 14:43:30 on ttyp1Welcome to Darwin!You have new mail.harlan-flybox-computer-2:~ harlan$ sudo pear install HTML_QuickForm2HTTP error, got response: HTTP/1.1 410 GoneDidn't receive 200 OK from remote server. (HTTP/1.1 410 Gone)harlan-flybox-computer-2:~ harlan$ Thinking I really need to get to know Terminal and command-line better. New mail? Could the problem be connecting through wifi? Link to comment Share on other sites More sharing options...
Antonio Conte Posted April 9, 2014 Share Posted April 9, 2014 Given the number of threads about installing HTML_Quickform lately, I begin to find the name kind of misleading. Link to comment Share on other sites More sharing options...
NY H Posted April 9, 2014 Share Posted April 9, 2014 Tried this morning to get it to install on my latest/greatest box and it says command not found. ? Link to comment Share on other sites More sharing options...
Larry Posted April 10, 2014 Share Posted April 10, 2014 That would mean either you haven't installed PEAR yet or you have and it's not in your path. If the former, you'll need to install it. If the latter, you'll either need to add it to your path or provide an absolute reference to the command. Link to comment Share on other sites More sharing options...
digor Posted September 22, 2014 Share Posted September 22, 2014 (edited) I have a problem with QuickForm2 I install this from pear pear install HTML_QuickForm2-2.0.2 I get error: Warning: require_once(HTML/QuickForm2.php): failed to open stream: No such file or directory in D:\xampp\htdocs\glory.pc\quickform.php on line 3 Fatal error: require_once(): Failed opening required 'HTML/QuickForm2.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\glory.pc\quickform.php on line 3 In D:\xampp\php\PEAR\HTML is no file QuickForm2.php is QuickForm.php I fix it, I have download from official site and add folder QuickForm2 and file QuickForm2.php in HTML directory and now it is work fine. Edited September 22, 2014 by digor Link to comment Share on other sites More sharing options...
Larry Posted September 22, 2014 Share Posted September 22, 2014 Awesome. Thanks for sharing how you got it working! Link to comment Share on other sites More sharing options...
sakin Posted April 19, 2015 Share Posted April 19, 2015 you can download QuickForm2 folder from the PEAR site but QuickForm2.php file is still missing. Alternatively you can download both the folder and the file from github and include them on your respective directory: It worked very well for me. here is the link at github. https://github.com/pear/HTML_QuickForm2 Link to comment Share on other sites More sharing options...
Larry Posted April 20, 2015 Share Posted April 20, 2015 Thanks for sharing that! I really appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts