[PHP] Re: Form To Mail script generators for Linux

2009-03-23 Thread Manuel Lemos
on 03/23/2009 08:39 AM Linda Stark said the following:
> Hi,
> 
> I am trying to find out if there are any “form to mail” php script generators 
> that run on Linux available - that would generate the script needed
> to profess web mail forms such as a “contact us” page or a
> “mail us”  page on a web site.  
> 
> There was one in patricular I was looking at that is windows based, called 
> “Forms To Go”,
> a commercial package, which from what I have gathered is the most popular in 
> it’s
> class and apparently it generates secure code. 

There are many PHP contact form solutions out there. You may want to
take a look at these:

http://www.phpclasses.org/formmakernprocessor

http://www.phpclasses.org/emailform

http://www.phpclasses.org/esiform

http://www.phpclasses.org/contactform

http://www.phpclasses.org/sendmail_class

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Michael A. Peters

Phpster wrote:

Sorry for top posting, but here goes...

Stopping third party js from running on the client will never happen. If 
so, you just killed your servers thru put in attempting to handle things 
like google maps, google analytics and other fun things coming out of 
companies like that ( google, zoho etc ). Your server will never handle 
a large load like that for any number of users.


I didn't say third party scripts should not be used.
I did say that you will need to specify a particular part of the page 
the third party script is allowed to modify - both in your document (by 
setting an ID attribute) and in the script node that calls the third 
party script (by setting an attribute telling the browser what part of 
the DOM the script may modify)




Using third party items ( js, images, flash and other embedded items ) 
is what makes the Internet so efficient. The nature of distributed 
systems allows the whole system to suceed.


It also is what makes the internet dangerous when it is not done in a 
secure way.




What you are describing is nothing more than poor coding and a lack of 
data validation, which unfortunately is endemic to many sites with lots 
of people being able to build stuff with GUI tools like dreamweaver. 
That's why it pays to hire a pro, not the teenager down the street. 


Since the internet is (and should remain) a place where anyone can 
publish, that kind of thing will remain - and as such, browsers out of 
necessity will be far more restrictive with what scripting can do and 
users will be a lot more paranoid about what they let scripts do.


There's a reason why NoScript is one of the most popular Mozilla 
add-ons. As a NoScript user, I can tell you right now - you really on 
client side dhtml for your content, I just left your site and went 
somewhere else, because it didn't work for me.


I *may* decide to allow scripts to execute from your domain, but if 
anything more is needed than that, I'll just read your page from 
google's cache.


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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Phpster

Sorry for top posting, but here goes...

Stopping third party js from running on the client will never happen.  
If so, you just killed your servers thru put in attempting to handle  
things like google maps, google analytics and other fun things coming  
out of companies like that ( google, zoho etc ). Your server will  
never handle a large load like that for any number of users.


Using third party items ( js, images, flash and other embedded items )  
is what makes the Internet so efficient. The nature of distributed  
systems allows the whole system to suceed.


What you are describing is nothing more than poor coding and a lack of  
data validation, which unfortunately is endemic to many sites with  
lots of people being able to build stuff with GUI tools like  
dreamweaver. That's why it pays to hire a pro, not the teenager down  
the street. They don't have the basic understanding of what and what  
not to do, what things are dangerous to allow nor how to sanatize data  
to ensure that the site or the users are not gonna get screwed.


Professionals, mostly, pay attention to the details that surround  
making a site work. It's what we get paid for.





Bastien

Sent from my iPod

On Mar 23, 2009, at 20:24, "Michael A. Peters"  wrote:


Sancar Saran wrote:

Probably a bit off topic and
The Game is over man.
Javascript coming with flank speed. Next generation JS Framworks  
will take html generation jobs from server side.


No it won't.
People are getting sick and tired of allowing third scripts to  
modify the DOM - browsers are becoming and will continue to become  
more restrictive with what JavaScript is allowed to do, and that's a  
good thing, because a lot of evil is done with JavaScript.


Most hacks now are XSS exploits - taking advantage of the fact that  
users are too stupid to understand that enabling JavaScript is no  
different than executing e-mail attachments automatically.


Just like users *and e-mail clients* wised up during the e-mail  
virus/worm craze of the late 90s (IE I love you etc.) - users and  
browsers are wising up as well.


Generating your content server side is not subject to what the  
browser and/or user allow scripts to do client side, heavy DHTML  
like what some are experimenting with will go the way of the dodo  
bird.


I suspect that in the future, perhaps not this exactly but something  
like this will be common place - a script node will have a new  
attribute, the value of which is an id that must exist in the DOM  
before the script is run. The script will only be allowed to modify  
the DOM elements that matches that id and it's children. Script  
nodes without that attribute won't be allowed to modify the DOM at  
all, and the DOM elements will have a mechanism (IE an attribute  
tag) that can completely protect them from modification by any  
script., etc.


Using script to modify a document DOM will still take place, but it  
will be a lot more difficult, and more likely to fail due to browser/ 
user imposed limitations. Thus creating the DOM will take place  
server side where it belongs.


Maybe server side JavaScript will be a competitor to php in some  
situations, but server side page generation is not getting replaced  
by client side DHTML anytime soon.


//just my two cents and thoughts - I'm not an expert in web tech

--
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: [PHP] Frameworks / obstinate?

2009-03-23 Thread Michael A. Peters

Bob McConnell wrote:

 However, don't limit it to classes. There
are enough non-OO people that collections of usable function libraries
should also be worth assembling. I would also suggest including unit
test fixtures and utilities in any collection.

Bob McConnell



Most functions can be wrapped in a class and probably should be for 
public distribution as it avoids function name clashes (though you still 
have class name clashes to worry about ...)


If as a programmer you find a particular function nifty but don't care 
for the class, you can always rip it out of the class for your own use.



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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Michael A. Peters

Daniel Kolbo wrote:






P.P.P.S. What might be nice is to have an online repository of "PHP 
community approved" classes, then programmers could mix and match 
'modules' as needed...well now I am sounding like that snake oil salesman.




There is a php class web site that focuses on OO programming where 
members of the php community can submit and rate various classes.


I've found some useful stuff there.

http://www.phpclasses.org/

Most of the classes you can only download if you register, but 
registering is free and makes sense because class feedback should only 
be from registered users.



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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Michael A. Peters

Sancar Saran wrote:

Probably a bit off topic and

The Game is over man.

Javascript coming with flank speed. Next generation JS Framworks will take 
html generation jobs from server side.


No it won't.
People are getting sick and tired of allowing third scripts to modify 
the DOM - browsers are becoming and will continue to become more 
restrictive with what JavaScript is allowed to do, and that's a good 
thing, because a lot of evil is done with JavaScript.


Most hacks now are XSS exploits - taking advantage of the fact that 
users are too stupid to understand that enabling JavaScript is no 
different than executing e-mail attachments automatically.


Just like users *and e-mail clients* wised up during the e-mail 
virus/worm craze of the late 90s (IE I love you etc.) - users and 
browsers are wising up as well.


Generating your content server side is not subject to what the browser 
and/or user allow scripts to do client side, heavy DHTML like what some 
are experimenting with will go the way of the dodo bird.


I suspect that in the future, perhaps not this exactly but something 
like this will be common place - a script node will have a new 
attribute, the value of which is an id that must exist in the DOM before 
the script is run. The script will only be allowed to modify the DOM 
elements that matches that id and it's children. Script nodes without 
that attribute won't be allowed to modify the DOM at all, and the DOM 
elements will have a mechanism (IE an attribute tag) that can completely 
protect them from modification by any script., etc.


Using script to modify a document DOM will still take place, but it will 
be a lot more difficult, and more likely to fail due to browser/user 
imposed limitations. Thus creating the DOM will take place server side 
where it belongs.


Maybe server side JavaScript will be a competitor to php in some 
situations, but server side page generation is not getting replaced by 
client side DHTML anytime soon.


//just my two cents and thoughts - I'm not an expert in web tech

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



[PHP] Re: PHP + IIS7 - 'weird stuff' with multiple sites on same server

2009-03-23 Thread scubak1w1
"Shawn McKenzie"  wrote in message 
news:b8.7e.55398.e12b2...@pb1.pair.com...

[snip]

> I've never done this, but just scanning that link, did you do the
> "Per-site PHP process pools" steps?


Found it!

I was using a php.ini file, a little adjusted, from the test server on 
IIS5.1 on an XP box, to help ensure I kept my settings as I had tweaked 
them...

In this 'carry over' php.ini file I had

 doc_root = "C:\inetpub\wwwroot"

I just REMed this out, rebooted the server, viola!

Phew! I thought I was going nuts - and learnt to check my .ini file in great 
detail!

Cheers! 



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



RE: [PHP] Frameworks / obstinate?

2009-03-23 Thread Bob McConnell
From: Daniel Kolbo
> 
> P.P.P.S. What might be nice is to have an online repository of "PHP 
> community approved" classes, then programmers could mix and match 
> 'modules' as needed...well now I am sounding like that snake oil
salesman.

You mean something like CPAN over in the Perl arena? Or something more
along the lines of Bob Stout's Snippets ? Those
archives seem to have served their respective communities quite well,
and would be worth emulating. However, don't limit it to classes. There
are enough non-OO people that collections of usable function libraries
should also be worth assembling. I would also suggest including unit
test fixtures and utilities in any collection.

Bob McConnell

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



[PHP] utf-8-safe replacement for strtr()?

2009-03-23 Thread Tom Worster
i havea general replacement or workaround for every php function in my code
that i know to be utf-8-unsafe. except one: strtr().

the only ideas i have to implement strtr in php with known utf-8-safe php
functions would be rather inefficient.

any ideas, suggestions, pointers? or maybe you're better at googling an
answer than i am. assume mbstring is available.

