[PHP] Mail SMTP settings

2005-12-02 Thread Dan
I have a PHP 4.x install on an Apache server. I have a PHP application and a call to the mail function. I have 2 static IP's on the server and I have one web server and one instance of postfix for each IP to basically separate the two sites. The only issue I have right now is sending mai

Re: [PHP] Newline character problem...

2005-12-02 Thread ?ukasz Hejnak
Robert napisal(a): I'm new to PHP but not programming in general. I have used C++ for a while and I'm familiar with the newline character as it's basically the same in PHP. This is the most basic of examples: print 'one' ; print "\n" ; print 'two' ; The output of this when accessed on my server

[PHP] Newline character problem...

2005-12-02 Thread Robert
I'm new to PHP but not programming in general. I have used C++ for a while and I'm familiar with the newline character as it's basically the same in PHP. Whenever I print something with a newline character in it all it produces is a space between whatever two things I'm printing. I'm running php 5.

[PHP] Simple Authentication Infrastructure

2005-12-02 Thread Michael B Allen
Hi, I scoping out an Internet site project and my primary consideration at the moment is authentication infrastructure. Conceptually I was thinking about something like the pseudocode at the bottom of this message (pardon all the Java-esc typing). Can PHP do this sort of thing? I'm wonderin

RE: [PHP] Upgrading on RH ES3

2005-12-02 Thread Rick Emery
Quoting Jeff McKeon <[EMAIL PROTECTED]>: -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 14:50 To: Jeff McKeon Cc: php Subject: Re: [PHP] Upgrading on RH ES3 Jeff McKeon wrote: >I've got a server with RedHat ES3 running. It has PH

Re: [PHP] Zend Sudio's Optimizer / PHP 5.1.1

2005-12-02 Thread Rick Emery
Quoting Joseph Crawford <[EMAIL PROTECTED]>: i keep getting an error that zend optimizer doesnt work with this version of PHP, can anyone explain why that would be? From Zend's web site: "Supported PHP versions: 4.0.5 up through 5.0.x." http://www.zend.com/store/products/optimizer-sysreq.php

Re: [PHP] Why do Sessions use Cookies?

2005-12-02 Thread Chris Shiflett
Michael B Allen wrote: Why do sessions use cookies? The client needs to identify itself, and cookies are a mechanism created for exactly this purpose. Isn't a session just a container associated with the user's socket? I'm not sure what you mean, but I suspect the answer is no. :-) Chris

[PHP] Re: Why do Sessions use Cookies?

2005-12-02 Thread Peter Brodersen
On Fri, 2 Dec 2005 20:43:48 -0500, in php.general [EMAIL PROTECTED] (Michael B Allen) wrote: >Why do sessions use cookies? Isn't a session just a container associated >with the user's socket? No. Even though mechanisms such as keepalive exists they are not reliable for tracking a user. A client c

[PHP] Why do Sessions use Cookies?

2005-12-02 Thread Michael B Allen
Why do sessions use cookies? Isn't a session just a container associated with the user's socket? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-12-02 Thread Peter Brodersen
Hi Chris, On Fri, 02 Dec 2005 19:21:43 -0500 Chris Shiflett <[EMAIL PROTECTED]> wrote: > You might find this article helpful: > > http://shiflett.org/articles/guru-speak-nov2004 Very helpful indeed! I was mainly focused on the "Expires" header, but changing the Cache-Control output (by setting

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

2005-12-02 Thread Chris Shiflett
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 browser's "Back" navigation instead of showing the page as it was as the user left i

Re: [PHP] MVC platform choice.

2005-12-02 Thread Brian Fioca
WASP: http://wasp.sourceforge.net On Nov 30, 2005, at 2:04 AM, Gregory Machin wrote: Hi.. Any body recomend a good MVC platform that is easy to work with, and build on... I'm looking at cakephp, solar, php on trax.. Anything better out there. -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROT

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

