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:

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.

[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.php

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,

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://www.php.net/) To

[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? php blablabla ? i cannot understand why, i don't

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

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

[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

[PHP] IE and AJAX returning HTML with link stylesheet

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 : -- link href=left.css rel=stylesheet type=text/css pSOME HTML HERE/p

RE: [PHP] IE and AJAX returning HTML with link stylesheet

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 : -- link href=left.css rel=stylesheet type=text/css pSOME HTML HERE/p

Re: [PHP] IE and AJAX returning HTML with link stylesheet

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 : -- link href=left.css rel=stylesheet type=text/css pSOME HTML

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

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: !DOCTYPE html PUBLIC -//W3C//DTD

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

[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] 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

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 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] 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/to/your/file',

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?

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] 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 having no

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: form name=myform ---WHAT IS THE

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

Re: [PHP] Regex to wrap a href= tag around a p 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 ptest/p But this doesnt ptest /p Any ideas? See the last user contributed note from *csaba at alum dot mit dot edu *at

[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

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

[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 ;(

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

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 but for an

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 Cc: php

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

[PHP] Re: Submit Form Values To Parent

2005-12-02 Thread Matt Monaco
form target=_parent 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

[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

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:

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 or method to

[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] 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

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

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

[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

[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

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. :-)

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 I

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 PHP

[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

[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

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] 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