tia
tom



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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Sancar Saran
On Monday 23 March 2009 16:24:55 Robert Cummings wrote:
> On Mon, 2009-03-23 at 15:58 +0200, Sancar Saran wrote:
> > On Monday 23 March 2009 12:33:58 Robert Cummings wrote:
> > > On Mon, 2009-03-23 at 11:52 +0200, Sancar Saran wrote:
> > > > Probably a bit off topic and
> > > >
> > > > The Game is over man.
> > > >
> > > > Javascript coming with flank speed. Next generation JS Framworks will
> > > > take html generation jobs from server side.
> > > >
> > > > Whole thing of Server Side MVC and other yada yada was became joke.
> > > > Those server siders become JSON pushers for JS frameworks.
> > > >
> > > > Astrosurfing ?
> > > >
> > > > Yeah, just compare PHP mailing list vs Jquery Mailing list activity.
> > > >
> > > > And The New Game just begun...
> > >
> > > Yeah, I hear C has been replaced too.
> >
> > Well, I did not see you to write your web app with C.
>
> I write in C still. I have a mud I work on in my spare time...
> admittedly MUDs aren't a good example since they are dated... but this
> particular one shares C code, via compile-time macros, with associated
> PHP extensions to speed up certain aspects of data parsing and
> evaluation. My point is, just because new techniques and technoloigies
> come out, is in no way a boundary condition on an existing technology's
> lifespan or efficacy in any particular environment. The deprecation of
> usefulness of any technology is based on many more variables than
> "Jquery - The New Game just began". Jquery runs in the browser, it will
> never replace server side data acquisition, caching, and manipulation.
> It will merely augment. Moreover, it is completely useless when
> JavaScript is disabled. Your post also made the assumption that PHP is
> used for web sites only. Many people are using it for other tasks too.
> Popularity is also not a useful metric of the demise of a language. It
> may just be that less people are familiar with JQuery and so there are
> more questions whereas PHP has been around long enough that the bulk of
> people interested in it have a good enough foundation in it that they
> don't need to ask questions.
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP

Well nice :), I wish to able to write C stuff for boosting PHP performance by 
myself too...

And of course, no body will replace C or PHP.

And there where a but and very big BUT. When those dynamic web thing begin to 
appear there where programming language named PERL. 

And yes it was still aroud here and Slashdot still running perl based code.

BUT momentum was lost. No body expect to some ground breaking thing from PERL 
6.

And Server side become less interesting day by day. Collect request values, 
generate HTML output and push. 

Each new server side language or framework do same thing, this way or that 
way. Web Programming momentum shifting from server side to Javascript.

So tellme your last PHP vs Someting else dynamic web language flamewar ?

Currently JS guys are busying with fancy effects, browser behavior fix, menus, 
dom manuplation etc.  When they fix things, their next step was content 
management or someting like that frameworks.

Anywhow we well see. 

PS: Is there any shorh way to learn do someting for PHP with C (My C knowladge 
was 0)

Regards

Sancar




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



Re: [PHP] Re: Multithreading in PHP

2009-03-23 Thread Manuel Lemos
Hello,

on 03/23/2009 10:05 AM Igor Escobar said the following:
> Great Project, Lemos.

Thanks?

> When you are thinking in show more exemples?

Who? Me or Andrea?

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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



Re: [PHP] Double the fun

2009-03-23 Thread Paul M Foster
On Mon, Mar 23, 2009 at 12:05:27PM -0400, tedd wrote:

> At 10:31 AM -0500 3/23/09, Shawn McKenzie wrote:
>> tedd wrote:
>>  > At 10:09 AM -0400 3/23/09, Jason Pruim wrote:
>>
>>  >> Well... As my Dad would say... "Someone wasn't holding their mouth
  right"... :)
>>>
>>>  That's a strange answer. Maybe I'm dense, but what does that have to do
>>>  with email?
>>>
>>>  Cheers,
>>>
>>>  tedd
>>>
>>
>> Nothing.  Jason's dad must be from the country, that's the same thing my
>> dad always said.  Doesn't matter what you're doing, driving a nail,
>> trying to get a screw in the right hole, (also sending an email I
>> assume)... if it's not working, you're not holding your mouth right.
>>
>> --
>> Thanks!
>> -Shawn
>
> Okay, that makes sense -- I was thinking all sorts of weirdness.
>
> Considering that I'm old enough to be all of your dads age, why
> haven't I heard that before?

I'm your age, and I heard it when I was growing up, and use it myself
from time to time. Now, I'm from the South, and you're up North, so
maybe that's the difference.

>
> I guess it the old "Same difference between a telephone pole because
> motorcycles don't have windows" sort of thing. Everyone my age (those
> who are left) have heard of that.

Never heard that one.

Paul
-- 
Paul M. Foster

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Robert Cummings
On Mon, 2009-03-23 at 10:43 -0400, tedd wrote:
> At 10:24 AM -0400 3/23/09, Robert Cummings wrote:
> >
> >My point is, just because new techniques and technoloigies
> >come out, is in no way a boundary condition on an existing technology's
> >lifespan or efficacy in any particular environment. The deprecation of
> >usefulness of any technology is based on many more variables than
> >"Jquery - The New Game just began". Jquery runs in the browser, it will
> >never replace server side data acquisition, caching, and manipulation.
> >It will merely augment. Moreover, it is completely useless when
> >JavaScript is disabled. Your post also made the assumption that PHP is
> >used for web sites only. Many people are using it for other tasks too.
> >Popularity is also not a useful metric of the demise of a language. It
> >may just be that less people are familiar with JQuery and so there are
> >more questions whereas PHP has been around long enough that the bulk of
> >people interested in it have a good enough foundation in it that they
> >don't need to ask questions.
> >
> >Cheers,
> >Rob.
> 
> Rob:
> 
> All good and excellent points.
> 
> However, I have heard of "new" javascript being run server-side. 
> What's the likelihood of that "catching on" and surpassing php?

If I recall correctly Netscape originally developed JavaScript to run
server side.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



Re: [PHP] So called "PHP Expert"

2009-03-23 Thread Jan G.B.
2009/3/20 דניאל דנון :
> I'm a member of some forums about some topics,
> One of them include a programming forum.
>
> Now, I've visited there a week ago and saw a topic with the title "Free
> security",
> Someone who calls himself a PHP expert (and said that he could teach me PHP
> since my level is so low), and pretends to have so many clients,
> Posted the following code.

So... you point out that you can't find the right sentence, but you
find the right sentences to write this mail? Please... stop bashing
others on mailing lists.
I mean, this is just stupid. Not that the so called "security script"
would be any good, but your point in arguing on the net is not either.
You even included the name of the denunciate person. This is a public
mailing list which is achieved by many websites an alike!

Byebye

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



Re: [PHP] So called "PHP Expert"

2009-03-23 Thread George Larson
OMGBBQ  I didn't even catch that!  He truly is the c0d1ng g0d!

On Mon, Mar 23, 2009 at 12:45 PM, haliphax  wrote:

> On Fri, Mar 20, 2009 at 5:27 PM, דניאל דנון  wrote:
>
> ---8<---
>
> > ###
> > function h3x($envar){
> >$hax3d = bin2hex($envar);
> >$hax3d  = chunk_split($hax3d , 2, "%");
> >$hax3d  = "%" . substr($hax3d , 0, strlen($hax3d ) - 1);
> >return $hax3d;
> > }
> > ?>*
>
> Programmers who use 13375p34k ("leet speak") in their code should be
> dragged out into the street and shot.
>
>
> --
> // Todd
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Having trouble with a form to mail script.

2009-03-23 Thread Jan G.B.
2009/3/21 Linda Stark :
>
>
> I’m not sure if I am
> in the right forum but thought I would give this a shot…
>

Sure, you are

>
> I just
> created a new mail form in Dreamweaver for a web site.  I’m
> working on a form to mail script that I started after reading a few on line 
> tutorials, and can’t seem to get right. When I run
> this little test script (named sendmail2.php) from the tutorial, on my server,
> just to make sure PHP is working OK for web email forms:
>
>
> 
> $email = $_REQUEST['email'] ;
>
> $message = $_REQUEST['message'] ;
>
> mail( "h...@mydomain.com", "Feedback Form Results",
>
> $message, "From: $email" );
>



I didn't dig through all the answers, but I felt that it might be
useful to mention, that you should avoid using mail() with unfiltered
user-input.
Especially the additional headers you're passing to mail() as the
fourth parameter can be exploited to send spam with your form.

Please filter your variables and discard CR, LF from the vars passed
to the header.

See http://www.google.de/search?q=mail()+header+injection


byebye,

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



Re: [PHP] So called "PHP Expert"

2009-03-23 Thread haliphax
On Fri, Mar 20, 2009 at 5:27 PM, דניאל דנון  wrote:

---8<---

> ###
> function h3x($envar){
>    $hax3d = bin2hex($envar);
>    $hax3d  = chunk_split($hax3d , 2, "%");
>    $hax3d  = "%" . substr($hax3d , 0, strlen($hax3d ) - 1);
>    return $hax3d;
> }
> ?>*

Programmers who use 13375p34k ("leet speak") in their code should be
dragged out into the street and shot.


-- 
// Todd

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread haliphax
On Mon, Mar 23, 2009 at 11:11 AM, tedd  wrote:
> At 10:50 AM -0400 3/23/09, Bastien Koert wrote:
>>
>> Tedd,
>>
>> JS has been running on MS servers for a long time. It was always viewes as
>> an acceptable replacement for vbscript.
>
> Well -- that's been my fear. I think that M$ is trying to get it's foot into
> this so they can charge for it -- similar to them creating C# as a alternate
> for Java. Has anyone taken M$ certification lately?


If anything, guys, it's not going to be Javascript... it will be some
other child of the ECMA standard, like ActionScript (which interfaces
natively with XML, MXML, and Flash). As for Microsoft and JS, I think
they're finally warming up (a bit) to the Open Source initiative:
jQuery will be included (AS-IS, WITHOUT MODIFICATION) in the new
versions of not only the .NET framework, but in code completion and
documentation for the next Visual Studio developer package.

I'm not so sure that C# was a replacement for Java, either--more a way
to bring C++ (OOP) into the .NET framework while maintaining their new
dynamic of "safe" vs. "unsafe" code, etc...

