[PHP] Ubiquitous quoted printable encode

2005-11-26 Thread Andy Pieters
Hi list

I know of the imap_8bit function that *can* be compiled into php.  However I 
would like an encoder written in php that only uses standard extensions and 
functions and that therefore can work on all php 4+ installations.

Does anyone know of such a beast?

With kind regards

Andy

-- 
Now listening to Top! Radio Live www.topradio.be/stream on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--


pgp2t7XrAPpjm.pgp
Description: PGP signature


[PHP] Wanna Join me for an open source PHP Project?

2005-11-26 Thread bala chandar
Hi All,

I have just started a Open source Project in SourceForget.net using PHP.

Project Name: Weblook Express
URL : http://sourceforge.net/projects/weblookexpress

Idea came to me when i thought of porting the complete windows based
Desktop outlook express Application into a Portable, Web based
Application that runs on any Javascript supported webbrowser for any
POP3, or IMAP or HTTP Mail Service Providers.

I am just looking for people who can work along with me so that
complete porting occurs so that we can release the base version.

Technology to be used would be PHP, XML, XSLT, Javascript, HTML.

About Weblook Express
Weblook Express provides an integrated solution for managing and
organizing e-mail messages. It delivers innovations you can use to
manage your email communications, organize your mails - all from one
place similar like the desktop outlook express.

Project would involve complete porting of Desktop Outlook Express that
comes with Internet Explorer. The user should be able to configure
multiple Mail Service Providers. User experience is what we must see.
and i have more ideas in my mind. I also invite ideas, suggestions for
this project.

Looking for developers...
--
 balachandar muruganantham
 mbchandar
  mbchandar
 http://chandar.blogspot.com
http://www.balachandar.net
 http://www.expertstalk.org
http://www.chennaishopping.com

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



Re: [PHP] Passing objects between pages

2005-11-26 Thread Andy Pieters
On Friday 25 November 2005 20:44, Matt Monaco wrote:
> What is the best way to pass an object between pages?  Currently I am
> first
> serializing, then doing a base64_encode, this doesn't seem entirely
> efficient.  (Especially the encode).
>
> I am however using the encode because I have the serialized object as the
> value of a hidden form element.  I can only have alphanumerics here.
You can instead of using a hidden form element, use sessions.

$_SESSION['obj_state']=serialize(objectinstance)

On other pages you can check if obj_state is set, and use it to reinitialize 
your class (object).

HTH

Andy

-- 
Now listening to Top! Radio Live www.topradio.be/stream on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--


pgp51u0CQsumW.pgp
Description: PGP signature


Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-26 Thread Andy Pieters
On Saturday 26 November 2005 02:45, John Nichel wrote:
> If you have a form like this one one page...
>
> 
> 
> 
> 
>
[snip]

Dear John

Please go all the way when providing an example.  To prevent errors and 
unpredictable behaviour, ALWAYS add encoding to the form tag.



Systematically adding names on all your forms may save you many hours of hair 
plucking as well ;)

With kind regards


Andy

-- 
Now listening to Top! Radio Live www.topradio.be/stream on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--


pgp5OYyt4uFSA.pgp
Description: PGP signature


Re: [PHP] Is there an alternative for $_FILES['guildimage']['type'] == "image/jpeg"

2005-11-26 Thread Andy Pieters
On Wednesday 23 November 2005 03:15, twistednetadmin wrote:
> I use this line in a script for uploading pictures to a website:
>
> $_FILES['guildimage']['type'] == "image/jpeg"
>
[snip]

Please understand that the type is set by the browser and is never to be 
trusted.

Especially with file uploads, extreme cautions apply.

If all you want to upload are images, then ONLY rely on the php builtin 
getimagesize

Example

if($result=(@ getimagesize($_FILES['guildimage']['tmp_name'])) ===false)
 die('Invalid picture');
list($width,$height,$type)=$result;
swith($type)
{case 1: #gif; break;
 case 2: #jpeg; break;
 case 3: #png; break;
 case ... see php getimagesize documentation
}

And always use the move_uploaded_file function so you are sure you really are 
moving an uploaded file and not one that is already on the server

Example

move_uploaded_file($_FILES['guildimage']['tmp_name'],$publicdir);

This function will fail if called with a file that was not uploaded.

HTH

Andy


-- 
Now listening to Top! Radio Live www.topradio.be/stream on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--