2005-12-02 Thread Peter Brodersen
Hi, 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 browser's "Back" navigation instead of showing the page as it was as the user left it. This

Re: [PHP] Determine object type

2005-12-02 Thread Matt Monaco
Hah, I was looking in the object aggregation functions, that really deserved a RTFM "Ray Hauge" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That would be get_class( [obj] ); > > http://us3.php.net/manual/en/function.get-class.php > > Matt Monaco wrote: > >>Is there a function o

Re: [PHP] Determine object type

2005-12-02 Thread Ray Hauge
That would be get_class( [obj] ); http://us3.php.net/manual/en/function.get-class.php Matt Monaco wrote: Is there a function or method to determine the class an object was defined from? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Determine object type

2005-12-02 Thread Matt Monaco
Is there a function or method to determine the class an object was defined from? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit Form Values To Parent

2005-12-02 Thread Matt Monaco
is valid just as with any other link. ""Shaun"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > How can I get the form values submitted from an iframe where the target is > the parent window? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Upgrading on RH ES3

2005-12-02 Thread John Nichel
Jeff McKeon wrote: -Original Message- From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 14:50 To: Jeff McKeon Cc: php Subject: Re: [PHP] Upgrading on RH ES3 Jeff McKeon wrote: I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed

RE: [PHP] Upgrading on RH ES3 [SOLVED]

2005-12-02 Thread Jeff McKeon
> -Original Message- > From: Jeff McKeon > Sent: Friday, December 02, 2005 15:18 > To: php > Subject: RE: [PHP] Upgrading on RH ES3 > > > > -Original Message- > > From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 02, 2005 14:50 > > To: Jeff McKeon > >

RE: [PHP] Upgrading on RH ES3

2005-12-02 Thread Jeff McKeon
> -Original Message- > From: Kristen G. Thorson [mailto:[EMAIL PROTECTED] > Sent: Friday, December 02, 2005 14:50 > To: Jeff McKeon > Cc: php > Subject: Re: [PHP] Upgrading on RH ES3 > > > Jeff McKeon wrote: > > >I've got a server with RedHat ES3 running. It has PHP 4.3.2 > installed >

Re: [PHP] Upgrading on RH ES3

2005-12-02 Thread Kristen G. Thorson
Jeff McKeon wrote: I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed but for an application I want to install I need a min of 4.3.9. This server also runs apache2.0. I can't find RPMs for RH ES3 so I downloaded the source for PHP4.4.1 figuring I would just compile mysel

[PHP] Zend Sudio's Optimizer / PHP 5.1.1

2005-12-02 Thread Joseph Crawford
i keep getting an error that zend optimizer doesnt work with this version of PHP, can anyone explain why that would be? i have gone into zend studio and went to /lib/Optimizer-2.5.13/ created the php-5.1.x dir and copied the ZendOptimizer.dll from the php-5.0.x directory but it still complains ;( i

Re: [PHP] script won't work on other server

2005-12-02 Thread Kristen G. Thorson
Peppy wrote: This info is for the server where the script does not work: Apache/1.3.33 (Unix) PHP/4.3.10 FreeBSD cliffb55.iserver.net 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28 #42: Tu i386 This info is for the server where the script works: Apache/2.0.40 (Red Hat Linux) PHP Version 4.3.2 Lin

[PHP] Upgrading on RH ES3

2005-12-02 Thread Jeff McKeon
I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed but for an application I want to install I need a min of 4.3.9. This server also runs apache2.0. I can't find RPMs for RH ES3 so I downloaded the source for PHP4.4.1 figuring I would just compile myself. Problem is, the INS

Re: [PHP] Regex to wrap tag around a tag

2005-12-02 Thread Kristen G. Thorson
Shaun wrote: Hi M, Thanks for your help, the code works fine except if there is a line break in the html, for example this works test But this doesnt test Any ideas? See the last user contributed note from *csaba at alum dot mit dot edu *at http://us3.php.net/manual/en/reference.p

Re: [PHP] PDF Generator

2005-12-02 Thread Ben
Jay Blanchard said the following on 12/02/2005 07:49 AM: [snip] What is the best FREE pdf generator for PHP? [/snip] http://www.fpdf.org and you know that PHP has some built-in functionality using PDFlib http://www.php.net/pdf If you're able to GPL your code you can use PDFlib freely. IIRC th

RE: [PHP] Submit Form Values To Parent

2005-12-02 Thread Jay Blanchard
[snip] > http://www.assertia.com/iframe.html > > and then click on 'Click Here'. I am trying to display the form results in > the parent window, but I am having no luck! > [/snip] > > Actually it is working properly. You have no POST method in your form call > > form.html: > <---WHAT IS THE METHOD

Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Shaun
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > I have made an example of this now. If you click on this link: > > http://www.assertia.com/iframe.html > > and then click on 'Click Here'. I am trying to display the form results in > the parent window, but I am

Re: [PHP] PDF Generator

2005-12-02 Thread Ray Hauge
http://www.fpdf.org is a very good resource for PDF generation. I use it all the time. It was faster than writing up my own PDF class. It's fairly well documented as well. There's also http://fpdi.setasign.de/ if you want to put text, images, etc on an existing PDF. Jay Blanchard wrote:

Re: [PHP] can PHP do what tie does in Perl?

2005-12-02 Thread Jochem Maas
Robert Cummings wrote: On Fri, 2005-12-02 at 09:42, Jochem Maas wrote: Bing Du wrote: Hi, In Perl, hash can be stored in a file like this: tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); How the function should be implemented in PHP if it's possible? file_put_contents('/path/to/

Re: [PHP] can PHP do what tie does in Perl?

2005-12-02 Thread Robert Cummings
On Fri, 2005-12-02 at 09:42, Jochem Maas wrote: > Bing Du wrote: > > Hi, > > > > In Perl, hash can be stored in a file like this: > > > > tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); > > > > How the function should be implemented in PHP if it's possible? > > file_put_contents('/path

