php-general Digest 7 Jul 2010 13:13:34 -0000 Issue 6834

Topics (messages 306717 through 306729):

Re: communication protocol
        306717 by: Ashley Sheridan
        306718 by: Phpster
        306723 by: Augusto Flavio
        306725 by: Phpster

Re: HTML in emails
        306719 by: upscope
        306722 by: Paul M Foster
        306729 by: tedd

Re: Open Source SEO tool
        306720 by: Jack
        306721 by: Ashley Sheridan

Re: cache_control_limiter
        306724 by: Guus Ellenkamp

window.open access parent's JS?
        306726 by: Skip Evans
        306728 by: Ashley Sheridan

PHP Programmer
        306727 by: peeyush gulati

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 ---
On Tue, 2010-07-06 at 18:41 -0300, Augusto Flavio wrote:

> Hi List,
> 
> 
> I'm looking for a chat support likes the livezilla. The livezilla is a great
> tool but doesn't have language supports to another language instead english
> and german (operator side). Then I thought that a good option would be
> develop my own chat support.
> 
> A great solution is build the server side in PHP. The client side would be
> developed in PHP. For the operator side I thought that could be a Desktop
> Windows Application build using the Flex.
> 
> 
> I found that have a communication tool called BlazeDS for Flex that works
> and helps with the development of this chat support. But the BlazeDS is for
> Flex/Java. Is there some tool in PHP that helps the development of a server
> web messaging likes the BlazeDS?
> 
> 
> 
> Thanks for all.
> 
> 
> 
> Augusto Morais


It depends what you need the chat to do. Are you looking for a full
chatroom or a one-to-one chat option? You could quite easily have an
AJAX front-end that queries the server every ½ second or so for new
messages and display them. You could have something up and running very
easily in no time at all.

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



--- End Message ---
--- Begin Message ---
Amfphp ( www.amfphp.org) is what you might be looking for. It converts php 
based content into the flex digestible format.

Bastien

Sent from my iPod

On Jul 6, 2010, at 17:41, Augusto Flavio <afla...@gmail.com> wrote:

> Hi List,
> 
> 
> I'm looking for a chat support likes the livezilla. The livezilla is a great
> tool but doesn't have language supports to another language instead english
> and german (operator side). Then I thought that a good option would be
> develop my own chat support.
> 
> A great solution is build the server side in PHP. The client side would be
> developed in PHP. For the operator side I thought that could be a Desktop
> Windows Application build using the Flex.
> 
> 
> I found that have a communication tool called BlazeDS for Flex that works
> and helps with the development of this chat support. But the BlazeDS is for
> Flex/Java. Is there some tool in PHP that helps the development of a server
> web messaging likes the BlazeDS?
> 
> 
> 
> Thanks for all.
> 
> 
> 
> Augusto Morais

--- End Message ---
--- Begin Message ---
Hi again,

I'm thinking about in how to do the communication between web chat in
browser client, the server and the operator desktop client.

I'm thinking in web service likes wsdl.


Is a good option?


Thanks


Augusto Morais

--- End Message ---
--- Begin Message ---
Try rest based or comet for chat

Bastien

Sent from my iPod

On Jul 6, 2010, at 22:41, Augusto Flavio <afla...@gmail.com> wrote:

> Hi again,
> 
> I'm thinking about in how to do the communication between web chat in
> browser client, the server and the operator desktop client.
> 
> I'm thinking in web service likes wsdl.
> 
> 
> Is a good option?
> 
> 
> Thanks
> 
> 
> Augusto Morais

--- End Message ---
--- Begin Message ---
On Tuesday, July 06, 2010 07:03:58 am Andre Majorel wrote:
> On 2010-07-04 11:43 -0400, Al wrote:
> > Seems like, from my preliminary Google searching, I should not
> > waste time with the standard's way and just go straight to sending
> > simple html pages since all modern browsers handle it well. And,
> > it appears to be the way web is going.
> 
> "Browsers" ? "The web" ? I thought it was about email ?
> 
> If it's HTML, I have to decode and save the email to a file from
> my MUA and then switch a browser to read it. As you can imagine, I
> rarely bother.
I agree, actually my filters are setup to send HTML to the trash can. 
Its a security risk in some cases. 

> 
> > It use to be that we specified content-type text/html, etc. and
> > sent both the plain ASCII and the html with boundaries and so
> > forth.
> 
> That is the only sane approach.

-- 
Russ

--- End Message ---
--- Begin Message ---
On Tue, Jul 06, 2010 at 06:32:40PM +0200, Per Jessen wrote:

> Paul M Foster wrote:
> 
> > Here is the real problem with HTML email. Any straight text message
> > will swell to many times its size when you HTML-ize it. Okay, so now
> > you're sending the message around the internet to perhaps hundreds or
> > thousands of users, using up many times the bandwidth that the actual
> > message really needs. It's like installing a 100w light bulb when a
> > 60w will do. There's simply no reason to suck CPU cycles all over the
> > internet just to make your message "prettier".
> 
> In principle, I agree - in practice, CPU cycles are getting cheaper by
> the minute, and being wasted all the time. Not using HTML is highly
> unlikely to have a measurable impact on anybodys CPU cycles. 

