php-general Digest 1 Sep 2006 13:56:00 -0000 Issue 4324

Topics (messages 241305 through 241318):

Working with an existing PDF doc
        241305 by: tedd
        241312 by: Frank Arensmeier

Re: Free Shopping Carts
        241306 by: tedd
        241315 by: Mourad Boulahboub

Extream OT
        241307 by: Peter Lauri
        241309 by: Chris
        241310 by: Paul Scott

Re: Error Handling Library?
        241308 by: Martin Alterisio
        241314 by: Tony Marston

LAMP Experts Needed
        241311 by: Jack Gates

Re: remove SimpleXML nodes
        241313 by: Javier Ruiz

Functions vs html outpuit
        241316 by: Dave Goodchild

Re: what's all the about then?
        241317 by: tedd

live chat support
        241318 by: blackwater dev

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Hi gang:

I can create a pdf document "on-the-fly" pretty easily, as shown here:

http://xn--ovg.com/pdf

However, what I need is to find out how to open an existing pdf document and insert data into it -- does anyone have any experience in doing this, or references they can point me to?

As always, mondo thanks for those who reply.

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message --- You seem to use FPDF. Although I never tried working with FPDF, you might take a look at http://fpdi.setasign.de/ which is a class that extends FPDF.

If you are looking for a library with support for all PDF features, maybe PDFlib (http://www.pdflib.com) is the one for you (sure, PDFlib/ PDI costs some money. But if you are looking for a lib that has support for everything that the PDF format has to offer, PDFlib is definitely the lib you want to use.).

/frank

1 sep 2006 kl. 02.42 skrev tedd:

Hi gang:

I can create a pdf document "on-the-fly" pretty easily, as shown here:

http://xn--ovg.com/pdf

However, what I need is to find out how to open an existing pdf document and insert data into it -- does anyone have any experience in doing this, or references they can point me to?

As always, mondo thanks for those who reply.

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
At 5:12 PM -0400 8/31/06, John Nichel wrote:
Jay Blanchard wrote:
Can we do anything else for you today?


I'm a php programmer and I have a valve knocking in the engine of my car. Can you fix it?


RTFOM   O= Owner's  :-)

Valves don't knock -- they click.

What commonly knocks are the connecting-rod bearings.

This reminds me of a joke -- where a man tells a mechanic "My water-pump don't pump, my spark-plugs don't spark and my pistons... well, they don't work either."

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
John Nichel schrieb am 31.08.2006 23:12:
> Jay Blanchard wrote:
>> Can we do anything else for you today?
>>
> 
> I'm a php programmer and I have a valve knocking in the engine of my 
> car.  Can you fix it?
> 

lol

--- End Message ---
--- Begin Message ---
HI,

 

This is very Off Topic, but I have no clue where to go to find out this
information fast enough.

 

I have a client that just changed their mind and want me to host their web
services. However, they have their current hosting setup on a Windows NT
server. Now the question comes: How the heck can I move the mail boxes from
the Windows NT server to my Plesk Linux server? Basically I just want to
know if it is possible, because then I can give them a go, find out the
information after that is easy maybe, or I will hire someone :-)

 

Thanks if someone have a clue about this.

 

/Peter

 

 

 


--- End Message ---
--- Begin Message ---
Peter Lauri wrote:
HI,

This is very Off Topic, but I have no clue where to go to find out this
information fast enough.

I have a client that just changed their mind and want me to host their web
services. However, they have their current hosting setup on a Windows NT
server. Now the question comes: How the heck can I move the mail boxes from
the Windows NT server to my Plesk Linux server? Basically I just want to
know if it is possible, because then I can give them a go, find out the
information after that is easy maybe, or I will hire someone :-)

Of course it's possible. Linux mail servers allow mailboxes, depending on which mta you are using it's different.

No idea what plesk uses.

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
On Fri, 2006-09-01 at 13:05 +1000, Chris wrote:
> Of course it's possible. Linux mail servers allow mailboxes, depending 
> on which mta you are using it's different.
> 
> No idea what plesk uses.
> 

A pretty safe bet is to export your mail as MBOX, this can be done via a
PHP or perl script, and then move them across. Almost every known MTA
can use MBOX format, even the crummy ones. If it is on a production
linux box, the MTA is probably going to be either Exim, Postfix or
Sendmail (maybe) and all of them can work with mbox without issues.

If you do get a PHP "anyMail2mbox" script going, please let me know, as
I was actually thinking about doing something similar the other day, as
I was thinking of dumping both Mbox and mailman tgz archives into our
forum and writing an import for that as well as being able to export
archives and forum posts as Mbox for new developers to look at offline,
without downloading the mail archives.

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

--- End Message ---
--- Begin Message ---
I'm curious, what features are you looking for in an error handling library?

2006/8/31, Jay Paulson <[EMAIL PROTECTED]>:

I've been doing some research and was wondering if anyone out there has
written a library for error handling?  I haven't found anything as of yet
but would love to hear suggestions!

Thanks!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
Take a look at http://www.tonymarston.net/php-mysql/errorhandler.html

-- 
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

"Jay Paulson" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> I've been doing some research and was wondering if anyone out there has
> written a library for error handling?  I haven't found anything as of yet
> but would love to hear suggestions!
>
> Thanks! 