pgpXBjAnHW99i.pgp
Description: PGP signature


Re: [PHP] Wanna Join me for an open source PHP Project?

2005-11-26 Thread Andy Pieters
Hmmm..

Outlook is notorious for blatantly violating the standards and being a 
security nightmare.

Instead I suggest you make an application that has the same look & feel as 
outlook but has a core that is much smarter, safer, and better.

Also, work from the ground up to generate standards compliant html (or xhtml) 
documents so that FireFox, and KHTML based browsers will render it ok.  You 
can later add hacks to support non-standard compliant browsers (such as ie)

Not starting a flame war, just providing some common sense.

Good luck with your project


With kind regards

Andy


-- 
Now listening to Top! Radio Live www.topradio.be/stream on amaroK
Geek code: www.vlaamse-kern.com/geek
Registered Linux User No 379093
If life was for sale, what would be its price?
www.vlaamse-kern.com/sas/ for free php utilities
--


pgpq68ma2JLvZ.pgp
Description: PGP signature


Re: [PHP] Wanna Join me for an open source PHP Project?

2005-11-26 Thread bala chandar
On 11/26/05, Andy Pieters <[EMAIL PROTECTED]> wrote:
> Hmmm..
>
> Outlook is notorious for blatantly violating the standards and being a
> security nightmare.
>
> Instead I suggest you make an application that has the same look & feel as
> outlook but has a core that is much smarter, safer, and better.
>
> Also, work from the ground up to generate standards compliant html (or xhtml)
> documents so that FireFox, and KHTML based browsers will render it ok.  You
> can later add hacks to support non-standard compliant browsers (such as ie)

i will take your suggestions.

>
> Not starting a flame war, just providing some common sense.

> Good luck with your project
>
>
> With kind regards
>
> Andy
>
>
> --
> Now listening to Top! Radio Live www.topradio.be/stream on amaroK
> Geek code: www.vlaamse-kern.com/geek
> Registered Linux User No 379093
> If life was for sale, what would be its price?
> www.vlaamse-kern.com/sas/ for free php utilities
> --
>
>
>


--
 balachandar muruganantham
 mbchandar
  mbchandar
 http://chandar.blogspot.com
http://www.balachandar.net
 http://www.expertstalk.org
http://www.chennaishopping.com

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



[PHP] Adding links to HTML for a CMS

2005-11-26 Thread Shaun
Hi,

I am trying to create my own CMS. To being with I want to let users edit 
anything within a  tag.

I want to have a menu to the left and display the webpage in the rest of the 
page, and for each set of  tags I want the user to be able to click on 
the link to edit that paragraph.

My problem is how can I include a webpage in my CMS and for each  tag 
wrap an  tag araound it?

Thanks for your advice. 

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



[PHP] Benchmarking SPL Iterators vs for / foreach ???

2005-11-26 Thread Andrei Verovski (aka MacGuru)
Hi,

Someone have benchmarked SPL iterators vs for / foreach loops? What is the 
performance penalty?

SPL is ¨interpreted wrapper¨ on the top of C++ STL (correct me if I am wrong), 
and I am sure it uses STL callbacks. But unlike C++, PHP scripts are 
interpreted, so pointer arithmetic will work only through Zend engine which for 
sure  adds extra performance penalty.

Thanks in advance for any suggestion(s)



***   with best regards 
***   Andrei Verovski (aka MacGuru)
***   Mac, Linux, DTP, Programming Web Site
***
***   http://snow.prohosting.com/guru4mac/


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



Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-26 Thread John Nichel

> On Saturday 26 November 2005 02:45, John Nichel wrote:
>> If you have a form like this one one page...
>>
>> 
>> 
>> 
>> 
>>
> [snip]
>
> Dear John
>
> Please go all the way when providing an example.  To prevent errors and
> unpredictable behaviour, ALWAYS add encoding to the form tag.
>
>  name="form1">
>
> Systematically adding names on all your forms may save you many hours of
> hair
> plucking as well ;)

Neither are required.  enctype is implied if left out, and name is only
'useful' on the client side.  Even the W3C's examples match what I posted.

http://www.w3.org/TR/html4/interact/forms.html#h-17.3

-- 
John C. Nichel IV
Programmer/System Admin
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] Unable to compile php 5.1 / 5.1RC ok

2005-11-26 Thread robert mena
Hi,

