php-general Digest 17 Feb 2007 10:45:00 -0000 Issue 4630
Topics (messages 248964 through 248968):
Quick organizational question...
248964 by: Mike Shanley
248967 by: Peter Lauri
Unable to compile php 5.2.1 on Intel Macbook
248965 by: Tim Visher
easynav breaks my page
248966 by: Ross
Securing user table with sha function
248968 by: Tim
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi!
Question:
For a website that will have a database driven store, articles, an rss
feed, and a few other things... not an enormous site, but one with
growth potential, does it makes sense to organize the whole thing as
includes through a single main page? It seems like a fun way to do
things, but I was just wondering what you all thought.
BTW- It's my first time here! Hello world!
--
Mike Shanley
~you are almost there~
--- End Message ---
--- Begin Message ---
Hi,
No matter the size of a project using includes and config files are always a
good way to go.
In the include file I would (as it states) include all main files that are
common for all pages. Such as a DB class (if common), template classes, etc.
In the config file (or you can call it define file) I would define all
constants that might be used. Such as:
define("ROOTDIR", "/wherever/your/webroot/is");
define("CLASSDIR", ROOTDIR . "/classes"); //not the best way, I usually keep
my classes out of the webroot
define("DB_HOST", "localhost");
Or you can have a txt config file config.cfg
ROOTDIR /wherever/your/webroot/is
CLASSDIR [ROOTDIR]/classes
And then you just have to read and parse that with a general define script
:) Something like this (don't have the code here, so I try it anyways).
<?php
$configcontent = file_get_contents("config.cfg");
$lines = explode("\n", $configcontent);
foreach($lines AS $line) {
$line = trim($line);
if(preg_match("/^[A-Z_]+\s+.+$/", $line)) {
$linemodified =
preg_replace("/^([A-Z_]+)\s+(.+)$/","$1:$2",$line);
list($const, $value) = explode(":", $linemodified, 2);
define($const, $value);
}
}
?>
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-----Original Message-----
From: Mike Shanley [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 17, 2007 5:06 AM
To: [email protected]
Subject: [PHP] Quick organizational question...
Hi!
Question:
For a website that will have a database driven store, articles, an rss
feed, and a few other things... not an enormous site, but one with
growth potential, does it makes sense to organize the whole thing as
includes through a single main page? It seems like a fun way to do
things, but I was just wondering what you all thought.
BTW- It's my first time here! Hello world!
--
Mike Shanley
~you are almost there~
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello all,
I can't compile php 5.2.1. I don't exactly know where the error starts or
begins so I'm just going to post the whole thing:
gcc -I/usr/include -g -O2 -L/usr/local/mysql/lib -L/usr/local/mysql/lib
ext/libxml/libxml.o ext/pcre/pcrelib/pcre_chartables.o
ext/pcre/pcrelib/pcre_ucp_searchfuncs.o ext/pcre/pcrelib/pcre_compile.o
ext/pcre/pcrelib/pcre_config.o ext/pcre/pcrelib/pcre_exec.o
ext/pcre/pcrelib/pcre_fullinfo.o ext/pcre/pcrelib/pcre_get.o
ext/pcre/pcrelib/pcre_globals.o ext/pcre/pcrelib/pcre_info.o
ext/pcre/pcrelib/pcre_maketables.o ext/pcre/pcrelib/pcre_ord2utf8.o
ext/pcre/pcrelib/pcre_refcount.o ext/pcre/pcrelib/pcre_study.o
ext/pcre/pcrelib/pcre_tables.o ext/pcre/pcrelib/pcre_try_flipped.o
ext/pcre/pcrelib/pcre_valid_utf8.o ext/pcre/pcrelib/pcre_version.o
ext/pcre/pcrelib/pcre_xclass.o ext/pcre/php_pcre.o ext/zlib/zlib.o
ext/zlib/zlib_fopen_wrapper.o ext/zlib/zlib_filter.o ext/ctype/ctype.o
ext/curl/interface.o ext/curl/multi.o ext/curl/streams.o ext/date/php_date.o
ext/date/lib/astro.o ext/date/lib/dow.o ext/date/lib/parse_date.o
ext/date/lib/parse_tz.o ext/date/lib/timelib.o ext/date/lib/tm2unixtime.o
ext/date/lib/unixtime2tm.o ext/dom/php_dom.o ext/dom/attr.o
ext/dom/document.o ext/dom/domerrorhandler.o ext/dom/domstringlist.o
ext/dom/domexception.o ext/dom/namelist.o ext/dom/processinginstruction.o
ext/dom/cdatasection.o ext/dom/documentfragment.o
ext/dom/domimplementation.o ext/dom/element.o ext/dom/node.o
ext/dom/string_extend.o ext/dom/characterdata.o ext/dom/documenttype.o
ext/dom/domimplementationlist.o ext/dom/entity.o ext/dom/nodelist.o
ext/dom/text.o ext/dom/comment.o ext/dom/domconfiguration.o
ext/dom/domimplementationsource.o ext/dom/entityreference.o
ext/dom/notation.o ext/dom/xpath.o ext/dom/dom_iterators.o
ext/dom/typeinfo.o ext/dom/domerror.o ext/dom/domlocator.o
ext/dom/namednodemap.o ext/dom/userdatahandler.o ext/exif/exif.o
ext/filter/filter.o ext/filter/sanitizing_filters.o
ext/filter/logical_filters.o ext/filter/callback_filter.o ext/ftp/php_ftp.o
ext/ftp/ftp.o ext/hash/hash.o ext/hash/hash_md.o ext/hash/hash_sha.o
ext/hash/hash_ripemd.o ext/hash/hash_haval.o ext/hash/hash_tiger.o
ext/hash/hash_gost.o ext/hash/hash_snefru.o ext/hash/hash_whirlpool.o
ext/hash/hash_adler32.o ext/hash/hash_crc32.o ext/iconv/iconv.o
ext/json/json.o ext/json/utf8_to_utf16.o ext/json/utf8_decode.o
ext/json/JSON_parser.o ext/ldap/ldap.o ext/mbstring/oniguruma/regcomp.o
ext/mbstring/oniguruma/regerror.o ext/mbstring/oniguruma/regexec.o
ext/mbstring/oniguruma/reggnu.o ext/mbstring/oniguruma/regparse.o
ext/mbstring/oniguruma/regenc.o ext/mbstring/oniguruma/regext.o
ext/mbstring/oniguruma/regsyntax.o ext/mbstring/oniguruma/regtrav.o
ext/mbstring/oniguruma/regversion.o ext/mbstring/oniguruma/st.o
ext/mbstring/oniguruma/enc/unicode.o ext/mbstring/oniguruma/enc/ascii.o
ext/mbstring/oniguruma/enc/utf8.o ext/mbstring/oniguruma/enc/euc_jp.o
ext/mbstring/oniguruma/enc/euc_tw.o ext/mbstring/oniguruma/enc/euc_kr.o
ext/mbstring/oniguruma/enc/sjis.o ext/mbstring/oniguruma/enc/iso8859_1.o
ext/mbstring/oniguruma/enc/iso8859_2.o
ext/mbstring/oniguruma/enc/iso8859_3.o
ext/mbstring/oniguruma/enc/iso8859_4.o
ext/mbstring/oniguruma/enc/iso8859_5.o
ext/mbstring/oniguruma/enc/iso8859_6.o
ext/mbstring/oniguruma/enc/iso8859_7.o
ext/mbstring/oniguruma/enc/iso8859_8.o
ext/mbstring/oniguruma/enc/iso8859_9.o
ext/mbstring/oniguruma/enc/iso8859_10.o
ext/mbstring/oniguruma/enc/iso8859_11.o
ext/mbstring/oniguruma/enc/iso8859_13.o
ext/mbstring/oniguruma/enc/iso8859_14.o
ext/mbstring/oniguruma/enc/iso8859_15.o
ext/mbstring/oniguruma/enc/iso8859_16.o ext/mbstring/oniguruma/enc/koi8.o
ext/mbstring/oniguruma/enc/koi8_r.o ext/mbstring/oniguruma/enc/big5.o
ext/mbstring/oniguruma/enc/utf16_be.o ext/mbstring/oniguruma/enc/utf16_le.o
ext/mbstring/oniguruma/enc/utf32_be.o ext/mbstring/oniguruma/enc/utf32_le.o
ext/mbstring/oniguruma/enc/gb18030.o
ext/mbstring/libmbfl/filters/html_entities.o
ext/mbstring/libmbfl/filters/mbfilter_7bit.o
ext/mbstring/libmbfl/filters/mbfilter_ascii.o
ext/mbstring/libmbfl/filters/mbfilter_base64.o
ext/mbstring/libmbfl/filters/mbfilter_big5.o
ext/mbstring/libmbfl/filters/mbfilter_byte2.o
ext/mbstring/libmbfl/filters/mbfilter_byte4.o
ext/mbstring/libmbfl/filters/mbfilter_cp1251.o
ext/mbstring/libmbfl/filters/mbfilter_cp1252.o
ext/mbstring/libmbfl/filters/mbfilter_cp866.o
ext/mbstring/libmbfl/filters/mbfilter_cp932.o
ext/mbstring/libmbfl/filters/mbfilter_cp936.o
ext/mbstring/libmbfl/filters/mbfilter_euc_cn.o
ext/mbstring/libmbfl/filters/mbfilter_euc_jp.o
ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.o
ext/mbstring/libmbfl/filters/mbfilter_cp51932.o
ext/mbstring/libmbfl/filters/mbfilter_euc_kr.o
ext/mbstring/libmbfl/filters/mbfilter_euc_tw.o
ext/mbstring/libmbfl/filters/mbfilter_htmlent.o
ext/mbstring/libmbfl/filters/mbfilter_hz.o
ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.o
ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.o
ext/mbstring/libmbfl/filters/mbfilter_jis.o
ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.o
ext/mbstring/libmbfl/filters/mbfilter_koi8r.o
ext/mbstring/libmbfl/filters/mbfilter_armscii8.o
ext/mbstring/libmbfl/filters/mbfilter_qprint.o
ext/mbstring/libmbfl/filters/mbfilter_sjis.o
ext/mbstring/libmbfl/filters/mbfilter_ucs2.o
ext/mbstring/libmbfl/filters/mbfilter_ucs4.o
ext/mbstring/libmbfl/filters/mbfilter_uhc.o
ext/mbstring/libmbfl/filters/mbfilter_utf16.o
ext/mbstring/libmbfl/filters/mbfilter_utf32.o
ext/mbstring/libmbfl/filters/mbfilter_utf7.o
ext/mbstring/libmbfl/filters/mbfilter_utf7imap.o
ext/mbstring/libmbfl/filters/mbfilter_utf8.o
ext/mbstring/libmbfl/filters/mbfilter_uuencode.o
ext/mbstring/libmbfl/mbfl/mbfilter.o
ext/mbstring/libmbfl/mbfl/mbfilter_8bit.o
ext/mbstring/libmbfl/mbfl/mbfilter_pass.o
ext/mbstring/libmbfl/mbfl/mbfilter_wchar.o
ext/mbstring/libmbfl/mbfl/mbfl_convert.o
ext/mbstring/libmbfl/mbfl/mbfl_encoding.o
ext/mbstring/libmbfl/mbfl/mbfl_filter_output.o
ext/mbstring/libmbfl/mbfl/mbfl_ident.o
ext/mbstring/libmbfl/mbfl/mbfl_language.o
ext/mbstring/libmbfl/mbfl/mbfl_memory_device.o
ext/mbstring/libmbfl/mbfl/mbfl_string.o
ext/mbstring/libmbfl/mbfl/mbfl_allocators.o
ext/mbstring/libmbfl/nls/nls_de.o ext/mbstring/libmbfl/nls/nls_en.o
ext/mbstring/libmbfl/nls/nls_ja.o ext/mbstring/libmbfl/nls/nls_kr.o
ext/mbstring/libmbfl/nls/nls_neutral.o ext/mbstring/libmbfl/nls/nls_ru.o
ext/mbstring/libmbfl/nls/nls_uni.o ext/mbstring/libmbfl/nls/nls_zh.o
ext/mbstring/libmbfl/nls/nls_hy.o ext/mbstring/libmbfl/nls/nls_tr.o
ext/mbstring/mbstring.o ext/mbstring/php_unicode.o ext/mbstring/mb_gpc.o
ext/mbstring/php_mbregex.o ext/mysql/php_mysql.o ext/odbc/php_odbc.o
ext/pdo/pdo.o ext/pdo/pdo_dbh.o ext/pdo/pdo_stmt.o ext/pdo/pdo_sql_parser.o
ext/pdo/pdo_sqlstate.o ext/pdo_sqlite/pdo_sqlite.o
ext/pdo_sqlite/sqlite_driver.o ext/pdo_sqlite/sqlite_statement.o
ext/pdo_sqlite/sqlite/src/attach.o ext/pdo_sqlite/sqlite/src/auth.o
ext/pdo_sqlite/sqlite/src/btree.o ext/pdo_sqlite/sqlite/src/build.o
ext/pdo_sqlite/sqlite/src/callback.o ext/pdo_sqlite/sqlite/src/date.o
ext/pdo_sqlite/sqlite/src/delete.o ext/pdo_sqlite/sqlite/src/expr.o
ext/pdo_sqlite/sqlite/src/func.o ext/pdo_sqlite/sqlite/src/hash.o
ext/pdo_sqlite/sqlite/src/insert.o ext/pdo_sqlite/sqlite/src/legacy.o
ext/pdo_sqlite/sqlite/src/main.o ext/pdo_sqlite/sqlite/src/os_unix.o
ext/pdo_sqlite/sqlite/src/os_win.o ext/pdo_sqlite/sqlite/src/os.o
ext/pdo_sqlite/sqlite/src/pager.o ext/pdo_sqlite/sqlite/src/pragma.o
ext/pdo_sqlite/sqlite/src/prepare.o ext/pdo_sqlite/sqlite/src/printf.o
ext/pdo_sqlite/sqlite/src/random.o ext/pdo_sqlite/sqlite/src/select.o
ext/pdo_sqlite/sqlite/src/table.o ext/pdo_sqlite/sqlite/src/tokenize.o
ext/pdo_sqlite/sqlite/src/analyze.o ext/pdo_sqlite/sqlite/src/complete.o
ext/pdo_sqlite/sqlite/src/trigger.o ext/pdo_sqlite/sqlite/src/update.o
ext/pdo_sqlite/sqlite/src/utf.o ext/pdo_sqlite/sqlite/src/util.o
ext/pdo_sqlite/sqlite/src/vacuum.o ext/pdo_sqlite/sqlite/src/vdbeapi.o
ext/pdo_sqlite/sqlite/src/vdbeaux.o ext/pdo_sqlite/sqlite/src/vdbe.o
ext/pdo_sqlite/sqlite/src/vdbemem.o ext/pdo_sqlite/sqlite/src/where.o
ext/pdo_sqlite/sqlite/src/parse.o ext/pdo_sqlite/sqlite/src/opcodes.o
ext/pdo_sqlite/sqlite/src/alter.o ext/pdo_sqlite/sqlite/src/vdbefifo.o
ext/pdo_sqlite/sqlite/src/vtab.o ext/pdo_sqlite/sqlite/src/loadext.o
ext/posix/posix.o ext/reflection/php_reflection.o ext/session/session.o
ext/session/mod_files.o ext/session/mod_mm.o ext/session/mod_user.o
ext/simplexml/simplexml.o ext/sockets/sockets.o ext/spl/php_spl.o
ext/spl/spl_functions.o ext/spl/spl_engine.o ext/spl/spl_iterators.o
ext/spl/spl_array.o ext/spl/spl_directory.o ext/spl/spl_sxe.o
ext/spl/spl_exceptions.o ext/spl/spl_observer.o ext/sqlite/sqlite.o
ext/sqlite/sess_sqlite.o ext/sqlite/pdo_sqlite2.o
ext/sqlite/libsqlite/src/opcodes.o ext/sqlite/libsqlite/src/parse.o
ext/sqlite/libsqlite/src/encode.o ext/sqlite/libsqlite/src/auth.o
ext/sqlite/libsqlite/src/btree.o ext/sqlite/libsqlite/src/build.o
ext/sqlite/libsqlite/src/delete.o ext/sqlite/libsqlite/src/expr.o
ext/sqlite/libsqlite/src/func.o ext/sqlite/libsqlite/src/hash.o
ext/sqlite/libsqlite/src/insert.o ext/sqlite/libsqlite/src/main.o
ext/sqlite/libsqlite/src/os.o ext/sqlite/libsqlite/src/pager.o
ext/sqlite/libsqlite/src/printf.o ext/sqlite/libsqlite/src/random.o
ext/sqlite/libsqlite/src/select.o ext/sqlite/libsqlite/src/table.o
ext/sqlite/libsqlite/src/tokenize.o ext/sqlite/libsqlite/src/update.o
ext/sqlite/libsqlite/src/util.o ext/sqlite/libsqlite/src/vdbe.o
ext/sqlite/libsqlite/src/attach.o ext/sqlite/libsqlite/src/btree_rb.o
ext/sqlite/libsqlite/src/pragma.o ext/sqlite/libsqlite/src/vacuum.o
ext/sqlite/libsqlite/src/copy.o ext/sqlite/libsqlite/src/vdbeaux.o
ext/sqlite/libsqlite/src/date.o ext/sqlite/libsqlite/src/where.o
ext/sqlite/libsqlite/src/trigger.o regex/regcomp.o regex/regexec.o
regex/regerror.o regex/regfree.o ext/standard/array.o ext/standard/base64.o
ext/standard/basic_functions.o ext/standard/browscap.o ext/standard/crc32.o
ext/standard/crypt.o ext/standard/cyr_convert.o ext/standard/datetime.o
ext/standard/dir.o ext/standard/dl.o ext/standard/dns.o ext/standard/exec.o
ext/standard/file.o ext/standard/filestat.o ext/standard/flock_compat.o
ext/standard/formatted_print.o ext/standard/fsock.o ext/standard/head.o
ext/standard/html.o ext/standard/image.o ext/standard/info.o
ext/standard/iptc.o ext/standard/lcg.o ext/standard/link.o
ext/standard/mail.o ext/standard/math.o ext/standard/md5.o
ext/standard/metaphone.o ext/standard/microtime.o ext/standard/pack.o
ext/standard/pageinfo.o ext/standard/quot_print.o ext/standard/rand.o
ext/standard/reg.o ext/standard/soundex.o ext/standard/string.o
ext/standard/scanf.o ext/standard/syslog.o ext/standard/type.o
ext/standard/uniqid.o ext/standard/url.o ext/standard/url_scanner.o
ext/standard/var.o ext/standard/versioning.o ext/standard/assert.o
ext/standard/strnatcmp.o ext/standard/levenshtein.o
ext/standard/incomplete_class.o ext/standard/url_scanner_ex.o
ext/standard/ftp_fopen_wrapper.o ext/standard/http_fopen_wrapper.o
ext/standard/php_fopen_wrapper.o ext/standard/credits.o ext/standard/css.o
ext/standard/var_unserializer.o ext/standard/ftok.o ext/standard/sha1.o
ext/standard/user_filters.o ext/standard/uuencode.o ext/standard/filters.o
ext/standard/proc_open.o ext/standard/streamsfuncs.o ext/standard/http.o
ext/tokenizer/tokenizer.o ext/xml/xml.o ext/xml/compat.o
ext/xmlreader/php_xmlreader.o ext/xmlwriter/php_xmlwriter.o TSRM/TSRM.o
TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o main/main.o main/snprintf.o
main/spprintf.o main/php_sprintf.o main/safe_mode.o main/fopen_wrappers.o
main/alloca.o main/php_scandir.o main/php_ini.o main/SAPI.o main/rfc1867.o
main/php_content_types.o main/strlcpy.o main/strlcat.o main/mergesort.o
main/reentrancy.o main/php_variables.o main/php_ticks.o main/network.o
main/php_open_temporary_file.o main/php_logos.o main/output.o
main/streams/streams.o main/streams/cast.o main/streams/memory.o
main/streams/filter.o main/streams/plain_wrapper.o main/streams/userspace.o
main/streams/transports.o main/streams/xp_socket.o main/streams/mmap.o
Zend/zend_language_parser.o Zend/zend_language_scanner.o
Zend/zend_ini_parser.o Zend/zend_ini_scanner.o Zend/zend_alloc.o
Zend/zend_compile.o Zend/zend_constants.o Zend/zend_dynamic_array.o
Zend/zend_execute_API.o Zend/zend_highlight.o Zend/zend_llist.o
Zend/zend_opcode.o Zend/zend_operators.o Zend/zend_ptr_stack.o
Zend/zend_stack.o Zend/zend_variables.o Zend/zend.o Zend/zend_API.o
Zend/zend_extensions.o Zend/zend_hash.o Zend/zend_list.o Zend/zend_indent.o
Zend/zend_builtin_functions.o Zend/zend_sprintf.o Zend/zend_ini.o
Zend/zend_qsort.o Zend/zend_multibyte.o Zend/zend_ts_hash.o
Zend/zend_stream.o Zend/zend_iterators.o Zend/zend_interfaces.o
Zend/zend_exceptions.o Zend/zend_strtod.o Zend/zend_objects.o
Zend/zend_object_handlers.o Zend/zend_objects_API.o
Zend/zend_default_classes.o Zend/zend_execute.o sapi/cli/php_cli.o
sapi/cli/php_cli_readline.o sapi/cli/getopt.o main/internal_functions_cli.o
-liodbc -lmysqlclient -lldap -llber -liconv -lcurl -lz -lm -lxml2 -lz
-liconv -lm -lcurl -lssl -lcrypto -lz -lxml2 -lz -liconv -lm -liodbc -lxml2
-lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz
-liconv -lm -o sapi/cli/php
/usr/bin/ld: warning multiple definitions of symbol _SSLv3_client_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of
_SSLv3_client_method in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(s3_clnt.o)
definition of _SSLv3_client_method
/usr/bin/ld: warning multiple definitions of symbol _TLSv1_client_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of
_TLSv1_client_method in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(t1_clnt.o)
definition of _TLSv1_client_method
/usr/bin/ld: warning multiple definitions of symbol _BN_bin2bn
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _BN_bin2bn in
section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(bn_lib.o)
definition of _BN_bin2bn
/usr/bin/ld: warning multiple definitions of symbol _SSLv3_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of _SSLv3_method in
section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(s3_meth.o)
definition of _SSLv3_method
/usr/bin/ld: warning multiple definitions of symbol _SSLv23_server_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of
_SSLv23_server_method in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(s23_srvr.o)
definition of _SSLv23_server_method
/usr/bin/ld: warning multiple definitions of symbol _SSLv3_server_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of
_SSLv3_server_method in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(s3_srvr.o)
definition of _SSLv3_server_method
/usr/bin/ld: warning multiple definitions of symbol _TLSv1_server_method
/usr/local/mysql/lib/libmysqlclient.a(ssl.o) definition of
_TLSv1_server_method in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libssl.dylib(t1_srvr.o)
definition of _TLSv1_server_method
/usr/bin/ld: multiple definitions of symbol _CRYPTO_add_lock
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(cryptlib.o)
definition of _CRYPTO_add_lock
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-misc.o) definition of
_CRYPTO_add_lock in section (__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _CRYPTO_lock
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libcrypto.dylib(cryptlib.o)
definition of _CRYPTO_lock
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-misc.o) definition of
_CRYPTO_lock in section (__TEXT,__text)
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Sorry that this has so much in it. I've never really been able to
understand where these compile errors start...
Thanks for any help!
--
In Christ,
Timmy V.
P.S. [EMAIL PROTECTED] is being OFFICIALLY RETIRED! From now on, if you want
to get in touch with me, send the e-mail here. Also, if you exchange IMs
with me, you need to switch my Screen Name to [EMAIL PROTECTED] MAKE
THE SWITCH PEOPLE!
--- End Message ---
--- Begin Message ---
I am using the easynav class. I include it like this
<?php include('../classes/easynav.php');?> without it in my page validates 0
errors 0 warnings and dispalys fine, however when I stick it in I get a few
missing div errors and the page breaks.
It would be a shame not to use it as it is a great script. Does the script
add any div tags or anything?
Here is my navigation that is inserted.
<div class="middle">
<div class="top">
<div class="bottom">
<ul id="contact_side">
<li><a href="one.php">one</a></li>
<li><a href="two.php">two</a></li>
<li><a href="three.php">three</a></li>
</ul>
</div>
</div>
</div>
thanks,
Ross
--- End Message ---
--- Begin Message ---
Hello,
Now moving on into other aspects of security :P I was thinking of a way to
secure my login inputs the best way possible.
Seeing how many different types of injection attacks their is and while
observing different authentication systems I often notice the sha() function
being used for passwords, which of course is the minimum requirements to
saving passwords but.. Why manipulate this information in clear text wether
it be email or username or pass fields, such as when you use
sessions/cookies, or any other method of passing authentication information
from page to page (an sha hash is x times less "geussable" then any other
human term)... AND how to secure for injection attacks?
Now this is where i thought hey, on every login page there is a user and
pass input field and thus this is the only place one could "peak" into my
user table, and I don't want someone injecting through their as the user
table (three fields seperate from profile, username, email, pass) is the key
to entry to the site.. SO, why not just encrypt all three fields? And store
"copies" of email and username (not pass :P) in another database unecrypted
or with a salt for further recovery..
This would ensure that ANY information entered into the user and passowrd
will be run through sha() thus creating a 40 char length hash and covering
any (?) injection possiblity through a forged input in one of those fields
via my "select" routine..
Just wondering what other security conscious people think of this "plan"
even though it may slow down logins a tad but the tight security in my
opinion justifies this..
Does anyone see an ugly flaw in this scheme?
Does it look viable?
Thanks for any input,
Regards,
Tim
--- End Message ---