php-general Digest 19 Sep 2006 17:55:58 -0000 Issue 4356

2006-09-19 Thread php-general-digest-help
php-general Digest 19 Sep 2006 17:55:58 - Issue 4356 Topics (messages 241926 through 241949): Re: How to parse raw mail headers and messages? 241926 by: Manuel Lemos Re: symlink 241927 by: Chris PDF. 241928 by: João Cândido de Souza Neto 241929 by: Ray

[PHP] PDF.

2006-09-19 Thread Jo�o C�ndido de Souza Neto
Hi everyone. I´m using the fpdf class to create pdf files report and it works fine. Now i need to get a standard pdf and put some data into for complete data. There´s some way to get an existent pdf file and put data into? Thanks a lot. -- João Cândido de Souza Neto Curitiba Online [EMAIL

Re: [PHP] PDF.

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 08:21, João Cândido de Souza Neto wrote: Hi everyone. I�m using the fpdf class to create pdf files report and it works fine. Now i need to get a standard pdf and put some data into for complete data. There�s some way to get an existent pdf file and put data into?

Re: [PHP] PDF.

2006-09-19 Thread Jo�o C�ndido de Souza Neto
Ok, I´ll take a look at this. Thanks a lot. Ray Hauge [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] On Tuesday 19 September 2006 08:21, João Cândido de Souza Neto wrote: Hi everyone. Im using the fpdf class to create pdf files report and it works fine. Now i need to get a

Re: [PHP] Frustrated trying to get help from your site

2006-09-19 Thread Kae Verens
Richard Lynch wrote: In brief, to explain a snapshot in layman's terms: that's probably a bad idea. anyone that doesn't know what a snapshot is, probably shouldn't need to know - they are most likely working in a package-based environment (either Windows, or an RPM-based Linux), where it

[PHP] Re: My apologies

2006-09-19 Thread Kae Verens
Howard, Tim wrote: documentation on your site. When I find the solution to my problem, I will be sure to add comments to the appropriate page so that you will not have to endure the ranting of frustrated programmers. of course, you still haven't explained what the problem is, that you are

Re: [PHP] Reverse of date(w)

2006-09-19 Thread Kevin Murphy
Kevin Murphy wrote: Not really. If it were always today that would work, but in this case, I was thinking of storing a day of the week in a database (3), and then display the info based on that digit. So assuming that the number was in fact 3, then: echo date(D,3); Would return Wed. Is there

[PHP] FTP Copy

2006-09-19 Thread Matt Palermo
I've been looking on php.net, but can't find anything that covers this... Basically, I am using PHP FTP to connect to an FTP server and run some functions. I want to copy a directory on the FTP server to another directory on the FTP server. Since there isn't an ftp_copy() function, I have to

[PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
Hello everyone, This is a tad off-topic, but I'm at my wits end. I'm working on a loan calculator for our load advisors to give an estimated monthly payment. We had one, but it was really bad (gave horribly wrong information) and I've had to re-write it. The particular question about this

RE: [PHP] Long Shot Question

2006-09-19 Thread Jay Blanchard
[snip] This seems like a somewhat standard calculation for loans and interest bearing accounts. Does anyone know how to calculate the graduation factor? I've been able to figure out it's based off the loan term, loan balance, and initial interest rate. [/snip] It is called amortization ... --

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 10:20, Jay Blanchard wrote: [snip] This seems like a somewhat standard calculation for loans and interest bearing accounts. Does anyone know how to calculate the graduation factor? I've been able to figure out it's based off the loan term, loan balance, and

RE: [PHP] Long Shot Question

2006-09-19 Thread Jay Blanchard
[snip] [snip] This seems like a somewhat standard calculation for loans and interest bearing accounts. Does anyone know how to calculate the graduation factor? I've been able to figure out it's based off the loan term, loan balance, and initial interest rate.

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 10:25, Jay Blanchard wrote: [snip] [snip] This seems like a somewhat standard calculation for loans and interest bearing accounts. Does anyone know how to calculate the graduation factor? I've been able to figure out it's based off the

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 10:34, Ray Hauge wrote: http://en.wikipedia.org/wiki/Amortization_%28business%29 Actually, Im not so sure that's what I was looking for. These loans are student loans, which differ slightly from mortgage loans. Usually the market determines the adjustment in an

Re: [PHP] Long Shot Question

2006-09-19 Thread Ray Hauge
On Tuesday 19 September 2006 10:38, Ray Hauge wrote: On Tuesday 19 September 2006 10:34, Ray Hauge wrote: http://en.wikipedia.org/wiki/Amortization_%28business%29 Actually, Im not so sure that's what I was looking for. These loans are student loans, which differ slightly from mortgage

[PHP] chown(), chgrp()

2006-09-19 Thread Rahul S. Johari
Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something like is_writeable() ... Except that you¹re trying to find out if you can change the Owner or Group of a file. Rahul S. Johari Supervisor, Internet Administration Informed Marketing Services Inc. 500 Federal Street, Suite

Re: [PHP] chown(), chgrp()

2006-09-19 Thread John Nichel
Rahul S. Johari wrote: Is there a way to find out if a file can be chown¹d or chgrp¹d ? Something like is_writeable() ... Except that you¹re trying to find out if you can change the Owner or Group of a file. Who will say it first? http://www.php.net/manual/en/function.fileowner.php -- John

[PHP] Re: FTP Copy

2006-09-19 Thread Tom Atkinson
ftp_rename() should be able do that Matt Palermo wrote: I've been looking on php.net, but can't find anything that covers this... Basically, I am using PHP FTP to connect to an FTP server and run some functions. I want to copy a directory on the FTP server to another directory on the FTP

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Rahul S. Johari
Here's the interesting things. I did exactly that to begin with... And I never got the file can't be chmoded! ... Instead, I actually got the Mode changed to notification that I had set in the else { case. However... The mode of the file never changed! Even though !chmod didn't say that mode

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Steve Edberg
At 11:01 AM -0400 9/19/06, Rahul S. Johari wrote: Is there a way to find out if a file can be chown'd or chgrp'd ? Something like is_writeable() ... Except that you're trying to find out if you can change the Owner or Group of a file. fileperms() perhaps?

[PHP] Re: Long Shot Question

2006-09-19 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/amortise.html which documents the loan amortisation program which I wrote in PHP. You can run it online and even download the source code to run it locally. -- Tony Marston http://www.tonymarston.net http://www.radicore.org Ray Hauge [EMAIL

[PHP] Resource problem affecting Curl functions

2006-09-19 Thread Mark Krenz
I run a shared webserver with a few hundred vhost containers in Apache's config. Recently I got to a point where I added enough vhosts to cause a problem with curl functions in PHP. Basically, when PHP tries to make the curl call to get the webpage, it just hangs the HTTP request to my

Re: [PHP] Frustrated trying to get help from your site

2006-09-19 Thread Jürgen Wind
Jon Anderson wrote: Jay Blanchard wrote: So let me send a rant to other users, in fact a general list of users, because I cannot read. If I could I would know that I subscribed to a list where questions are asked to other users rather than me trying to send an e-mail to the president of

[PHP] Magic method __set won't be called for protected variables

2006-09-19 Thread Satyam
I have a series of properties set as protected in my class which I meant to have them accessed externally through __set and __get. Unfortunately, it seems that since the properties do exist, the magic methods don't get called, but then I get an error Cannot access protected property x,

[PHP] DOM: Problem with loadXML(), createProcessingInstruction()

2006-09-19 Thread Chris Boget
Apparently, loadXML() overwrites the existing structure of the document when called. The problem is that when I try to add a PI (namely a stylesheet), it adds it to the end of the document thus making so that the XML is not transformed by the client. To get around this, I thought I could

[PHP] [Solved] Re: [PHP] DOM: Problem with loadXML(), createProcessingInstruction()

2006-09-19 Thread Chris Boget
Has anyone found a workaround for this; a workaround the fact that loadXML() completely replaces the existing document structure? It's amazing what you find out after you've already made yourself look foolish. $xmlStr = 'rootchild_elementblah/child_element/root'; $doc = new DOMDocument(

Re: [PHP] how to get page count when uploading files

2006-09-19 Thread Richard Lynch
On Mon, September 18, 2006 3:18 pm, Børge Holen wrote: Would php at all take precaution of the px size of the letters, if any of the above issues were to be resolved? That would be at document level for starters, and probably should be resolved in the first place? The RTF parser may or may

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Rahul S. Johari
Ok, my code follows. Basically I'm printing ... my Owner/Group, the existing Owner/Group of the file, the Owner/Group of the file After trying to change it. The most interesting thing is... I get absolutely no errors, no warnings, and everything prints out as if everything worked... Except that

Re: [PHP] how to get page count when uploading files

2006-09-19 Thread Børge Holen
On Tuesday 19 September 2006 18:22, Richard Lynch wrote: On Mon, September 18, 2006 3:18 pm, Børge Holen wrote: Would php at all take precaution of the px size of the letters, if any of the above issues were to be resolved? That would be at document level for starters, and probably should

Re: [PHP] FTP Copy

2006-09-19 Thread Chris
Matt Palermo wrote: I've been looking on php.net, but can't find anything that covers this... Basically, I am using PHP FTP to connect to an FTP server and run some functions. I want to copy a directory on the FTP server to another directory on the FTP server. Since there isn't an ftp_copy()

[PHP] preg_replace (again)

2006-09-19 Thread Peter Lauri
Hi group, I know I am a little bit stupid when it comes to actually figuring out how to use the preg_match and preg_replace. This is what I am facing: A string like this: This is some _color:pink_ colored text _color_ that I want to transfer Should convert to: This is some font

Re: [PHP] chown(), chgrp()

2006-09-19 Thread Børge Holen
On Tuesday 19 September 2006 22:22, Rahul S. Johari wrote: Ok, my code follows. Basically I'm printing ... my Owner/Group, the existing Owner/Group of the file, the Owner/Group of the file After trying to change it. Does apache have write access to write to yer file, that goes for either o+r

RE: [PHP] preg_replace (again) [solved]

2006-09-19 Thread Peter Lauri
Just to share my solution: preg_replace('/_color:(.*?)_(.*?)_color_/i', 'font color=$1$2/font', $html); /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 9:42 AM To: 'PHP General' Subject: [PHP] preg_replace (again) Hi group,

[PHP] Latest PHP distribution?

2006-09-19 Thread Willem Herbst
I have PHP 4.4 installed running on a Open SUSE 10 box, can someone please tell me where I find the latest version for OPEN SUSE? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Latest PHP distribution?

2006-09-19 Thread Chris
Willem Herbst wrote: I have PHP 4.4 installed running on a Open SUSE 10 box, can someone please tell me where I find the latest version for OPEN SUSE? http://www.php.net/ Or do you mean rpms (or whatever opensuse uses)? STW? Better off asking your opensuse mailing list, php.net doesn't build