Re: [PHP] PDF Generator

2005-12-02 Thread Chris Boget
What is the best FREE pdf generator for PHP? We use HTMLDoc and it works reasonably well. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PDF Generator

2005-12-02 Thread Jim Moseby
> > What is the best FREE pdf generator for PHP? > PHP *is* a free PDF generator. http://us3.php.net/manual/en/ref.pdf.php JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PDF Generator

2005-12-02 Thread Jay Blanchard
[snip] What is the best FREE pdf generator for PHP? [/snip] http://www.fpdf.org and you know that PHP has some built-in functionality using PDFlib http://www.php.net/pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDF Generator

2005-12-02 Thread Rick Lim
What is the best FREE pdf generator for PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Submit Form Values To Parent

2005-12-02 Thread Jay Blanchard
[snip] I have made an example of this now. If you click on this link: http://www.assertia.com/iframe.html and then click on 'Click Here'. I am trying to display the form results in the parent window, but I am having no luck! [/snip] Actually it is working properly. You have no POST method in you

Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Shaun
Hi all, I have made an example of this now. If you click on this link: http://www.assertia.com/iframe.html and then click on 'Click Here'. I am trying to display the form results in the parent window, but I am having no luck! Here is my code: iframe.html: http://www.w3.org/TR/xhtml1/DTD/xhtml1

Re: [PHP] can PHP do what tie does in Perl?

2005-12-02 Thread Jochem Maas
Bing Du wrote: Hi, In Perl, hash can be stored in a file like this: tie(%contact,'SDBM_File',$tmp_file,O_RDWR|O_CREAT,0666); How the function should be implemented in PHP if it's possible? file_put_contents('/path/to/your/file', $someFingArray) Thanks, Bing -- PHP General Mailing List

Re: [PHP] IE and AJAX returning HTML with

