php-general Digest 1 Jan 2009 16:25:33 -0000 Issue 5877

Topics (messages 285325 through 285350):

Re: IE Problem Detecting Post Variables
        285325 by: Jim Lucas
        285331 by: L. Herbert
        285332 by: L. Herbert
        285345 by: Nisse Engström
        285346 by: tedd
        285350 by: Phpster

Re: system() Question
        285326 by: Daniel Brown
        285327 by: Jim Lucas
        285328 by: Daniel Brown
        285334 by: Nathan Nobbe

Sending files via POST
        285329 by: Anders Norrbring
        285330 by: Daniel Brown
        285333 by: Anders Norrbring
        285344 by: Nathan Rixham

Re: PHP telnet server
        285335 by: Per Jessen
        285339 by: Luke Slater
        285340 by: Per Jessen
        285341 by: Luke Slater
        285349 by: Per Jessen

Re: Encryption/decryption of PHP data
        285336 by: Per Jessen
        285338 by: paragasu
        285347 by: Edward Diener
        285348 by: Edward Diener

Re: Since I speak with some of you more than people I see in person....
        285337 by: chris smith

Re: Quick question regarding debugging and PHP structure.
        285342 by: Nathan Rixham

Re: Question about version control.. sorta..
        285343 by: TG

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
L. Herbert wrote:
I agree with your supposition. The problem is that the variable is passed in one instance with FF and not with IE. Thus my quandary.

Here's the form html:

<div id="switch-theme">
    <form action="" method="post">
        <label>Flip It!</label>
<input name="style" type="image" src="images/switch-button-grey.gif" title="Default Theme" id="style1" value="default" /> <input name="style" type="image" src="himages/switch-button-default.gif" title="Alternate Theme" id="style2" value="alternate" />
    </form>
</div>

Any thoughts?



I understand that you have it all working with FF, but just a one question...

You have your grey button associated with your "Default Theme" button
and you have your default button associated with your "Alternate Theme" button

Is this correct?

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message --- Thanks! I see the issue clearly now. Oh well, time to modify my code to compensate for IE's non-standard behavior...


On Dec 31, 2008, at 11:07 PM, Lupus Michaelis wrote:

L. Herbert a écrit :
Each input is a "submit" button.

MSIE pushes input_name.x and input_name.y to the server, when the input is an image.

--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org

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



--- End Message ---
--- Begin Message ---
Jim,

This is functionally "correct" since I swapped the default and alternate themes but left the button names the same.

On Jan 1, 2009, at 12:55 AM, Jim Lucas wrote:

L. Herbert wrote:
I agree with your supposition. The problem is that the variable is passed in one instance with FF and not with IE. Thus my quandary.
Here's the form html:
<div id="switch-theme">
   <form action="" method="post">
       <label>Flip It!</label>
<input name="style" type="image" src="images/switch-button- grey.gif" title="Default Theme" id="style1" value="default" /> <input name="style" type="image" src="himages/switch-button- default.gif" title="Alternate Theme" id="style2" value="alternate" />
   </form>
</div>
Any thoughts?

I understand that you have it all working with FF, but just a one question...

You have your grey button associated with your "Default Theme" button
and you have your default button associated with your "Alternate Theme" button

Is this correct?

--
Jim Lucas

  "Some men are born to greatness, some achieve greatness,
      and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
   by William Shakespeare


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



--- End Message ---
--- Begin Message ---
On Thu, 1 Jan 2009 03:17:01 -0500, "L. Herbert" wrote:

> On Dec 31, 2008, at 11:07 PM, Lupus Michaelis wrote:
> 
>>  MSIE pushes input_name.x and input_name.y to the server, when the  
>> input is an image.

> Thanks!  I see the issue clearly now.  Oh well, time to modify my code  
> to compensate for IE's non-standard behavior...

Actually, that *is* standard behaviour.

<http://www.w3.org/TR/html401/interact/forms.html#h-17.4.1>


/Nisse