Related to server-side Javascript... there are MANY languages that
offer JS connectors so that JS can be embedded as a scripting language
in your application.  I'm sure this has been applied to a web
application as well as console apps (in lieu of Lua, VBScript, etc.).

My 2c.


-- 
// Todd

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



Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Thx ab.

I'm did not to be rude ;)

Have a nice day.

Regards,
Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Mon, Mar 23, 2009 at 12:05 PM, abdulazeez alugo wrote:

>
>
> Ok man, I'm sorry.
>
> This post i wrote in a few days ago in my native language. I dont have time
> enough to write in two languagesbut who knows in the future i can do it?
>
> I'm sorry about that man,but if you like the post anyway, try something
> like google translator.
>
> Regards,Igor Escobar
> systems analyst & interface designer
> www . igorescobar . com
>
> Well. Since it's not a common thing on this mailing list to hear someone
> say he's sorry I readily accept your apology and I'll use the google
> translator as you suggested. Come to think of it, arguments almost never end
> well on this list (we just broke the record). Remember the one between
> Almighty, self acclaimed Superstar Dan and Bot Jessica? then there was the
> one between the client who later became the employer and Tedd.
>
> Cheers.
>
> _
> More than messages–check out the rest of the Windows Live™.
> http://www.microsoft.com/windows/windowslive/
>


Re: [PHP] Re: So called "PHP Expert"

2009-03-23 Thread tedd

At 12:49 PM -0300 3/23/09, Eduardo wrote:

No, please!
In some districts of the world, "license" means "bribe".

Eduardo Varela
Buenos Aires, 25 †C


It means the same here. It's a payment for being 
allowed to do something instead of payment for 
services rendered. In the USA politicians don't 
want to call it bribes, but rather licensing 
because it sounds like they are providing a 
service.


Cheers,

tedd

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

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread tedd

At 10:50 AM -0400 3/23/09, Bastien Koert wrote:

Tedd,

JS has been running on MS servers for a long time. It was always 
viewes as an acceptable replacement for vbscript.


Well -- that's been my fear. I think that M$ is trying to get it's 
foot into this so they can charge for it -- similar to them creating 
C# as a alternate for Java. Has anyone taken M$ certification lately?


Cheers,

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

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



RE: [PHP] Re: So called "PHP Expert"

2009-03-23 Thread Bob McConnell
From: Eduardo
> 
> No, please!
> In some districts of the world, "license" means "bribe".
 
You misspelled "most". In a lot of cases it is simply disguised as union
or association dues or as a fee or tax, but the effect is just the same.
The purpose is to protect the incumbents from too much competition which
might reduce their income.

Bob McConnell

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



Re: [PHP] Double the fun

2009-03-23 Thread tedd

At 10:31 AM -0500 3/23/09, Shawn McKenzie wrote:

tedd wrote:
 > At 10:09 AM -0400 3/23/09, Jason Pruim wrote:

 >> Well... As my Dad would say... "Someone wasn't holding their mouth

 right"... :)


 That's a strange answer. Maybe I'm dense, but what does that have to do
 with email?

 Cheers,

 tedd



Nothing.  Jason's dad must be from the country, that's the same thing my
dad always said.  Doesn't matter what you're doing, driving a nail,
trying to get a screw in the right hole, (also sending an email I
assume)... if it's not working, you're not holding your mouth right.

--
Thanks!
-Shawn


Okay, that makes sense -- I was thinking all sorts of weirdness.

Considering that I'm old enough to be all of your dads age, why 
haven't I heard that before?


I guess it the old "Same difference between a telephone pole because 
motorcycles don't have windows" sort of thing. Everyone my age (those 
who are left) have heard of that.


Cheers,

tedd

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

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Bastien Koert
On Mon, Mar 23, 2009 at 11:35 AM, Shawn McKenzie wrote:

> Arno Kuhl wrote:
> > -Original Message-
> > From: Sancar Saran [mailto:sancar.sa...@evodot.com]
> > Sent: 23 March 2009 11:52 AM
> > To: php-general@lists.php.net
> > Subject: Re: [PHP] Frameworks / obstinate?
> >
> > Probably a bit off topic and
> >
> > The Game is over man.
> >
> > Javascript coming with flank speed. Next generation JS Framworks will
> take
> > html generation jobs from server side.
> >
> > Whole thing of Server Side MVC and other yada yada was became joke. Those
> > server siders become JSON pushers for JS frameworks.
> >
> > Astrosurfing ?
> >
> > Yeah, just compare PHP mailing list vs Jquery Mailing list activity.
> >
> > And The New Game just begun...
> >
> > Regards
> >
> > Sancar
> >
> > --
> > You seem to suggest the more you do on client side the less you do on the
> > server. Not sure where you get that from. I'm inclined to think the
> opposite
> > - the more you do on the client the more you'll need to do on the server.
> > Sure there will be certain types of client apps that will all but
> eliminate
> > the need for server-side processing, but it's likely more power on the
> > client will mean internet apps are going to be more powerful all round,
> both
> > client and server side.
> >
> > Arno
> >
> >
>
> Yes, it's very difficult (and probably insecure) to distribute your
> entire database to all of the clients that might use it.  Not to mention
> all of the libraries:  image manipulation, pdf generators, etc...
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Flex is gonna be a bigger player in this than js query type manipulation

-- 

Bastien

Cat, the other other white meat


Re: [PHP] Re: So called "PHP Expert"

2009-03-23 Thread Eduardo
No, please!
In some districts of the world, "license" means "bribe".

Eduardo Varela
Buenos Aires, 25 ºC
""Marc Christopher Hall""  wrote in message
news:!&!AAAYAFiX02vhnU9NtdOHs2jtbxfCgAAAEMVvYN00QhlOn0no
wcs77jkba...@hallmarcwebsites.com...
This is why I am pushing for legislation to make this a licensed profession.





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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Shawn McKenzie
Arno Kuhl wrote:
> -Original Message-
> From: Sancar Saran [mailto:sancar.sa...@evodot.com] 
> Sent: 23 March 2009 11:52 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Frameworks / obstinate?
> 
> Probably a bit off topic and
> 
> The Game is over man.
> 
> Javascript coming with flank speed. Next generation JS Framworks will take
> html generation jobs from server side.
> 
> Whole thing of Server Side MVC and other yada yada was became joke. Those
> server siders become JSON pushers for JS frameworks.
> 
> Astrosurfing ?
> 
> Yeah, just compare PHP mailing list vs Jquery Mailing list activity.
> 
> And The New Game just begun...
> 
> Regards
> 
> Sancar
> 
> --
> You seem to suggest the more you do on client side the less you do on the
> server. Not sure where you get that from. I'm inclined to think the opposite
> - the more you do on the client the more you'll need to do on the server.
> Sure there will be certain types of client apps that will all but eliminate
> the need for server-side processing, but it's likely more power on the
> client will mean internet apps are going to be more powerful all round, both
> client and server side.
> 
> Arno
> 
> 

Yes, it's very difficult (and probably insecure) to distribute your
entire database to all of the clients that might use it.  Not to mention
all of the libraries:  image manipulation, pdf generators, etc...

-- 
Thanks!
-Shawn
http://www.spidean.com

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



Re: [PHP] Double the fun

2009-03-23 Thread Shawn McKenzie
tedd wrote:
> At 10:09 AM -0400 3/23/09, Jason Pruim wrote:
>> tedd wrote:
>>> Daniel Brown wrote:

 Sorry, all, I must have yelled.  Two days later and my words are
 still echoing.  ;-P
>>>
>>> I'm sure everyone has experienced email being delivered oddly. What's
>>> the problem that causes an email to be sent one day and then a week.
>>> or so later, it's sent again?
>>>
>>> Even sometimes in my scripts, where I have an email notification, two
>>> identical email notifications will be sent often days between each --
>>> what causes that?
>>>
>>> Cheers,
>>>
>>> tedd
>>>
>> Well... As my Dad would say... "Someone wasn't holding their mouth
>> right"... :)
> 
> That's a strange answer. Maybe I'm dense, but what does that have to do
> with email?
> 
> Cheers,
> 
> tedd
> 

Nothing.  Jason's dad must be from the country, that's the same thing my
dad always said.  Doesn't matter what you're doing, driving a nail,
trying to get a screw in the right hole, (also sending an email I
assume)... if it's not working, you're not holding your mouth right.

-- 
Thanks!
-Shawn
http://www.spidean.com

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



RE: [PHP] Frameworks / obstinate?

2009-03-23 Thread Arno Kuhl
-Original Message-
From: Sancar Saran [mailto:sancar.sa...@evodot.com] 
Sent: 23 March 2009 11:52 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Frameworks / obstinate?

Probably a bit off topic and

The Game is over man.

Javascript coming with flank speed. Next generation JS Framworks will take
html generation jobs from server side.

Whole thing of Server Side MVC and other yada yada was became joke. Those
server siders become JSON pushers for JS frameworks.

Astrosurfing ?

Yeah, just compare PHP mailing list vs Jquery Mailing list activity.

And The New Game just begun...

Regards

Sancar

--
You seem to suggest the more you do on client side the less you do on the
server. Not sure where you get that from. I'm inclined to think the opposite
- the more you do on the client the more you'll need to do on the server.
Sure there will be certain types of client apps that will all but eliminate
the need for server-side processing, but it's likely more power on the
client will mean internet apps are going to be more powerful all round, both
client and server side.

Arno



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



RE: [PHP] Frameworks / obstinate?

2009-03-23 Thread Jesse.Hazen
Not to mention the Object Oriented nature of PHP. This looks like a
pretty cool idea, but JS OO cannot compare to PHP OO programming.


 
 
 
Thanks,
 
Jesse Hazen
-Original Message-
From: Stuart [mailto:stut...@gmail.com] 
Sent: Monday, March 23, 2009 7:49 AM
To: tedd
Cc: php-general@lists.php.net
Subject: Re: [PHP] Frameworks / obstinate?

2009/3/23 tedd :
> However, I have heard of "new" javascript being run server-side.
What's the
> likelihood of that "catching on" and surpassing php?

http://aptana.com/jaxer

