php-general Digest 5 Jun 2012 15:29:29 -0000 Issue 7842

2012-06-05 Thread php-general-digest-help

php-general Digest 5 Jun 2012 15:29:29 - Issue 7842

Topics (messages 318156 through 318167):

zend_auto_global_disable_jit missing in PHP 5.4.5
318156 by: freeone3000
318166 by: Daniel Brown
318167 by: Matijn Woudt

Re: long running php script won't complete :(
318157 by: rene7705

Re: disabled cookies
318158 by: Lester Caine

Re: 0.0.0.0  iplong()
318159 by: jas
318160 by: Matijn Woudt
318161 by: jas
318162 by: Chris Knipe
318165 by: Matijn Woudt

Which workstation
318163 by: Farzan Dalaee
318164 by: Simon Schick

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


--
---BeginMessage---
I'm working with a third-party PHP extension that makes a call to
zend_auto_global_disable_jit. However, in PHP5.4.5, there is no
zend_auto_global_disable_jit available, nor is it in its traditional
header. Commenting out all zend_auto_global_disable_jit calls causes
PHP to no longer recognize it as a valid extension, while leaving them
in attempts for an invalid method to be called.

The file in question is
https://github.com/mtorromeo/runkit/blob/master/runkit.c line 305. As
is relatively obvious, it's not part of a macro, and its removal
should not affect whether the library is a PHP extension or not -
perhaps it's based on PHP's static analysis? If it doesn't call the
function, it would access a global, possibly before the global has
been JIT initialized by the runtime. If this is the case, what is the
replacement function for PHP 5.4.5?

-- 
James Moore
---End Message---
---BeginMessage---
On Mon, Jun 4, 2012 at 11:30 PM, freeone3000 freeone3...@gmail.com wrote:
 I'm working with a third-party PHP extension that makes a call to
 zend_auto_global_disable_jit. However, in PHP5.4.5, there is no
 zend_auto_global_disable_jit available, nor is it in its traditional
 header. Commenting out all zend_auto_global_disable_jit calls causes
 PHP to no longer recognize it as a valid extension, while leaving them
 in attempts for an invalid method to be called.

 The file in question is
 https://github.com/mtorromeo/runkit/blob/master/runkit.c line 305. As
 is relatively obvious, it's not part of a macro, and its removal
 should not affect whether the library is a PHP extension or not -
 perhaps it's based on PHP's static analysis? If it doesn't call the
 function, it would access a global, possibly before the global has
 been JIT initialized by the runtime. If this is the case, what is the
 replacement function for PHP 5.4.5?