--- End Message ---
--- Begin Message ---
At 8:37 PM -0500 12/31/08, L. Herbert wrote:
Any thoughts?


Theme (style) switcher? Try these:

http://sperling.com/examples/styleswitch/

http://sperling.com/examples/styleswitch1/

It makes no difference which browser you are using.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message --- What about using the onclick to set a js variable to be sent to the server? That should be more cross server compliant.

Bastien

Sent from my iPod

On Dec 31, 2008, at 8:37 PM, "L. Herbert" <lherb...@iluvmydesign.com> wrote:

Bastien,

Thanks for your response. The curious thing is that the value is passed when using FF, but not passed when using IE.

Here is the relevant form html:

               <div id="switch-theme">
                   <form action="" method="post">
                       <label>Flip It!</label>
<input name="style" type="image" src="images/ switch-button-grey.gif" title="Default Theme" id="style1" value="default" /> <input name="style" type="image" src="himages/ switch-button-default.gif" title="Alternate Theme" id="style2" value="alternate" />
                   </form>
               </div>

The action attribute is left blank so the form posts to the current page. The theme switcher script is at the top of each page and intercepts the posted variables.

Any thoughts?


On Dec 31, 2008, at 11:02 AM, Phpster wrote:

Try checking to see if the value was passed with var_dump($_REQUEST)

Also try (!empty($_REQUEST['style']))


Bastien

Sent from my iPod

On Dec 31, 2008, at 10:24 AM, "L. Herbert" <lherb...@iluvmydesign.com> wrote:

Hello all,

Anyone have insight to share on the following issue:

I have a simple theme switcher script that functions as expected in FF, Safari, etc. but does not work in IE 6 or 7. It appears that the posted form variables are not detected in IE. I am using the following check within the script:

if(isset($_REQUEST['style'])) {

 $style = $_REQUEST['style'];
}

Thanks in advance for your assistance.

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



--- End Message ---
--- Begin Message ---
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe <quickshif...@gmail.com> wrote:
> On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten <mi...@onshore.com> wrote:
>>
>> I think I was confused here about your response.  After re-reading a few
>> times, I see that you were enhancing Dan's response by explaining what
>> call-time pass by reference is, not saying that the function is used
>> that way.
>> My apologies.
>
> no worries

    So help me God, if you two don't stop fighting, I'm going to turn
this car around....


    (;-P)

-- 
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe <quickshif...@gmail.com> wrote:
On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten <mi...@onshore.com> wrote:
I think I was confused here about your response.  After re-reading a few
times, I see that you were enhancing Dan's response by explaining what
call-time pass by reference is, not saying that the function is used
that way.
My apologies.
no worries

    So help me God, if you two don't stop fighting, I'm going to turn
this car around....


    (;-P)


Getting in some practice for new little one?  :)

Happy New Year to all, and to all a safe night!

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
On Thu, Jan 1, 2009 at 01:57, Jim Lucas <li...@cmsws.com> wrote:
>
> Getting in some practice for new little one?  :)

    Damn kids.... ;-P

> Happy New Year to all, and to all a safe night!

    To you as well, Mr. Lucas!  And now that I am done with work (for
the most part), this is my official adieu to 2008.  Thanks for the
memories.

-- 
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!

--- End Message ---
--- Begin Message ---
On Thu, Jan 1, 2009 at 12:01 AM, Daniel Brown <danbr...@php.net> wrote:

> On Thu, Jan 1, 2009 at 01:57, Jim Lucas <li...@cmsws.com> wrote:
> >
> > Getting in some practice for new little one?  :)
>
>     Damn kids.... ;-P
>
> > Happy New Year to all, and to all a safe night!
>
>     To you as well, Mr. Lucas!  And now that I am done with work (for
> the most part), this is my official adieu to 2008.  Thanks for the
> memories.
>

merry new year to all you folks out there, wherever you hail from!

-nathan

