Ok,
do you need xslt support ? I'll post the steps you need to compile that module after your answer. Is there anyone in your company who knows how to compile stuff from sources ?
Thomas
Ok,
do you need xslt support ? I'll post the steps you need to compile that module after your answer. Is there anyone in your company who knows how to compile stuff from sources ?
Thomas
No, there is no one PHP expert here.
Here only I working on PHP script.
all people are working on SafeSquid proxy server(c++).
and there are some features like external parser. Registration which are related to PHP files.
I am assigned to registration stuff.
and in the given PHP files , there is included dl(domxml.so) and dl(mysql.so).
I does PHP programming well.
but ,such major concepts i don't know.
but,I have to learn all such PHP/PERL stuffs.
u can tell me the steps....
Ok,
about that question ... do you need dom-xslt support ?
Execute the rpm command above but this time grep for xml (and xslt if you need it). Post the output.
Thomas
[root@ns1 htdocs]# rpm -qa |grep -ie "xml|xslt"
perl-XML-Dumper-0.4-25
libxml2-devel-2.5.4-1
libxslt-devel-1.0.27-3
libxslt-1.0.27-3
perl-XML-Grove-0.46alpha-25
perl-XML-Parser-2.31-15
perl-libxml-enno-1.02-29
PyXML-0.7.1-9
libxml-1.8.17-8
libxml-devel-1.8.17-8
perl-XML-Encoding-1.01-23
libxml2-python-2.5.4-1
python-xmlrpc-1.5.1-7.x.3
libxml2-2.5.4-1
perl-XML-Twig-3.09-3
xml-common-0.6.3-14
perl-libxml-perl-0.07-28
i am going now..
see u tomorrow... bye..
Ok,
let's try it ...
download php-4.3.6.tar.gz from here
Copy the file to a directory on the server (e.g. /usr/src or /home/<username>)
and extract the archive:
tar xzf php-4.3.6.tar.gz
Then cd to that directory and execute the following commands:
./configure
--with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql
--prefix=/usr/local/apache2/php
--with-config-file-path=/usr/local/apache2
--enable-force-cgi-redirect
--disable-cgi
--with-zlib
--with-gettext
--with-gdbm
--with-dom-xslt=shared
--with-dom=shared
make
find . -name "domxml.so"
you'll get something like
./ext/domxml/.libs/domxml.so
./modules/domxml.so
(on one line)
cp modules/domxml.so /usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
then either enable the domxml extension in php.ini
extension=domxml.so
and remove the dl lines in the PHP scripts
or don't activate the extension in php.ini and leave the PHP scripts as they are (EDIT: an set enable_dl to On in php.ini in that case).
Do NOT (!) execute make install ...
Hope this works ....
Thomas
It gives the following two errors..
#./configure --with-dom-xslt=shared
configure: error: DOMXSLT requires DOMXML. Use --with-dom=<DIR>
#./configure --with-dom=shared
configure: error: DOMXML requires ZLIB. Use --with-zlib-dir=<DIR>
Ok,
I should've put the "on one line" just above the configure command.
All the lines are just one command
./configure --option --option --option
Thomas
#make
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/zlib/ -I/home/sandhya/php-4.3.6/ext/zlib/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c /home/sandhya/php-4.3.6/ext/zlib/zlib.c -o ext/zlib/zlib.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/zlib/ -I/home/sandhya/php-4.3.6/ext/zlib/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c /home/sandhya/php-4.3.6/ext/zlib/zlib_fopen_wrapper.c -o ext/zlib/zlib_fopen_wrapper.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/gettext/ -I/home/sandhya/php-4.3.6/ext/gettext/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c /home/sandhya/php-4.3.6/ext/gettext/gettext.c -o ext/gettext/gettext.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -Isapi/apache2handler/ -I/home/sandhya/php-4.3.6/sapi/apache2handler/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c /home/sandhya/php-4.3.6/sapi/apache2handler/sapi_apache2.c -o sapi/apache2handler/sapi_apache2.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -Isapi/apache2handler/ -I/home/sandhya/php-4.3.6/sapi/apache2handler/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c /home/sandhya/php-4.3.6/sapi/apache2handler/apache_config.c -o sapi/apache2handler/apache_config.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -Isapi/apache2handler/ -I/home/sandhya/php-4.3.6/sapi/apache2handler/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c /home/sandhya/php-4.3.6/sapi/apache2handler/php_functions.c -o sapi/apache2handler/php_functions.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -Imain/ -I/home/sandhya/php-4.3.6/main/ -DPHP_ATOM_INC -I/home/sandhya/php-4.3.6/include -I/home/sandhya/php-4.3.6/main -I/home/sandhya/php-4.3.6 -I/home/sandhya/php-4.3.6/Zend -I/usr/include/libxml2 -I/home/sandhya/php-4.3.6/ext/xml/expat -I/home/sandhya/php-4.3.6/TSRM -g -O2 -prefer-pic -c main/internal_functions.c -o main/internal_functions.lo
/bin/sh /home/sandhya/php-4.3.6/libtool --silent --preserve-dup-deps --mode=link gcc -g -O2 -prefer-pic -rpath /home/sandhya/php-4.3.6/libs -avoid-version -module ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/ctype/ctype.lo ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba/dba_db2.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo ext/dba/libinifile/inifile.lo ext/gettext/gettext.lo ext/mysql/php_mysql.lo ext/mysql/libmysql/libmysql.lo ext/mysql/libmysql/errmsg.lo ext/mysql/libmysql/net.lo ext/mysql/libmysql/violite.lo ext/mysql/libmysql/password.lo ext/mysql/libmysql/my_init.lo ext/mysql/libmysql/my_lib.lo ext/mysql/libmysql/my_static.lo ext/mysql/libmysql/my_malloc.lo ext/mysql/libmysql/my_realloc.lo ext/mysql/libmysql/my_create.lo ext/mysql/libmysql/my_delete.lo ext/mysql/libmysql/my_tempnam.lo ext/mysql/libmysql/my_open.lo ext/mysql/libmysql/mf_casecnv.lo ext/mysql/libmysql/my_read.lo ext/mysql/libmysql/my_write.lo ext/mysql/libmysql/errors.lo ext/mysql/libmysql/my_error.lo ext/mysql/libmysql/my_getwd.lo ext/mysql/libmysql/my_div.lo ext/mysql/libmysql/mf_pack.lo ext/mysql/libmysql/my_messnc.lo ext/mysql/libmysql/mf_dirname.lo ext/mysql/libmysql/mf_fn_ext.lo ext/mysql/libmysql/mf_wcomp.lo ext/mysql/libmysql/typelib.lo ext/mysql/libmysql/safemalloc.lo ext/mysql/libmysql/my_alloc.lo ext/mysql/libmysql/mf_format.lo ext/mysql/libmysql/mf_path.lo ext/mysql/libmysql/mf_unixpath.lo ext/mysql/libmysql/my_fopen.lo ext/mysql/libmysql/mf_loadpath.lo ext/mysql/libmysql/my_pthread.lo ext/mysql/libmysql/my_thr_init.lo ext/mysql/libmysql/thr_mutex.lo ext/mysql/libmysql/mulalloc.lo ext/mysql/libmysql/string.lo ext/mysql/libmysql/default.lo ext/mysql/libmysql/my_compress.lo ext/mysql/libmysql/array.lo ext/mysql/libmysql/my_once.lo ext/mysql/libmysql/list.lo ext/mysql/libmysql/my_net.lo ext/mysql/libmysql/dbug.lo ext/mysql/libmysql/strmov.lo ext/mysql/libmysql/strxmov.lo ext/mysql/libmysql/strnmov.lo ext/mysql/libmysql/strmake.lo ext/mysql/libmysql/strend.lo ext/mysql/libmysql/strfill.lo ext/mysql/libmysql/is_prefix.lo ext/mysql/libmysql/int2str.lo ext/mysql/libmysql/str2int.lo ext/mysql/libmysql/strinstr.lo ext/mysql/libmysql/strcont.lo ext/mysql/libmysql/strcend.lo ext/mysql/libmysql/bchange.lo ext/mysql/libmysql/bmove.lo ext/mysql/libmysql/bmove_upp.lo ext/mysql/libmysql/longlong2str.lo ext/mysql/libmysql/strtoull.lo ext/mysql/libmysql/strtoll.lo ext/mysql/libmysql/charset.lo ext/mysql/libmysql/ctype.lo ext/overload/overload.lo ext/pcre/pcrelib/maketables.lo ext/pcre/pcrelib/get.lo ext/pcre/pcrelib/study.lo ext/pcre/pcrelib/pcre.lo ext/pcre/php_pcre.lo ext/posix/posix.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo regex/regcomp.lo regex/regexec.lo regex/regerror.lo regex/regfree.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/parsedate.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/reg.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/url_scanner.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/aggregation.lo ext/standard/sha1.lo ext/tokenizer/tokenizer.lo ext/xml/xml.lo ext/xml/expat/xmlparse.lo ext/xml/expat/xmlrole.lo ext/xml/expat/xmltok.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/safe_mode.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/streams.lo main/network.lo main/php_open_temporary_file.lo main/php_logos.lo main/output.lo main/memory_streams.lo main/user_streams.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/apache2handler/sapi_apache2.lo sapi/apache2handler/apache_config.lo sapi/apache2handler/php_functions.lo main/internal_functions.lo -lcrypt -lcrypt -lgdbm -lz -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -o libphp4.la
ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1
Ok,
I faced the same problem some months ago. To solve the problem I did
make clean
and then
make
again.
EDIT: the previous configure runs might have messed up something. If the above commands don't work then remove the source directory, extract the archive and run configure and make again.
Thomas
yes..
I got output like..
./ext/domxml/.libs/domxml.so
./modules/domxml.so
but there is no extension directory in /usr/local/apache2/php/lib/php
should i make new directory (extension)? to copy
Yes, create the
/usr/local/apache2/php/lib/php/extensions/no-debug-non-zts-20020429
directory and copy the module to that directory.
Alternatively, copy the module to the directory where libphp4.so is and change the configuration in php.ini so that extension_dir points to that directory.
How does the directory /usr/local/apach2/php look like and where is the libphp4.so file ?
Thomas
ok..
I done it.
now i inserted the line
extensions=domxml.so in php.ini
remove the dl lines in the PHP scripts ? means
then how to include that file in PHP script?
like this?
i run the file
It show no more of dl() error....
I think it is working...
thanks....very very much
Glad to hear that
One last thing:
If you add the module to the php.ini (extension=...) then you don't need the dl lines. After modifying php.ini you need to restart the apache.
test if the extension is enabled in php.ini create a little phpinfo() script and check if the output contains a DOM section.
However, since you don't get any dl warnings I think that it works
Thomas
Hello Thomos..
I have to learn PHP/PERl/CGI ....
will u tell me the book name regarding this...
or u will teach me..
did u know about challeng/response key?
or Registration (HTTP authentication)?
actually I know HTTP authentication.
I done it by using External Parser Program(PHP acript) in C++.
(Proxy Server).
But registration is related to something challeng/resposnse key,
SSID,MAC address...
What exactly do you want to do ?
Thomas
Registration?
ok forget it...
what is the difference between session and cookies?
which one is better to use?
Asking "what is the difference between sessions and cookies?" is like asking "what is the difference between beer and a pint glass?"
Just as beer is normally served in a glass, but can be served in other ways, session IDs are normally recorded in cookies, but can be recorded elsewhere if need be.
Basically, sessions are a shrink-wrapped approach to storing data that doesn't need to last longer than the current session. It uses cookies when it can. It inherently has the security advantage that no real data is stored on the client, only a session ID is stored in the cookie. (You can do this yourself with persistent cookies, but all you'd end up doing is replicating PHP's inbuilt mechanism, with added complications regarding cookie expiration.)
Details about how PHP uses cookies for session management can be found in the obvious place.