Re: [PHP] PHP 4 on RedHat 7
Mike - You're not 100% specfic (or I'm not 100% clear) on what you've tried to do to fix this but here's a basic recipie which should work for you. (it has for me.) 1) Get the current php src.rpm file from the Red Hat 7 errata and install it. 2) cd /usr/src/redhat/SPEC/ and edit the php.spec file. Fine the configure section and ensure that the proper --with option is enabled for PDF support. You may also want to rev the minor version of the RPM so you know it's yours vs the default Red Hat version. 3) Save the file and then run rpm -ba php.spec and sit back. When done you'll have several packages in /usr/src/redhat/RPMS/i386 waiting for you to install. You may find that after you do a rpm -ba php.spec that the build fails because several devel packages are not installed (ie openssl-devel, openldap-devel, etc). Make sure you have them installed before building. Good luck. -- Scott On Tue, Feb 13, 2001 at 07:47:03PM -0600, Mike Tuller wrote: > I'm at a loss for this one. I can't seem to get PHP 4 on RedHat 7. I can get > the rpm to install and work, but if I try to configure myself, it never > works. Everything says to configure with apxs, but there is no apxs. What is > strange though is if I look at how the rpm configures PHP, it configures it > with apxs and it works! > > I want to configure PHP with PDF support, so I can't just use the rpms. If > anyone has any suggestions, let me know. That is other that trying to > configure apache manually. I've been down that road before, and don't want > to do it again. > > Mike > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mysql_error() not really helping
Christian - You need to be checking the return values of the mysql_*() functions. Make sure you're not calling them with a @mysql_*() as that will disable error reporting. Perhaps you should give us some examples of what's failing and how? Also, if the server isn't yours the server admin may have turnd down the level of error reporting in php so errors never even show up. See http://www.php.net/manual/en/configuration.php and look at display_errors and error_reporting then check your server settings with phpinfo(). -- Scott On Tue, Feb 13, 2001 at 11:31:09PM -0300, Christian Dechery wrote: > I'm having a little trouble here developing and running queries. > > I spent some time developing in ASP, and whenever there was something wrong > with a query, the script halted, and the error message - from ODBC, tye sql > syntax error - was printed along with the line of code. > > In PHP that's not how it goes, it doesn't tell me when theres an error with > a mysql_query unless I place a call to mysql_error() after each executed > query right? > > That's exactly what I'm doing, but again, it doesn't do all I want, cuz it > doesn't tell me the line of code, and I don't know where is the error, > unless I start printing everything on error handling. > > . Christian Dechery (lemming) > . http://www.tanamesa.com.br > . Gaita-L Owner / Web Developer > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP 4 on RedHat 7
Mike - As root run /sbin/ldconfig -v > /tmp/libs.txt then check the /tmp/libs.txt file to ensure that xmltoc was actually found. If it's not and it is on your drive then verify the paths in /etc/ld.so.config and run /sbin/ldconfig -v again after making any changes. libxml != xmltok afaik. -- Scott On Tue, Feb 13, 2001 at 10:55:24PM -0500, Michael Stearne wrote: > That's crazy because I am doing the same exact thing right now (compile with > PDF on RH 7 and having problems.) > > Anyway PDF and everything compiles fine on RH 6.2 but I have had some problems > on 7. [snip] > Then when I try to add the pdflib options, the make dies at: > make[1]: Entering directory `/home/blaze/WebServerSources/php-4.0.4pl1' > /bin/sh /home/blaze/WebServerSources/php-4.0.4pl1/libtool --silent --mode=link > gcc -I. -I/home/blaze/WebServerSources/php-4.0.4pl1/ > -I/home/blaze/WebServerSources/php-4.0.4pl1/main > -I/home/blaze/WebServerSources/php-4.0.4pl1 -I/www/include > -I/home/blaze/WebServerSources/php-4.0.4pl1/Zend > -I/usr/local/mysql/include/mysql -I/usr/local/include > -I/home/blaze/WebServerSources/php-4.0.4pl1/ext/xml/expat/xmltok > -I/home/blaze/WebServerSources/php-4.0.4pl1/ext/xml/expat/xmlparse > -I/home/blaze/WebServerSources/php-4.0.4pl1/TSRM -DLINUX=22 -DUSE_HSREGEX > -DUSE_EXPAT -DXML_BYTE_ORDER=12 -g -O2 -o libphp4.la -rpath > /home/blaze/WebServerSources/php-4.0.4pl1/libs -avoid-version > -L/usr/local/mysql/lib/mysql -L/usr/local/lib -R /usr/local/mysql/lib/mysql -R > /usr/local/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la > regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pdf/libpdf.la > ext/posix/libposix.la ext/sablot/libsablot.la ext/session/libsession.la > ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl > -lxmltok -lxmlparse -lsablot -lz -ljpeg -lpng -ltiff -lpdf -lmysqlclient > -lresolv -lm -ldl -lcrypt -lnsl -lresolv > /usr/bin/ld: cannot find -lxmltok > collect2: ld returned 1 exit status > make[1]: *** [libphp4.la] Error 1 > make[1]: Leaving directory `/home/blaze/WebServerSources/php-4.0.4pl1' > make: *** [all-recursive] Error 1 > > It says it cannot find xmltok, but its installed in /usr/lib where everything > else is. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] menu / navigation class
All - I'm looking to see if anyone knows of a php class for menu navigation. I'm looking for a pure php / html solution and would like to have the following features: bread crumb trails like: "Home >> Level 1 >> You are here" tree style menu navigation (unlimited levels) tree layout not dependent on html file and directory structure menu item highlighting based on $PHP_SELF Okay, so I'm asking for a lot. I'm looking at phplib's tree class and the new menu class in phplib 0.7. (it's broken). I've also poked around looking for at a few other solutions but they mostly looked like hacks for the environment they were developed in. If no one can turn up anything then I guess I'll start building a class to meet the above requirements. -- Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]