--- End Message ---
--- Begin Message ---
I'm a bit stuck.. I'm using the PEAR http_Request to send files and data as
HTTP POST, which is working fine if I in fact have the files on disk on the
server. Just using the method addFile..

But what if the file data is only in a variable? It feels like overkill to
first save to disk, and then read it in with addFile... The HTTP POST I'm
looking at will need to add "files" both from disk and variables.

Ideas are welcome..


--- End Message ---
--- Begin Message ---
On Thu, Jan 1, 2009 at 02:35, Anders Norrbring <and...@norrbring.se> wrote:
> I'm a bit stuck.. I'm using the PEAR http_Request to send files and data as
> HTTP POST, which is working fine if I in fact have the files on disk on the
> server. Just using the method addFile..

    Okay....

> But what if the file data is only in a variable? It feels like overkill to
> first save to disk, and then read it in with addFile... The HTTP POST I'm
> looking at will need to add "files" both from disk and variables.

    .... then it's not a file, it's data held in RAM (non-TSR).

   Are you looking to stream the file content (such as the header or
initial $n bytes) from you local system to the server?  If so, sorry,
but you're in the wrong place.

> Ideas are welcome..

    My idea is to ask the question: how is the "file data" getting
into the "variable"?

-- 
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!

--- End Message ---
--- Begin Message ---
> On Thu, Jan 1, 2009 at 02:35, Anders Norrbring <and...@norrbring.se>
> wrote:
> > I'm a bit stuck.. I'm using the PEAR http_Request to send files and
> data as
> > HTTP POST, which is working fine if I in fact have the files on disk
> on the
> > server. Just using the method addFile..
> 
>     Okay....
> 
> > But what if the file data is only in a variable? It feels like
> overkill to
> > first save to disk, and then read it in with addFile... The HTTP POST
> I'm
> > looking at will need to add "files" both from disk and variables.
> 
>     .... then it's not a file, it's data held in RAM (non-TSR).


Absolutely true, but the receiving end is expecting the data as a file
upload.


>    Are you looking to stream the file content (such as the header or
> initial $n bytes) from you local system to the server?  If so, sorry,
> but you're in the wrong place.

I don't really understand what you're asking for above, but to try to
explain... My server is to create a HTTP POST request to another system,
with a couple of "form variables" and also 2-3 "files". Much like a manual
html form will do, but with no human intervention.


> > Ideas are welcome..
> 
>     My idea is to ask the question: how is the "file data" getting
> into the "variable"?


Well, some of the "form values" are static, like user name etc. Then one
file will be static (and stored on disk as a file) and added with method
'addData' to the POST request. Another "file" is generated dynamically from
data stored in a SQL database and data provided by user input from visiting
my site. Of course I can store this dynamically generated data to disk, add
it with 'addData' and then delete it after the request is made, but it
doesn't really feel like the right thing to do.

Anders.


--- End Message ---
--- Begin Message ---
Anders Norrbring wrote:
On Thu, Jan 1, 2009 at 02:35, Anders Norrbring <and...@norrbring.se>
wrote:
I'm a bit stuck.. I'm using the PEAR http_Request to send files and
data as
HTTP POST, which is working fine if I in fact have the files on disk
on the
server. Just using the method addFile..
    Okay....

But what if the file data is only in a variable? It feels like
overkill to
first save to disk, and then read it in with addFile... The HTTP POST
I'm
looking at will need to add "files" both from disk and variables.
    .... then it's not a file, it's data held in RAM (non-TSR).


Absolutely true, but the receiving end is expecting the data as a file
upload.


   Are you looking to stream the file content (such as the header or
initial $n bytes) from you local system to the server?  If so, sorry,
but you're in the wrong place.

I don't really understand what you're asking for above, but to try to
explain... My server is to create a HTTP POST request to another system,
with a couple of "form variables" and also 2-3 "files". Much like a manual
html form will do, but with no human intervention.


Ideas are welcome..
    My idea is to ask the question: how is the "file data" getting
into the "variable"?


