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/unsub.php



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. Adding more secure checks

do we? given that FALSE casts to 0.


would make this more than just a one-liner,  eg;

$_CLEAN['x'] = false;
if (isset($_POST['x'])) {
   if (0 == 1*$_POST['x']) {



I find the 1*_POST['x'] line a bit odd. why do you bother with the '1*' ?




I tend to use that to explicitly cast things to numeric; usually not 
necessary, but I have occasionally hit situations where something got 
misinterpreted, so I habitually do the 1*.




  $_CLEAN['x'] = 0;
   } else {
  $x = intval($_POST['x']);
  if ($x > 0 && $x == 1*$_POST['x']) {



this is wrong ... if $_POST['x'] is '5.5' this won't fly
but is valid according to the OP.




I guess I was interpreting the OP differently; your version is the 
shortest method I can see to force the input to an integer (but to 
ensure the non-negative requirement, one should say


$_CLEAN['x'] = abs(intval(@$_POST['x']));


for some reason I have been assuming that intval() drops the sign - but
it doesn't the use of abs() would indeed be required.

thanks for that info :-)



). I was adding extra code to indicate an invalid entry as false. And I 
think that 5.5 would not be considered valid - to quote: "What is the 
shortest possible check to ensure that a field coming from a form as a 
text type input is either a positive integer or 0, but that also 
accepts/converts 1.0 or 5.00 as input?"


Although, with more caffeine in my system, doing something like

$x = abs(intval(@$_POST['x']));
$_CLEAN['x'] = isset($_POST['x']) ? ($x == $_POST['x'] ? $x : false) 
: false;


or, to be more obfuscated,

$_CLEAN['x'] = isset($_POST['x']) ? (($x = 
abs(intval(@$_POST['x']))) == $_POST['x'] ? $x : false) : false;


should do what I was trying to do, more succinctly.

- slightly more awake steve




plenty for the OP to chew on anyway ;-)

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



[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
<%php
echo "Hello World!";
%>
[EMAIL PROTECTED] -> [~]#

/* chmod a+x first.php*/

when trying to run the code :

[EMAIL PROTECTED] -> [~]#php first.php
PHP Warning:  Method panda::__set() must take exactly 2 arguments in Unknown
on line 0
Segmentation fault (core dumped)
[EMAIL PROTECTED] -> [~]#

whats wrong ?
first time i met this problem dont know how to solve and google show nearly
nothing about it. (except a page which was if not mistaken german.)


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, 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. Adding more secure checks
> >>
> >> do we? given that FALSE casts to 0.
> >>
> >>> would make this more than just a one-liner,  eg;
> >>>
> >>> $_CLEAN['x'] = false;
> >>> if (isset($_POST['x'])) {
> >>>if (0 == 1*$_POST['x']) {
> >>
> >>
> >> I find the 1*_POST['x'] line a bit odd. why do you bother with the '1*' ?
> >
> >
> >
> > I tend to use that to explicitly cast things to numeric; usually not
> > necessary, but I have occasionally hit situations where something got
> > misinterpreted, so I habitually do the 1*.
> >
> >
> >>>   $_CLEAN['x'] = 0;
> >>>} else {
> >>>   $x = intval($_POST['x']);
> >>>   if ($x > 0 && $x == 1*$_POST['x']) {
> >>
> >>
> >> this is wrong ... if $_POST['x'] is '5.5' this won't fly
> >> but is valid according to the OP.
> >
> >
> >
> > I guess I was interpreting the OP differently; your version is the
> > shortest method I can see to force the input to an integer (but to
> > ensure the non-negative requirement, one should say
> >
> > $_CLEAN['x'] = abs(intval(@$_POST['x']));
>
> for some reason I have been assuming that intval() drops the sign - but
> it doesn't the use of abs() would indeed be required.
>
> thanks for that info :-)
>
> >
> > ). I was adding extra code to indicate an invalid entry as false. And I
> > think that 5.5 would not be considered valid - to quote: "What is the
> > shortest possible check to ensure that a field coming from a form as a
> > text type input is either a positive integer or 0, but that also
> > accepts/converts 1.0 or 5.00 as input?"
> >
> > Although, with more caffeine in my system, doing something like
> >
> > $x = abs(intval(@$_POST['x']));
> > $_CLEAN['x'] = isset($_POST['x']) ? ($x == $_POST['x'] ? $x : false)
> > : false;
> >
> > or, to be more obfuscated,
> >
> > $_CLEAN['x'] = isset($_POST['x']) ? (($x =
> > abs(intval(@$_POST['x']))) == $_POST['x'] ? $x : false) : false;
> >
> > should do what I was trying to do, more succinctly.
> >
> > - slightly more awake steve
> >
> >
>
> plenty for the OP to chew on anyway ;-)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Marco Kaiser

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



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 unsubscribe, visit: http://www.php.net/unsub.php



[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, and things like that, so 
what i can do to debug this script? also i cannot understand where the problem 
is, so i don't know if is regarded to a page included in index.php or in some 
other place.


Any help is appreciated!

best regards
Matteo

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 
> hexadecilam) at the start of file.
>
--
Marco Kaiser

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



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 
hexadecilam) at the start of file.

so the file will be
FF FE

i cannot understand why, i don't use fopen, fwrite, and things like that, so 
what i can do to debug this script? also i cannot understand where the problem 
is, so i don't know if is regarded to a page included in index.php or in some 
other place.



I can't even debug the question, let alone tell the OP how to debug his script.
any mindreaders here?



Any help is appreciated!

best regards
Matteo


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



[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 time so
I want to make good use of the time I have. It is available at
http://php.techfundas.com/wiki/doku.php
You can take a look at it. There is a feedback form there. Also anyone can
simply email me to my email address. I hope I can make a good contribution
to those who are learning PHP.
Bye
Sumit
http://php.techfundas.com/wiki/doku.php


[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 logic is as follows:
When one click on link "left", the php file returns  with specific CSS 
(left.css). If other button is clicked, the PHP returns html with other CSS 
linked.
 Everything is OK in Firefox. The problem is in IE . It appears that IE 
doesn't evaluate the CSS in  tag in returned HTML.
Any suggestions?

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



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 logic is as follows:
When one click on link "left", the php file returns  with specific CSS

(left.css). If other button is clicked, the PHP returns html with other CSS 
linked.
 Everything is OK in Firefox. The problem is in IE . It appears that IE 
doesn't evaluate the CSS in  tag in returned HTML.
Any suggestions?
[/snip]

None of this appears to be a PHP problem. Either it is an IE CSS problem (in
the source is the proper CSS being called?) or it is a JavaScript problem
related to AJAX.

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



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 i placed in  tag.
The logic is as follows:
When one click on link "left", the php file returns  with specific CSS 
(left.css). If other button is clicked, the PHP returns html with other CSS 
linked.
 Everything is OK in Firefox. The problem is in IE . It appears that IE 
doesn't evaluate the CSS in  tag in returned HTML.


 is only allowed in the HEAD of a document no?

my suggestion would be to use DOM methods to
extract the  params from the XML you get from the
php script you call via XHTTPRequestObject (or whatever the
*** its called) and then use some more DOM methods to inject
a new  element into the HEAD of the doc.

also try googling for 'stylesheet switcher' for possible
alternative approaches

oh and what was the php question again? ;-)


Any suggestions?



--
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 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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document






form.html:

  
  Click here


result.php:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document






Any ideas?

"Terence" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
>
> 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/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 your form call

form.html:
 <---WHAT IS THE METHOD?
  
  Click here


-- 
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] 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', $someFingArray)

Shouldn't that be:

file_put_contents('/path/to/your/file', serialize($someFingArray));

Cheers,
Rob
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
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 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/your/file', $someFingArray)



Shouldn't that be:

file_put_contents('/path/to/your/file', serialize($someFingArray));



well I thought so too (its what I wrote originally) but then I reread
the manual and apparently its not necessary - you can shove an array
into file_put_contents() I have no idea what that has as a result but
then I have not idea what tie() does in Perl ... actually I figured
either the OP would notice and go 'er, hows that work?' or not and
do it blindly (and then suffer the potential consequences - which
would hopefully teach him to RTFM)

if some one can write a line like that in Perl, they should be
smart enough to make some kind of attempt in PHP no? I found the OPs
question annoying but couldn't resist answering something so easy ...
then I thought that a short/incomplete answer was probably better than
writing a great big monologue (so I deleted it ;-)




Cheers,
Rob


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


[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] 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 luck!
> [/snip]
>
> Actually it is working properly. You have no POST method in your form call
>
> form.html:
>  <---WHAT IS THE METHOD?
>  
>   onclick="document.myform.submit();">Click here
> 

Hi Jay,

Thanks for your reply, I'm not sure what is happening because I have added
the method yet it still isn't working...

Any ideas?



-- 
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]
> 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?
>  
>   onclick="document.myform.submit();">Click here
> 

Thanks for your reply, I'm not sure what is happening because I have added
the method yet it still isn't working...
[/snip]

It is working. The POST array contains the text=>test you set up for it. If
you think that it is not the proper behavior, what exactly is it that you
expect?

-- 
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 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 that 
change was made to the PDFlib lite license a few years ago.


IANAL, but if I understand things correctly if you (or your client) have 
no plans to redistribute your resulting code you can GPL it and that 
would then qualify you to use PDFlib for free.  If you are working for a 
client you would of course have to provide your code to your client, but 
then you have to do that with PHP anyway.


- Ben

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



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.pcre.pattern.modifiers.php, 
particularly the last paragraph.  He gives a very good explanation of 
pattern modifiers that answers your question.



kgt

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



[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 INSTALL file
gives instructions based on the idea that you don't already have Apache2
or an earlier ver of PHP Installed already.  Since Apache2 was installed
via RPM originally the INSTALL instruction for PHP with Apache2 prob
won't work.

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

It's the:

--with-apxs2=/usr/local/apache2/bin/apxs

Switch that has got me scratching my head.  /usr/local/apache2/ doesn't
exist and I can't find apxs anywhere on the sys.

Can I just configure with ./configure --with-mysql??

Thanks,

Jeff

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



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
Linux pl1.qcinet.net 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 


Thanks for your help.

 Original Message 
 


Date: Wednesday, November 30, 2005 02:15:47 PM -0600
From: Peppy <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] script won't work on other server

I have a small script that I am testing out on two different
servers.  It uses the $_SERVER['HTTP_USER_AGENT'] to detect the
browser and serve up a style sheet dependent on the results.
(Please don't comment on its usefulness, it's just an example.)

On one server, I can get this script to run correctly in all
browsers that I test.  On another server, it will not run correctly
in Netscape (testing for the word Gecko, but have used Netscape
also).   Any help would be appreciated.

Link to script:

http://www.asrm.org/class/php/angelia.php

In case it's needed, link to file with phpinfo():

http://www.asrm.org/test/test.php

   




Using Netscape to view this page:

http://www.asrm.org/class/php/angelia.php

My stylesheet link is:




Looks like it works for me.


kgt

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



[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 ;( is there something else i need to change in zend
studio server?

Thanks,
--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
1-802-671-2021
[EMAIL PROTECTED]


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 myself.  Problem is, the INSTALL file
gives instructions based on the idea that you don't already have Apache2
or an earlier ver of PHP Installed already.  Since Apache2 was installed
via RPM originally the INSTALL instruction for PHP with Apache2 prob
won't work.

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

It's the:

--with-apxs2=/usr/local/apache2/bin/apxs

Switch that has got me scratching my head.  /usr/local/apache2/ doesn't
exist and I can't find apxs anywhere on the sys.

Can I just configure with ./configure --with-mysql??

Thanks,

Jeff

 



I believe you need the httpd-devel rpm to get apxs2.


kgt

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



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 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 INSTALL file 
> >gives instructions based on the idea that you don't already have 
> >Apache2 or an earlier ver of PHP Installed already.  Since 
> Apache2 was
> >installed via RPM originally the INSTALL instruction for PHP with
> >Apache2 prob won't work.
> >
> >./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
> >
> >It's the:
> >
> >--with-apxs2=/usr/local/apache2/bin/apxs
> >
> >Switch that has got me scratching my head.
> /usr/local/apache2/ doesn't
> >exist and I can't find apxs anywhere on the sys.
> >
> >Can I just configure with ./configure --with-mysql??
> >
> >Thanks,
> >
> >Jeff
> >
> >  
> >
> 
> I believe you need the httpd-devel rpm to get apxs2.
> 
> 
> kgt
> 

Interesting.  Would the current ver of php run if I didn't have
httpd-devel installed?  What exactly does the switch
--with-apxs2=/usr/local/apache2/bin/apxs do?

Currently PHP 4.3.2 runs find on this system. 

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



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
> > 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 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 
> INSTALL file 
> > >gives instructions based on the idea that you don't already have 
> > >Apache2 or an earlier ver of PHP Installed already.  Since
> > Apache2 was
> > >installed via RPM originally the INSTALL instruction for PHP with 
> > >Apache2 prob won't work.
> > >
> > >./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
> > >
> > >It's the:
> > >
> > >--with-apxs2=/usr/local/apache2/bin/apxs
> > >
> > >Switch that has got me scratching my head.
> > /usr/local/apache2/ doesn't
> > >exist and I can't find apxs anywhere on the sys.
> > >
> > >Can I just configure with ./configure --with-mysql??
> > >
> > >Thanks,
> > >
> > >Jeff
> > >
> > >  
> > >
> > 
> > I believe you need the httpd-devel rpm to get apxs2.
> > 
> > 
> > kgt
> > 
> 
> Interesting.  Would the current ver of php run if I didn't 
> have httpd-devel installed?  What exactly does the switch 
> --with-apxs2=/usr/local/apache2/bin/apxs do?
> 
> Currently PHP 4.3.2 runs find on this system. 
> 
> -- 

Kristin was correct, I needed to install the rpm for httpd-devel.

Thanks Kristin!

-Jeff

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.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


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 INSTALL file 
gives instructions based on the idea that you don't already have 
Apache2 or an earlier ver of PHP Installed already.  Since 


Apache2 was


installed via RPM originally the INSTALL instruction for PHP with
Apache2 prob won't work.

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

It's the:

--with-apxs2=/usr/local/apache2/bin/apxs

Switch that has got me scratching my head.


/usr/local/apache2/ doesn't


exist and I can't find apxs anywhere on the sys.

Can I just configure with ./configure --with-mysql??

Thanks,

Jeff





I believe you need the httpd-devel rpm to get apxs2.


kgt




Interesting.  Would the current ver of php run if I didn't have
httpd-devel installed?  What exactly does the switch
--with-apxs2=/usr/local/apache2/bin/apxs do?



This allows you to install php (as well as other modules) as dynamic 
modules vs. as a CGI or having to recompile Apache each time you want to 
upgrade something plugged into it.



Currently PHP 4.3.2 runs find on this system. 


It is either running as a CGI or was compiled in with Apache.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
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://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



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



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 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] 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 seem to complicate some things. If I create a page with a form, the
user submits it and press "back", the page is reloaded and the form is
wiped instead of preserving the values as they were when the user
submitted/left the page.

I'm curious if there is a simple, acceptable workaround like disabling
the Expires-header?

I'm *not* looking for a solution where the session stores the form
values and insert them into a value attribute. This won't work:
1. There is no way to distinct whether the user pushed "back" or clicked
on a link to request the search page. The variables should be kept in
the first situation but not in the second (and looking at the Referer
header would be considered a hack as well).
2. Users can have multiple windows/tabs open which should not interfere
with the navigation.

It seems like Opera, Internet Explorer, links, lynx and w3m behave more
reasonable. I believe that W3 also states that when using back buttons
browsers should always show the page as when the user left it and not
requesting it at new.

Even if it is a bug in Firefox I would still like to know whether there
is an acceptable workaround that would reduce the number of requests and
make Firefox use the cached page (or cache the page in the first place).

-- 
- Peter Brodersen

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



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 PROTECTED]
www.linuxpro.co.za
www.exponent.co.za
Web Hosting Solutions
Scalable Linux Solutions
www.iberry.info (support and admin)

+27 72 524 8096


/**
 * Brian Fioca
 * Chief Scientist / Sr. Technical Consultant
 * PangoMedia - http://pangomedia.com
 * @work 907.868.8092x108
 * @cell 907.440.6347
 */




smime.p7s
Description: S/MIME cryptographic signature


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 it.


You might find this article helpful:

http://shiflett.org/articles/guru-speak-nov2004

I suspect that Firefox's behavior is based on their interpretation of 
the HTTP specification. If you read section 14.9.2 of RFC 2616, you'll 
see the following statement about the no-store directive:


"If sent in a response, a cache MUST NOT store any part of either this 
response or the request that elicited it. This directive applies to both 
non-shared and shared caches."


A browser's history mechanism relies on a non-shared cache, the 
browser's cache. If a browser isn't allowed to store the resource, it 
can't redisplay the resource without sending another request.


There's another relevant section of the RFC, section 13.13:

"History mechanisms and caches are different. In particular history 
mechanisms SHOULD NOT try to show a semantically transparent view of the 
current state of a resource. Rather, a history mechanism is meant to 
show exactly what the user saw at the time when the resource was retrieved."


This seems to conflict with the earlier statement, and I think this is 
the reason for the inconsistent implementations in the industry. This 
particular statement attempts to distinguish between the history 
mechanism and caches, a distinction that doesn't naturally exist.


I don't really fault Firefox for abiding by the no-store directive, nor 
do I fault Internet Explorer for ignoring it.


Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
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 session.cache_limiter to
'private') seem to make everything work.