I really like the idea, but I'm yet to have a good reason to try it.
If you're starting from scratch it has the advantage of limiting the
skills required. Jaxar sits on top of Apache so I'm not sure what the
performance is like. Either way I don't see it gaining much traction
these days, at least not quickly.

-Stuart

-- 
http://stut.net/

-- 
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: [PHP] Proper code formatting

2009-03-23 Thread Shawn McKenzie
George Larson wrote:
> On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie wrote:
> 
>> Bob McConnell wrote:
>>> From: Michael A. Peters
 Angus Mann wrote:
> Hi all, I'm fairly new to PHP so I don't have too many bad habits
>>> yet.
> I'm keen to make my code easy to read for me in the future, and for
> others as well.
>
> Are there any rules or advice I can use for formatting (especially
> indenting) code?
>
> for example how best to format / indent this ?
>
 To each his own. Whatever floats your canoe.
 Just whatever you pick, stick to it throughout your code.
> I'm using "PHP designer 2008" which does syntax coloring but if it
>>> has
> something to automatically indent - I haven't found it yet.
 It probably allows you to either set a specify a tab as a real tab or
>>> a
 specified number of spaces. Auto-indenting - this isn't python, the
 compiler doesn't enforce it's way, you follow the convention of the
 project you are working on - so I suspect many php editors tailored to
 php don't have an auto indent.

 I've never of course tried that specific product. I use bluefish, vi,
 and emacs.
>>> To take this question a step further, is there a PHP best practices
>>> document available? I am looking for one that I can give to a new
>>> programmer and tell her "do it this way until you can explain to me why
>>> you shouldn't."
>>>
>>> Bob McConnell
>> There are various coding standards.  There is one for PEAR, the Zend
>> Framework and most frameworks/large projects that take contributions
>> have them.  Here's Zend:
>>
>> http://framework.zend.com/manual/en/coding-standard.html
>>
>> --
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
> Being a greenhorn, I too can benefit from this thread.
> 
> Is that to say, Shawn, that you personally find this (Zend) standard as good
> or better than the rest?
> 

Many of them are very similar, I just picked Zend as an example because
it is well known and they are the "PHP" company :-)  I tend to follow
many of the common standards but not any one in particular.  I am not a
professional developer and don't work with others really so its not as
big of a deal.  If you are working with others then I see that it is
important first and foremost to have some consistency and readability.

Some things are more personal preference and some are meant to make the
code readable/portable.  For example, the spaces vs. tabs is important
because some systems/editors/IDEs display tabs differently, but 4 spaces
should be 4 spaces almost everywhere.  I use CakePHP mostly and try and
follow they way it is coded so that it is consistent, but I flip flop on
some things for no apparent reason sometimes without even realizing it.

* I used to do this:

function somefunc() {
   //something
}

* and

if ($something) {
   //do something
}
else {
   //do something else
}

* Now I do this:

function somefunc()
{
   //something
}

if ($something) {
   //do something
} else {
   //do something else
}

-- 
Thanks!
-Shawn
http://www.spidean.com

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



RE: [PHP] Proper code formatting

2009-03-23 Thread abdulazeez alugo


Ok man, I'm sorry.

This post i wrote in a few days ago in my native language. I dont have time 
enough to write in two languagesbut who knows in the future i can do it?

I'm sorry about that man,but if you like the post anyway, try something like 
google translator.

Regards,Igor Escobar
systems analyst & interface designer
www . igorescobar . com

Well. Since it's not a common thing on this mailing list to hear someone say 
he's sorry I readily accept your apology and I'll use the google translator as 
you suggested. Come to think of it, arguments almost never end well on this 
list (we just broke the record). Remember the one between Almighty, self 
acclaimed Superstar Dan and Bot Jessica? then there was the one between the 
client who later became the employer and Tedd.

Cheers. 

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Ok man, I'm sorry.

This post i wrote in a few days ago in my native language. I dont have time
enough to write in two languagesbut who knows in the future i can do it?

I'm sorry about that man,but if you like the post anyway, try something like
google translator.

Regards,
Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Mon, Mar 23, 2009 at 11:33 AM, abdulazeez alugo wrote:

>
>
> > Im brazilian, and i understand your language, why you dont undertand my ?
> >
> > Regards,
> > Igor Escobar
> > systems analyst & interface designer
> > www . igorescobar . com
> >
> >
> Well I guess the answer to that is obvious. I'm not brazilian and it would
> be so generous of you
>
> to use the most acceptable International language in the world (English).
> Though it's not my first language too but
>
> I use it as a mean to communicate with others. Atleast the essence of
> communication is to be understood isn't it?
>
> NOTE: I speak other international languages too though but I haven't come
> up to learning brazilian. Maybe you can
>
> help me with a simple tutorial on your language.
>
>
>
> Best regards.
>
>
>
> Alugo.
>
> _
> Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
>
> http://www.microsoft.com/windows/windowslive/products/photos.aspx


Re: [PHP] Form To Mail script generators for Linux

2009-03-23 Thread Bastien Koert
On Mon, Mar 23, 2009 at 10:33 AM, Jacques Manukyan
wrote:

> Take a look at
> http://php.resourceindex.com/Complete_Scripts/Form_Processing/
>
> Note that not all the scripts there are free though so look at type.
>
> By the way, as long as the server can run PHP and there are no specific
> shell commands in the script, it should run on any operating system.
>
> -- Jacques Manukyan
>
>
> Linda Stark wrote:
>
>> Hi,
>>
>> I am trying to find out if there are any “form to mail” php script
>> generators that run on Linux available - that would generate the script
>> needed
>> to profess web mail forms such as a “contact us” page or a
>> “mail us”  page on a web site.
>> There was one in patricular I was looking at that is windows based, called
>> “Forms To Go”,
>> a commercial package, which from what I have gathered is the most popular
>> in it’s
>> class and apparently it generates secure code.
>> Thanks for any info.
>>
>>
>> _
>> Internet Explorer 8 – Now Available. Faster, safer, easier.
>> http://clk.atdmt.com/MRT/go/141323790/direct/01/
>>
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
http://www.hotscripts.com/category/php/scripts-programs/form-processors/ is
another place to look

-- 

Bastien

Cat, the other other white meat


Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Bastien Koert
On Mon, Mar 23, 2009 at 10:43 AM, tedd  wrote:

> At 10:24 AM -0400 3/23/09, Robert Cummings wrote:
>
>>
>> My point is, just because new techniques and technoloigies
>> come out, is in no way a boundary condition on an existing technology's
>> lifespan or efficacy in any particular environment. The deprecation of
>> usefulness of any technology is based on many more variables than
>> "Jquery - The New Game just began". Jquery runs in the browser, it will
>> never replace server side data acquisition, caching, and manipulation.
>> It will merely augment. Moreover, it is completely useless when
>> JavaScript is disabled. Your post also made the assumption that PHP is
>> used for web sites only. Many people are using it for other tasks too.
>> Popularity is also not a useful metric of the demise of a language. It
>> may just be that less people are familiar with JQuery and so there are
>> more questions whereas PHP has been around long enough that the bulk of
>> people interested in it have a good enough foundation in it that they
>> don't need to ask questions.
>>
>> Cheers,
>> Rob.
>>
>
> Rob:
>
> All good and excellent points.
>
> However, I have heard of "new" javascript being run server-side. What's the
> likelihood of that "catching on" and surpassing php?
>
> Cheers,
>
> tedd
>
> --
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Tedd,

JS has been running on MS servers for a long time. It was always viewes as
an acceptable replacement for vbscript.


-- 

Bastien

Cat, the other other white meat


Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Stuart
2009/3/23 tedd :
> However, I have heard of "new" javascript being run server-side. What's the
> likelihood of that "catching on" and surpassing php?

http://aptana.com/jaxer

I really like the idea, but I'm yet to have a good reason to try it.
If you're starting from scratch it has the advantage of limiting the
skills required. Jaxar sits on top of Apache so I'm not sure what the
performance is like. Either way I don't see it gaining much traction
these days, at least not quickly.

-Stuart

-- 
http://stut.net/

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread tedd

At 10:24 AM -0400 3/23/09, Robert Cummings wrote:


My point is, just because new techniques and technoloigies
come out, is in no way a boundary condition on an existing technology's
lifespan or efficacy in any particular environment. The deprecation of
usefulness of any technology is based on many more variables than
"Jquery - The New Game just began". Jquery runs in the browser, it will
never replace server side data acquisition, caching, and manipulation.
It will merely augment. Moreover, it is completely useless when
JavaScript is disabled. Your post also made the assumption that PHP is
used for web sites only. Many people are using it for other tasks too.
Popularity is also not a useful metric of the demise of a language. It
may just be that less people are familiar with JQuery and so there are
more questions whereas PHP has been around long enough that the bulk of
people interested in it have a good enough foundation in it that they
don't need to ask questions.

Cheers,
Rob.


Rob:

All good and excellent points.

However, I have heard of "new" javascript being run server-side. 
What's the likelihood of that "catching on" and surpassing php?


Cheers,

tedd

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

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



Re: [PHP] Double the fun

2009-03-23 Thread Jason Pruim

tedd wrote:

At 10:09 AM -0400 3/23/09, Jason Pruim wrote:

tedd wrote:

Daniel Brown wrote:


Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P


I'm sure everyone has experienced email being delivered oddly. 
What's the problem that causes an email to be sent one day and then 
a week. or so later, it's sent again?


Even sometimes in my scripts, where I have an email notification, 
two identical email notifications will be sent often days between 
each -- what causes that?


Cheers,

tedd

Well... As my Dad would say... "Someone wasn't holding their mouth 
right"... :)


That's a strange answer. Maybe I'm dense, but what does that have to 
do with email?


Cheers,

tedd

About as as as the price of tea in china... Anything that goes wrong 
with out an obvious reason would qualify for that answer in my Dad's eyes.


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



Re: [PHP] Double the fun

2009-03-23 Thread tedd

At 10:09 AM -0400 3/23/09, Jason Pruim wrote:

tedd wrote:

Daniel Brown wrote:


Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P