2005-12-02 Thread Jochem Maas
Georgi Ivanov wrote: Hi, I have application that does this: When one press a specific button, I'm calling JS function that make http(ajax) request to some php file . The php returns HTML like this : -- SOME HTML HERE -- The returned HTML

RE: [PHP] IE and AJAX returning HTML with

2005-12-02 Thread Jay Blanchard
[snip] I have application that does this: When one press a specific button, I'm calling JS function that make http(ajax) request to some php file . The php returns HTML like this : -- SOME HTML HERE -- The returned HTML i placed in tag. The

[PHP] IE and AJAX returning HTML with

2005-12-02 Thread Georgi Ivanov
Hi, I have application that does this: When one press a specific button, I'm calling JS function that make http(ajax) request to some php file . The php returns HTML like this : -- SOME HTML HERE -- The returned HTML i placed in tag. The lo

[PHP] A User-Request PHP Book

2005-12-02 Thread Sumit Datta
Hello, I am writing a PHP book (using a wiki software!) to guide mainly new PHP user through all sorts of issues. The most important part is that I intend to make this a User-Request Book where user tell me what they want and I write articles on those topics. This is because I dont have a lot of ti

Re: [PHP] php problem

2005-12-02 Thread Jochem Maas
anyone looking for an example of how not to ask a question on a mailing list, this is it: Rama wrote: in a huge php page it's happen that some page included in index.php, for some strange reason went write. 2 byte are write on the pages included, and are always the same (FF and FE in hexadecil

Re: [PHP] php problem

2005-12-02 Thread Marco Kaiser
Hi Matteo, can you reduce the code to the smallest one and provide your scripts here to reproduce it? > in a huge php page it's happen that some page included in index.php, for some > strange reason went write. > 2 byte are write on the pages included, and are always the same (FF and FE in > he

[PHP] php problem

2005-12-02 Thread Rama
in a huge php page it's happen that some page included in index.php, for some strange reason went write. 2 byte are write on the pages included, and are always the same (FF and FE in hexadecilam) at the start of file. so the file will be FF FE i cannot understand why, i don't use fopen, fwrite,

Re: [PHP] why php not running ?

2005-12-02 Thread Marco Kaiser
Hi Mehmet, can you provider a full backtrace of your core dumped php?` > [EMAIL PROTECTED] -> [~]#cat first.php > <%php > echo "Hello World!"; > %> > [EMAIL PROTECTED] -> [~]# > > Segmentation fault (core dumped) > [EMAIL PROTECTED] -> [~]# -- Marco Kaiser -- PHP General Mailing List (http://ww

Re: [PHP] shortest possible check: field is set, integer or 0

2005-12-02 Thread Marco Kaiser
whats with if (isset($_POST['field']) && (INT)$_POST['field']>=0) { ? This should cover the requirements. $_POST['field'] should be eq 0 or higher as int. (INT) converts 1.44 to 1 (cuts .44) -- Marco 2005/12/2, Jochem Maas <[EMAIL PROTECTED]>: > Steve Edberg wrote: > > At 5:30 PM +0100 12/1/05

[PHP] why php not running ?

2005-12-02 Thread Mehmet Fatih AKBULUT
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 [EMAIL PROTECTED] -> [~]#php a simple php code: [EMAIL PROTECTED] -> [~]#cat first.p

Re: [PHP] shortest possible check: field is set, integer or 0

2005-12-02 Thread Jochem Maas
Steve Edberg wrote: At 5:30 PM +0100 12/1/05, Jochem Maas wrote: Steve Edberg wrote: Only problem with intval() is that it returns 0 (a valid value) on I knew that. :-) I figured so, but I thought I'd make it explicit for the mailing list... failure, so we need to check for 0 first. Add

Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Terence
Shaun wrote: Hi, How can I get the form values submitted from an iframe where the target is the parent window? Use Javascript. Check out irt.org -> Javascript They have lots of great examples. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un