This is something you're going to want to ask on the Internals
list (CC'd).  General is more for questions on using the language.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/
---End Message---
---BeginMessage---
On Tue, Jun 5, 2012 at 4:39 AM, freeone3000 freeone3...@gmail.com wrote:
 I'm working with a third-party PHP extension that makes a call to
 zend_auto_global_disable_jit. However, in PHP5.4.5, there is no
 zend_auto_global_disable_jit available, nor is it in its traditional
 header. Commenting out all zend_auto_global_disable_jit calls causes
 PHP to no longer recognize it as a valid extension, while leaving them
 in attempts for an invalid method to be called.

 The file in question is
 https://github.com/mtorromeo/runkit/blob/master/runkit.c line 305. As
 is relatively obvious, it's not part of a macro, and its removal
 should not affect whether the library is a PHP extension or not -
 perhaps it's based on PHP's static analysis? If it doesn't call the
 function, it would access a global, possibly before the global has
 been JIT initialized by the runtime. If this is the case, what is the
 replacement function for PHP 5.4.5?

 --
 James Moore


There's a bug report about it at [1], though there's no solution there.

- Matijn

[1] https://bugs.php.net/bug.php?id=61189
---End Message---
---BeginMessage---
On Mon, Jun 4, 2012 at 6:52 PM, Matijn Woudt tijn...@gmail.com wrote:
 On Mon, Jun 4, 2012 at 5:57 PM, rene7705 rene7...@gmail.com wrote:
 Hi.

 I've got a piece of code that builds up a multi-meg test array for my
 opensourced http://mediabeez.ws/products/htmlMicroscope var_dump()
 improvement, and when I run it for longer than about 20 minutes, the
 browser just calls it quits.. :( Firefox, and chrome.

 I'd like to do this with a browser call, if all else fails I suppose I
 can run the generation of the test array from the commandline, but I
 prefer calling from the browser..

 So, I'm doing ob_start(), then start the main loop which does echo
 '.'; ob_flush(); flush();.

 I've got my KeepAliveTime set to 25 seconds, as per
 http://www.pctools.com/guides/registry/detail/891/

 And I'm 

Re: [PHP] long running php script won't complete :(

2012-06-05 Thread rene7705
On Mon, Jun 4, 2012 at 6:52 PM, Matijn Woudt tijn...@gmail.com wrote:
 On Mon, Jun 4, 2012 at 5:57 PM, rene7705 rene7...@gmail.com wrote:
 Hi.

 I've got a piece of code that builds up a multi-meg test array for my
 opensourced http://mediabeez.ws/products/htmlMicroscope var_dump()
 improvement, and when I run it for longer than about 20 minutes, the
 browser just calls it quits.. :( Firefox, and chrome.

 I'd like to do this with a browser call, if all else fails I suppose I
 can run the generation of the test array from the commandline, but I
 prefer calling from the browser..

 So, I'm doing ob_start(), then start the main loop which does echo
 '.'; ob_flush(); flush();.

 I've got my KeepAliveTime set to 25 seconds, as per
 http://www.pctools.com/guides/registry/detail/891/

 And I'm calling this from my browser to the domain name that points
 back to the machine I run the browser on, latest wampserver on windows
 7.
 Calling via localhost doesn't work somehow.

 Is there anything obvious I've missed?


 Just to be sure, have you checked the Apache error logs for anything
 obvious? (eg. out of memory?)
 In case the browser closes the connection, you could use
 ignore_user_abort [1] to be sure the script continues, though the
 browser won't receive the result.

 - Matijn

 [1] www.php.net/manual/en/function.ignore-user-abort.php

ignore_user_abort(true) together with set_time_limit(0) is doing the
job nicely atm. thanks!

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



Re: [PHP] disabled cookies

2012-06-05 Thread Lester Caine

Matijn Woudt wrote:

Yeah, it's been such a pain, as nobody over here is quite sure how the
  hell it'll be enforced either, or if it even will be. It's also pretty
  vague as to just where the line gets drawn. The official government
  sites on this are pretty black and white, but don't clearly address the
  grey areas. I think this is definitely a case of the persons making the
  laws don't understand the technology involved, which sadly seems to be
  the case across a lot of tech laws being passed world-wide of late:(


Yep,  When this law was discussed, they were mostly talking about
completely banning cookies. Only later they figured out that there are
quite a few sites that can't live without cookies...


Cookies for shopping baskets got flagged up early on and then people started to 
realise that there were more good reasons for using the than bad ;)
The main 'grey' area is a session cookie which classified along with shopping 
basket ones - which don't need specific permission - but then we are told we 
should still ask? But we don't need to ask about shopping basket ones!


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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



Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread jas

On 06/04/2012 12:48 PM, Matijn Woudt wrote:

On Mon, Jun 4, 2012 at 8:38 PM, jasjason.ger...@gmail.com  wrote:

On 06/04/2012 11:33 AM, Matijn Woudt wrote:


On Mon, Jun 4, 2012 at 6:54 PM, jasjason.ger...@gmail.comwrote:


Not sure if this is a bug or not...

I have run into an error when performing a conditional using iplong() and
the ~ bitwise operator

$ip = '0.0.0.0';
$mask = '24';

$end = (ip2long($ip) || (~ip2long($mask))) + 1;

PHP Fatal error:  Unsupported operand types

I even tried to typecast the mask to (int)



The error is probably not where you suspect it to be. ip2long will
return false for ip2long($mask), because $mask is not a valid IP
address. The ~ operator is not supported for false.

- Matijn



Strange... this works

$ip = '10.0.2.0';
$mask = '24';

Anything using 0.0.0.0 fails using the bitmask to calculate valid CIDR
ranges.



Yes, because with $ip being 0.0.0.0, the result of ip2long($ip) will
be zero. Zero evaluates to false when PHP is going to parse the ||
operator, and because of that, it continues to parse the rest.
When the result of ip2long($ip) is greater that zero, in case of some
other valid IP, it will evaluate to true and PHP will not even execute
the rest after the || because the result will be true anyway.
Did you mean to use a single | operator, as a bitwise OR?

- Matijn


With any ACL rule using iptables, hosts.allow/hosts.deny, routers where 
0.0.0.0/24 is specified (all of the internet ipv4 addresses) this is a 
valid range using CIDR notation.


It seems like a bug to me

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



Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 1:07 PM, jas jason.ger...@gmail.com wrote:
 On 06/04/2012 12:48 PM, Matijn Woudt wrote:

 On Mon, Jun 4, 2012 at 8:38 PM, jasjason.ger...@gmail.com  wrote:

 On 06/04/2012 11:33 AM, Matijn Woudt wrote:


 On Mon, Jun 4, 2012 at 6:54 PM, jasjason.ger...@gmail.com    wrote:


 Not sure if this is a bug or not...

 I have run into an error when performing a conditional using iplong()
 and
 the ~ bitwise operator

 $ip = '0.0.0.0';
 $mask = '24';

 $end = (ip2long($ip) || (~ip2long($mask))) + 1;

 PHP Fatal error:  Unsupported operand types

 I even tried to typecast the mask to (int)


 The error is probably not where you suspect it to be. ip2long will
 return false for ip2long($mask), because $mask is not a valid IP
 address. The ~ operator is not supported for false.

 - Matijn



 Strange... this works

 $ip = '10.0.2.0';
 $mask = '24';

 Anything using 0.0.0.0 fails using the bitmask to calculate valid CIDR
 ranges.


 Yes, because with $ip being 0.0.0.0, the result of ip2long($ip) will
 be zero. Zero evaluates to false when PHP is going to parse the ||
 operator, and because of that, it continues to parse the rest.
 When the result of ip2long($ip) is greater that zero, in case of some
 other valid IP, it will evaluate to true and PHP will not even execute
 the rest after the || because the result will be true anyway.
 Did you mean to use a single | operator, as a bitwise OR?

 - Matijn


 With any ACL rule using iptables, hosts.allow/hosts.deny, routers where
 0.0.0.0/24 is specified (all of the internet ipv4 addresses) this is a valid
 range using CIDR notation.

 It seems like a bug to me


Nope, there's no bug here. Can you explain what you're trying to do
with ip2long($mask)?

- Matijn

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



Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread jas

On 06/05/2012 05:40 AM, Matijn Woudt wrote:

On Tue, Jun 5, 2012 at 1:07 PM, jasjason.ger...@gmail.com  wrote:

On 06/04/2012 12:48 PM, Matijn Woudt wrote:


On Mon, Jun 4, 2012 at 8:38 PM, jasjason.ger...@gmail.comwrote:


On 06/04/2012 11:33 AM, Matijn Woudt wrote:



On Mon, Jun 4, 2012 at 6:54 PM, jasjason.ger...@gmail.com  wrote:



Not sure if this is a bug or not...

I have run into an error when performing a conditional using iplong()
and
the ~ bitwise operator

$ip = '0.0.0.0';
$mask = '24';

$end = (ip2long($ip) || (~ip2long($mask))) + 1;

PHP Fatal error:  Unsupported operand types

I even tried to typecast the mask to (int)



The error is probably not where you suspect it to be. ip2long will
return false for ip2long($mask), because $mask is not a valid IP
address. The ~ operator is not supported for false.

- Matijn




Strange... this works

$ip = '10.0.2.0';
$mask = '24';

Anything using 0.0.0.0 fails using the bitmask to calculate valid CIDR
ranges.



Yes, because with $ip being 0.0.0.0, the result of ip2long($ip) will
be zero. Zero evaluates to false when PHP is going to parse the ||
operator, and because of that, it continues to parse the rest.
When the result of ip2long($ip) is greater that zero, in case of some
other valid IP, it will evaluate to true and PHP will not even execute
the rest after the || because the result will be true anyway.
Did you mean to use a single | operator, as a bitwise OR?

- Matijn



With any ACL rule using iptables, hosts.allow/hosts.deny, routers where
0.0.0.0/24 is specified (all of the internet ipv4 addresses) this is a valid
range using CIDR notation.

It seems like a bug to me



Nope, there's no bug here. Can you explain what you're trying to do
with ip2long($mask)?

- Matijn


As stated previously using CIDR notation such as 192.168.0.0/24, 
10.0.0.0/24 perform validation on an IP existing within said subnet range.


visiting ip: 192.168.0.22

acl allow range: 192.168.0.0/24
acl deny range: 0.0.0.0/24

CIDR notation allows me to utilize shorthand notation for specifying a 
range of IP's


In those two cases any ip within 192.168.0.0 - 192.168.0.255 is allowed 
while anything else residing between 0.0.0.0 - 255.255.255.255 is denied


The problem is I can perform operations on CIDR ranges such as the 
following:

192.168.0.0/24
192.168.1.0/16
10.0.0.0/24

But cannot use the traditional 0.0.0.0/24 because iplong() evaluates 
0.0.0.0 as false thereby invalidating a valid CIDR notation when 
evaluated as


(ip2long($ip) || (~ip2long($mask))) + 1;

From my own tests only 0.0.0.0/24 fails or as shown in the example code 
above


(ip2long(0.0.0.0) || (~ip2long(24))) + 1;

The class I am using to test with can be found at 
http://www.php.net/manual/en/function.ip2long.php#108812


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



Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread Chris Knipe
 acl allow range: 192.168.0.0/24
 acl deny range: 0.0.0.0/24

 CIDR notation allows me to utilize shorthand notation for specifying a range
 of IP's

 In those two cases any ip within 192.168.0.0 - 192.168.0.255 is allowed
 while anything else residing between 0.0.0.0 - 255.255.255.255 is denied

Na-uh.  You want 0.0.0.0/0, which is valid. 0.0.0.0/24 isn't valid.

-- 

Regards,
Chris Knipe

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



[PHP] Which workstation????

2012-06-05 Thread Farzan Dalaee
hi guys
i really confuse by choosing the best work station for php ( cakephp , smarty , 
net bean , ... ) , please give me some advisdes.
and please tell why which one is better, 
tnx 
best regards farzan

Re: [PHP] Which workstation????

2012-06-05 Thread Simon Schick
Hi, Farzan

I do not really get your point of confusion ...

What you've posted here are tools/frameworks that do not to the same stuff
at all, yes you could even use all without missing something ...

cakephp
.. is a full-stack PHP-Framework. Yes, I have to say that there's quite a
bunch of full-stack frameworks in PHP you could choose and I myself would
recommend one by knowing how much experience you have in PHP :)

smarty
.. is a template-engine for PHP. If you want to use smarty, twig, php
itself or another library as template-engine is up to you. Using a
template-engine for some programmers I know just feel like a better
separation between the view and the controler/model (search for
ModelViewControler if you don't know what I mean here).

netbeans
.. is an IDE where you can develop with. I prefer to use PhpStorm, others
use EclipsePDT, Notepad++ or even the basic editor of windows. This is just
about syntax-highlight, code-completion and other things helping you to
develop your code.

Hope that helps :)

Bye
Simon

On Tue, Jun 5, 2012 at 2:10 PM, Farzan Dalaee farzan.dal...@gmail.comwrote:

 hi guys
 i really confuse by choosing the best work station for php ( cakephp ,
 smarty , net bean , ... ) , please give me some advisdes.
 and please tell why which one is better,
 tnx
 best regards farzan


Re: [PHP] 0.0.0.0 iplong()

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 1:49 PM, jas jason.ger...@gmail.com wrote:
snip


 As stated previously using CIDR notation such as 192.168.0.0/24, 10.0.0.0/24
 perform validation on an IP existing within said subnet range.

 visiting ip: 192.168.0.22

 acl allow range: 192.168.0.0/24
 acl deny range: 0.0.0.0/24

 CIDR notation allows me to utilize shorthand notation for specifying a range
 of IP's

 In those two cases any ip within 192.168.0.0 - 192.168.0.255 is allowed
 while anything else residing between 0.0.0.0 - 255.255.255.255 is denied

 The problem is I can perform operations on CIDR ranges such as the
 following:
 192.168.0.0/24
 192.168.1.0/16
 10.0.0.0/24

 But cannot use the traditional 0.0.0.0/24 because iplong() evaluates 0.0.0.0
 as false thereby invalidating a valid CIDR notation when evaluated as

 (ip2long($ip) || (~ip2long($mask))) + 1;

 From my own tests only 0.0.0.0/24 fails or as shown in the example code
 above

 (ip2long(0.0.0.0) || (~ip2long(24))) + 1;

 The class I am using to test with can be found at
 http://www.php.net/manual/en/function.ip2long.php#108812


First of all, as I suggested earlier, the class uses the single |,
which means bitwise OR, you're using ||, boolean OR.
Second, the class you're referring to is wrong. Using ip2long on 24 is
just not valid, you probably want to call ip2long('255.255.255.0')
instead, though it is probably easier to convert the 24 to the long
value.

 - Matijn

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



Re: [PHP] zend_auto_global_disable_jit missing in PHP 5.4.5

2012-06-05 Thread Daniel Brown
On Mon, Jun 4, 2012 at 11:30 PM, freeone3000 freeone3...@gmail.com wrote:
 I'm working with a third-party PHP extension that makes a call to
 zend_auto_global_disable_jit. However, in PHP5.4.5, there is no
 zend_auto_global_disable_jit available, nor is it in its traditional
 header. Commenting out all zend_auto_global_disable_jit calls causes
 PHP to no longer recognize it as a valid extension, while leaving them
 in attempts for an invalid method to be called.

 The file in question is
 https://github.com/mtorromeo/runkit/blob/master/runkit.c line 305. As
 is relatively obvious, it's not part of a macro, and its removal
 should not affect whether the library is a PHP extension or not -
 perhaps it's based on PHP's static analysis? If it doesn't call the
 function, it would access a global, possibly before the global has
 been JIT initialized by the runtime. If this is the case, what is the
 replacement function for PHP 5.4.5?

This is something you're going to want to ask on the Internals
list (CC'd).  General is more for questions on using the language.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: [PHP] zend_auto_global_disable_jit missing in PHP 5.4.5

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 4:39 AM, freeone3000 freeone3...@gmail.com wrote:
 I'm working with a third-party PHP extension that makes a call to
 zend_auto_global_disable_jit. However, in PHP5.4.5, there is no
 zend_auto_global_disable_jit available, nor is it in its traditional
 header. Commenting out all zend_auto_global_disable_jit calls causes
 PHP to no longer recognize it as a valid extension, while leaving them
 in attempts for an invalid method to be called.

 The file in question is
 https://github.com/mtorromeo/runkit/blob/master/runkit.c line 305. As
 is relatively obvious, it's not part of a macro, and its removal
 should not affect whether the library is a PHP extension or not -
 perhaps it's based on PHP's static analysis? If it doesn't call the
 function, it would access a global, possibly before the global has
 been JIT initialized by the runtime. If this is the case, what is the
 replacement function for PHP 5.4.5?

 --
 James Moore


There's a bug report about it at [1], though there's no solution there.

- Matijn

[1] https://bugs.php.net/bug.php?id=61189

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



Re: [PHP] disabled cookies

2012-06-05 Thread Tedd Sperling
On Jun 3, 2012, at 5:21 PM, Ashley Sheridan wrote:
 
 There is a new law been passed in the UK that makes non-essential cookies 
 opt-in only, so you must get permission in order to use them.

What's a non-essential cookie?

Cheers,

tedd

_
tedd.sperl...@gmail.com
http://sperling.com

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



Re: [PHP] disabled cookies

2012-06-05 Thread Tedd Sperling
On Jun 4, 2012, at 6:13 PM, Ashley Sheridan wrote:
 
 Yeah, it's been such a pain, as nobody over here is quite sure how the
 hell it'll be enforced either, or if it even will be. It's also pretty
 vague as to just where the line gets drawn. The official government
 sites on this are pretty black and white, but don't clearly address the
 grey areas. I think this is definitely a case of the persons making the
 laws don't understand the technology involved, which sadly seems to be
 the case across a lot of tech laws being passed world-wide of late :(
 
 -- 
 Thanks,
 Ash

This is what I put on my site to address the Cookie issue:

http://sperling.com/contact.php

Do you think it would be enough?

Cheers,

tedd


_
tedd.sperl...@gmail.com
http://sperling.com

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



Re: [PHP] Happy Diamond Jubilee everyone!

2012-06-05 Thread Tedd Sperling
On Jun 1, 2012, at 1:44 PM, Ashley Sheridan wrote:

 This is a bit of a shameless plug, but it is a Friday and a pretty
 special weekend over here.
 
 I recently got to work on something a bit fun at work in my spare time
 and they liked it so much that it got used internally to celebrate the
 jubilee weekend.
 
 This is the result http://jubilee.themlondon.com 
 
 For those of you interested, the leg-work is done by a bunch of PHP
 scripts run in the background via cron, split into 3 tasks:
 
 
 1. A script goes out and searches Twitter for tweets that mention
the jubilee, one instance per keyword and records those to a DB
to limit the draw on the Twitter API
 2. A second script goes over those tweets and pulls in all the
non-default profile images for each unique user
 3. Lastly, the image is built as 12 separate tiles every half hour,
using PHP and GD to match the average colour of each profile pic
to a spot on the image, and then these are stitched together for
the final image
 
 Anyway, hope you guys all have a great weekend, more so if you're
 unlucky enough to be working over the whole 4 days :-/
 
 -- 
 Thanks,
 Ash
 http://www.ashleysheridan.co.uk
 
 

Just saw it -- far out!


Cheers,

tedd

PS: You Brits have too much free time on your hands. :-)


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



Re: [PHP] disabled cookies

2012-06-05 Thread Matijn Woudt
On Tue, Jun 5, 2012 at 9:15 PM, Tedd Sperling t...@sperling.com wrote:
 On Jun 3, 2012, at 5:21 PM, Ashley Sheridan wrote:

 There is a new law been passed in the UK that makes non-essential cookies 
 opt-in only, so you must get permission in order to use them.

 What's a non-essential cookie?

 Cheers,

 tedd

A cookie that can be removed without the site loosing essential functionality.


On Tue, Jun 5, 2012 at 9:20 PM, Tedd Sperling t...@sperling.com wrote:
 On Jun 4, 2012, at 6:13 PM, Ashley Sheridan wrote:

 Yeah, it's been such a pain, as nobody over here is quite sure how the
 hell it'll be enforced either, or if it even will be. It's also pretty
 vague as to just where the line gets drawn. The official government
 sites on this are pretty black and white, but don't clearly address the
 grey areas. I think this is definitely a case of the persons making the
 laws don't understand the technology involved, which sadly seems to be
 the case across a lot of tech laws being passed world-wide of late :(

 --
 Thanks,
 Ash

 This is what I put on my site to address the Cookie issue:

 http://sperling.com/contact.php

 Do you think it would be enough?

 Cheers,

 tedd


If the cookie is non-essential, you also need an option to 'opt-out'.

- Matijn

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



[PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Devang Patel
Hi All,

I am a basic user of PHP and I have need of reading the dynamic HTML form
field as a variable in PHP so it will be great if someone can share some
good link or snip for quick understanding.

Thanks,
Devang


Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Govinda
 Hi All,
 
 I am a basic user of PHP and I have need of reading the dynamic HTML form
 field as a variable in PHP so it will be great if someone can share some
 good link or snip for quick understanding.
 
 Thanks,
 Devang


http://lmgtfy.com/?q=how+to+pass+and+receive+a+PHP+variable

When just starting out, Google is your friend.

Or did I misunderstand your question?

-Govinda

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



Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Govinda

On 2012-06-05, at 10:54 PM, Devangnp wrote:

 I know how to pass variable but having difficulties when I use the dynamic 
 form field in HTML that add more boxes as per user require.
 

 Hi All,
 
 I am a basic user of PHP and I have need of reading the dynamic HTML form
 field as a variable in PHP so it will be great if someone can share some
 good link or snip for quick understanding.
 
 Thanks,
 Devang
 
 
 http://lmgtfy.com/?q=how+to+pass+and+receive+a+PHP+variable
 
 When just starting out, Google is your friend.
 
 Or did I misunderstand your question?
 
 -Govinda


Devang,

Please keep replies on-list.
Please post your replies at the bottom, past the older (snipped) content.

Many here will be glad to help..  but you'll need to make your question more 
clear.. at least for me to be able to help anyway.
First of all, what do you mean exactly, by, the dynamic form field in HTML?  
And by boxes do you mean form inputs of 'text' type?  If so, then do you mean 
to suggest that input by the end user should determine the number of text 
inputs that should display in a second HTML form?  
Please spend more time describing what you are trying to do.. and also please 
show any code you attempt(ed) to accomplish this.  If you are unable to write 
any code, then try pseudo code - meaning write in successive lines of prose 
what you want code to do, and post that here. 

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



Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Jim Giner

Govinda govinda.webdnat...@gmail.com wrote in message 
news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com...

On 2012-06-05, at 10:54 PM, Devangnp wrote:

 I know how to pass variable but having difficulties when I use the dynamic 
 form field in HTML that add more boxes as per user require.


 Hi All,

 I am a basic user of PHP and I have need of reading the dynamic HTML 
 form
 field as a variable in PHP so it will be great if someone can share some
 good link or snip for quick understanding.

 Thanks,
 Devang


 http://lmgtfy.com/?q=how+to+pass+and+receive+a+PHP+variable

 When just starting out, Google is your friend.

 Or did I misunderstand your question?

 -Govinda


Devang,

Please keep replies on-list.
Please post your replies at the bottom, past the older (snipped) content.

Many here will be glad to help..  but you'll need to make your question more 
clear.. at least for me to be able to help anyway.
First of all, what do you mean exactly, by, the dynamic form field in 
HTML?  And by boxes do you mean form inputs of 'text' type?  If so, then 
do you mean to suggest that input by the end user should determine the 
number of text inputs that should display in a second HTML form?
Please spend more time describing what you are trying to do.. and also 
please show any code you attempt(ed) to accomplish this.  If you are unable 
to write any code, then try pseudo code - meaning write in successive lines 
of prose what you want code to do, and post that here.

-Govinda=

I thought he meant previously generated array type fields, that use the 
same name.  I've never done it myself, but  I thought the method of handling 
this kind of input included placing a hidden field with the count on the 
form to be retriieved later and used in processing the dynamic fields in a 
loop. 



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