Well, some of the "form values" are static, like user name etc. Then one
file will be static (and stored on disk as a file) and added with method
'addData' to the POST request. Another "file" is generated dynamically from
data stored in a SQL database and data provided by user input from visiting
my site. Of course I can store this dynamically generated data to disk, add
it with 'addData' and then delete it after the request is made, but it
doesn't really feel like the right thing to do.

Anders.


after having a flick through the source it looks like a limitation of http request;
http://pear.php.net/package/HTTP_Request/docs/latest/__filesource/fsource_HTTP_Request__HTTP_Request-1.4.4Request.php.html
check lines around 600 and 900+

you'd have to set the http request yourself i thinks! (setBody)

may be worth contacting they who maintain the package

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:

>> 
>> It's not easy in any language, but if your key concern is the
>> performance of PHP (as a language), hardware is what you need.  You
>> can design your software to run on a single box with lots of CPU
>> cores, or
>> you can go for a distributed (and more easily scalable) approach.  If
>> you don't need/want straight scalability, go for the 32 cores all
>> ticking at 3GHz.  Once that is saturated, buy another one.
> 
> If you go multi core then you need to go with a threaded approach...
> which makes the development a bit complex for newbies to MUD
> development. 

'c...@l-i-e.com' doesn't seem like a newbie to me, but you're right, it
would be a complex job for a newbie.  Nevertheless, given todays
machines where even laptops have multiple cores, I would certainly
design any new performance-critical application for multi-threading. 
(Multi-threading in PHP is a challenge in itself, and I wouldn't choose
PHP for such a job, but that's a different story).

> I don't think I'd go distributed since people whine about 
> lag that takes a 1/4 second... distributed would inherently require
> more time while messages are passed to and fro.

That is perhaps a valid consideration, but isn't it easily dealt with by
using gigabit ethernet or infiniband or something similar?

The distributed vs. one big monolith discussion is also a matter of
space, cooling, electricity etc.  The big monolith is easier to deal
with, but also carries a different pricetag. The many machines can be
gradually expanded at a lower cost, but need much more in terms of
infrastructure.


/Per Jessen, Zürich


--- End Message ---
--- Begin Message --- Well the current system runs of a 20MB internet connection in London, seeing as that's the UK that about 2MB.

It runs fine, responses are snappy even dealing with loads of users.

This, however, is written in C: does PHP have that much of an overhead so that bandwidth is actually that much of an issue?

On Thu, 1 Jan 2009, Per Jessen wrote:

Robert Cummings wrote:


It's not easy in any language, but if your key concern is the
performance of PHP (as a language), hardware is what you need.  You
can design your software to run on a single box with lots of CPU
cores, or
you can go for a distributed (and more easily scalable) approach.  If
you don't need/want straight scalability, go for the 32 cores all
ticking at 3GHz.  Once that is saturated, buy another one.

If you go multi core then you need to go with a threaded approach...
which makes the development a bit complex for newbies to MUD
development.

'c...@l-i-e.com' doesn't seem like a newbie to me, but you're right, it
would be a complex job for a newbie.  Nevertheless, given todays
machines where even laptops have multiple cores, I would certainly
design any new performance-critical application for multi-threading.
(Multi-threading in PHP is a challenge in itself, and I wouldn't choose
PHP for such a job, but that's a different story).

I don't think I'd go distributed since people whine about
lag that takes a 1/4 second... distributed would inherently require
more time while messages are passed to and fro.

That is perhaps a valid consideration, but isn't it easily dealt with by
using gigabit ethernet or infiniband or something similar?

The distributed vs. one big monolith discussion is also a matter of
space, cooling, electricity etc.  The big monolith is easier to deal
with, but also carries a different pricetag. The many machines can be
gradually expanded at a lower cost, but need much more in terms of
infrastructure.


/Per Jessen, Zürich


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


--- End Message ---
--- Begin Message ---
Luke Slater wrote:

> Well the current system runs of a 20MB internet connection in London,
> seeing as that's the UK that about 2MB.
> 
> It runs fine, responses are snappy even dealing with loads of users.
> 
> This, however, is written in C: does PHP have that much of an overhead
> so that bandwidth is actually that much of an issue?
> 

The implementation language does not affect your bandwidth requirements
at all.


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
The current system also uses some kind of strange text based database, I was
wondering if using MySQL for the database would slow it down too much?



> > Well the current system runs of a 20MB internet connection in London,
> > seeing as that's the UK that about 2MB.
> >
> > It runs fine, responses are snappy even dealing with loads of users.
> >
> > This, however, is written in C: does PHP have that much of an overhead
> > so that bandwidth is actually that much of an issue?
> >
>
> The implementation language does not affect your bandwidth requirements
> at all.
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Luke Slater
:O)

PGP Fingerprint: 643B B93E D979 15C9 5BBD 7AF9 A18B 9831 6600 C396

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)