I'm sure everyone has experienced email being delivered oddly. 
What's the problem that causes an email to be sent one day and then 
a week. or so later, it's sent again?


Even sometimes in my scripts, where I have an email notification, 
two identical email notifications will be sent often days between 
each -- what causes that?


Cheers,

tedd

Well... As my Dad would say... "Someone wasn't holding their mouth 
right"... :)


That's a strange answer. Maybe I'm dense, but what does that have to 
do with email?


Cheers,

tedd

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

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



Re: [PHP] Form To Mail script generators for Linux

2009-03-23 Thread Jacques Manukyan
Take a look at 
http://php.resourceindex.com/Complete_Scripts/Form_Processing/


Note that not all the scripts there are free though so look at type.

By the way, as long as the server can run PHP and there are no specific 
shell commands in the script, it should run on any operating system.


-- Jacques Manukyan

Linda Stark wrote:

Hi,

I am trying to find out if there are any “form to mail” php script generators 
that run on Linux available - that would generate the script needed

to profess web mail forms such as a “contact us” page or a
“mail us”  page on a web site.  


There was one in patricular I was looking at that is windows based, called 
“Forms To Go”,
a commercial package, which from what I have gathered is the most popular in 
it’s
class and apparently it generates secure code. 


Thanks for any info.


_
Internet Explorer 8 – Now Available. Faster, safer, easier.
http://clk.atdmt.com/MRT/go/141323790/direct/01/
  



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



RE: [PHP] Proper code formatting

2009-03-23 Thread abdulazeez alugo


> Im brazilian, and i understand your language, why you dont undertand my ?
> 
> Regards,
> Igor Escobar
> systems analyst & interface designer
> www . igorescobar . com
> 
> 
Well I guess the answer to that is obvious. I'm not brazilian and it would be 
so generous of you 

to use the most acceptable International language in the world (English). 
Though it's not my first language too but 

I use it as a mean to communicate with others. Atleast the essence of 
communication is to be understood isn't it?

NOTE: I speak other international languages too though but I haven't come up to 
learning brazilian. Maybe you can 

help me with a simple tutorial on your language.

 

Best regards.

 

Alugo.

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx

RE: [PHP] Double the fun

2009-03-23 Thread abdulazeez alugo

> > Daniel Brown wrote:
> >>
> >> Sorry, all, I must have yelled. Two days later and my words are
> >> still echoing. ;-P
> >
> > I'm sure everyone has experienced email being delivered oddly. What's 
> > the problem that causes an email to be sent one day and then a week. 
> > or so later, it's sent again?
> >
> > Even sometimes in my scripts, where I have an email notification, two 
> > identical email notifications will be sent often days between each -- 
> > what causes that?
> >
> > Cheers,
> >
> > tedd
> >
> Well... As my Dad would say... "Someone wasn't holding their mouth 
> right"... :)
> 
Seems no one has read the law of echo on this mailing list. Well it states that,

If anyone sends a post in the morning, Considering the different time zones of 
the world,

someone else might be on his bed sleeping with a 2-days interval.

I just guess that's what applied to Dan's yell.

 

Cheers.

 

Alugo.

_
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Im brazilian, and i understand your language, why you dont undertand my ?

Regards,
Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Mon, Mar 23, 2009 at 11:10 AM, abdulazeez alugo wrote:

>
>
> > Date: Mon, 23 Mar 2009 09:52:21 -0300
> > From: titiolin...@gmail.com
> > To: pru...@gmail.com
> > CC: george.g.lar...@gmail.com; nos...@mckenzies.net;
> php-general@lists.php.net
> > Subject: Re: [PHP] Proper code formatting
> >
> > Hi Angus, please, read this topic
> >
> > *http://www.igorescobar.com/blog/2009/02/03/coding-standards/
> *
> > I speak a little bit about Coding Standards.
>
> And how did you expect us to understand the language your site is written
> in?
>
>
> --
> See all the ways you can stay connected to friends and 
> family
>


Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Robert Cummings
On Mon, 2009-03-23 at 15:58 +0200, Sancar Saran wrote:
> On Monday 23 March 2009 12:33:58 Robert Cummings wrote:
> > On Mon, 2009-03-23 at 11:52 +0200, Sancar Saran wrote:
> > > Probably a bit off topic and
> > >
> > > The Game is over man.
> > >
> > > Javascript coming with flank speed. Next generation JS Framworks will
> > > take html generation jobs from server side.
> > >
> > > Whole thing of Server Side MVC and other yada yada was became joke. Those
> > > server siders become JSON pushers for JS frameworks.
> > >
> > > Astrosurfing ?
> > >
> > > Yeah, just compare PHP mailing list vs Jquery Mailing list activity.
> > >
> > > And The New Game just begun...
> >
> > Yeah, I hear C has been replaced too.
> >

> Well, I did not see you to write your web app with C.

I write in C still. I have a mud I work on in my spare time...
admittedly MUDs aren't a good example since they are dated... but this
particular one shares C code, via compile-time macros, with associated
PHP extensions to speed up certain aspects of data parsing and
evaluation. My point is, just because new techniques and technoloigies
come out, is in no way a boundary condition on an existing technology's
lifespan or efficacy in any particular environment. The deprecation of
usefulness of any technology is based on many more variables than
"Jquery - The New Game just began". Jquery runs in the browser, it will
never replace server side data acquisition, caching, and manipulation.
It will merely augment. Moreover, it is completely useless when
JavaScript is disabled. Your post also made the assumption that PHP is
used for web sites only. Many people are using it for other tasks too.
Popularity is also not a useful metric of the demise of a language. It
may just be that less people are familiar with JQuery and so there are
more questions whereas PHP has been around long enough that the bulk of
people interested in it have a good enough foundation in it that they
don't need to ask questions.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



RE: [PHP] Proper code formatting

2009-03-23 Thread abdulazeez alugo


 

> Date: Mon, 23 Mar 2009 09:52:21 -0300
> From: titiolin...@gmail.com
> To: pru...@gmail.com
> CC: george.g.lar...@gmail.com; nos...@mckenzies.net; php-general@lists.php.net
> Subject: Re: [PHP] Proper code formatting
> 
> Hi Angus, please, read this topic
> 
> http://www.igorescobar.com/blog/2009/02/03/coding-standards/

> I speak a little bit about Coding Standards.

 

And how did you expect us to understand the language your site is written in? 


_
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx

Re: [PHP] Double the fun

2009-03-23 Thread Jason Pruim

tedd wrote:

Daniel Brown wrote:


Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P


I'm sure everyone has experienced email being delivered oddly. What's 
the problem that causes an email to be sent one day and then a week. 
or so later, it's sent again?


Even sometimes in my scripts, where I have an email notification, two 
identical email notifications will be sent often days between each -- 
what causes that?


Cheers,

tedd

Well... As my Dad would say... "Someone wasn't holding their mouth 
right"... :)


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



[PHP] Double the fun

2009-03-23 Thread tedd

Daniel Brown wrote:


Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P


I'm sure everyone has experienced email being delivered oddly. What's 
the problem that causes an email to be sent one day and then a week. 
or so later, it's sent again?


Even sometimes in my scripts, where I have an email notification, two 
identical email notifications will be sent often days between each -- 
what causes that?


Cheers,

tedd

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

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



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Sancar Saran
On Monday 23 March 2009 12:33:58 Robert Cummings wrote:
> On Mon, 2009-03-23 at 11:52 +0200, Sancar Saran wrote:
> > Probably a bit off topic and
> >
> > The Game is over man.
> >
> > Javascript coming with flank speed. Next generation JS Framworks will
> > take html generation jobs from server side.
> >
> > Whole thing of Server Side MVC and other yada yada was became joke. Those
> > server siders become JSON pushers for JS frameworks.
> >
> > Astrosurfing ?
> >
> > Yeah, just compare PHP mailing list vs Jquery Mailing list activity.
> >
> > And The New Game just begun...
>
> Yeah, I hear C has been replaced too.
>
Well, I did not see you to write your web app with C.

Regards


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



Re: [PHP] Proper code formatting

2009-03-23 Thread Michael A. Peters

George Larson wrote:

Well, I was pondering making a recommendation, of sorts.

I work in an environment with various levels of coders, perhaps similar to
your description.  Currently, there are no standards that I have seen.  We
all are bringing our coding habits with us.  I don't know if it is important
that I like lower case variable names with underscores for spaces while the
next guy likes each letter of a new word in uppercase.  However, I can
imagine it getting out of control as the code continues to grow.


I was the former until I started dabbling with JavaScript in DOM2 - now 
I do the latter a lot, but *sigh* not consistently.


Interestingly, because of wiki's I guess, I'm also using mod_rewrite to 
do the ThisIsMyWebPage style pages on the server (all files are lower 
case with proper extension, but mod_rewrite lets you give a better 
presentation file name for the viewer)


I guess I'm easily corrupted ;)

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



Re: [PHP] Proper code formatting

2009-03-23 Thread Michael A. Peters

Bob McConnell wrote:



To take this question a step further, is there a PHP best practices
document available? I am looking for one that I can give to a new
programmer and tell her "do it this way until you can explain to me why
you shouldn't."

Bob McConnell



I just remembered why I started doing it the way I currently do it 
(earlier thread on this I had forgotten) - my desktop monitor went 
south, so I ended up using my laptop exclusively for a few months (money 
was tight) - an old Thinkpad with low ram, so X11 really taxes it, 
worked in console a lot.