I am trying to compile php 5.1 but it fails with pdo error messages

'./configure' '--with-apxs2' '--with-mysql=/usr' '--enable-soap'
'--with-xmlrpc' --with-zlib --enable-pdo=shared  --with-pdo-mysql=/usr

ext/sqlite/.libs/sqlite.o(.text+0x1365): In function `zm_startup_sqlite':
/home/build/php-5.1.0/ext/sqlite/sqlite.c:1100: undefined reference to
`php_pdo_register_driver'
...
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

I do have sqlite/sqlite-devel installed.

Linux / FC4
sqlite-3.1.2-3
sqlite-devel-3.1.2-3

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



[PHP] When to make a class

2005-11-26 Thread Todd Cary
My background is in Object Oriented Pascal (Delphi), however I am having 
 difficulty knowing when to make a class in PHP.  For instance, in my 
script file, functions.php, I have these functions among others:


  /* Input a field */
  function input_field($name, $value, $size, $max) {
echo('');
  };

  /* Input a password field */
  function input_password_field($name, $value, $size, $max) {
echo('');
  };


Should I have a class that contains these functions (methods)?

One of my non-profit clients would like to have an online emailer 
program driven by a MySQL database.  This I can envision as a class, 
actually several classes (e.g. send mail, create message, select 
addresses, etc.).


Todd

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



[PHP] SQL Password() function

2005-11-26 Thread Yaswanth Narvaneni
Hi!

Is there a function (or a code snippet) in PHP for mysql password() function?

I 'dont' want to use something like select * from table where
table.passwd=password($passwd);

Is there any other alternate way to do it?

Regards,
Yaswanth


--
"In theory there is no difference between theory and practice.
In practice there is." -- Fortune Cookie

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



Re: [PHP] Re: $_GET and $_POST arrays not working

2005-11-26 Thread Unknown Unknown
Thank you, my login script started to work and i'l find some functions to
clean data properly


[PHP] Re: When to make a class

2005-11-26 Thread Oliver Grätz
Todd Cary schrieb:
> My background is in Object Oriented Pascal (Delphi), however I am having 
>   difficulty knowing when to make a class in PHP.  For instance, in my 
> script file, functions.php, I have these functions among others:
> 
>/* Input a field */
>function input_field($name, $value, $size, $max) {
>  echo('');
>};
> 
>/* Input a password field */
>function input_password_field($name, $value, $size, $max) {
>  echo('');
>};
> 
> 
> Should I have a class that contains these functions (methods)?

Simple answer:
If YOU don't see the benefits of a class then you shouldn't use one.

Longer answer:
I see the benefits of a class when functions start sharing variables.
Then you would have to use $GLOBALS or the global keyword. This is a big
indication that the functions should instead be inside a class and that
the variables should be properties of that class.
Of course, when you start using classes you slowly move to using classes
even if they're not absolutely necessary as with your two functions up
there. Then one notices that there are even more types of input fields
(radio buttons, hidden fields, select boxes...) and that they have
something in common (attributes of the input tag). So one could think
"Hey, why not make a base class for all fields?". And so on...

OLLi

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



[PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz
I'm pretty sure something like this already exists. Why? because I know 
somebody who uses it. Ok, so it's written in asp (by MS if I'm not 
mistaking), still... I wouldn't know why you'd want to write a new one 
in php... seems hard to make to me; might be wrong though.


anyway, good luck

bala chandar wrote:

Hi All,

I have just started a Open source Project in SourceForget.net using PHP.

Project Name: Weblook Express
URL : http://sourceforge.net/projects/weblookexpress

Idea came to me when i thought of porting the complete windows based
Desktop outlook express Application into a Portable, Web based
Application that runs on any Javascript supported webbrowser for any
POP3, or IMAP or HTTP Mail Service Providers.

I am just looking for people who can work along with me so that
complete porting occurs so that we can release the base version.

Technology to be used would be PHP, XML, XSLT, Javascript, HTML.

About Weblook Express
Weblook Express provides an integrated solution for managing and
organizing e-mail messages. It delivers innovations you can use to
manage your email communications, organize your mails - all from one
place similar like the desktop outlook express.

Project would involve complete porting of Desktop Outlook Express that
comes with Internet Explorer. The user should be able to configure
multiple Mail Service Providers. User experience is what we must see.
and i have more ideas in my mind. I also invite ideas, suggestions for
this project.

