[PHP] OpenDocument .odt to .xhtml Parser

2005-12-04 Thread Sadda Teh
With the release of OpenOffice.org 2 came the ability to export .odt to .xhtml. As most probably know, the OOo .odt native file format is basically gzipped XML. Also OOo comes with .xsl files which are used to transform the .odt file to .xhtml files when they are exported. Does anyone know of any

[PHP] Performance question

2005-12-04 Thread Anders Norrbring
I've been spending some time to find performance pros and cons, but so far haven't had any real luck. Can someone on this list say which is better than the other, and also why, when it comes to these kinds of syntax: 1. php code ?> $variable"; echo "$var2"; more php code In both cases, s

[PHP] using curl to peform post

2005-12-04 Thread Brent Clark
Hi all I have need to simulate the role of a web browser by submitting the following code. GREENc Heres my PHP code that got from the curl function. Any assistant would gratefully be appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: PDF Generator

2005-12-04 Thread Anas Mughal
I used this in the past: http://www.ros.co.nz/pdf/ Fully self-contained. My only frustration was that didn't support multiple tables on one row. Maybe I was asking too much... ;) On 12/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Why not use JavaScript? It's supported well in Acroba

Re: [PHP] Re: Exception

2005-12-04 Thread Anas Mughal
I don't know about PHP, however, in other languages, exception throwing and catching is expensive. As Curt put it, exception handling should be reserved for truly exceptional cases: - DB connection failure - SOA connectivity failure General errors like the user not completing a form, should be ha

Re: [PHP] Could you help me to solve this problem?

2005-12-04 Thread Stephen Johnson
When you upload you also need to change the permissions on the file that you uploaded. chmod("/somedir/somefile", 0755) More info : http://us3.php.net/chmod On 12/4/05 6:35 PM, "CHEN RAN" <[EMAIL PROTECTED]> wrote: > hi, > > After uploading file to web server with php upload script in > http:

[PHP] Could you help me to solve this problem?

2005-12-04 Thread CHEN RAN
hi, After uploading file to web server with php upload script in http://us3.php.net/features.file-upload, I can't access the file with web browser. I get error message as "403 Forbidden" or "You are not authorized to view this page". However, there is no such problem when i using FTP to uploa

RE: [PHP] Re: PDF Generator

2005-12-04 Thread [EMAIL PROTECTED]
Why not use JavaScript? It's supported well in Acrobat Professional. Jud. Original Message: - From: Dan Harrington [EMAIL PROTECTED] Date: Sun, 4 Dec 2005 09:12:51 -0700 To: php-general@lists.php.net Subject: [PHP] Re: PDF Generator I have a TON of forms that I have to popu

Re: [PHP] How would you write this?

