Re: [PHP] question about preventing polling for more than once

2010-11-12 Thread Andre Polykanine
Hello ??,

Try to clean up your cookies. Maybe they set a cookie on your
computer.
-- 
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion

- Original message -
From: ?? 
To: php-general@lists.php.net 
Date: Friday, November 12, 2010, 5:14:49 PM
Subject: [PHP] question about preventing polling for more than once

I noticed that some websites such as
polldaddy has
fascinating poll service. And I am just curious about how it prevents user
from polling the same poll for more than once. Or more accurately, I am a
dynamic IP user. And I found that if I have polled once for a certain poll
and after some time, I changed my IP when I got connected to the Internet
again, I cannot poll the previous one for the second time. So I am confused
how polldaddy  can figure out that I
have polled even if I had changed my IP. Is there any way to achieve that?

Thanks in advance.


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



Re: [PHP] php running as module or cgi?

2010-11-12 Thread John Hicks

On 11/11/2010 02:14 PM, Didier Gasser-Morlay wrote:

On 11/11/2010 12:04 PM, Richard Quadling wrote:

On 11 November 2010 00:46, Al  wrote:

Briefly, what are the trade offs on a typical shared host?

I've done a little research and can't seem to find anything outstanding
either way.

Seems like as an Apache module is faster. This argument makes sense.

CGI is more secure, this argument doesn't seem too persuasive to me. 
Maybe

I'm missing something.

Thanks


As a module, any misbehaving script is running within the same space
as all the other scripts. If a script is able to knock out PHP (for
any reason), all the script go.

With CGI, they are run in separate spaces. No direct communication
(unless the scripts are sharing memory by some way). If a script
knocks out PHP, that script dies. Everything else keeps on going.

The main downside to CGI (as I understand things), is that for each
invocation of the script, PHP has to do the complete build up and tear
down every single time. For every single script.

With FastCGI, when the server starts, a pool of ready to go php
instances are created. So a script is called, the build up part is
already done.

In terms of speed, I'd guess you'd have to be working pretty hard to
see the difference between module/isapi and fast-cgi.



If I am not mistaken, An apache module can even bring down the whole 
web server if it really misbehaves.


So this leaves the choice between CGI & FatsCGI.

CGI setup/teardown is only an issue for site with a fairly high 
traffic. It really depends on the type of site you intend to build.




To me, the main security issue with mod_php in a virtual domain 
configuration is that it runs as the apache user and therefore any php 
code can read any files accessible to apache.  If you have clients 
maintaining their own php code, they can access the code (and passwords 
and databases) of your other clients.


I've never used cgi but I hope that it allows you to avoid this problem. 
Am I correct?


--John



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



Re: [PHP] question about preventing polling for more than once

2010-11-12 Thread a...@ashleysheridan.co.uk
Have you checked for any cookies left by that website?

Thanks,
Ash
http://www.ashleysheridan.co.uk

- Reply message -
From: "肖晗" 
Date: Fri, Nov 12, 2010 15:14
Subject: [PHP] question about preventing polling for more than once
To: 

I noticed that some websites such as
polldaddy has
fascinating poll service. And I am just curious about how it prevents user
from polling the same poll for more than once. Or more accurately, I am a
dynamic IP user. And I found that if I have polled once for a certain poll
and after some time, I changed my IP when I got connected to the Internet
again, I cannot poll the previous one for the second time. So I am confused
how polldaddy  can figure out that I
have polled even if I had changed my IP. Is there any way to achieve that?

Thanks in advance.


[PHP] question about preventing polling for more than once

2010-11-12 Thread 肖晗
I noticed that some websites such as
polldaddy has
fascinating poll service. And I am just curious about how it prevents user
from polling the same poll for more than once. Or more accurately, I am a
dynamic IP user. And I found that if I have polled once for a certain poll
and after some time, I changed my IP when I got connected to the Internet
again, I cannot poll the previous one for the second time. So I am confused
how polldaddy  can figure out that I
have polled even if I had changed my IP. Is there any way to achieve that?

Thanks in advance.


RE: [PHP] How do I convert the string "E_ALL & ~E_NOTICE" to the decimal equivalent 6135?