Looking for developers...
--
 balachandar muruganantham
 mbchandar
  mbchandar
 http://chandar.blogspot.com
http://www.balachandar.net
 http://www.expertstalk.org
http://www.chennaishopping.com


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



[PHP] Re: When to make a class

2005-11-26 Thread Todd Cary

Olli -

A very well thought out answer.  I especially liked the part, "I see the 
benefits of a class when functions start sharing variables.".


Todd

Oliver Grätz wrote:

Todd Cary schrieb:

My background is in Object Oriented Pascal (Delphi), however I am having 
 difficulty knowing when to make a class in PHP.  For instance, in my 
script file, functions.php, I have these functions among others:


  /* Input a field */
  function input_field($name, $value, $size, $max) {
echo('');
  };

  /* Input a password field */
  function input_password_field($name, $value, $size, $max) {
echo('');
  };


Should I have a class that contains these functions (methods)?



Simple answer:
If YOU don't see the benefits of a class then you shouldn't use one.

Longer answer:
I see the benefits of a class when functions start sharing variables.
Then you would have to use $GLOBALS or the global keyword. This is a big
indication that the functions should instead be inside a class and that
the variables should be properties of that class.
Of course, when you start using classes you slowly move to using classes
even if they're not absolutely necessary as with your two functions up
there. Then one notices that there are even more types of input fields
(radio buttons, hidden fields, select boxes...) and that they have
something in common (attributes of the input tag). So one could think
"Hey, why not make a base class for all fields?". And so on...

OLLi


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



[PHP] Re: Adding links to HTML for a CMS

2005-11-26 Thread Matt Monaco
You can use file_get_contents and use an http address as a parameter.  Then 
use the pearl regular expressions functions to replace  with the elements 
you'd like.


""Shaun"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I am trying to create my own CMS. To being with I want to let users edit 
> anything within a  tag.
>
> I want to have a menu to the left and display the webpage in the rest of 
> the page, and for each set of  tags I want the user to be able to click 
> on the link to edit that paragraph.
>
> My problem is how can I include a webpage in my CMS and for each  tag 
> wrap an  tag araound it?
>
> Thanks for your advice. 

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



[PHP] An event calendar

2005-11-26 Thread Todd Cary
Currently I am considering the use of ltwCalendar, however I am open to 
suggestions for an open source event calendar like this demo of ltwCalendar:


http://209.204.172.137/sfyc/php/calendar/calendar.php

I would like to be able to easily modify it so that I can have an event 
that links to another page when necessary or even to a "signup" page to 
make reservations.


Exploring

Todd

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



[PHP] Re: Adding links to HTML for a CMS

2005-11-26 Thread Matt Monaco
You can use file_get_contents and use an http address as a parameter.  Then 
use the pearl regular expressions functions to replace  with the elements 
you'd like.


""Shaun"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I am trying to create my own CMS. To being with I want to let users edit 
> anything within a  tag.
>
> I want to have a menu to the left and display the webpage in the rest of 
> the page, and for each set of  tags I want the user to be able to click 
> on the link to edit that paragraph.
>
> My problem is how can I include a webpage in my CMS and for each  tag 
> wrap an  tag araound it?
>
> Thanks for your advice. 

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



Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread Robert Cummings
On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote:
> I'm pretty sure something like this already exists. Why? because I know 
> somebody who uses it. Ok, so it's written in asp (by MS if I'm not 
> mistaking), still... I wouldn't know why you'd want to write a new one 
> in php... seems hard to make to me; might be wrong though.

Hard to make is not a very good argument against making something.
Especially when there's already a will to make it.

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



[PHP] Re: SQL Password() function

2005-11-26 Thread Gustavo Narea

Hi.

Yaswanth Narvaneni wrote:

Hi!

Is there a function (or a code snippet) in PHP for mysql password() function?

I 'dont' want to use something like select * from table where
table.passwd=password($passwd);

Is there any other alternate way to do it?


Try this:



You don't need a MySQL connection.

Happy weekend.

--
Gustavo Narea.
PHP Documentation - Spanish Translation Team.
Valencia, Venezuela.

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



[PHP] Re: When to make a class

2005-11-26 Thread Matt Monaco
There's really no reason making classes for those (unless you'd like to 
write an entire HTML class and its children - I'd be happy to use it!).

Matt

