Re: [PHP] case ?

2001-01-10 Thread Dean Hall
I know this is kinda silly. but, if I have the following, will the file only be included when the case is matched or does require always bring in the file regarless? case blah: require('include.php'); do something break; Pretty sure it depends on whether your file system is

Re: [PHP] Perl-like DBI and generic SQL

2001-01-16 Thread Dean Hall
-0800 Subject: Re: [PHP] Perl-like DBI and generic SQL Dean Hall wrote: I read once on this list that PHP supports a DBI-like database access object (such as the one in Perl). Is this true? Does anyone know where I can find documentation for it? I can't seem to find it in the manual.

[PHP] installing and using PEAR

2001-01-23 Thread Dean Hall
Can anyone direct me to some up-to-date documentation on how to install (and then use) the Pear included in the distribution? There seems to be minimal (and perhaps outdated or inappropriate?) install instructions included with the source distribution, but I've found nothing on how to use it.

[PHP] file_exists search the include_path?

2001-01-25 Thread Dean Hall
I thought I saw in one of the older manuals that there is an optional second parameter to 'file_exists' that will tell it too search the 'include_path' for a file instead of using an absolute path. However, I can't seem to find this documentation any more. Does anyone know if this still works?

[PHP] contracting consulting (was [PHP] Pricing for PHP programming???)

2001-02-01 Thread Dean Hall
Somewhat related to the recent discussion on pricing for contractors, I thought I'd ask if anyone knows of any good resources to help budding contrators/consultants find their way around. I'm a skilled web developer, but I'm not so knowledgeable when it comes to law and conventions in the US

[PHP] metabase docs and DB abstraction

2001-03-16 Thread Dean Hall
Anyone have opinions on which DB abstraction layer is best for what situation? Is there an article somewhere that compares the various DB abstraction layers? (Cross-post:) Anyone know where I can find documentation or samples for metabase? Dean. -- PHP General Mailing List

[PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
configure. I'm not a *nix guru, and I don't understand completely how the dynamic linking process works, but this seems wrong. Any thoughts? I'm pretty desperate here. :-) Otherwise I'll have to start using the openssl shell command. Dean Hall. Apt7.com Web Services -- PHP General Mailing List (http

Re: [PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message 99a7rf$rer$[EMAIL PROTECTED]">news:99a7rf$rer$[EMAIL PROTECTED]... At first find where is libmhash.so.2. Then edit your ld.so.conf. Then run ldconfig. I'm trying this, and I'll get back to you on whether it works. Filename and command name

Re: [PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
""Dean Hall"" [EMAIL PROTECTED] wrote in message 99a9kk$hnp$[EMAIL PROTECTED]">news:99a9kk$hnp$[EMAIL PROTECTED]... ""Yasuo Ohgaki"" [EMAIL PROTECTED] wrote in message 99a7rf$rer$[EMAIL PROTECTED]">news:99a7rf$rer$[EMAIL PROTECTED]..

[PHP] key generation with mcrypt

2001-03-23 Thread Dean Hall
-chosen keys. I surely /must/ be missing something! Please let me know. Dean Hall. -- 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] set_error_handler and parse errors

2001-03-25 Thread Dean Hall
Is it just me, or do parse errors get reported by the engine even if you use your own error handler? I've registered my own error handler with "set_error_handler()", but it doesn't get called on parse errors -- the manual seems to hint that this is the case (without actually saying it), and I

[PHP] forcing error documents

2001-05-09 Thread Dean Hall
I'm trying to force arbitrary errors in the HTTP header like so: header('HTTP/1.1 404 Not found.'); It's not working like I expected. I found a few discussions of this on this list that said that this did not work with PHP 3, but I've found nothing about PHP 4. The manual says that you should

[PHP] set_error_handler scope problems?

2001-05-17 Thread Dean Hall
I'm trying to use set_error_handler with a function name (in the global scope -- not a class method), and I'm getting a seg-fault in PHP. I'm wondering if it's a scope problem. Here's an abbreviation of what I have: (Main.php) include_once('Error.php'); class Main { function main() {

Re: [PHP] set_error_handler scope problems?

2001-05-17 Thread Dean Hall
Eek. Nevermind. The problem, for anyone who is interested, is that you cannot specify that any parameters in the error-handler function to be passed by reference. Dean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] software development qu

2001-02-06 Thread Dean Hall
Hope this isn't too off-topic. [Background:] I'm developing a enterprise web development platform of sorts; the details aren't too important, but I'm looking for a way to keep this as general as possible. PHP is my embedded language of choice, and I'll develop the software in PHP first, but

Re: [PHP] PEAR

2001-02-08 Thread Dean Hall
Can anyone point me in the direction of a good site documenting PEAR? There is none. Although you should look at http://pear.php.net. Also see http://www.phpdoc.de/pear/index2.html. Also check out the stuff in the pear directory of the source installation. Dean. -- PHP General Mailing List

Re: [PHP] Converting CFML to PHP

2001-02-08 Thread Dean Hall
Seeing as how CFML is just more markup and PHP is an embedded language, your task will be interesting. IMHO, CFML is the worst thing out; it's not a real scripting language, and it blurs the distinction between markup and logic. Sorry I couldn't help. (Just wanted to voice my opinion -- no

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Dean Hall
Uh, why? Adding ?asin$asin makes absolutely no sense in an include since included files share the same namespace as the parent file. You can simply do: Er, Rasmus. Do you mean "scope"? You're usually right on target with your comments, so I'm sure that's what you meant :-) Speaking of

[PHP] adding methods to classes

2001-04-07 Thread Dean Hall
Does PHP allow you to add methods to a class outside the class definition? This seems not to be straightforward since class prototypes are not allowed. For instance, what I'm trying to do is add a method to the DB class (in PEAR) that will do a database query, test if the result is an

Re: [PHP] X509

2001-04-07 Thread Dean Hall
or the X509 format itself, check the RFC (I don't know where to find this -- you should try google.com). Dean Hall. http://hall.apt7.com -- 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

[PHP] PEAR Standards (was Re: equivalent of asp's %= strTest %)

2001-04-07 Thread Dean Hall
not to use short tags: XML. All the same, I'd rather just enable ASP tags than do away with short tags, as short tags are irreplacable in templates rich in content and sparse on code. My $0.02. Dean Hall. http://hall.apt7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] bcc, cc limit on recepients?

2001-04-07 Thread Dean Hall
sends it as email to all the 400 recepients but the script fails and I get a mysql error. If your getting a mysql error, is your script failing before you even send the mail? Dean Hall. http://hall.apt7.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] PEAR Standards (was Re: equivalent of asp's %= strTest %)

2001-04-07 Thread Dean Hall
le. Including XML files from PHP scripts will be a real problem if short tags are enabled. Dean Hall. http://hall.apt7.com -- 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 ad

Re: [PHP] PEAR Standards (was Re: equivalent of asp's %= strTest %)

2001-04-07 Thread Dean Hall
(Reply to your TOFU:) "shaun" [EMAIL PROTECTED] wrote in message 01040817181702.01567@box">news:01040817181702.01567@box... I'm pretty sure you can make php use the asp style % though too, not sure if that's for short tags, regular tags or both, I know it's in the config though, anyone know?

Re: [PHP] adding methods to classes

2001-04-07 Thread Dean Hall
Stupid me. Just extend the class. Now the real question: Is there any dynamic binding in PHP? Can I override a method in a subclass? Dean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Checking the REFERER

2001-04-07 Thread Dean Hall
form-handler. You can use the built-in md5 for this, but if security is a major concern, get the mhash extensioin for PHP and use SHA1 or RIPEMD160, as md5 is known to have weaknesses. Dean Hall. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [PHP] passthru

2001-04-11 Thread Dean Hall
no output at all. I'm just guessing since I can't access the PHP manual and since I don't know what program you're running here -- but perhaps "someProgram" is outputting to stderr by mistake. That's my only guess. Dean Hall. http://hall.apt7.com -- PHP General Mailing List (http:

[PHP] casting arrays as objects

2001-04-13 Thread Dean Hall
Can you cast an array to an object of your choosing? If so, will the keys of the array match up with the attributes of your object? Say I have a class like this: class Foo { var $foo; var $bar; function Foo($foo = '', $bar = '') { ... } ... } Then I have an array like:

Re: [PHP] casting arrays as objects

2001-04-13 Thread Dean Hall
"Morgan Curley" [EMAIL PROTECTED] wrote: why mot [sic] just ?php $foo = new Foo( $db-fetchRow(DB_FETCHMODE_ASSOC) ); ? If you have to leave this part of the project for any length of time, coming back to the above would be much less confusing. ( i think so anyway :) Good idea.

Re: [PHP] php, mysql, and wysiwyg.

2001-04-13 Thread Dean Hall
""FredrikAT"" [EMAIL PROTECTED] wrote: Hi! I'm starting a news site, and I have one problem. (not with php or mysql, workin' fine!): 1. I want my authors to be able to make the text bold, italic ++, but I can't find anything that works. 2. The best sollution must be something similar to

Re: [PHP] XML via socket connection

2001-04-13 Thread Dean Hall
""phpman"" [EMAIL PROTECTED] wrote: All the docs i've looked at for parsing XML takes a file as input. What's the proceedure for opening a socket connection and doing XML transmissions via TCP/IP. Do I need to do socket calls through PHP to open an XML connection (manually send all the HTTP

Re: [PHP] Dynamic built web pages administration

2001-04-17 Thread Dean Hall
Rom. ""Romulo Roberto Pereira"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I was wondering if anybody have developed something related to dynamic web pages building and administration. I need to store the content of the site in the database and

Re: [PHP] array_push but with key, value pairs

2001-04-17 Thread Dean Hall
Joseph. "Joseph Blythe" [EMAIL PROTECTED] wrote: ... Ok fine, I now have an associative array with a numeric index, but hangon I wanted to push the key = value into the array. How would I do this, I have tried a couple of things but am having some really crazy results ;-) 'array_push' is

Re: [PHP] set_error_handler()

2001-04-17 Thread Dean Hall
""Boget, Chris"" [EMAIL PROTECTED] wrote: Can you use the above function to set the error handler to a custom class? If so, how? I've been having no luck no matter what I do... Chris Chris. I tried doing something like: set_error_handler("Error::handleError"); myself, and to no avail.

Re: [PHP] PERL vs. PHP

2001-04-21 Thread Dean Hall
"Rasmus Lerdorf" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... but since you replied, can i ask what influenced you most when developing PHP? Whenever I couldn't decide what sort of syntax to use I copied C -Rasmus This makes me think that any

Re: [PHP] undefined symbol: SSL_CTX_set_rsa_callback

2001-04-28 Thread Dean Hall
j2n tech [EMAIL PROTECTED] wrote in message 9cd2bn$55m$[EMAIL PROTECTED]">news:9cd2bn$55m$[EMAIL PROTECTED]... After compiling php404pl1 and Apache 1.3.12: [root@ conf]# ../bin/apachectl restart ../bin/apachectl restart: httpd not running, trying to start Syntax error on line 207 of