2010-11-12 Thread Ford, Mike
> -Original Message-
> From: Daevid Vincent [mailto:dae...@daevid.com]
> Sent: 11 November 2010 22:23
> To: php-general@lists.php.net
> 
> > -Original Message-
> > From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
> > Sent: Thursday, November 11, 2010 12:58 AM
> > To: php-general@lists.php.net
> > Subject: RE: [PHP] How do I convert the string "E_ALL &
> > ~E_NOTICE" to the decimal equivalent 6135?
> >
> > > -Original Message-
> > > From: Daevid Vincent [mailto:dae...@daevid.com]
> > > Sent: 11 November 2010 04:06
> > > To: php-general@lists.php.net
> > >
> > > We're trying to move all of our configuration files for our
> > > DEV/TEST/PROD
> > > and various python scripts and such that all need the same DB
> > > connection
> > > parameters and pathing information to a common and simple
> config.ini
> > > file
> > > they all can share across languages.
> > >
> > > One snag I ran into is this:
> > >
> > > [dart]
> > > relative_url  = /dart2
> > > absolute_path = /home/www/dart2
> > > log_level = E_ALL & ~E_NOTICE
> > >
> > > But when I read it in from the file, it's a string (of course)
> >
> > That's odd -- parse_ini_file() should definitely translate
> > those constants!
> > It certainly works on my v5.2.5 installation.
> >
> > Cheers!
> >
> > Mike
> 
> You assume I'm using that busted-ass "parse_ini_file()" function. ;-
> )
> 
> See previous emails as to why that's a useless option for me.
> 
> I wrote a much better parser which I'll post in another email.

Ah, I see. I don't believe you mentioned that in your original query.
In that case, your only option probably is eval - something like:

eval("\$log_level_int = {$log_level_string}");

or:

$log_level_int = eval("return {$log_level_string}");

Cheers!

Mike

 -- 
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,  
Leeds Metropolitan University, C507 City Campus, 
Woodhouse Lane, LEEDS,  LS1 3HE,  United Kingdom 
Email: m.f...@leedsmet.ac.uk 
Tel: +44 113 812 4730






To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

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



Re: [PHP] Open Source PHP/ mySQL Project Management

2010-11-12 Thread Irimia , Şuleapă
Redmine is (I think) one of the best out there. It is written in ruby
and does have all you need + some more.

Cheers!

On Fri, Nov 12, 2010 at 12:23 AM, Don Wieland  wrote:
> Hi gang,
>
> I am looking into Project Management apps for my projects. Any suggestions:
>
> I am interested in tracking Projects, Milestones, Tickets, Files,
> Discussions, Documents, Time Tracking, etc... Also, would like to have the
> system have robust email integration Reminders, Email Ticket echos (where a
> user can reply it will post back into the PM system and echo back email to
> assigned users - with file attachments)
>
> Suggestions? Thanks!
>
> Don
>
> --
> 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



Re: Re[2]: [PHP] Open Source PHP/ mySQL Project Management

2010-11-12 Thread Ken Guest
With the exception of some work-mandated systems such as fogbugz, I've used
mantis successfully for quite a long time.

On Fri, Nov 12, 2010 at 1:09 AM, Andre Polykanine  wrote:

> Hello Jonathan,
>
> I tried to use Mantis, however it didn't send e-mails properly so I
> gave up.
> --
> With best regards from Ukraine,
> Andre
> Skype: Francophile
> Twitter: http://twitter.com/m_elensule
> Facebook: http://facebook.com/menelion
>
> - Original message -
> From: Jonathan Tapicer 
> To: Don Wieland 
> Date: Friday, November 12, 2010, 3:00:32 AM
> Subject: [PHP] Open Source PHP/ mySQL Project Management
>
> Hi,
>
> I don't know if it meets all of the features you enumerated but Mantis
> (http://www.mantisbt.org/) is very good, and it is PHP+MySQL (or
> Postgres, or MSSQL).
>
> Jonathan
>
> On Thu, Nov 11, 2010 at 7:23 PM, Don Wieland 
> wrote:
> > Hi gang,
> >
> > I am looking into Project Management apps for my projects. Any
> suggestions:
> >
> > I am interested in tracking Projects, Milestones, Tickets, Files,
> > Discussions, Documents, Time Tracking, etc... Also, would like to have
> the
> > system have robust email integration Reminders, Email Ticket echos (where
> a
> > user can reply it will post back into the PM system and echo back email
> to
> > assigned users - with file attachments)
> >
> > Suggestions? Thanks!
> >
> > Don
> >
> > --
> > 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 General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
http://blogs.linux.ie/kenguest/