"Todd Cary" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> My background is in Object Oriented Pascal (Delphi), however I am having 
> difficulty knowing when to make a class in PHP.  For instance, in my 
> script file, functions.php, I have these functions among others:
>
>   /* Input a field */
>   function input_field($name, $value, $size, $max) {
> echo('');
>   };
>
>   /* Input a password field */
>   function input_password_field($name, $value, $size, $max) {
> echo('');
>   };
>
>
> Should I have a class that contains these functions (methods)?
>
> One of my non-profit clients would like to have an online emailer program 
> driven by a MySQL database.  This I can envision as a class, actually 
> several classes (e.g. send mail, create message, select addresses, etc.).
>
> Todd 

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



Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz

Robert Cummings wrote:

On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote:

I'm pretty sure something like this already exists. Why? because I know 
somebody who uses it. Ok, so it's written in asp (by MS if I'm not 
mistaking), still... I wouldn't know why you'd want to write a new one 
in php... seems hard to make to me; might be wrong though.



Hard to make is not a very good argument against making something.
Especially when there's already a will to make it.

Cheers,
Rob.


that wasn't the reason; the reason I'm looking at is that there is 
already a vendor-supplied way of doing it, and a non-vendor way would 
(most probably) not have the possibility of even duplicating the 
vendor-supplied version's possibilities (in this case).


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



Re: [PHP] Web based editor

2005-11-26 Thread Joe Wollard

On Nov 26, 2005, at 12:11 PM, Todd Cary wrote:


I want to provide the user with an editor like

http://209.204.172.137/FCKeditor/_samples/php/sample01.php

Is it best to use a JavaScript based editor?

Are there some "favorites" out there or is the FCKeditor about as  
good as they get?


Todd

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



I don't know if one is better than the next, but I've used TinyMCE in  
the past and it has served me well.

http://tinymce.moxiecode.com/

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



Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread Robert Cummings
On Sat, 2005-11-26 at 14:03, M. Sokolewicz wrote:
> Robert Cummings wrote:
> > On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote:
> > 
> >>I'm pretty sure something like this already exists. Why? because I know 
> >>somebody who uses it. Ok, so it's written in asp (by MS if I'm not 
> >>mistaking), still... I wouldn't know why you'd want to write a new one 
> >>in php... seems hard to make to me; might be wrong though.
> > 
> > 
> > Hard to make is not a very good argument against making something.
> > Especially when there's already a will to make it.
> > 
> 
> that wasn't the reason; the reason I'm looking at is that there is 
> already a vendor-supplied way of doing it, and a non-vendor way would 
> (most probably) not have the possibility of even duplicating the 
> vendor-supplied version's possibilities (in this case).

That's like saying open source solutions can't compete with commercial
solutions. I'm not buying it (pun observed but not intended :)

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] php + cURL issue

2005-11-26 Thread Nate Nielsen
I'm adding additional bounty to my problem for anyone who can help me fix 
it.


I'll send you a Rio Cali Sport 256 MB MP3 player - new in box.  Comes with 
the sport ear buds, arm strap, few other accessories.  You can google it for 
the details of it.  Great for a stocking stuffer or as an extra gadget for 
kicks (as if we all dont have enough).   =D


To restate the problem for those that have forgotten, one server is working 
(win 2k, other is not win 2k3) - same code, same versions of everything. 
I've created a page for you to view the code / the verbose data / the 
phpInfo() for the two servers.   Its a script to auto-login to a site - not 
particularly yahoo, the problem occurs with all cookie based logins, so 
using this yahoo script as an example.  Again, the win2k server ==IS== 
working with that code - so its dosent appear to be a code issue.


You can view the debug information here : http://70.84.198.254/index.html

thanks again,

Nate Nielsen
[EMAIL PROTECTED]



- Original Message - 
From: "Curt Zirzow" <[EMAIL PROTECTED]>

To: 
Sent: Friday, November 18, 2005 11:04 PM
Subject: Re: [PHP] php + cURL issue



On Fri, Nov 18, 2005 at 06:08:16PM -0600, Nate Nielsen wrote:

Okay, I've added the verbose output to copare exactly what is happening
between the two versions - thanks to Curt, the verbose info shows there 
IS

something different happening.

