Using PHP 4.3.2 I am trying to create an XML file that looks similar to the
following:
0
0
DL380
8th Floor
2
Customer
Upgrade
I get the following output:
Using the following code:
add_root("Server");
$root->set_attribute("Name", "pxtest01");
$el = $doc->create_element("Seria
I have created an XML, via php, and doing a dump_mem() everything looks as
expected. Now I need to have it write to a file. I have found the function
DOMDocument->save(); however, when used it appears that it is unknown. I
believe this may be deprecated or because I am using domxml_new_doc()
Being new to PHP this task seems to be little out of my reach right now. I
wonder if anyone could tell me how, as I read a file, line by line, search for
and then replace a given string?
The lines in the file will appear as such:
Summary: Some Summary
Name: Some-Name
Version: x.x
.
.
.
Basica
and require_once ... with the same result.
Help?
Thank you!
>= Original Message From Justin Patrin <[EMAIL PROTECTED]> =
>There's a PEAR package for just this. :-)
>http://pear.php.net/package/File_SearchReplace
>
>On Thu, 24 Jun 2004 12:58:08 -0400, Eric L. Sammons &
stable
>= Original Message From "Eric L. Sammons" <[EMAIL PROTECTED]> =
First let me thank you for pointing me to PEAR. Now for the problem. Here is
my code:
File exists.";
$snr = File_SearchReplace("server-
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message *
news:<[EMAIL PROTECTED]
>...
> On Tue, Nov 22, 2005 at 07:41:10PM +0100, Eric wrote:
> > I would like to have some assistance in debugging php. It's about a
> > bug in php not a script of mine.
-- Forwarded message --
From: eric van blokland <[EMAIL PROTECTED]>
Date: Nov 23, 2005 2:44 PM
Subject: Re: [PHP] Assistance debugging php 5.x.x
To: Jay Blanchard <[EMAIL PROTECTED]>
On 11/23/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
>
> [snip]
> I
I've got some example code on what I'm doing, however, as I expected, the
error is gone!
All involved objects were taken from the project, but not related code has
been stripped-off. (Which means that some of that "at code level not related
code" is in fact "related at compiler level". I still sus
Example is still quite large, all database functionality and other arbitrary
code has been stripped. Over 50.000 lines of code have been reduced to a few
hundred. Example can be downloaded here:
http://213.10.83.232/example.tar
Explanation of example:
- When you load index.php, the involved obje
1. That's what I've warned about from the beginning, that outside the
complete project environment the error probably wouldn't occur.
2. I understand this completely, naturally. I would like to thank everybody
spending time in reading my posts, particulary you, Jay. But that's why I
would like to g
the compiler, it sure would be
nice to know this particular DON'T about references.
Please let me know
On 11/23/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> Eric,
>
> everything you have written suggests to me that the problem is in your
> code
> (that may be being c
You could use the exif_imagetype() function
http://nl2.php.net/manual/en/function.exif-imagetype.php
them, but seriously, does PHP5 cares about
passing an object reference by reference (it's useless and overhead, ok, but
does it matter?)
Because the code originates from PHP4, I don't have __constructor functions
On 11/23/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
>
ROTECTED]> wrote:
>
>
>
> eric van blokland wrote:
> > 1. Overengineering perhaps...
> > 2. Reinventing the wheel? Probably, but I just like to know every single
> > "bit" of the wheel I use
>
> hmm, did you build your own PC? and the CPU did you b
Hello everyone,
I do not know how many PHP developers use GNU Emacs for writing code.
But I assume it must be a decent amount since there are multiple PHP
modes for Emacs floating around the Internet. For months I have
worked to improve one of those modes, what seemed to be the most
popular: htt
Hello everyone,
I have a question about the `parent` keyword: is there any valid
situation where it can appear without the `::` operator following?
I am asking to fix a bug in php-mode[1] for GNU Emacs. Consider the
following code:
echo $parent;
echo parent::$foo;
echo $this->paren
I greatly
appreciate any advice anyone on the list could provide.
THANKS!!!
--Eric
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Al: Thanks, sorry for messaging this to the list. Can you point me in
the direction of the official phpList forum?
Thanks a ton,
--Eric
Al wrote:
You'd be far better off asking your questions on the phpList forum.
There are a number of hints on the forum for speeding up things.
t the most expensive, but great support, and great
value of services that comes along with the registration.
Plus, its Pair! (No, I dont work for them, just a very happy customer).
--Eric
Warren Vail wrote:
Does anyone know the relationship between goDaddy.com and
WildWestDomains.com
1201 - 1219 of 1219 matches
Mail list logo