Work in a console and vertical space is of viewing value, hence putting 
the opening { at the end and not on new line of it's own, and it has 
stuck with me ever since.


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



RE: [PHP] today i found the best function I've ever seen

2009-03-23 Thread abdulazeez alugo


 
> Date: Mon, 23 Mar 2009 09:11:00 -0400
> From: danbr...@php.net
> To: titiolin...@gmail.com
> CC: virgilio.quila...@gmail.com; nrix...@gmail.com; php-general@lists.php.net
> Subject: Re: [PHP] today i found the best function I've ever seen
> 
> On Mon, Mar 23, 2009 at 09:07, Igor Escobar  wrote:
> > Do not try this at home...
> 
> Sorry, all, I must have yelled. Two days later and my words are
> still echoing. ;-P
> 
Ha Ha Ha Ha. Did you have to say that Dan?
_
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx

Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Nathan Rixham

Jason Pruim wrote:

Daniel Brown wrote:
On Mon, Mar 23, 2009 at 09:07, Igor Escobar  
wrote:
 

Do not try this at home...



Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P

  
Yeah... Would you keep your voice down You self titled oh so important 
person! :P






bloody vagrants - get back to work



















:p

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



Re: [PHP] Google Summer Of Code : The PHP Project

2009-03-23 Thread Daniel Brown
On Mon, Mar 23, 2009 at 05:57, Nabil Khamassi
 wrote:
>
> I am especially interested in "Integrated Code Coverage of C and PHP Code"
> because I have a solid knowledge in C language (and a full-time project in
> C is planned at the end of this semester in ENSIMAG) but also on parsers
> that I am studying all along this year.

Thanks for your message and introduction, Nabil.  I've forwarded
your message as appropriate and if chosen from the list of candidates,
the mentor for that sub-project will be in touch with you very soon.

Thanks again, and best of luck.

-- 

daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1

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



Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Jason Pruim

Daniel Brown wrote:

On Mon, Mar 23, 2009 at 09:07, Igor Escobar  wrote:
  

Do not try this at home...



Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P

  
Yeah... Would you keep your voice down You self titled oh so important 
person! :P




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



Re: [PHP] So called "PHP Expert"

2009-03-23 Thread Igor Escobar
Say this:

"Okey man, where are the camera? it's not funny :D"

Regards,
Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Sat, Mar 21, 2009 at 8:16 PM, abdulazeez alugo wrote:

>
>
>
>
> > Date: Sat, 21 Mar 2009 10:54:56 -0400
> > From: danbr...@php.net
> > To: tedd.sperl...@gmail.com
> > CC: php-general@lists.php.net; rob...@interjinn.com
> > Subject: Re: [PHP] So called "PHP Expert"
> >
> > On Sat, Mar 21, 2009 at 10:48, tedd  wrote:
> > >
> > > Leave it to you to drop kick me when you have the chance. Here I was
> trying
> > > to say something prophetic and you made it pathetic. :-)
> >
> > Maybe philosophical?
> >
> > > Oh well, at least I take comfort in the fact that you'll probably not
> live
> > > to be as old as me. But if you do, just imagine how deep your ignorance
> will
> > > be. :-)
> >
> > Now *this* is prophetic and a harsh response to a virtual
> > drop-kick. You guys play rough!
> >
> Oh! ref dan, I charge you to give them a yellow card or something.
>
>
>
> Alugo
>
> www.frangeovic.com
>
> _
> More than messages–check out the rest of the Windows Live™.
> http://www.microsoft.com/windows/windowslive/


Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Daniel Brown
On Mon, Mar 23, 2009 at 09:07, Igor Escobar  wrote:
> Do not try this at home...

Sorry, all, I must have yelled.  Two days later and my words are
still echoing.  ;-P

-- 

daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1

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



Re: [PHP] Google Summer Of Code : The PHP Project

2009-03-23 Thread tedd

At 10:57 AM +0100 3/23/09, Nabil Khamassi wrote:

Dear Sir/Madam,

I am a first-year student at the ENSIMAG, one of the french educational
institutions in informatics, applied mathematics and telecommunications,
pioneer in the field of information processing and I am writing this letter
to show my deep motivation and interest to work on the PHP Project that I
saw on your website.

I believe that I am new to PHP but I have strong knowledges in HTML, XML
and Javascript. In fact, since I was 16 years-old I have studied these
languages and I developped many dynamic pages based on Javascript just for
fun. Usually, I take profit from every summer to learn programmation
languages (Pascal, Ada, HTML, XML, Javascript, C++...) and practicing
softwares (Flash, 3D StudioMax 8, Blender on Ubuntu, Dreamweaver,
Frontpage...) and my two years in preparatory school and my first year of
engineering at the ENSIMAG taught me to be accurate, efficient and more
autonom in learning alone and organising my work. And now I really started
consulting the tutorials about PHP.

I am especially interested in "Integrated Code Coverage of C and PHP Code"
because I have a solid knowledge in C language (and a full-time project in
C is planned at the end of this semester in ENSIMAG) but also on parsers
that I am studying all along this year.

I really look forward to hearing from you. Yours faithfully.

Nabil KHAMASSI.


Huh?

Perhaps you should lurk for a while and find out what this list is.

OTOH

Hey guys!

Anyone need some coding done?

Cheers,

tedd

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

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



Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Igor Escobar
Do not try this at home...


Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Sat, Mar 21, 2009 at 7:23 AM, Virgilio Quilario <
virgilio.quila...@gmail.com> wrote:

> > if( !function_exists('clean_sql_term') )
> > {
> >function clean_sql_term($term) {
> >return $term;
> >}
> > }
> >
> > beautiful
> >
>
> hi Nathan,
>
> Nice find.
> You have found a very useful function.
> Here is how I use it to load needed PHP files that declares the function.
> if (!function_exists('clean_sql_term'))
> {
>   require 'module.php';
> }
> clean_sql_term($term);
>
> Above code makes sure that the function is available.
> Really beautiful, though jurassic but useful.
>
> Cheers,
> Virgil
> http://www.jampmark.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Re: Multithreading in PHP

2009-03-23 Thread Igor Escobar
Great Project, Lemos.

When you are thinking in show more exemples?

Regards,
Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Fri, Mar 20, 2009 at 3:04 AM, Manuel Lemos  wrote:

>
> Hello Andrea,
>
> on 03/18/2009 06:07 AM Andrea Giammarchi said the following:
> > If anybody interested, this is my "old" comet implementation in PHP:
> >
> http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html
>
> Great! Any live examples page?
>
>
> > P.S. Hi Manuel, ages I do not read you ( ages I do not post my classes in
> phpclasses.org :-) )
>
> Oh, yes, feel free to get back. Hopefully soon the PHPClasses site will
> share ad revenue with the best contributors! ;-)
>
>
> --
>
> Regards,
> Manuel Lemos
>
> Find and post PHP jobs
> http://www.phpclasses.org/jobs/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Proper code formatting

2009-03-23 Thread tedd

At 4:19 PM +1000 3/23/09, Angus Mann wrote:

Hi all, I'm fairly new to PHP so I don't have too many bad habits yet.

I'm keen to make my code easy to read for me in the future, and for 
others as well.


Are there any rules or advice I can use for formatting (especially 
indenting) code?


for example how best to format / indent this ?

