Thanks for your answer!
Terje Slettebà wrote:
>>From: "Vivian Steller" <[EMAIL PROTECTED]>
>
>> i've a general question concerning PHP's architecture.
>>
>> Why isn't there a native packaging concept in PHP?
>
> This was also s
Hello,
i've a general question concerning PHP's architecture.
Why isn't there a native packaging concept in PHP?
I think php became much more powerfull with the extended OOP features
introduced in PHP5 - without a packaging concept you couldn't use these
features "in big business" (in terms of sh
hello,
once again a post about the tricky namespaces. I played with the following
functions concerning namespaces:
domdocument->createElementNS
domdocument->createAttributeNS
domelement->setAttributeNS
domelement->getAttributeNS
(domelement->hasAttributeNS)
as i found out the behavior of some fu
Hello,
i know that this post should better been sent to bugs.php but making my
first experiences on segmentation faults i can't identify the right causes
to report it... have a look and help me getting right informations to post
the bug so that it can be solved.
Error type:
'''
error_log
hi again,
i forgot adding the attributes, sorry :)
here it is...
>> I need manipulate the nodes (add and remove) .
>> example
>> I need add more one node
>> > subnet="24"/>
>
> // create a new node
> $newInterfaceNode = $doc->createElement("interface");
> // append this n
Carlos wrote:
> hello ... I'm working with simplexml (php5) to manipulate the data in
> xml file, but I'm having one problem.
i'm not familiar with simplexml but with the dom functions and i think (as
simplexml is based on dom) the simplexml objects will work with dom objects
as well?!
otherwise
hello again,
once again a question about class properties, this time more reasonable...
Is there a possibility to check wether a static variable is set or not?
will not show $var, cause it's static.
an expression like
if(MyClass::$somevar) {...}
ends up to a fatal error because $som
Jakes wrote:
> The word private says it all - If you create a object,
> you are not going to be able to use it, because its
> private to that class. Its a class variable, not a object variable
>
oh, yeah - your right of course... taking a look at get_object_vars($obj)
output doesn't show private
Hello,
is it possible to check if a variable declared as "private"?
I do not want to use reflection api in this case...
best regards,
vivi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
in the latest snapshot i found some very important differences to the php5
beta 4 version concerning the behavior of inherited classes. please look at
the following example:
the output is:
Fatal error: Declaration of MyClass::test() must be compatible with that of
MyParent::test() in
Walter A. Boring IV wrote:
> I say keep compatibility. If you want to enforce this, then declare an
> interface. That is after all why they exist.
>
> Walt
...
Would be nice if you could give a simple example - i really have problems
working with interfaces :(
My problem was to design a files
Ben Ramsey wrote:
>> using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
>> methods like:
>>
>
> Where did you see these classes? Is it a PEAR package? I haven't seen
> these in the PHP manual.
>
You can find them using the following function:
function printDeclaredCla
Hello,
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
methods like:
__construct
rewind
hasMore
key
current
next
getPath
getFilename
getPathname
getPerms
getInode
...
but i don't kno
Rob Richards wrote:
> From: Christian Stocker
>
>> > $node->setAttributeNS("http://www.w3.org/2000/xmlns/";, "xmlns:b",
>> > "http://www.somedomain.de/";);
>> >
>
>> IMHO, that would be very confusing.
>>
>> I liked the idea by vivian with a third optional namespaceURI argument
>> for the elemen
Hello,
checking out the behavior of Namespaces & Prefixes of the new dom
implementation of PHP5 I got some (for me!) unexpected results.
look at the following source code: (plz copy&paste it to your editor ;)
loadXML($xmlCode);
$root = $doc->documentElement;
print
Turbo wrote:
> Hi
>
> I cann't call Global vars or Environment var on Class.How to's i do to
> call it?
> I want to call variable same below.
>
> var $location
> ="http://".$HTTP_SERVER_VARS['HTTP_HOST'].$_SERVER['REQUEST_URI']."?"
$HTTP_SERVER_VARS['QUERY_STRING'];
>
>
> Thank you.
> Turb
Christian Stocker wrote:
> ...
> Vivian, it's not possible the set the namespace according to the W3C
> standard, except with createElementNS(). As Adam said, in PHP 4, there
> was the option set_namespace, which isn't ported to PHP5 (yet).
>
> Maybe we should port that function as well, to allow
Hello,
the following code shows my problem:
appendChild($node);
$node->setAttribute("xmlns", "http://www.somedomain.de/";);
print("Namespace: '" . $node->namespaceURI . "'");
$xmlCode = $doc->saveXML();
print("" . htmlspecialchars($xmlCode) . "");
Jan Lehnardt wrote:
> [...]
> * Constants.
>
> The Zend Engine 2.0 introduces per-class constants.
>
> Example:
>
> class Foo {
> const constant = 'constant';
> }
>
> echo 'Foo::constant = ' . Foo::constant . "\n";
> ?>
>
> Old code that has no user-defined classes or functions
> named 'cons
hello,
talking about php5, i'm missing "read-only" attributes/variables for
classes/objects. i.e. this would be very useful for implementing the new
DOM Level 3 Interfaces as given in http://www.w3.org/TR/2003
CR-DOM-Level-3-Core-20031107/idl-definitions.html .
And I don't think of any reason for
Hi,
i've just another problem concerning classes, inheritance and the '::'
Syntax. Take a look at the following example code:
__arr("test");
}
public function __arr($var) {
array_push($this->__arr, $var);
}
John W. Holmes wrote:
> From: "Vivian Steller" <[EMAIL PROTECTED]>
>
>> Vivian Steller wrote:
>>
...
>>
>> > class MyClass {
>> function __call($method, $params) {
>> // $params = Array
Vivian Steller wrote:
...
> class MyClass {
>function __call($method, $params) {
> // $params = Array(mixed var, mixed var, ...);
> print("request for " . $method . "()\n");
>
> // how to get objects in this stri
Vivian Steller wrote:
> Hello,
>
> as you know there is a new callback function __call($method, $params) in
> php5. the __call() method of an object is called, if the method named
> $method is not declared in this class.
>
> i want this function simply call the method
Hello,
as you know there is a new callback function __call($method, $params) in
php5. the __call() method of an object is called, if the method named
$method is not declared in this class.
i want this function simply call the method of another class with
"SomeClass::$method(...)" but i'm getting
hi at all,
i've a very strange problem but i don't know if this a real bug or only my
imcompetence?!
it is a problem with class variables set by __constructor() function in
PHP5...
look at this code:
__arr = Array(); // uncomment this line for testing
$this->__setVar("value set ins
Hello at all,
ok my problem in a nutshell: i need multiple inheritance! is there a
solution to fake this functionallity in php5?
i have the following problem:
the goal is to implement my own DomXML implementation based on the existing
DomNode, DomDocument, Dom... Classes.
thus, i implement my cla
27 matches
Mail list logo