I keep hearing this argument. Here are what I consider similar
arguments.

"Everyone else pours their waste into the river. Ours won't make that
much difference."

"Our smokestack is just one of hundreds in the city. No one will notice
the additional smoke."

"Putting paint thinner down the toilet won't make any difference. The
water processing plant will clean it up."

Just because everyone else wastes CPU doesn't mean you have to
contribute to it, too.

> 
> Besides, HTML is not just about making the message prettier.  A number
> of times I have experienced that important system notifications (from
> our systems to customers') were simply ignored, apparently due to being
> plain text.  We decided to "jazz them up" a bit, and it worked. 
> 

s/prettier/more noticeable/g Same point.

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
At 10:09 PM -0400 7/6/10, Paul M Foster wrote:
On Tue, Jul 06, 2010 at 06:32:40PM +0200, Per Jessen wrote:

 In principle, I agree - in practice, CPU cycles are getting cheaper by
 the minute, and being wasted all the time. Not using HTML is highly
 unlikely to have a measurable impact on anybodys CPU cycles.

I keep hearing this argument. Here are what I consider similar
arguments.

"Everyone else pours their waste into the river. Ours won't make that
much difference."

"Our smokestack is just one of hundreds in the city. No one will notice
the additional smoke."

"Putting paint thinner down the toilet won't make any difference. The
water processing plant will clean it up."

Just because everyone else wastes CPU doesn't mean you have to
contribute to it, too.

I keep hearing this argument too!

There's always two sides to every argument -- to extend your metaphor, as a result of pollution we have the EPA and other environmental concerns who are now so focused on the "rules" they actually hurt the quality of life for *all* things (the recent Gulf Oil Spill is one of thousands of examples). The application of any rule-set should be tempered with how it affects the whole and not the just a part.

The term "Waste" in the phrase "Wasting CPU cycles" is dependant upon what yardstick you use to measure what "waste" means. I do not think it a waste when you break your code into more manageable parts as compared to creating a cryptic routine that simply runs quicker.

When creating code, there are things more important things to consider than CPU cycles, such as readability, maintainability, and reusability. Every programmer has to realize that "Wasting CPU cycles" (like wasting memory) is becoming exponentially less of a problem whereas creating reusable code is doing just the opposite. So when considering "waste" I hold programmer's time in more regard than CPU cycles.

Just because some people write cryptic code, doesn't mean you have too.  :-)

Cheers,

tedd

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

--- End Message ---
--- Begin Message ---
Hi Ashley,


Yes, I would have to have a list or pass parameters to tell it a domain name, 
some key words and then gather the results.

This is something similar to what Peter has posted and gives me a starting 
point I believe. 


My thought is I would email myself the current position ( on that day ) for my 
domain and I would then know if changes or content which are on the site are 
helping to improve that position as well as kind of a warning when it’s 
slipping down the returned results which would mean were going to loose 
traffic….

 

 

Thanks!

Jack

 

From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Tuesday, June 29, 2010 1:09 PM
To: Jack
Cc: PHP
Subject: Re: [PHP] Open Source SEO tool

 

On Tue, 2010-06-29 at 13:02 -0400, Jack wrote: 

 
Hello All,
 
 
Does anyone know of an open source tool for SEO that would check your
positioning in the search engines and then email a result?
 
Probably something that runs in cron and executes daily weekly etc?
 
 
 
Thanks!
 
Jack
 
 

It sounds like a simple question, but it isn't really. What search terms do you 
want to check your positioning for? What locations (as many search engines are 
putting a bias on results by location now)

Perhaps look at one of the visitor tracking solutions, which might be able to 
give you an idea of the search terms people have used to find your site, and 
then give the position based on that search? I know Googles own analytics 
software does this, although the results there are a little inaccurate.


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



 



--- End Message ---
--- Begin Message ---
On Tue, 2010-07-06 at 19:56 -0400, Jack wrote:

> Hi Ashley,
> 
> 
> Yes, I would have to have a list or pass parameters to tell it a domain name, 
> some key words and then gather the results.
> 
> This is something similar to what Peter has posted and gives me a starting 
> point I believe. 
> 
> 
> My thought is I would email myself the current position ( on that day ) for 
> my domain and I would then know if changes or content which are on the site 
> are helping to improve that position as well as kind of a warning when it’s 
> slipping down the returned results which would mean were going to loose 
> traffic….
> 
>  
> 
> 
> 
> Thanks!
> 
> Jack
> 
>  
> 
> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
> Sent: Tuesday, June 29, 2010 1:09 PM
> To: Jack
> Cc: PHP
> Subject: Re: [PHP] Open Source SEO tool
> 
>  
> 
> On Tue, 2010-06-29 at 13:02 -0400, Jack wrote: 
> 
>  
> Hello All,
>  
> 
> Does anyone know of an open source tool for SEO that would check your
> positioning in the search engines and then email a result?
>  
> Probably something that runs in cron and executes daily weekly etc?
>  
> 
> 
> Thanks!
>  
> Jack
>  
> 
> 
> It sounds like a simple question, but it isn't really. What search terms do 
> you want to check your positioning for? What locations (as many search 
> engines are putting a bias on results by location now)
> 
> Perhaps look at one of the visitor tracking solutions, which might be able to 
> give you an idea of the search terms people have used to find your site, and 
> then give the position based on that search? I know Googles own analytics 
> software does this, although the results there are a little inaccurate.
> 
> 
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
> 
> 
> 
>  
> 
> 
> 


I've seen code for checking the page you are on in Google for a given
search term or string, but can't remember where I saw it, as it was a
couple of years ago. It wouldn't be too hard to string something
together than made a cURL call to a search engine for your search phrase
and searched the returned content for the domain. You could put a limit
of up to 20 pages or so on it to a script running on forever (if you
don't appear for that search phrase/term for example)

If you wanted to be clever, you could maybe even identify what result
number you were by using DOM functions on the returned HTML. Also, most
of the major search engines allow you to specify how many results per
page you want, so you might even be able to do it all with one cURL
request per search engine.

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



--- End Message ---
--- Begin Message ---
Thanks for the reply. I'm able to manipulate it with ini_set. However, 
according the documentation I should also be able to manipulate it with the 
function. Is it a bug?


"Alexandre SIMON" <lexsi...@gmail.com> wrote in message 
news:aanlktinxc9ejxvf2xd7hj_92r3y2yxalzvntjvcll...@mail.gmail.com...
> If you want to manipulate cache control on PHP side, you must set PHP
> directive "session.cache_limiter" to an empty value. Be then sure to 
> always
> set cache control headers to the right value according what your scripts 
> do.
>
> 2010/7/6 Guus Ellenkamp <ellenkamp_g...@hotmail.com>
>
>> I'm trying to set the cache_control_limiter to public, but it seems to 
>> stay
>> in nocache. What can be wrong? Tried two servers.
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> -- 
> SIMON Alexandre
> 



--- End Message ---
--- Begin Message ---
Hey all,

Is there a way to have a window opened with window.open()
inherit the parent windows JS environment?

In other words, I call window.open() with a URL that displays
a form created by a PHP script.

JS code has already been loaded by the parent, and I need to
be able to access that code via mouse overs and onclick calls
from the code in the newly opened window.

Is this possible?

Thanks,
Skip

--
====================================
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---
--- Begin Message ---
On Wed, 2010-07-07 at 00:09 -0500, Skip Evans wrote:

> Hey all,
> 
> Is there a way to have a window opened with window.open()
> inherit the parent windows JS environment?
> 
> In other words, I call window.open() with a URL that displays
> a form created by a PHP script.
> 
> JS code has already been loaded by the parent, and I need to
> be able to access that code via mouse overs and onclick calls
> from the code in the newly opened window.
> 
> Is this possible?
> 
> Thanks,
> Skip
> 
> -- 
> ====================================
> Skip Evans
> PenguinSites.com, LLC
> 503 S Baldwin St, #1
> Madison WI 53703
> 608.250.2720
> http://penguinsites.com
> ------------------------------------
> Those of you who believe in
> telekinesis, raise my hand.
>   -- Kurt Vonnegut
> 


Not really anything to do with PHP there :p

What you're looking for though is window.opener which allows you to
reference the window object of the frame that opened your new window,
and access all of its functions and variables.

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



--- End Message ---
--- Begin Message ---
Hi Every One


Expert PHP programmer. Interested in Web game development ?

(*Expatriate allowed)


UBISoft Chengdu is seeking for talented web programmer with interest and
experience in the web domain. The main responsibility of the web programmer
would be to make various modules for online games. The web programmer should
be capable for creating various technical solutions as per the design
requirements, additionally should have understanding of various web
protocols.

Requirements:

-Holding a Degree course in technology or any other training or equivalent.
-Working experience of at least three years in PHP.
-Should have clear understanding of various protocols like HTTP, AMF.
-Should have good working knowledge about databases and be comfortable in
using MySql or equivalent database.
-Should possess excellent programming skills in web technologies like PHP,
HTML, CSS, shell scripting.
-Should be able to use JavaScript and similar client side technologies and
have good understanding of XML.
-Should be comfortable in working on Linux environment.
-Should have a clear understanding of object oriented programming.
-Should be flexible in organizing the work as per the requirements.
-Should understand how to work in a result oriented environments and should
respect commitments towards the work.
-Should be a team player and has the ability to work in the constructive
direction for the company, team and personal growth.
-Should be capable enough to adapt to changes and get the best out of it.
-Should be fluent in English and should hold good communication skills to
interact with various teams
-Open minded to learn to adapt in Chinese culture from experienced
managers.
-A passion for creating and playing games
-Experience with web games is preferable.


Let me know if any one interest :-)


-- 
Thanks and Regards
Peeyush Gulati

--- End Message ---

Reply via email to