2005-12-04 Thread Michael B Allen
On Sun, 4 Dec 2005 11:44:12 -0800 Curt Zirzow <[EMAIL PROTECTED]> wrote: > > .errored { > color: #FF; > } > > $set_class = array(0 => '', 1 => 'errored'); > define('SET_USERNAME', 0x01); > define('SET_PASSWORD', 0x02); > define('SET_ALL', SET_USERNAME & SET_PASSW

Re: [PHP] why php not running ?

2005-12-04 Thread Mehmet Fatih AKBULUT
hi Curt. for the first question : yes i always do the things below: #portupgrade -arR and #cvsup -g -L 2 /etc/por... i mean yes my ports up to date. and for the second : [EMAIL PROTECTED] php -v Segmentation fault (core dumped) [EMAIL PROTECTED] php-config --version 5.0.5 [EMAIL PROTECTED] dont

Re: [PHP] Count and Preg_Replace Using Version 4.4.1

2005-12-04 Thread Shaun
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, Dec 04, 2005 at 07:00:00PM -, Shaun wrote: >> >> "comex" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > form'.$count.'... >> You can use preg_replace_callback or the e pattern modifier to

Re: [PHP] why php not running ?

2005-12-04 Thread Curt Zirzow
On Fri, Dec 02, 2005 at 11:53:13AM +0200, Mehmet Fatih AKBULUT wrote: > hi all. > i installed php5_extensions on my system (Freebsd5.4) > please look the lines below and tell me where i am doing something wrong. > > [EMAIL PROTECTED] -> [~]#php /*hit the tab*/ > php php-config phpize > [E

Re: [PHP] Sessions, Expire-headers and Firefox's back button

2005-12-04 Thread Curt Zirzow
On Fri, Dec 02, 2005 at 07:21:43PM -0500, Chris Shiflett wrote: > Hi Peter, > > >When I begin session with session_start() PHP sets an Expired-header. > >I suppose that's fine for the sake of unwanted caching. > > > >Unfortunately, Firefox seem to reload a page that's expired when using > >the bro

Re: [PHP] Mail SMTP settings

2005-12-04 Thread Curt Zirzow
On Sat, Dec 03, 2005 at 10:17:59PM -0700, Dan wrote: > Yes that does work but the return path and my mail headers still show > the main domain. My point is that PHP should be acessing my SMTP > server specified but it is using the default local host instead. If you note at php.net/mail that t

Re: [PHP] How would you write this?

2005-12-04 Thread Curt Zirzow
On Sat, Dec 03, 2005 at 10:00:14PM -0500, Michael B Allen wrote: > The following code works but I'm a little new to PHP and I'd like to > know if there are better ways to achive the same thing. > > In the below form example, if the user supplies one or more fields but > not all that are required,

Re: [PHP] Count and Preg_Replace Using Version 4.4.1

2005-12-04 Thread Curt Zirzow
On Sun, Dec 04, 2005 at 07:00:00PM -, Shaun wrote: > > "comex" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > form'.$count.'... > You can use preg_replace_callback or the e pattern modifier to let you > run php code for the replacement: > http://us3.php.net/manual/en/functi

[PHP] Re: Exception

2005-12-04 Thread Christian Herrnbock
mr php wrote: > Hello > Is it good to use exception handling for error handling or I should use > only for exceptions? > For example: > Is it good to throwing user input errors with throw new Exception(). > Thanks Hello, I would also go by keeping them separate; it helps both in logic-flow, and

Re: [PHP] Exception

2005-12-04 Thread Curt Zirzow
On Sun, Dec 04, 2005 at 08:07:48PM +0330, mr php wrote: > Hello > Is it good to use exception handling for error handling or I should use only > for exceptions? > For example: > Is it good to throwing user input errors with throw new Exception(). I'm not sure if I understand how you mean by this b

Re: [PHP] Exception

2005-12-04 Thread Anas Mughal
I would recommend keeping error handling and exceptions separate. On 12/4/05, mr php <[EMAIL PROTECTED]> wrote: > > Hello > Is it good to use exception handling for error handling or I should use > only > for exceptions? > For example: > Is it good to throwing user input errors with throw new E

[PHP] Problem with pdf_show_boxed()

2005-12-04 Thread 張 峰銘
Hello, Sir: I just installed PHP with pdflib : PHP-4.4.1 pdflib PDFlib GmbH Version 6.0.2 pdflib PECL Version 2.0.3 apache 1.3.34 in Liunx FC1. --

[PHP] Exception

2005-12-04 Thread mr php
Hello Is it good to use exception handling for error handling or I should use only for exceptions? For example: Is it good to throwing user input errors with throw new Exception(). Thanks

[PHP] test

2005-12-04 Thread mr php
test

[PHP] Re: PDF Generator

2005-12-04 Thread Dan Harrington
I have a TON of forms that I have to populate, can I make a PDF file using Acrobat Professional, and then use PHP to populate those forms and have text inserted into the pre-made text fields that I made using Acrobat? And if so, what is the best tool for that? I'd prefer to do it for free, but s

Re: [PHP] Count and Preg_Replace Using Version 4.4.1

2005-12-04 Thread comex
> form'.$count.'... You can use preg_replace_callback or the e pattern modifier to let you run php code for the replacement: http://us3.php.net/manual/en/function.preg-replace-callback.php http://us3.php.net/manual/en/reference.pcre.pattern.modifiers.php -- PHP General Mailing List (http://www.php

Re: [PHP] need session_start() to recall session data.

2005-12-04 Thread M
Matt Monaco wrote: Yes, I actually changed the destructors to handle the session as you indicated a few minutes after I posted, however I still have no clue as to why I would need to do a session_start() to get data from the session. How else would php know you want session started? You can tu

[PHP] Re: PDF Generator

2005-12-04 Thread Norbert Wenzel
Rick Lim wrote: What is the best FREE pdf generator for PHP? i used FPDF without any problems. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Wanted: php-volunteer

2005-12-04 Thread Rincewind
Hi there For the further automation of our site, Cutting Edge (cuttingedge.be) is looking for a php-volunteer to aid our php-master. On Cutting Edge our voluntary crew of some 50 people explore popular culture in every way possible. The site reaches up to 1500 unique visitors daily. If you're i