if ($variable = 'this')
{
do this;
and this;
}
else
{
if ($name = 'bill')
{
do something will bill;
and something else with bill;
}
else
{
assume its not bill;
and do the fred thing;
}


Angus:

The way I would (a personal choice) indent it would be:

if ($variable = 'this')
   {
   do this;
   and this;
   }
else
   {
   if ($name = 'bill')
  {
  do something will bill;
  and something else with bill;
  }
   else
  {
  assume its not bill;
  and do the fred thing;
   }

However, that's not the way I would code it:

First, I would use tabs, not spaces.

Second, your "if statements" should be == and not = .

Third, I don't like run-on if's -- I would use a switch statement instead:

switch(1)
   {
   case $variable == 'this':
   do this;
   and this;
   break;

   case $name == 'bill':
   do something with bill;
   and something else with bill;
   break;

   default:
   assume its not bill;
   and do the fred thing;
   break;
   }


The switch is easier for me to understand. YMMV.

Cheers,

tedd

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

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



Re: [PHP] Proper code formatting

2009-03-23 Thread George Larson
Well, I was pondering making a recommendation, of sorts.

I work in an environment with various levels of coders, perhaps similar to
your description.  Currently, there are no standards that I have seen.  We
all are bringing our coding habits with us.  I don't know if it is important
that I like lower case variable names with underscores for spaces while the
next guy likes each letter of a new word in uppercase.  However, I can
imagine it getting out of control as the code continues to grow.

On Mon, Mar 23, 2009 at 8:48 AM, Jason Pruim  wrote:

> George Larson wrote:
>
>> On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie > >wrote:
>>
>>
>>
>>> Bob McConnell wrote:
>>>
>>>
 From: Michael A. Peters


> Angus Mann wrote:
>
>
>> Hi all, I'm fairly new to PHP so I don't have too many bad habits
>>
>>
> yet.


> I'm keen to make my code easy to read for me in the future, and for
>> others as well.
>>
>> Are there any rules or advice I can use for formatting (especially
>> indenting) code?
>>
>> for example how best to format / indent this ?
>>
>>
>>
> To each his own. Whatever floats your canoe.
> Just whatever you pick, stick to it throughout your code.
>
>
>> I'm using "PHP designer 2008" which does syntax coloring but if it
>>
>>
> has


> something to automatically indent - I haven't found it yet.
>>
>>
> It probably allows you to either set a specify a tab as a real tab or
>
>
 a


> specified number of spaces. Auto-indenting - this isn't python, the
> compiler doesn't enforce it's way, you follow the convention of the
> project you are working on - so I suspect many php editors tailored to
>php don't have an auto indent.
>
> I've never of course tried that specific product. I use bluefish, vi,
> and emacs.
>
>
 To take this question a step further, is there a PHP best practices
 document available? I am looking for one that I can give to a new
 programmer and tell her "do it this way until you can explain to me why
 you shouldn't."

 Bob McConnell


>>> There are various coding standards.  There is one for PEAR, the Zend
>>> Framework and most frameworks/large projects that take contributions
>>> have them.  Here's Zend:
>>>
>>> http://framework.zend.com/manual/en/coding-standard.html
>>>
>>> --
>>> Thanks!
>>> -Shawn
>>> http://www.spidean.com
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>>
>>
>> Being a greenhorn, I too can benefit from this thread.
>>
>> Is that to say, Shawn, that you personally find this (Zend) standard as
>> good
>> or better than the rest?
>>
>>
>>
> I actually just went through this wit ha group of people that come from all
> different levels and back grounds in regards to programing. Trying to decide
> whether to use spaces, or tabs, short hand or long hand... It took quite a
> bit of discussion before we arrived at an agreement...
>
> It really didn't matter what format we used as long as we stayed consistent
> throughout the file. In other words, if you are going to edit a file and it
> uses spaces instead of tabs, use spaces
>
> So absolutely, develop some standards if you are going to have multiple
> coders working on it... But they don't have to be set by someone else...
>
> Personally though, I go for readability it may at times take longer to
> write it out, but since we all type 500 words permit with 100% accuracy it
> won't be a problem right? ;)
>
> And then when you go back to the code in 6 months, a year, 2 years... It's
> still easily read able :)
>


Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Hi Angus, please, read this topic

http://www.igorescobar.com/blog/2009/02/03/coding-standards/

I speak a little bit about Coding Standards.

Igor Escobar
systems analyst & interface designer
www . igorescobar . com



On Mon, Mar 23, 2009 at 9:48 AM, Jason Pruim  wrote:

> George Larson wrote:
>
>> On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie > >wrote:
>>
>>
>>
>>> Bob McConnell wrote:
>>>
>>>
 From: Michael A. Peters


> Angus Mann wrote:
>
>
>> Hi all, I'm fairly new to PHP so I don't have too many bad habits
>>
>>
> yet.


> I'm keen to make my code easy to read for me in the future, and for
>> others as well.
>>
>> Are there any rules or advice I can use for formatting (especially
>> indenting) code?
>>
>> for example how best to format / indent this ?
>>
>>
>>
> To each his own. Whatever floats your canoe.
> Just whatever you pick, stick to it throughout your code.
>
>
>> I'm using "PHP designer 2008" which does syntax coloring but if it
>>
>>
> has


> something to automatically indent - I haven't found it yet.
>>
>>
> It probably allows you to either set a specify a tab as a real tab or
>
>
 a


> specified number of spaces. Auto-indenting - this isn't python, the
> compiler doesn't enforce it's way, you follow the convention of the
> project you are working on - so I suspect many php editors tailored to
>php don't have an auto indent.
>
> I've never of course tried that specific product. I use bluefish, vi,
> and emacs.
>
>
 To take this question a step further, is there a PHP best practices
 document available? I am looking for one that I can give to a new
 programmer and tell her "do it this way until you can explain to me why
 you shouldn't."

 Bob McConnell


>>> There are various coding standards.  There is one for PEAR, the Zend
>>> Framework and most frameworks/large projects that take contributions
>>> have them.  Here's Zend:
>>>
>>> http://framework.zend.com/manual/en/coding-standard.html
>>>
>>> --
>>> Thanks!
>>> -Shawn
>>> http://www.spidean.com
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>>
>>>
>>
>> Being a greenhorn, I too can benefit from this thread.
>>
>> Is that to say, Shawn, that you personally find this (Zend) standard as
>> good
>> or better than the rest?
>>
>>
>>
> I actually just went through this wit ha group of people that come from all
> different levels and back grounds in regards to programing. Trying to decide
> whether to use spaces, or tabs, short hand or long hand... It took quite a
> bit of discussion before we arrived at an agreement...
>
> It really didn't matter what format we used as long as we stayed consistent
> throughout the file. In other words, if you are going to edit a file and it
> uses spaces instead of tabs, use spaces
>
> So absolutely, develop some standards if you are going to have multiple
> coders working on it... But they don't have to be set by someone else...
>
> Personally though, I go for readability it may at times take longer to
> write it out, but since we all type 500 words permit with 100% accuracy it
> won't be a problem right? ;)
>
> And then when you go back to the code in 6 months, a year, 2 years... It's
> still easily read able :)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Proper code formatting

2009-03-23 Thread Jason Pruim

George Larson wrote:

On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie wrote:

  

Bob McConnell wrote:


From: Michael A. Peters
  

Angus Mann wrote:


Hi all, I'm fairly new to PHP so I don't have too many bad habits
  

yet.
  

I'm keen to make my code easy to read for me in the future, and for
others as well.

Are there any rules or advice I can use for formatting (especially
indenting) code?

for example how best to format / indent this ?

  

To each his own. Whatever floats your canoe.
Just whatever you pick, stick to it throughout your code.


I'm using "PHP designer 2008" which does syntax coloring but if it
  

has
  

something to automatically indent - I haven't found it yet.
  

It probably allows you to either set a specify a tab as a real tab or


a
  

specified number of spaces. Auto-indenting - this isn't python, the
compiler doesn't enforce it's way, you follow the convention of the
project you are working on - so I suspect many php editors tailored to

php don't have an auto indent.


I've never of course tried that specific product. I use bluefish, vi,
and emacs.


To take this question a step further, is there a PHP best practices
document available? I am looking for one that I can give to a new
programmer and tell her "do it this way until you can explain to me why
you shouldn't."

Bob McConnell
  

There are various coding standards.  There is one for PEAR, the Zend
Framework and most frameworks/large projects that take contributions
have them.  Here's Zend:

http://framework.zend.com/manual/en/coding-standard.html

--
Thanks!
-Shawn
http://www.spidean.com

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





Being a greenhorn, I too can benefit from this thread.

Is that to say, Shawn, that you personally find this (Zend) standard as good
or better than the rest?

  
I actually just went through this wit ha group of people that come from 
all different levels and back grounds in regards to programing. Trying 
to decide whether to use spaces, or tabs, short hand or long hand... It 
took quite a bit of discussion before we arrived at an agreement...


It really didn't matter what format we used as long as we stayed 
consistent throughout the file. In other words, if you are going to edit 
a file and it uses spaces instead of tabs, use spaces


So absolutely, develop some standards if you are going to have multiple 
coders working on it... But they don't have to be set by someone else...


Personally though, I go for readability it may at times take longer to 
write it out, but since we all type 500 words permit with 100% accuracy 
it won't be a problem right? ;)


And then when you go back to the code in 6 months, a year, 2 years... 
It's still easily read able :)


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



[PHP] Google Summer Of Code : The PHP Project

2009-03-23 Thread Nabil Khamassi
Dear Sir/Madam,

I am a first-year student at the ENSIMAG, one of the french educational
institutions in informatics, applied mathematics and telecommunications,
pioneer in the field of information processing and I am writing this letter
to show my deep motivation and interest to work on the PHP Project that I
saw on your website.

I believe that I am new to PHP but I have strong knowledges in HTML, XML
and Javascript. In fact, since I was 16 years-old I have studied these
languages and I developped many dynamic pages based on Javascript just for
fun. Usually, I take profit from every summer to learn programmation
languages (Pascal, Ada, HTML, XML, Javascript, C++...) and practicing
softwares (Flash, 3D StudioMax 8, Blender on Ubuntu, Dreamweaver,
Frontpage...) and my two years in preparatory school and my first year of
engineering at the ENSIMAG taught me to be accurate, efficient and more
autonom in learning alone and organising my work. And now I really started
consulting the tutorials about PHP.

I am especially interested in "Integrated Code Coverage of C and PHP Code"
because I have a solid knowledge in C language (and a full-time project in
C is planned at the end of this semester in ENSIMAG) but also on parsers
that I am studying all along this year. 

I really look forward to hearing from you. Yours faithfully.

Nabil KHAMASSI.


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



Re: [PHP] Proper code formatting

2009-03-23 Thread George Larson
On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie wrote:

> Bob McConnell wrote:
> > From: Michael A. Peters
> >> Angus Mann wrote:
> >>> Hi all, I'm fairly new to PHP so I don't have too many bad habits
> > yet.
> >>> I'm keen to make my code easy to read for me in the future, and for
> >>> others as well.
> >>>
> >>> Are there any rules or advice I can use for formatting (especially
> >>> indenting) code?
> >>>
> >>> for example how best to format / indent this ?
> >>>
> >
> >> To each his own. Whatever floats your canoe.
> >> Just whatever you pick, stick to it throughout your code.
> >>>
> >>> I'm using "PHP designer 2008" which does syntax coloring but if it
> > has
> >>> something to automatically indent - I haven't found it yet.
> >> It probably allows you to either set a specify a tab as a real tab or
> > a
> >> specified number of spaces. Auto-indenting - this isn't python, the
> >> compiler doesn't enforce it's way, you follow the convention of the
> >> project you are working on - so I suspect many php editors tailored to
> >
> >> php don't have an auto indent.
> >>
> >> I've never of course tried that specific product. I use bluefish, vi,
> >> and emacs.
> >
> > To take this question a step further, is there a PHP best practices
> > document available? I am looking for one that I can give to a new
> > programmer and tell her "do it this way until you can explain to me why
> > you shouldn't."
> >
> > Bob McConnell
>
> There are various coding standards.  There is one for PEAR, the Zend
> Framework and most frameworks/large projects that take contributions
> have them.  Here's Zend:
>
> http://framework.zend.com/manual/en/coding-standard.html
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Being a greenhorn, I too can benefit from this thread.

Is that to say, Shawn, that you personally find this (Zend) standard as good
or better than the rest?


Re: [PHP] Proper code formatting

2009-03-23 Thread Shawn McKenzie
Bob McConnell wrote:
> From: Michael A. Peters
>> Angus Mann wrote:
>>> Hi all, I'm fairly new to PHP so I don't have too many bad habits
> yet.
>>> I'm keen to make my code easy to read for me in the future, and for 
>>> others as well.
>>>
>>> Are there any rules or advice I can use for formatting (especially 
>>> indenting) code?
>>>
>>> for example how best to format / indent this ?
>>>
> 
>> To each his own. Whatever floats your canoe.
>> Just whatever you pick, stick to it throughout your code.
>>>
>>> I'm using "PHP designer 2008" which does syntax coloring but if it
> has 
>>> something to automatically indent - I haven't found it yet.
>> It probably allows you to either set a specify a tab as a real tab or
> a 
>> specified number of spaces. Auto-indenting - this isn't python, the 
>> compiler doesn't enforce it's way, you follow the convention of the 
>> project you are working on - so I suspect many php editors tailored to
> 
>> php don't have an auto indent.
>>
>> I've never of course tried that specific product. I use bluefish, vi, 
>> and emacs.
> 
> To take this question a step further, is there a PHP best practices
> document available? I am looking for one that I can give to a new
> programmer and tell her "do it this way until you can explain to me why
> you shouldn't."
> 
> Bob McConnell

