php-general Digest 13 May 2007 04:03:13 -0000 Issue 4788

Topics (messages 254854 through 254861):

Re: What is the best way to protect the PHP page that returns the AJAX data? 
[solved]
        254854 by: Robert Cummings

Tag Cloud revisited
        254855 by: tedd

Re: Do you use any framework in your applications?
        254856 by: Brice
        254858 by: Greg Donald
        254859 by: Fernando Cosso

Re: getting $_ENV variables
        254857 by: Richard Davey

Question
        254860 by: Dusan Novakovic
        254861 by: Richard Lynch

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Fri, 2007-05-11 at 22:12 -0700, [EMAIL PROTECTED] wrote:
> I don't see you giving a solution.

The solution is the same as for any session in which you want to protect
data. It hardly needs covering yet again. Read the archives.

Cheers,
Rob.

> 
> On 5/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Fri, 2007-05-11 at 19:59 -0700, [EMAIL PROTECTED] wrote:
> > > Set ajaxObject.setRequestHeader("User-Agent","SecretName"); in
> > > Javascript and check for it in PHP. Not fool-proof, but the average
> > > person wouldn't be able to get in.
> >
> > Bleh, do it right. Don't settle for half-assed solutions that rely on
> > someone being an "average" person.
> >
-- 
.------------------------------------------------------------.
| 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.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Richard:

Sorry to get back to this so late, but I had some other pressing matters.

Thanks to Tedd for answering the question I asked, I think, even
though I was asking the wrong question. :-)

No problem, but you did ask the right question. You touched on something I think you intuitively knew, but have been sidetracked by an easy "solution".

At 9:40 AM -0500 5/3/07, Richard Lynch wrote:
But as I realized last night, the data is ALREADY in that "curve" and
by simply breaking down in even increments from MIN to MAX, the
"curve" works itself out correctly.

Sort of.

If you are content with dividing the top 100 things into strict groups of 20 for a tag cloud distribution, then fine. However, the "20 items per group" rule is not defined in terms of the group's distribution, which would be a better representation of the data. Keep in mind you are trying to show which items are the most popular in a representative way.

It's difficult to explain, so I'll show you:

http://sperling.com/a/stdev/

Each group (color -- could be tags) falls within a division based upon the standard deviation (SD) of the population. The cyan group is within one SD of the most popular -- the yellow group is within two SD of the most popular and so on.

All members of each color group have more in common with each other than with those outside their color group. If you will note, the numbers of each color group change due to distribution of the population. Using a strict "20 items per group" rule does not reflect that. So, if you arbitrarily assign members of the population to a group based solely on a strict division, then you are not accurately representing the tag cloud.

Do you see what I mean?

Cheers,

tedd

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

--- End Message ---
--- Begin Message ---
On 5/12/07, cajbecu <[EMAIL PROTECTED]> wrote:

Hello,

I was wondering if some of you use any framework in your application.
If you do that, can you post the name of the framework and
advantages/disadvantages of it?
2 weeks ago I started to learn symfony framework
(www.symfony-project.com) wich apears to be a good and reliable
framework.


I work with Copix http://www.copix.org/ Great framework and a new release
coming soon.
The only disadvantages is that the doc is only in French.

Brice

cajb.

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



--- End Message ---
--- Begin Message ---
On 5/12/07, cajbecu <[EMAIL PROTECTED]> wrote:
I was wondering if some of you use any framework in your application.

Rubyonrails - Best of breed for MVC-ness.  I love the built-in
Javascript libraries.

Django - Really nice for building highly scalable database driven web
apps.  Python is a solid language.

Mojavi - PHP based.  It's a stop and go sort of project sometimes and
the documentation is usually years behind but it's pretty solid
otherwise.

If you do that, can you post the name of the framework and
advantages/disadvantages of it?
2 weeks ago I started to learn symfony framework
(www.symfony-project.com) wich apears to be a good and reliable
framework.

Yeah, I agree.  And it's really nice that they've switched to YAML for
a lot of the configuration stuff.  XML is too heavy for, well..  most
anything I can think of.


--
Greg Donald
http://destiney.com/

--- End Message ---
--- Begin Message ---
Hi
I have read this discussion and I will give a try to symfony, It is what I
was looking at

Best regards
--
[EMAIL PROTECTED]
http://www.fernandocosso.com.ar

--- End Message ---
--- Begin Message ---
tedd wrote:

At 11:54 AM +0100 5/10/07, C.R.Vegelin wrote:

All I want is to check the $_ENV['OS'] within PHP scripts.

If all you want to do is to find out what the user's OS is, try this:

$_SERVER('HTTP_USER_AGENT')

Do print_r($_SERVER) to see all it contains.

He wanted to tell the OS of the *server*, hence using a local environment setting.

Cheers,

Rich
--
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--- End Message ---
--- Begin Message ---
Hi!
I need a script which will run pop-up menu with the "Save As" button
when I click on a link  (e.g. <a href="file.txt">Click</a> ) so that I
could save that file on my computer. In the example I wrote file.txt
file opens in browser, which I don`t want to happen.
I would be very grateful if someone could send me a possible solution
to this problem.

DuĊĦan



--
made by Dusan

--- End Message ---
--- Begin Message ---
On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote:
> Hi!
> I need a script which will run pop-up menu with the "Save As" button
> when I click on a link  (e.g. <a href="file.txt">Click</a> ) so that I
> could save that file on my computer. In the example I wrote file.txt
> file opens in browser, which I don`t want to happen.
> I would be very grateful if someone could send me a possible solution
> to this problem.

You may find this entertaining, and even useful:
http://richardlynch.blogspoot.com

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--- End Message ---

Reply via email to