David Freedman wrote:
I am attempting to install both phpMyAdmin and phpLens. When attempting to
connect to the mySql server I get the following error message:
"Unable to connect. Please click on Previous and correct.
[Client does not support authentication protocol requested by server;
consider u
NathanielGuy#21 wrote:
Error thrown
--
Parse error: parse error, unexpected T_STRING in
/home/blacknut/public_html/picserv/includes/gallery.class on line 52
--
For what it's worth, I'm able to execute the code without parse errors
(v5.0.3). A long shot, but could there be another file called
gall
Mbneto wrote:
When I call the cli with the same php script, even a more complex one
it works flawlessly.
You may want to double check that the CLI parser isn't the old one:
$ php -v
As for the aborting Apache problem, you may want to look through the
error logs.
HTH,
-Dan
--
PHP General Mailing L
Ian Johnson wrote:
I am trying to write a function which will read a string of bytes from a
binary file and convert 8 byte sequences to Float type data. I've been
through the manual and can find nothing but think I must be missing
something. It can't be that hard. Can someone help me out.
Have y
b1nary Developement Team wrote:
I'm having some troubles however, and they come in the form of
sessions. When I use session_start(), it throws the PHPSESSID into the
URL of all of my links and form actions and what not. This is a problem
because in my forms it throws in a hidden input, which d
Adam Maccabee Trachtenberg wrote:
This is an XPath FAQ. Without a ns prefix, XPath doesn't choose
elements living in the default ns, but ones living in no namespace.
Are there any good references you might point me to? I'm pretty new to
this stuff and beyond my "in a Nutshell" book don't have many
I'm curious whether it's possible to use the DomXPath->query in such a
way that this...
http://www.w3.org/1999/xhtml";>
Foo
.. could be accessed like this:
$xp = new DomXPath($domdoc);
echo $xp->query("/html/body/div")->item(0)->nodeValue;
... instead of like this:
$xp = new Do
Hi there,
I'm having trouble getting PEAR to behave on my Mac, and I was wondering
if there might be some obvious reason that somebody could point out. I'm
running OS X 10.3.5 and PHP 4.3.8.
Here's the summary:
$ pear upgrade-all
Will upgrade archive_tar
Will upgrade db
Will upgrade http
Will up
John W. Holmes wrote:
There's nothing in PHP that would not let POST values get through.
Well, I think there are means of disabling the registration of $_POST,
but that's not relevent to this problem.
Are you
sure this isn't a web server issue only allowing GET requests to pages that
it serves?
I
Jason Davidson wrote:
How about
print_r($_REQUEST);
That also fails to reflect posted data. $_GET is working as expected.
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Craig Donnelly wrote:
Show the code you are using...
I'm having the same problem. Here is a test script that prints Array()
regardless of what you enter and submit with the form:
-- test.php --
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
Hello,
I'm trying to make use of the getElementById DOM function, but as
pointed out in bug #26813 this won't work unless an attribute is
explicitely defined in an associated DOCTYPE.
This is fine, but I can't seem to find any relevent examples that show
how to apply a DOCTYPE to a DomDocument.
So I'm trying to implement a simple wiki-like syntax for hyperlinking.
Basically I want to match stuff like [this], where the word 'this' gets
turned into a hyperlink. I have that working, but I want to be able to
escape the opening bracket, so that it's possible to do \[that] without
having it
Martin Geisler wrote:
I don't remember any more where I found this, but with
formatOutput = true;
?>
you get what you ask for: formatted output.
Excellent, that did the trick!
Thanks,
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Is there a way to get DOM XML to insert human-friendly whitespace
between elements created programmatically? I'm using PHP 5 these days,
so I guess I'm looking for some way to tell a DomDocument to prettify
its save() output.
Thanks!
-Dan
--
PHP General Mailing List (http://www.php.net/)
In my phpinfo() (Win2000, Apache2, PHP 4.3.4) my REQUEST_URI only gives
everything after the host. If you wanted the host information along with
that, you have to get that in the seperate index: HTTP_HOST.
-- Rob
And, in general, if you want to browse around and see what kind of data
you have a
Another quickie: is there an easy way to combine SimpleXML objects?
Something Like:
$a = simplexml_load_string('');
$c = simplexml_load_string('Foo');
$a->b = $c->d;
print_r($a);
Here's what I get:
Warning: It is not possible to assign complex types to nodes in
D:\...\test.php on line 5
simplex
ach ( $xml->lib_error->param AS $param ) {
$n = 0 ;
while ( is_object ( $xml->lib_error->param[$n] ) ) {
foreach( $xml->lib_error->param[$n]->attributes() AS $a => $b ){
echo $a .' --> '. $b .'';
}
$n+
John W. Holmes wrote:
Have you seen Example 4 here: http://us2.php.net/manual/en/ref.simplexml.php
Not sure if that helps or not, though, but it looks like it's already an
associative array.
It certainly looks like an associative array, but the array_keys()
function chokes on it:
Warning: array
Red Wingate wrote:
FALSE
>
$xml = simplexml_load_file( 'config.xml' );
foreach ( $xml->lib_error->param AS $id => $param ) {
echo $param['name'] ; // will output 'boolean' !
}
I think you mean that would output 'error_logfile_write'. However, what
I'm asking is i
Hello,
I have what I hope to be a simple question about SimpleXML. Is it
possible to get the attributes of a SimpleXML node as an associative array?
Consider the following:
');
print_r($sxe->attributes());
// Gives: simplexml_element Object ( [0] => value )
?>
Is there some way to find out that
I'm getting an error from the following code, but the error message
hasn't given me many leads:
$doc = new DomDocument();
$doc->loadXML('');
$hello = new DomDocument();
$hello->loadXML('Hello world!');
$xp = new DomXPath($doc);
$body = $xp->query('/html/body')->item(0);
$body->appendChild($hello-
Ben Ramsey wrote:
Now, to my question: if a PEAR package is released under the PHP
license, and my product is under the GPL, can I include the PEAR package
in my product?
I don't know if this satisfies the legal requirement, but perhaps you
could script some kind of automatic PEAR installation
Hello,
I'm trying to get an SSL-encrypted IMAP connection to work on my Windows
box. Here's the error message I get when attempting to connect:
Warning: imap_open(): Couldn't open stream
{:993/imap/ssl/novalidate-cert}INBOX in
D:\Dan\Projects\Mail\mail.php on line 92
I'm running Windows XP Pro, Ap
Is it practical to check for new mail from PHP using the UNIX mail utility?
This would mainly be used to check for bounces from large mailings. Bonus
points for anyone who can find me an article explaining the technique.
Thanks!
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Could somebody explain (or point me to some online docs) the usage of
DB_FETCHMODE_FLIPPED, defined by PEAR DB? I feel like I've seen it mentioned
on the PEAR site, but somehow I can't find it now.
I'm pretty sure it's on a page linked from here:
http://pear.php.net/manual/en/package.database.php
Assuming you mean that the user isn't typing HTML code (like an online IDE),
you might want to take a look at:
http://www.bris.ac.uk/is/projects/cms/ttw/ttw.html#os
Best,
-Dan
"Todd Cary" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I would like to have a HTML editor on a Web si
Has anybody out there written code to facilitate the maintanance
(reading/resolving, writing) of Windows's shortcuts, Mac OS's aliases, or
Unix's symbolic links? I couldn't find anything in the File System section
of PEAR, but maybe there's other code out there for this sort of thing? Or
maybe some
I don't think I've seen anything like what you're describing, but you ought
to be able to use the standard mod_imap functions to determine whether a
message has MIME components, HTML and the like, then output to the client as
desired.
If you haven't, you should take a look at
http://us2.php.net/ma
Well, for instance, you could have the __get and __set functions execute a
SQL query or go to a file or whatever. The point, as it seems to me anyway,
is to enable a potentially complex internal implementation be exposed with a
simple interface. Now as for the implications of that, it's debatable.
Hello,
I realize this stuff isn't set in stone yet, but might I eventually expect
the following to make two assignments rather than one?
$name = $value;
return true;
}
}
overload('overload_test');
$t = new overload_test;
$t->a = 'Foo';
$t->b[0] = 'Bar';
print_r($t);
?>
Output:
__s
When is it supposed to be released?
The example for the __call() function leaves something to be desired at the
bottom of http://us2.php.net/zend-engine-2.php. The code is shown, but
without downloading PHP 5 and running it I have no way of knowing what would
be output.
Maybe I'll do that...
-Dan
This probably doesn't help you much but Apache 2 and PHP are not expected to
play well together.
Which makes me wonder, will PHP 5 be more Apache 2 friendly?
Thanks,
-Dan
"Stacey Conrad" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have apache 2.0.47 + php 4.3.2 + mod_
t 08, 2003 10:21 AM
Subject: Re: [PHP] Old version of PHP
> On Saturday 09 August 2003 00:54, Dan Phiffer wrote:
> > Thanks for all the feedback, guys. Is there an errata page somewhere
that
> > lists known bugs in the PHP interpretter?
>
> google > php bugs
>
> -
Thanks for all the feedback, guys. Is there an errata page somewhere that
lists known bugs in the PHP interpretter?
Thanks,
-Dan
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 08 August 2003 09:43, Justin French wrote:
>
> > i think the best reason to keep up
Hello,
I'm working on an ongoing project that depends on a shared webserver running
an old version of PHP (4.1.2 I believe). Is there any good reason to stick
with an older version of PHP, or might it be a valid suggestion to have it
upgraded to something a bit more recent? I have a notion that up
the response,
-Dan
"Jim Lucas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> well, first off '>' should not be allowed as a value of an attr="" pair
> anyways.
>
> You should convert it to > or <
>
> this will solve that
So I want to grab the attributes out of an HTML element. The following
works, except in the case that the attribute's value includes the character
">":
if (preg_match_all("/]*)>/i", $subject, $matches))
print_r($matches);
A $subject of "" gives:
Array
(
[0] => Array
(
If you're using MySQL as your database system, you may want to look into
full-text search as well as the LIKE keyword.
http://www.mysql.com/doc/en/Fulltext_Search.html
http://www.mysql.com/doc/en/String_comparison_functions.html
HTH,
-Dan
"Mike Tuller" <[EMAIL PROTECTED]> wrote in message
news:
I believe there's a domain limitation inherent to the way cookies work
(assuming a cookies-based sessions setup), but there may be some way of
circumventing that (can't some ad banner companies track visitors from site
to site?). Seems like a multi-file search and replace should do the trick.
If yo
Perhaps something like:
\n";
}
?>
HTH,
-Dan
"Clint Tredway" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a display of images that every fourth image I want to start a new
> column. In ColdFusion I would use the MOD operator like this:
>
> if query.recordcount MOD 4 eq 0
> Unless you're ashamed to be running php, or don't intend to be spending as
> much time on security as you should, why would this be an issue? If your
> app is well-written, the knowledge that it's implemented with php
> shouldn't benefit a potential attacker. You know what they say about
> secu
Hello,
Am I correct in my understanding that for a multi-select input, PHP requires
that the name attribute end with square brackets (i.e. http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyway, thanks for any more pointers,
-Dan
"Dan Phiffer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So I'm trying to implement a URL system like so:
>
> http://domain.org/issues/2003/feb/article-name/
>
> such that http://domain.org/issues/ind
So I'm trying to implement a URL system like so:
http://domain.org/issues/2003/feb/article-name/
such that http://domain.org/issues/index.php will display the requested
page. I've read a little about this
(http://www.alistapart.com/stories/succeed/) and have gotten it to work for
the most part, b
A client of mine wants me to increase the accuracy of the daylight savings
mechanism in his web application. It currently checks using the date()
function and the "I" switch. Is there anything out there that takes into
account the many special cases involved with daylight savings? I'm looking
for
46 matches
Mail list logo