mQGiBEjrxM0RBADm6CySSIf+t4TqTwXyleiS1dwUJiMiwoesJcerVzGAkl5kJjhv
ZQp2uVEeMsX5Wo7/1AxDN8yV9cNRcX0wl8QXAFqn+7XG7GWRQlVMdmftHEFokK+/
FfU5md2c87juGPsJkZcBIu1E2UAbppAzLydRAHMBZUi2+x8X/+Bh1v1j3wCg69EM
2EM6giPRQ9H+GDvSNBfiq+sD/3ZkOeynNx9v4hFegQtRPUe7CxQbjkxzPARO4bBd
A4Cx5EHlgKAE3hdZRMl38pl9kBD7s548s2wzKLSCsQeWMJp+bdoxj5mopPWH95hG
ITDRUl/i12xC669rYQhGDY+rZW5ltmlhtNBpVHBVbr8/JogJR1/XgW1WFLWlYMTC
znnfBADJz6d+CR6SEb1iqAHVGB1sMz5mmTQ/qbtbirkDKC+4DWB0MrmRkllK8PgC
Rs+MEhwoVL1zSQPYCChZTFZS7Ja6t7duqbqWOp90gWY4gbFrcihBC+WzkwpRELil
T2wVcEtqcU25EVAGmtcAqDxRvQ/2WVReaKBZQ4brCcAGZUSAQLQ7THVrZSBTbGF0
ZXIgKE51LVZvbyBzb2Z0d2FyZSBkZXNpZ24pIDx0aW5tYWNoaW4zQGdtYWlsLmNv
bT6IYAQTEQIAIAUCSOvEzQIbIwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJEKGL
mDFmAMOWtnwAoJFKtRxa6/kHkuq52rI5d+3MrC2BAJ0S0yXE7uKyzuRgFI2Uv4Fw
cWWQ5IhgBBMRAgAgBQJI687PAhsjBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQ
oYuYMWYAw5aSogCfZTDDPlCnq9dXxax3TQ71f55d1w8AoNlMKmUQdNa4MZMaKyCx
bjYKtHz4uQENBEjrxM0QBADSsxd0x6Ioa+b/4OTIp7z2oFm72dS5CuxJl9fuhfPG
ee1yfaBHDDTHvh2k9IpWhFC+ZhCJkp560BbOpdGItZ2yhH2cCdrOeYCqiVWQBN5v
dwQaJ0o8Z/bSo5xHgLe4iED596rs6lnv8HGBnzoEQNGbexI/p9vbRTvuCLWzPZfu
7wAECwP/cXlVBrfY8E2vt6T9WUGJcWPjx9MM1wY/xLvqyJjmFLc6UAWnbR17Vb0n
c/7Af+wD1yFzUlt54bW3hqyn4sKkf6sejupY7sWbBTDCjNCJ5fAGfDzmxha/KYN7
XL7Gjp4pVfmXaPucj9WbQj8uEQi/mQ265GlCNHFofnsBAeOcxZ+ISQQYEQIACQUC
SOvEzQIbDAAKCRChi5gxZgDDlugxAJ4+eNpkqv6RELyjw3Bsx6L80maHiwCdFL6I
HlaeNZYrTyhaCMt46Gz8kN0=
=z+JR
-----END PGP PUBLIC KEY BLOCK-----