To recap, the code is exactly the same, the php version is the same (same
files even), the php.ini is the same (except drive letters), the curl
version is exactly the same (libcurl/7.14.0 OpenSSL/0.9.8 zlib/1.2.3). 
The
only difference is that one server is Win2k and the other is Win2003 
(and

of course one is working and other is not).


yeah, it does seem to be *not* a bug in curl versions.



Now it is very clear that something different is happening on the two
different servers.  I've created a page to list the phpInfo() data, the
code that is being run, and the VERBOSE information outputted by cURL.

You can view the information here : http://70.84.198.254/index.html


ok.. the key thing i noticed in that nice little side by side
display you put together is this:

When you are sending the first post data look at the end of it
curl is complaining about something:

Ok side:
name=login_form&.src=auc&.tries=1&.done=TML
4.01//EN&.md5=&.hash=&.js=&.partner=&.slogin=adsherrouse&.intl=us&.fUpdate=&.prelog=&.bid=&.aucid=&.challenge=.01//EN&.yplus=&.chldID=&pkg=&hasMsgr=0&passwd=doglogan&submit=Sign
 In< HTTP/1.1 302 Found

Bad Side:
name=login_form&.src=auc&.tries=1&.done=TML
4.01//EN&.md5=&.hash=&.js=&.partner=&.slogin=adsherrouse&.intl=us&.fUpdate=&.prelog=&.bid=&.aucid=&.challenge=.01//EN&.yplus=&.chldID=&pkg=&hasMsgr=0&passwd=doglogan&submit=Sign
 In* Curl_xxx_rcvs returned -1, block = TRUE

You will notice that the ok side is sends back a 302 while the bad
side is returning an error from curl.

I'm not sure what that Curl_xxx_rcvs.. line means but it seems is
the source of the problem.

A other thing you would want to compare is the actual results that
come back from the request.

On the otherhand, what you seem to be doing is very likely to break
sooner than later, i'm not sure why you want to proxy a complex web
authentication system such as yahoo's


Curt.
--

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



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



[PHP] Re: cms type session - how to ?

2005-11-26 Thread Raj Shekhar
in infinite wisdom Gregory Machin spoke thus  On 11/23/2005 04:28 PM:
> Sorry for the lack of clarity on the single page... eg :
> http://127.0.0.1/index.php?
> where the index.php holds the logic of what is displayed and by passing vars
> back to it's self determins what is next displayed .. hope that helps..

What you mean is that you want a MVC framework.  This might help
http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html and this
http://www.tonymarston.co.uk/php-mysql/model-view-controller.html#2005-06-21

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

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



[PHP] RecursiveDirectoryIterator & RecursiveFilterIterator

2005-11-26 Thread Jared Williams

Hi,
Having trouble writing a RecursiveFilterIterator to exclude linked 
directories from the recursive listing..

class DXLinkDirectoryRecursiveFilter extends RecursiveFilterIterator
{
function accept() { return TRUE; }
}

interface DXDirectoryVisitor
{
function visit(DirectoryIterator $file);
}

class DXDirectory
{
const FILES_FIRST = RecursiveIteratorIterator::CHILD_FIRST;
const FILES_ONLY = RecursiveIteratorIterator::LEAVES_ONLY;
const DIR_FIRST = RecursiveIteratorIterator::SELF_FIRST;

private $directory;

function __construct($directory)
{
$this->directory = $directory;
}


function forEvery(DXDirectoryVisitor $visitor, $mode = self::DIR_FIRST)
{
$r = file_exists($this->directory);
if ($r)
{
$directoryIterator = new 
RecursiveDirectoryIterator($this->directory);
$directoryIterator = new 
DXLinkDirectoryRecursiveFilter($directoryIterator);
$recursiveIteratorIterator = new 
RecursiveIteratorIterator($directoryIterator, $mode);
foreach($recursiveIteratorIterator as $i)
{
if (!$i->isDot())
$r = $r && $visitor->visit($i);
}
}
return $r;
}
}

class DXDirEcho implements DXDirectoryVisitor
{
function visit(DirectoryIterator $dir)
{
echo $dir->getPathname(), "\n";
return TRUE;
}
}


$d = new DXDirectory('somedirectory');
$d->forEvery(new DXDirEcho());

The filter shouldn't be doing anything, according to my understanding, but its 
filtering out all files in any of the subdirectories.

Jared

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



Re: [PHP] Web based editor

2005-11-26 Thread Todd Cary

Joe -

