[PHP] Re: Installer for 5.3 on Windows ?

2011-08-24 Thread tkcusr

Nathan Nobbe wrote:


I have found some .msi files on this page:

http://windows.php.net/downloads/releases/archives/

still wondering why there is no link on the main download page..



Those are old. There hasn't been an installer since 5.3.6
I'm curious if it will ever be delivered.













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



[PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Geoff Shang

Hi,

I know this is probably more a Drupal question, but I'm guessing some here 
have probably had to deal with this.


I've written some PHP code which works just fine on its own.  Now someone 
wants to include it in their Drupal site, with the regular headers and 
footers for their site surrounding the output from my scripts.


Is there an easy way to include the PHP in a page on their site?

Not sure which version of Drupal they're running, trying to find out.

Geoff.


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



Re: [PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Florian Lemaitre

Le 24/08/2011 12:24, Geoff Shang a écrit :

Hi,

I know this is probably more a Drupal question, but I'm guessing some 
here have probably had to deal with this.


I've written some PHP code which works just fine on its own.  Now 
someone wants to include it in their Drupal site, with the regular 
headers and footers for their site surrounding the output from my 
scripts.


Is there an easy way to include the PHP in a page on their site?

Not sure which version of Drupal they're running, trying to find out.

Geoff.



Hi Geoff,

There's a mailing list for Drupal development questions : 
developm...@drupal.org


It depends of your script.
If it's just a set of functions that doesn't print directly to the 
screen but return elements that can be printing by another script it's 
ok. If that's the case, then you can create a custom module witch will 
include your code, define a block and output the result of your script 
in that block view.

Then you create a Panel and include that block in the panel.
(that's the proper way to do this, you might also find some freaking 
hacks that do that in a few lines)


What does your code do exactly ?

Sorry if I'm not clear.

Florian.


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



Re: [PHP] PhpMyAdmin in EasyPHP cannot run DROP DATABASE

2011-08-24 Thread Bastien

On 2011-08-23, at 6:44 AM, Nam Gi VU  wrote:

> Hi every one, 
> When trying to run my database script with `drop database` command, the 
> server refuse and said as below screenshot.
> What should I do to enable this command?
> 
> Regards,
> Nam
> 
> 
> 


Check that you phpmyadmin user account has the drop privilege. If not, grant 
that privilege or create another user account that does have more privileges

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



[PHP] eaccelerator gone?

2011-08-24 Thread Lester Caine

Anybody know what has happened to http://www.eaccelerator.net/

Just trying to sort out the 5.3.8 updates, and I found I cant see the 
eaccelerator site :(


--
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] Dealing with multiple form submissions

2011-08-24 Thread John Black

On 08/24/2011 03:04 AM, Jason Pruim wrote:

Wondering what everyone does to prevent multiple form submissions?
My form is simply getting emailed to my email, and it redirects to a success 
page when submitted...
Would it be as simple as doing something with the cache control? Basically I'm 
trying to avoid someone submitting a form... Then hitting back, and submitting 
again, then hitting back I think you get the idea...
What do you all do?
Jason Pruim



Hi,
I am using $_SESSION for this. Set a value on the initial page, a 
timestamp is a good choice, then validate the value on the receiving 
script and clear the value.


I like to use a timestamp because it will allow you to deny a comment 
which took too long to submit.


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



Re: [PHP] PhpMyAdmin in EasyPHP cannot run DROP DATABASE

2011-08-24 Thread Nam Gi VU
Thanks Bastien for your suggestion.
Though, I use the `root` account with `All privileges' but it still not
allowing me to call `drop database'.
What should I do next?

On Wed, Aug 24, 2011 at 6:25 PM, Bastien  wrote:

>
> On 2011-08-23, at 6:44 AM, Nam Gi VU  wrote:
>
> > Hi every one,
> > When trying to run my database script with `drop database` command, the
> server refuse and said as below screenshot.
> > What should I do to enable this command?
> >
> > Regards,
> > Nam
> >
> >
> >
>
>
> Check that you phpmyadmin user account has the drop privilege. If not,
> grant that privilege or create another user account that does have more
> privileges
>
> Bastien




-- 
Nam


Re: [PHP] PhpMyAdmin in EasyPHP cannot run DROP DATABASE

2011-08-24 Thread Bastien Koert
On Wed, Aug 24, 2011 at 1:30 PM, Nam Gi VU  wrote:
> Thanks Bastien for your suggestion.
> Though, I use the `root` account with `All privileges' but it still not
> allowing me to call `drop database'.
> What should I do next?
>
> On Wed, Aug 24, 2011 at 6:25 PM, Bastien  wrote:
>>
>> On 2011-08-23, at 6:44 AM, Nam Gi VU  wrote:
>>
>> > Hi every one,
>> > When trying to run my database script with `drop database` command, the
>> > server refuse and said as below screenshot.
>> > What should I do to enable this command?
>> >
>> > Regards,
>> > Nam
>> >
>> >
>> >
>>
>>
>> Check that you phpmyadmin user account has the drop privilege. If not,
>> grant that privilege or create another user account that does have more
>> privileges
>>
>> Bastien
>
>
> --
> Nam
>

try creating another user account, that isn't root (always a good
habit) and giving that account the needed privileges and then
configure PMA to use that account.

-- 

Bastien

Cat, the other other white meat

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



Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Mike Mackintosh


On Aug 24, 2011, at 11:52, John Black  wrote:

> On 08/24/2011 03:04 AM, Jason Pruim wrote:
>> Wondering what everyone does to prevent multiple form submissions?
>> My form is simply getting emailed to my email, and it redirects to a success 
>> page when submitted...
>> Would it be as simple as doing something with the cache control? Basically 
>> I'm trying to avoid someone submitting a form... Then hitting back, and 
>> submitting again, then hitting back I think you get the idea...
>> What do you all do?
>> Jason Pruim
> 
> 
> Hi,
> I am using $_SESSION for this. Set a value on the initial page, a timestamp 
> is a good choice, then validate the value on the receiving script and clear 
> the value.
> 
> I like to use a timestamp because it will allow you to deny a comment which 
> took too long to submit.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

I've always tended to stay away from session for that, as when the browser 
closes/restarts, the page is accessible again.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Ashley Sheridan


Mike Mackintosh  wrote:

>
>
>On Aug 24, 2011, at 11:52, John Black 
>wrote:
>
>> On 08/24/2011 03:04 AM, Jason Pruim wrote:
>>> Wondering what everyone does to prevent multiple form submissions?
>>> My form is simply getting emailed to my email, and it redirects to a
>success page when submitted...
>>> Would it be as simple as doing something with the cache control?
>Basically I'm trying to avoid someone submitting a form... Then hitting
>back, and submitting again, then hitting back I think you get the
>idea...
>>> What do you all do?
>>> Jason Pruim
>>
>>
>> Hi,
>> I am using $_SESSION for this. Set a value on the initial page, a
>timestamp is a good choice, then validate the value on the receiving
>script and clear the value.
>>
>> I like to use a timestamp because it will allow you to deny a comment
>which took too long to submit.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>I've always tended to stay away from session for that, as when the
>browser closes/restarts, the page is accessible again.
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

I solved this issue with timestamps stored in the db with the submission. With 
each submission, I took all the info that should make it uniqueish, and checked 
if it was near another one. A time limit of 10th seconds worked out well. The 
reason I had the problem was because we were triggering a counter on an account 
from get data (which the browser can request in a way that looks like multiple 
submissions). We should have used post, which didn't have this problem though 
really.

Thanks,
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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



Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread tamouse mailing lists
On Wed, Aug 24, 2011 at 3:46 PM, Ashley Sheridan
 wrote:
> I solved this issue with timestamps stored in the db with the submission.

This seems like the one sure way to control it. Cookies can be denied,
session can be reset, js methods can be noscripted, etc.

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



Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread Chris Stinemetz




On Aug 24, 2011, at 3:46 PM, Ashley Sheridan  wrote:

> 
> 
> Mike Mackintosh  wrote:
> 
>> 
>> 
>> On Aug 24, 2011, at 11:52, John Black 
>> wrote:
>> 
>>> On 08/24/2011 03:04 AM, Jason Pruim wrote:
 Wondering what everyone does to prevent multiple form submissions?
 My form is simply getting emailed to my email, and it redirects to a
>> success page when submitted...
 Would it be as simple as doing something with the cache control?
>> Basically I'm trying to avoid someone submitting a form... Then hitting
>> back, and submitting again, then hitting back I think you get the
>> idea...
 What do you all do?
 Jason Pruim
>>> 
>>> 
>>> Hi,
>>> I am using $_SESSION for this. Set a value on the initial page, a
>> timestamp is a good choice, then validate the value on the receiving
>> script and clear the value.
>>> 
>>> I like to use a timestamp because it will allow you to deny a comment
>> which took too long to submit.
>>> 
>>> -- 
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>> 
>> 
>> I've always tended to stay away from session for that, as when the
>> browser closes/restarts, the page is accessible again.
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> I solved this issue with timestamps stored in the db with the submission. 
> With each submission, I took all the info that should make it uniqueish, and 
> checked if it was near another one. A time limit of 10th seconds worked out 
> well. The reason I had the problem was because we were triggering a counter 
> on an account from get data (which the browser can request in a way that 
> looks like multiple submissions). We should have used post, which didn't have 
> this problem though really.
> 
> Will you please show an example of using this timestamp methodology?

Thank you

> 

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