--- End Message ---
--- Begin Message ---
Luke wrote:

> The current system also uses some kind of strange text based database,
> I was wondering if using MySQL for the database would slow it down too
> much?
> 

It depends on the type and mix of transactions, but based on the
information available, I don't think MySQL will slow it down too much.


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
Edward Diener wrote:

> Phpster wrote:
>> In reading the license I believe it refers to the gnupg itself, not
>> the application it may be embedded in. You are completely free to use
>> gnupg as you choose including modifying it to meet your needs.
> 
> I always thought the GNU public license demanded that any non-free
> modules, which use any software distributed with this license, make
> their source code freely available to end users. If this is either not
> the case or no longer the case, then I will be glad to use GnuPG.

If you are distributing or selling your non-GPL software and you use GPL
software with it, then yes, I believe you are required to make your
source code available to the end-user too.  

Maybe have a quick look at http://gpl-violations.org/ 


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
if you want client to send encrypted form to server. then it must be
done using some kind of
client side script (javascript?). i don't think it is reliable.

why not just use https protocol. all data between client and server
will be encrypted.

On 1/1/09, Per Jessen <p...@computer.org> wrote:
> Edward Diener wrote:
>
>> Phpster wrote:
>>> In reading the license I believe it refers to the gnupg itself, not
>>> the application it may be embedded in. You are completely free to use
>>> gnupg as you choose including modifying it to meet your needs.
>>
>> I always thought the GNU public license demanded that any non-free
>> modules, which use any software distributed with this license, make
>> their source code freely available to end users. If this is either not
>> the case or no longer the case, then I will be glad to use GnuPG.
>
> If you are distributing or selling your non-GPL software and you use GPL
> software with it, then yes, I believe you are required to make your
> source code available to the end-user too.
>
> Maybe have a quick look at http://gpl-violations.org/
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Per Jessen wrote:
Edward Diener wrote:

Phpster wrote:
In reading the license I believe it refers to the gnupg itself, not
the application it may be embedded in. You are completely free to use
gnupg as you choose including modifying it to meet your needs.
I always thought the GNU public license demanded that any non-free
modules, which use any software distributed with this license, make
their source code freely available to end users. If this is either not
the case or no longer the case, then I will be glad to use GnuPG.

If you are distributing or selling your non-GPL software and you use GPL
software with it, then yes, I believe you are required to make your
source code available to the end-user too.

The project in which I am working is definitely selling the software and we have no intention of distributing the source code with it. So that leaves GnuPG out.

Is there any other PHP public key-private key implementation which I can use which either I will pay for or does not use the Gnu Public license ?
--- End Message ---
--- Begin Message ---
paragasu wrote:
if you want client to send encrypted form to server. then it must be
done using some kind of
client side script (javascript?).

I am using C++.

i don't think it is reliable.

Why would it not be reliable if I were using a public-key/private-key encryption library which works both with PHP and C++ ?


why not just use https protocol. all data between client and server
will be encrypted.

The data must be encrypted/decrypted going both ways between the client and the server. Does using https automatically do that ? If it does that would be great.


On 1/1/09, Per Jessen <p...@computer.org> wrote:
Edward Diener wrote:

Phpster wrote:
In reading the license I believe it refers to the gnupg itself, not
the application it may be embedded in. You are completely free to use
gnupg as you choose including modifying it to meet your needs.
I always thought the GNU public license demanded that any non-free
modules, which use any software distributed with this license, make
their source code freely available to end users. If this is either not
the case or no longer the case, then I will be glad to use GnuPG.
If you are distributing or selling your non-GPL software and you use GPL
software with it, then yes, I believe you are required to make your
source code available to the end-user too.

Maybe have a quick look at http://gpl-violations.org/


/Per Jessen, Zürich


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