Thank you.  I like how TinyMCE integrates.

Todd
Joe Wollard wrote:

On Nov 26, 2005, at 12:11 PM, Todd Cary wrote:


I want to provide the user with an editor like

http://209.204.172.137/FCKeditor/_samples/php/sample01.php

Is it best to use a JavaScript based editor?

Are there some "favorites" out there or is the FCKeditor about as  
good as they get?


Todd

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



I don't know if one is better than the next, but I've used TinyMCE in  
the past and it has served me well.

http://tinymce.moxiecode.com/


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



[PHP] Re: cms type session - how to ?

2005-11-26 Thread Raj Shekhar
in infinite wisdom Gregory Machin spoke thus  On 11/23/2005 04:28 PM:
> Sorry for the lack of clarity on the single page... eg :
> http://127.0.0.1/index.php?
> where the index.php holds the logic of what is displayed and by passing vars
> back to it's self determins what is next displayed .. hope that helps..

What you mean is that you want a MVC framework.  This might help
http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html and this
http://www.tonymarston.co.uk/php-mysql/model-view-controller.html#2005-06-21

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

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



[PHP] Intersecting Dates

2005-11-26 Thread Shaun
Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how 
can one check if another set intersects these dates?

Thanks for your advice 

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



[PHP] Re: cms type session - how to ?

2005-11-26 Thread Raj Shekhar
in infinite wisdom Gregory Machin spoke thus  On 11/23/2005 04:28 PM:
> Sorry for the lack of clarity on the single page... eg :
> http://127.0.0.1/index.php?
> where the index.php holds the logic of what is displayed and by passing vars
> back to it's self determins what is next displayed .. hope that helps..

What you mean is that you want a MVC framework.  This might help
http://www.onlamp.com/pub/a/php/2005/09/15/mvc_intro.html and this
http://www.tonymarston.co.uk/php-mysql/model-view-controller.html#2005-06-21

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

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



[PHP] R: [PHP] Intersecting Dates

2005-11-26 Thread Sebastian \"En3pY\" Zdrojewski
If you got also the year you can transform the dates into UNIX TIMESTAMP and
check againist that. If you don't have that, write down a simple procedure
that converts dates into days since 01/01 and use that method, but it will
be faulty if the date ranges overlap years.

Cheers

En3pY 


Sebastian Konstanty Zdrojewski 



URL: http://www.en3py.net/
E-Mail: [EMAIL PROTECTED]



Le informazioni contenute in questo messaggio sono riservate e
confidenziali. Il loro utilizzo è consentito esclusivamente al destinatario
del messaggio, per le finalità indicate nel messaggio stesso. Qualora Lei
non fosse la persona a cui il presente messaggio è destinato, La invito ad
eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone
gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi
del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). 

-Messaggio originale-
Da: Shaun [mailto:[EMAIL PROTECTED] 
Inviato: sabato 26 novembre 2005 22.18
A: php-general@lists.php.net
Oggetto: [PHP] Intersecting Dates

Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how
can one check if another set intersects these dates?

Thanks for your advice 

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

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.8/183 - Release Date: 25/11/2005
 


smime.p7s
Description: S/MIME cryptographic signature


Re: [PHP] Re: Wanna Join me for an open source PHP Project?

2005-11-26 Thread M. Sokolewicz

Robert Cummings wrote:

On Sat, 2005-11-26 at 14:03, M. Sokolewicz wrote:


Robert Cummings wrote:


On Sat, 2005-11-26 at 11:09, M. Sokolewicz wrote:


I'm pretty sure something like this already exists. Why? because I know 
somebody who uses it. Ok, so it's written in asp (by MS if I'm not 
mistaking), still... I wouldn't know why you'd want to write a new one 
in php... seems hard to make to me; might be wrong though.



Hard to make is not a very good argument against making something.
Especially when there's already a will to make it.



that wasn't the reason; the reason I'm looking at is that there is 
already a vendor-supplied way of doing it, and a non-vendor way would 
(most probably) not have the possibility of even duplicating the 
vendor-supplied version's possibilities (in this case).



That's like saying open source solutions can't compete with commercial
solutions. I'm not buying it (pun observed but not intended :)

Cheers,
Rob.


pun accepted :)