There are various coding standards.  There is one for PEAR, the Zend
Framework and most frameworks/large projects that take contributions
have them.  Here's Zend:

http://framework.zend.com/manual/en/coding-standard.html

-- 
Thanks!
-Shawn
http://www.spidean.com

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



RE: [PHP] Proper code formatting

2009-03-23 Thread Bob McConnell
From: Michael A. Peters
> Angus Mann wrote:
>> Hi all, I'm fairly new to PHP so I don't have too many bad habits
yet.
>> 
>> I'm keen to make my code easy to read for me in the future, and for 
>> others as well.
>> 
>> Are there any rules or advice I can use for formatting (especially 
>> indenting) code?
>> 
>> for example how best to format / indent this ?
>> 

> 
> To each his own. Whatever floats your canoe.
> Just whatever you pick, stick to it throughout your code.
>> 
>> 
>> I'm using "PHP designer 2008" which does syntax coloring but if it
has 
>> something to automatically indent - I haven't found it yet.
> 
> It probably allows you to either set a specify a tab as a real tab or
a 
> specified number of spaces. Auto-indenting - this isn't python, the 
> compiler doesn't enforce it's way, you follow the convention of the 
> project you are working on - so I suspect many php editors tailored to

> php don't have an auto indent.
> 
> I've never of course tried that specific product. I use bluefish, vi, 
> and emacs.

To take this question a step further, is there a PHP best practices
document available? I am looking for one that I can give to a new
programmer and tell her "do it this way until you can explain to me why
you shouldn't."

Bob McConnell

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



[PHP] Form To Mail script generators for Linux

2009-03-23 Thread Linda Stark

Hi,

I am trying to find out if there are any “form to mail” php script generators 
that run on Linux available - that would generate the script needed
to profess web mail forms such as a “contact us” page or a
“mail us”  page on a web site.  

There was one in patricular I was looking at that is windows based, called 
“Forms To Go”,
a commercial package, which from what I have gathered is the most popular in 
it’s
class and apparently it generates secure code. 

Thanks for any info.


_
Internet Explorer 8 – Now Available. Faster, safer, easier.
http://clk.atdmt.com/MRT/go/141323790/direct/01/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Robert Cummings
On Mon, 2009-03-23 at 11:52 +0200, Sancar Saran wrote:
> Probably a bit off topic and
> 
> The Game is over man.
> 
> Javascript coming with flank speed. Next generation JS Framworks will take 
> html generation jobs from server side.
> 
> Whole thing of Server Side MVC and other yada yada was became joke. Those 
> server siders become JSON pushers for JS frameworks.
> 
> Astrosurfing ?
> 
> Yeah, just compare PHP mailing list vs Jquery Mailing list activity.
> 
> And The New Game just begun...

Yeah, I hear C has been replaced too.

.
.
.

.
.
.

.
.
.

.
.
.

.
.
.

NOT!

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


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



[PHP] PHP checkstyle

2009-03-23 Thread Dipen
Hi list,
 After searching google for 1 hr I am still unable to find an equivalent for
java checkstyle for PHP which would play nice with eclipse. I could find
this
http://developer.spikesource.com/wiki/index.php?title=Projects:phpcheckstyleNewsand
one abandoned project with no releases on sourceforge. Does anyone
know
of checkstyle eclipse plugin for PHP (doesnt need to be all featureful).
Also how do you manage this kind of task? Checkstyle eclipse plugin for java
- http://eclipse-cs.sourceforge.net/

Thanks

Dipen


Re: [PHP] Frameworks / obstinate?

2009-03-23 Thread Sancar Saran
Probably a bit off topic and

The Game is over man.

Javascript coming with flank speed. Next generation JS Framworks will take 
html generation jobs from server side.

Whole thing of Server Side MVC and other yada yada was became joke. Those 
server siders become JSON pushers for JS frameworks.

Astrosurfing ?

Yeah, just compare PHP mailing list vs Jquery Mailing list activity.

And The New Game just begun...

Regards

Sancar

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



Re: [PHP] quick question - need a site i can more or less copy from

2009-03-23 Thread Jochem Maas
bruce schreef:
> Hi...
> 
> Working on a test app, and I need a web interface to test/view the
> underlying information. Looking for (hopefully) quick pointers/suggestions.
> 
> I'm dealing with a number of cli web crawling apps that return data. I'm
> trying to find a quick app that I can modify the db schema, as well as some
> of the underlying logic to display my data.
> 
> my returned data consists of:
>  university
>school
>  dept
>   class
>classname
>classID
>classdescription
>classA
>classB
>faculty
> 
> 
> The above is a represenation of the levels of data. I'm looking to have
> multiple tbls, each of which links to the child tbl...
> 
> I'm not a web dev, and i'm looking for some sort of web app that i might rip
> apart/modify so i can start to be able to view this data on a web app..
> 
> i'm currently looking through sourceforge/freshmeat/etc...

if all you really want is just to view/hack the data at a very raw level,
try phpmyadmin (i'm assuming your using mysql)

> 
> thanks...
> 
> 
> 


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



RE: [PHP] MYSQL TABLES (One To Many Relationship)

2009-03-23 Thread abdulazeez alugo

Thanks Tedd,

 

You're such an angel. I've tried it your way and it works perfectly well.

(maybe I'll send you a return ticket to Nigeria when I organize the PHP 
conference).

 

Hey Dan, help me amplify my thanks to Tedd.

 

Alugo Abdulazeez

www.frangeovic.com
 
> Date: Sun, 22 Mar 2009 14:38:01 -0400
> To: defati...@hotmail.com; php-general@lists.php.net
> From: tedd.sperl...@gmail.com
> Subject: Re: [PHP] MYSQL TABLES (One To Many Relationship)
> 
> At 5:04 PM +0100 3/22/09, abdulazeez alugo wrote:
> >Hi guys,
> >
> > I need help on something I'm working on and its really eating me up 
> >so I'll appreciate any help I can get on it.
> >
> >I'm writing code for a site that posts a topic for discussion and 
> >accepts comments (Just like a parliament).
> >
> >There are different discussions for every day and the comments 
> >should be displayed along with the corresponding topics per day.
> 
> Hi Alugo:
> 
> I wrote a similar thing for my site, see here: http://sperling.com
> 
> As you can see, on most pages people can add comment.
> 
> Considering such, the most important part I found was designing the 
> tables for the database. I used two tables, which follow showing 
> fields:
> 
> COMMENTS table
> Fields
> id <-- auto-increment id for comments
> post_time <-- time of this post
> poster_id <-- the id from the POSTERS table
> page <-- the page the poster commented on
> comment <-- the actual comment made by the poster
> notify_me <-- an option for the poster to select IF they want to be 
> notified of additional posts
> approved <-- option for me to use if I want the post to be displayed
> 
> POSTERS table
> Fields
> id <-- auto-increment id for posters
> time <-- time of first post (i.e., registration)
> poster <-- name of poster
> email <-- email of poster (after confirmation of email address)
> ip <-- ip of poster (taken from post)
> web_site <-- web site of poster (if given)
> banned <-- option for me to use if I want to ban this poster
> 
> So as you can see, this is one table for posters and each poster can 
> post many comments (i.e., a "one to many" relationship).
> 
> Each time a post is made, the posting method checks the database for 
> poster approval. Either the poster is approved, banned, or yet to be 
> registered -- each path is followed accordingly.
> 
> Note as each page is loaded the comments are pulled from the database 
> and shown, or not, depending upon if the poster is approved OR if I 
> have overridden the post. This allows me to ban the post, but not the 
> poster. But in most cases, if the poster post something that I don't 
> like, then the poster is also banned.
> 
> HTH's
> 
> tedd
> 
> -- 
> ---
> http://sperling.com http://ancientstones.com http://earthstones.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

Re: [PHP] Proper code formatting

2009-03-23 Thread Michael A. Peters

Angus Mann wrote:

Hi all, I'm fairly new to PHP so I don't have too many bad habits yet.

I'm keen to make my code easy to read for me in the future, and for 
others as well.


Are there any rules or advice I can use for formatting (especially 
indenting) code?


for example how best to format / indent this ?

if ($variable = 'this')
{
do this;
and this;
}
else
{
if ($name = 'bill')
{
do something will bill;
and something else with bill;
}
else
{
assume its not bill;
and do the fred thing;
}



First - if ($variable = 'this') with assign the value "this" to variable 
and then return true. Probably not what you want ;)


This is what I do:

if ($variable == 'this') {
   do this;
   and this;
   } else {
   if ($name == 'bill') {
  do something with bill;
  and something else with bill;
  } else {
  assume its not bill;
  and do the fred thing;
  }
   }

// note that you were missing a } - easy to miss with your style

Of course - it is better like this

if ($variable == 'this') {
   do this;
   and this;
   } elseif ($name == 'bill') {
   do something with bill;
   and something else with bill;
   } else {
   assume its not bill;
   and do the fred thing;
   }

but what many like to do is something like this:

if ($variable == 'this')
{
   do this;
   and this;
} elseif ($name == 'bill') {
   do something with bill;
   and something else with bill;
} else {
   assume its not bill;
   and do the fred thing;
}

To each his own. Whatever floats your canoe.
Just whatever you pick, stick to it throughout your code.





I'm using "PHP designer 2008" which does syntax coloring but if it has 
something to automatically indent - I haven't found it yet.


It probably allows you to either set a specify a tab as a real tab or a 
specified number of spaces. Auto-indenting - this isn't python, the 
compiler doesn't enforce it's way, you follow the convention of the 
project you are working on - so I suspect many php editors tailored to 
php don't have an auto indent.


I've never of course tried that specific product. I use bluefish, vi, 
and emacs.


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