--- End Message ---
--- Begin Message ---
>    And as a side note (some of you already know): for my wife and I
> closing out the year, we heard the heartbeat of our first child for
> the first time today in the ultrasound.  Nothing else will ever again
> matter as much to me as what I am about to embark upon.  I don't think
> any song or sound I've ever heard in my entire life was as beautiful
> as those few seconds.  My heart literally feels so full that it could
> burst at any moment.

Congrats!! That's awesome news, they are so much fun. Half way through
waiting for #3 heh.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
On Wed, 2008-12-31 at 20:41 +0000, Ólafur Waage wrote:
Short: Is it possible to see the PHP code that is going to be
processed in whole?

Long: I love to see things visually, and while programming i create
all kinds of debugging variables i keep on the side for each
page/request.
I know this is possibly not possible since this has to be done from
either the Zend Engine or PHP itself, but if i could see a complete
output of all the code within my project that is used for a certain
execution.

Example:
I call index.php?page=10

index.php includes functions.php and classes.php
classes.php include page_classes.php if there is a $_GET["page"]
variable set and product_classes.php if there is a $_GET["product"]
variable set

What i would like to see is the linear output of what code is included
(so the data of functions.php, classes.php, then page_classes.php, and
then index.php (not product_classes.php since its not included within
this request)

This is most likely possible with some PHP code but I'm thinking of
trying to make sense of an old project i didn't create quickly and if
this is possible it would help a lot.

Have you looked at PHPDebug? It offers something similar to what has
been offered by ASP, ColdFusion, and .Net in terms of debugging output,
and could help you?


Ash
www.ashleysheridan.co.uk


you can also just use eclipse+pdt, stick it in debug mode and step through every line of code exploring all the variables and such like every step of the way
--- End Message ---
--- Begin Message ---
Thanks for the recommendations, everyone.   I decided to give Subversion 
another try, since I had a server already set up from when I tried this a 
while ago.   Reinstalled TortoiseSVN for Windows and got it all configured. 
  But I couldn't figure out how to update existing files in the repository 
without checking them out.   I tried using the RepoBrowser and I could add 
new items by dragging them to the browser, but if I tried to drag something 
that already existed, I got an error.

Is there any way to reimport as a new version?   In particular, I'd love to 
have it just import changed files.

I'd love to also be able to select a date and get a copy of the directory in 
question as it appeared on that date.


I'm sure there's ways to do this with SVN, but it's eluding me.  I'll keep 
looking, but I'm thinking that SVN is overkill for what I need, even though 
it's in the right ballpark.

The other option mentioned, FileHamster, has potential, but I'd rather 
control my own server and storage requirements.  Plus I didn't see a way to 
either whitelist of blacklist file types.  I really just want to back up 
script files and not the PDFs and other large files.  So either 
whitelisting by file type (or blacklisting if necessary) or even doing it 
by file size would be fine.

My web host supports rsync, but I don't think I've seen any version control 
options for rsync.

This seems like a fairly basic request, but it's stumping me.

-TG

----- Original Message -----
From: Micah Gersten <mi...@onshore.com>
To: Richard Heyes <rich...@php.net>
Cc: TG <tg-...@gryffyndevelopment.com>, php-gene...@lists.php.net
Date: Wed, 31 Dec 2008 20:06:25 -0600
Subject: Re: [PHP] Question about version control.. sorta..

> Richard Heyes wrote:
> >> The other issue is that I run Windows.  So if there's something nice and
> >> WinGUI, that'd be nice.   Please no "you should be running linux"
> >>     
> >
> > You should be running linux. Muhaha.
> >
> >   
> >> responses.  I don't have anything against Linux or Mac, they're great
> >> systems.  But I have my reasons for running Windows.
> >>     
> >
> > There's definitely a Gui for CVS. TurtleCVS IIRC. Presumably there's
> > one for SVN.
> >
> >   
> TortoiseCVS and TortoiseSVN on Windows
> 
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
> 
> 
> 

--- End Message ---

Reply via email to