private_no_expire could also be a possibility. I think I'll read the RFC
a bit more to see which one would be the most appropate one in my
situation.

> This seems to conflict with the earlier statement, and I think this is 
> the reason for the inconsistent implementations in the industry. This 
> particular statement attempts to distinguish between the history 
> mechanism and caches, a distinction that doesn't naturally exist.

Tell me about it. Earlier this evening I fell over a strange behaviour in
IE, Firefox and Opera. Point one window to a URL pointing at an image.
Overwrite the image with a new one. Open another window/tab and open the
new image (at the same URL). Get properties for the old image in the old
window.

Both IE and Firefox would provide the correct information about image
dimensions but would get the file size from the new image. Opera will
replace the old image in runtime leading to spurious graphic updates.

The whole concept about the history mechanism (and even content in
current open windows) opposed to a cache is a bit mind boggling.

> I don't really fault Firefox for abiding by the no-store directive, nor 
> do I fault Internet Explorer for ignoring it.

Agreed. Furthermore, the change in cache_limiter makes very good sense
in this context and doesn't seem like "just a hack".

> Hope that helps.

Very much. Thanks for the quick and precise reply!

-- 
- Peter Brodersen

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



[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 can still open multiple HTTP
connections to the same host even when using keepalive.

Furthermore we would like the session to survive the smallest hickups
(e.g. disconnects, TCP RSTs, ...).

-- 
- Peter Brodersen

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.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

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

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



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 don't think they have a version for PHP 5.1.x yet.

--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
  -- Leonardo Da Vinci

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



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 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 INSTALL file
>gives instructions based on the idea that you don't already have
>Apache2 or an earlier ver of PHP Installed already.  Since
Apache2 was
>installed via RPM originally the INSTALL instruction for PHP with
>Apache2 prob won't work.
>
>./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
>
>It's the:
>
>--with-apxs2=/usr/local/apache2/bin/apxs
>
>Switch that has got me scratching my head.
/usr/local/apache2/ doesn't
>exist and I can't find apxs anywhere on the sys.
>
>Can I just configure with ./configure --with-mysql??
>
>Thanks,
>
>Jeff
>
>
>

I believe you need the httpd-devel rpm to get apxs2.


kgt



Interesting.  Would the current ver of php run if I didn't have
httpd-devel installed?  What exactly does the switch
--with-apxs2=/usr/local/apache2/bin/apxs do?


If I'm not mistaken (and I very easily could be), apxs is used to 
create the php module for apache. Red Hat/Fedora provide a mod_php rpm, 
and your older version may have had that rpm installed; thus, apxs (and 
the httpd-devel rpm) was not needed on your system to build the module.


Rick
--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
  -- Leonardo Da Vinci

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.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 wondering if there are some classes
available to do this? I don't think I want to use WWW-Authenticate (at
least I don't want to use the ugly password dialog) and I certainly don't
want to authenticate via pam or something like that. I want "as simple
as possible, but not simpler" type of thing. I have a strong aversion
to bloatware.

Or am I off track? I normally do pretty low level C type stuff so websites
are new to me (ie. php).
  
Thanks, 
Mike 

int
handleRequest(Request req)
{  
  Ticket ticket, tmp;

  /* If the user already has a ticket associated with their session,
   * just pass through and handle the request 
   */
  if ((ticket = req.session.getProperty("ticket")) == null) { 
SqlResults results;
   
/* If the user has a ticket (embeeded in a cookie) then associate
 * it with their session and pass through and handle the request.
 */
String cookie = req.getCookie("ticket");
if (cookie) {/* try ticket from cookie */
  tmp = Ticket.decrypt("12345", cookie);
  results = Sql.exec( /* sql injection vulnerbility, wahoo! */
  "select ssnkey from accounts where emailaddr = " + tmp.emailaddr);
  if (results.size() == 1 && tmp.sshkey == results.getInteger(0)) {
req.session.setProperty("ticket", tmp);
ticket = tmp; /* Success! */
  } 
} 
   
if (ticket == null && req.session.isHttps) { /* try new login */
  String emailaddr = req.getParameter("emailaddr");
  String password = req.getParameter("password");
  if (emailaddr && password) {
results = Sql.exec(
"select status, password from accounts where emailaddr = " + 
emailaddr);
if (results.size() != 1 || 
  results.getString(0) != "valid" ||
  password != results.getString(1)) {
  return sendError(req, ERROR_AUTH_FAILED);
} 
   
tmp = new Ticket(emailaddr);
Sql.exec("update accounts set ssnkey = " + tmp.ssnkey +
" where emailaddr = " + tmp.emailaddr);
req.setCookie("ticket", ticket.encrypt("12345"));
req.session.setProperty("ticket", tmp);
ticket = tmp; /* Success! */
  } 
} 
  }
   
  /* null ticket means not logged in / anonymous
   */
  return handleAuthenticatedRequest(req, ticket);
}

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



[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.1.1 running on FreeBSD 6 with apache 2.2.0. All the latest versions
installed today.

This is the most basic of examples:

print 'one' ;
print "\n" ;
print 'two' ;

The output of this when accessed on my server is: one two
It should be: one
   two

I've tried using printf as well but to no avail. It just adds a space
between the outputs. I've also tried using different browsers but still get
the same result. What am I doing wrong? Could this a php configuration
issue? Apache maybe?

Thanks,

Rob


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 is: one two
It should be: one
   two


Hi
well this isn't apache or php related, as it's webbrowser related, and 
even more, it's correct.


The thing is, what You see in Your browser is an interpreted version of 
the html outputed by the php (obvious?), so if You do a html file, and put:

one
two
in there, and view it with Your browser, it will still look like this:
one two
to get the expected (as in C/C++) result, You need to add a  or any 
other line breaking method in there (onetwo is another one)
Now, if You'd see the generated source code, You'd notice that there is 
in fact the line break as it should be :)
so it is good to use '\n' to get the output code clear to read, for 
debugging and so..


Best wishes
?ukasz Hejnak

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



[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 mail via PHP.


I have tried to set the SMTP server and reply address via a php_value  
in my httpd.conf file and via the ini_set function for my site in  
question.  Regardless of these setting mail is sent from the www user  
at my main site domain:


Return-Path: <[EMAIL PROTECTED]>
Received: from mail.wavefront.ca ([unix socket])
 by mail.wavefront.ca (Cyrus v2.2.12-OS X 10.4.0) with LMTPA;
 Fri, 02 Dec 2005 12:45:07 -0700

I've also tried the IMAP functions but also with no success.  I  
basically want the mail to look as though it was from the other domain.


Dan T

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