after thinking this over for a while, I actually started wondering if 
this is about building a webinterface to an application (outlook) or if 
it's simply an outlook-similair interface to a mailhost.
If it's #1, I keep to my point (especially since you interface to an 
application which is *not* opensource). If it's #2 (or a variant 
thereof) I agree with you ;)


- tul

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



[PHP] Re: [PHP-WIN] Wanna Join me for an open source PHP Project?

2005-11-26 Thread Bob Stout
bala chandar wrote:

>Hi All,
>
>I have just started a Open source Project in SourceForget.net using PHP.
>
>Project Name: Weblook Express
>URL : http://sourceforge.net/projects/weblookexpress
>
>Idea came to me when I thought of porting the complete windows based
>Desktop outlook express Application into a Portable, Web based
>Application that runs on any Javascript supported web browser for any
>POP3, or IMAP or HTTP Mail Service Providers.
>
>I am just looking for people who can work along with me so that
>complete porting occurs so that we can release the base version.
>
>Technology to be used would be PHP, XML, XSLT, Javascript, HTML.
>

I'm currently using a commercial product for Outlook-HTML archiving
(MAPIlab's HTML E-mail Archiver). Although it works well and I'm
generally pleased with it, I would be interested in such an application
that was open source. However, I have no interest in Outlook Express. If
this ever progresses to the point of an MS Outlook version, I could get
interested in it.

-- 
Bob Stout <[EMAIL PROTECTED]> - The rules of life:
 "Either lead, follow, or get out of the way."
 "It's easier to get forgiveness than permission."
 "90% of everything is garbage."
 "Never attribute to malice what can be adequately explained by
  stupidity."

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



[PHP] Re: Intersecting Dates

2005-11-26 Thread M. Sokolewicz

Shaun wrote:


Hi,

Given a start day and month and end day and month (i.e. 01-01 to 31-03) how 
can one check if another set intersects these dates?


Thanks for your advice 
one possibility is to change the dates to timestamps, then check if the 
starting date (to intersect) is > $start or < $end, and check if the end 
date (intersect) is > $start or < $end. If any of those are true, it 
intersects.

(use strtotime() or some similair function to change 01-01 => 31-03)

another would be splitting dates and doing the same thing for months, 
followed by days (if months of both equal)


other possibilities also exist obviously (eg. you could use mysql's 
BETWEEN syntax)


- tul

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



[PHP] Where can i find docs to create a php5 extensions with OOP as SimpleXML?

2005-11-26 Thread Edwin Barrios
Hi,

I'm a PHP web programing, but i wanna learn how to develop php5 extensions.
I found php5 a good language to apply Objects programing, and it has very
usefull examples of OO extensions as SimpleXML, DOM, Sqlite; for this reason
i wanna develope my extension following those styles of API's .

I've read some docs about creating a php extension that appears as new
functions on PHP, but i can't find info to develop extensions that appear as
classes on PHP .

Thanks for your help. I'm really interested on this topic, especially to
collaborate in PHP extension projects as wxPHP.


[PHP] Improving my PHP coding

2005-11-26 Thread Todd Cary
Though my applications run in a high profile environment (national class 
action lawsuits e.g. Enron, Microsoft, etc.), my coding style is ages 
old, and even then, primitive.  If there is anyone who has the time to 
help me bring my coding up to 2005 standards, off line, I would 
appreciate it.


With appreciation

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



RE: [PHP] Where can i find docs to create a php5 extensions with OOP as SimpleXML?

2005-11-26 Thread vizion


> -Original Message-
> From: Edwin Barrios [mailto:[EMAIL PROTECTED]
> Sent: Saturday, November 26, 2005 7:07 PM
> To: php-general@lists.php.net
> Subject: [PHP] Where can i find docs to create a php5 extensions with OOP
> as SimpleXML?
> 
> Hi,
> 
> I'm a PHP web programing, but i wanna learn how to develop php5
> extensions.
> I found php5 a good language to apply Objects programing, and it has very
> usefull examples of OO extensions as SimpleXML, DOM, Sqlite; for this
> reason
> i wanna develope my extension following those styles of API's .
> 
> I've read some docs about creating a php extension that appears as new
> functions on PHP, but i can't find info to develop extensions that appear
> as
> classes on PHP .
> 
> Thanks for your help. I'm really interested on this topic, especially to
> collaborate in PHP extension projects as wxPHP.


I suggest you take a lookn at

http://www.zend.com/php5/articles/php5-xmlphp.php

david

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