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
-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.
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.
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?
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
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
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
""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
""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]..
-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]
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
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
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() {
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,
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
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
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
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
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
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
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,
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
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
(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?
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
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
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:
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:
"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.
""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
""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
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
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
""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.
"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
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
36 matches
Mail list logo