--- End Message ---
--- Begin Message ---
I am looking for some serious coders that want to make a name for 
themselves and/or a lot of money.

I need to talk to any one who is considered an Expert with any of 
these:

Linux
Apache
MySQL or PostgreSQL
PHP, Perl, Python
HTML
CSS
XML
XSL

I am going to convince my employer to replace a very expensive package 
that they are using right now.  This project will take several months 
to complete and then will be on going with a monthly maintenance and 
service.

If you have any interest at all and want to know the details contact 
me.  Send what you can and will do for this project to me at 
[EMAIL PROTECTED]  It is going to be a web interface interacting 
with a very large database.

-- 
Jack Gates http://www.morningstarcom.net

--- End Message ---
--- Begin Message ---
Thanks a lot to all :)

Using DOM I can do what I need. Anyway I was trying the proposed solutions
with SimpleXML but none of them worked for me :(

I tried splitting $key and $value in the foreach command, but when I dump
the xml (with the asXML function) I still have the nodes that I supposed to
delete... And the same using references, cause I think using unset with
referenced variable names doesn't delete the referenced var, it just deletes
the link to the referenced var...

Concretely I tried:

TEST ONE:
foreach ($xmlDatabase as $key => $oneTable) if ($oneTable['name'] == 'one')
unset($xmlDatabase[$key]);
$sourceXML = $xmlDatabase->asXML(); // <----- node <table name='one'> is
still there

TEST TWO
foreach ($xmlDatabase as $key => &$oneTable) if ($oneTable['name'] == 'one')
unset($oneTable);
$sourceXML = $xmlDatabase->asXML(); // <----- node <table name='one'> is
still there


If there's no luck with xml I will use of course DOM for this, but I'm
really curious now :P
Again, thanks a lot for the help.

Javi Ruiz.

On 9/1/06, Curt Zirzow <[EMAIL PROTECTED]> wrote:
On 8/31/06, Adam Zey <[EMAIL PROTECTED]> wrote:
Javier Ruiz wrote:
> Hi all,
>
> So I want to do...
>
> $xmlDatabase = new SimpleXMLElement($myXML);
> foreach ($xmlDatabase as $oneTable)
> {
>   if ($oneTable['name'] == 'two')
>   {
>      ///  ---- HERE I WANT TO DELETE THE $oneTable NODE
>      unset($oneTable);   // <-- and this doesn't work...
>   }
> }
>
>
> any ideas?
>

The answer is simple, everybody else seems to have missed it. foreach()
makes a copy of the array before working on it. Changes made to
$oneTable would obviously never affect the original. You're just
unsetting a temporary variable that's going to be overwritten next time
through the loop anyhow.

You should have better luck with this code:

$xmlDatabase = new SimpleXMLElement($myXML);
foreach ($xmlDatabase as $key => $oneTable)

fwiw, In php5 you can do something like:

foreach ($xmlDatabase as $key => &$oneTable)
                //note the & ------------------^^^^
 unset($oneTable);

--- End Message ---
--- Begin Message ---
Hi all, this may seem like a silly question, but I am creating a library of
html form element generation function, for example a textarea fucntion that
takes rows and cols as parameters, a function that generates a day, month
and year select box, etc. My question is - is it significantly to switch off
the parser and emit raw html than calling a function? If it is faster to
just allow the server to send the html I will not bother.

--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk

--- End Message ---
--- Begin Message ---
tedd schrieb:
At 4:34 PM +0200 8/30/06, Jochem Maas wrote:
tedd wrote:
 At 2:19 PM +0200 8/30/06, Paul Scott wrote:
Read up on MVC (Model View Controller) and the front end controller
 design pattern.
 Interesting that someone finally put a name to something we've been
 doing for decades. We used to just call it input, process, and display,
 which to me seems simpler. In addition, if one used IPD, it's acronym
 would at least be in the right order.
seems whenever I write something that resembles a FrontController I end up
with a process() and a display() method ... small world.
No, it's just that these organizational problems have been around since the days of rock programming -- that's what "Design Patterns" are, namely trying to identify, organize, and reuse code. That's something else we've been doing for decades that has a brand new name.
Design patterns arn't new at all! In fact the big book of Design Patterns is was written twelve years ago!

Well, 12 years ago is new to me and there are new books being published today. And, what I said above about "Design Patterns", is what you said below.

see: http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29

There's a surprisingly number of old techniques that have been given a new coat of paint and sold as the latest model. The key is to recognize them, perhaps I should coin a new name for that, maybe "Concept Evolution", "Process Inheritance", or "Legacy Identification" -- but, to really get it accepted, it has to be complicated enough to impress. :-)
Thats what Design Patterns are about. Describe abstract solutions for object-oriented problems which dozens of programmers had already to solve and present them in a way each programmer understands and give them a name which everyone can understand. Its not to impress people with complicated ideas but to simplify the communication between programmers and give them hints how a problem could be solved.

No, you missed my point -- many books written to simplify, don't. That's the reason some books are better than others for different audiences. Some books appear to have been written to impress peers rather than to teach. If you think different, that's OK, but that doesn't make my statement less true.

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Does anyone have any recommendations on some good live chat support apps?
These are the ones where someone can go to your site, click a button and
open a chat window with a customer service person.  I'm particularly
interested in ones where we handled the server and everything.

Thanks!

--- End Message ---

Reply via email to