Re: [PHP] Need Programmers for Projects

2008-10-17 Thread Daniel Brown
On Fri, Oct 17, 2008 at 11:09 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I am looking for some help with projects.  Please let me know if you're
> interested.

Most people would be wary of replying with a vague message like that.

1.) What kind of projects?
2.) What is the compensation, if any?
3.) What skills are required?
4.) [et cetera]

-- 

More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

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



[PHP] Need Programmers for Projects

2008-10-17 Thread [EMAIL PROTECTED]
I am looking for some help with projects.  Please let me know if you're
interested.


Re: [PHP] PHP Dev Facts

2008-10-17 Thread VamVan
On Thu, Oct 16, 2008 at 4:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:

> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*

OOP

>
>
> *Dev OS*

Centos , some time XAMPP n

>
>
> *Dev PHP Version*

5.2.6

>
>
> *Live Server OS*

Centos

>
>
> *Live Server PHP Version*

5.2.6

>
>
> *Which HTTP Server Software (+version)?*

Apache 2.0.2

>
>
> *IDE / Dev Environment*

Zend Studio

>
>
> *Preferred Framework(s)?*

Cake

>
>
> *Do you Unit Test?*

Yes most my apps. I use simpletest

>
>
> *Most Used Internal PHP Class*

Simplexml

>
>
> *Preferred OS CMS*

Drupal

>
>
> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*
>
> ps: I'm not asking for any kind of research project, just interested and
> interested to know what's most common + might learn something/find some new
> tools/toys!
>
> pps: will reply myself as well but if I do here it'll make your intertwined
> replies messy!
>
> Many Regards
>
> Nathan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] MYSQL insert problems

2008-10-17 Thread chris smith
On Sat, Oct 18, 2008 at 3:22 AM, Frank Stanovcak
<[EMAIL PROTECTED]> wrote:
> I'm using the following code to try and do a simple insert query.  However
> it won't insert the data into the table, and I get no error messages.  What
> have I done wrong this time?

You will be getting an error.

echo mysql_error();


> DateShipped,Quantity, Cases, Pallets, Weight, FKUSShippedBy, BillofLading,)

Extra comma at the end of BillofLading.

Also you should really use mysql_real_escape_string for non-numeric
values, and at least check stuff like $_SESSION['quantity'] is a
number.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

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



Re: [PHP] Securing AJAX requests with PHP?

2008-10-17 Thread Yeti
>but whose counting :-))

Someone is for sure. Maybe the scheduler?

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Simon J Welsh


On 17/10/2008, at 12:14, Nathan Rixham wrote:

*Procedural or OOP?*


OOP


*Dev OS*


Mac OS 10.5.5


*Dev PHP Version*


5.2.5


*Live Server OS*


Linux 2.6.9-42.0.3.ELsmp #1 SMP


*Live Server PHP Version*


5.2.6


*Which HTTP Server Software (+version)?*


Apache 1.3.41 live and Apache 2.2.8 dev


*IDE / Dev Environment*


Zend Studio for Eclipse 6.1


*Preferred Framework(s)?*


Sapphire


*Do you Unit Test?*


Do now.


*Most Used Internal PHP Class*


Not sure. Whichever one Sapphire uses the most.


*Preferred OS CMS*


SilverStripe

*Anything else you use frequently in you're PHP'ing that's worth  
mentioning:*


---
Simon Welsh
Admin of http://simon.geek.nz/

Who said Microsoft never created a bug-free program? The blue screen  
never, ever crashes!


http://www.thinkgeek.com/brain/gimme.cgi?wid=81d520e5e

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Nathan Rixham

Brendon Van Heyzen wrote:
Have to say using eclipse/zend for eclipse with mylyn/tasktop really 
helps in keeping up with bug tracking (trac) with all my projects. Helps to
keep everything organized, especially when management wants to know 
what's going on. SVN is also crucial and its nice to have commit hooks

to work with trac.



cheers! 2 questions;

a- (more out of interest) any problems with tasktop? I've found it a bit 
buggy/pain to install in ganymede (although mylyn works a dream)


b- mylyn with trac and svn; does the set-up allow yuo to automatically 
submit the bug update/notes with the files to svn; ie bugtracker and svn 
 reports in sync if only via text? + have you compared to 
mylyn/bugtracker? I'd be ultra-interested to know (and tbh would save me 
 some more research)


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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Brendon Van Heyzen

*Procedural or OOP?*
I try now to do everything OOP, its just worth spending the extra time  
(depending) going the OOP route even on small tasks


*Dev OS*
Mac OS X 10.5.5

*Dev PHP Version*
5.2.6

*Live Server OS*
Gentoo linux (not sure version)

*Live Server PHP Version*
5.2.5 (haven't upgraded it, i've been lazy)

*Which HTTP Server Software (+version)?*
apache 2.2

*IDE / Dev Environment*
Zend Studio for eclipse, macvim

*Preferred Framework(s)?*
Zend Framework

*Do you Unit Test?*
None my of current projects, but future stuff i'm really going to push  
for it.


*Most Used Internal PHP Class*
pdo, mysqli

*Preferred OS CMS*
none really

*Anything else you use frequently in you're PHP'ing that's worth  
mentioning:*
Have to say using eclipse/zend for eclipse with mylyn/tasktop really  
helps in keeping up with bug tracking (trac) with all my projects.  
Helps to
keep everything organized, especially when management wants to know  
what's going on. SVN is also crucial and its nice to have commit hooks

to work with trac.

--Brendon

On Oct 16, 2008, at 7:14 PM, Nathan Rixham wrote:


Evening All,

I'd be /really/ interested to know who uses what!

*Procedural or OOP?*

*Dev OS*

*Dev PHP Version*

*Live Server OS*

*Live Server PHP Version*

*Which HTTP Server Software (+version)?*

*IDE / Dev Environment*

*Preferred Framework(s)?*

*Do you Unit Test?*

*Most Used Internal PHP Class*

*Preferred OS CMS*

*Anything else you use frequently in you're PHP'ing that's worth  
mentioning:*


ps: I'm not asking for any kind of research project, just interested  
and interested to know what's most common + might learn something/ 
find some new tools/toys!


pps: will reply myself as well but if I do here it'll make your  
intertwined replies messy!


Many Regards

Nathan

--
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] PHP Dev Facts

2008-10-17 Thread Paul Scott

On Fri, 2008-10-17 at 00:14 +0100, Nathan Rixham wrote:
> Evening All,
> 
> I'd be /really/ interested to know who uses what!
> 
> *Procedural or OOP?*
> 

OOP

> *Dev OS*
> 

Ubuntu 8.04

> *Dev PHP Version*
> 

PHP-5.2.3

> *Live Server OS*
> 

Debian

> *Live Server PHP Version*
> 

PHP-5.2.3

> *Which HTTP Server Software (+version)?*
> 

Apache 2

> *IDE / Dev Environment*
> 

Zend Studio / Vim / nano

> *Preferred Framework(s)?*
> 

Chisimba

> *Do you Unit Test?*
> 

Yes - PHPUnit3

> *Most Used Internal PHP Class*
> 

SPL classes

> *Preferred OS CMS*
> 

Chisimba CMS

--Paul



All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

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

Re: [PHP] Securing AJAX requests with PHP?

2008-10-17 Thread Jochem Maas
Jay Moore schreef:
> I realize this isn't really about PHP, but I was hoping maybe someone
> had a way to make AJAX a little bit more secure using PHP.
> 
> I was thinking of making my AJAX calls also pass the current session id,

the browser should still send the session cookie for async requests. so
you get this info for free.

using one-time tokens isn't going to hurt at all (well a few extra CPU cycles,
but whose counting :-))

> and have my PHP script check to make sure it's a valid id, but I'm open
> to other ideas.
> 
> Do you guys use PHP to make AJAX calls a little bit more secure?  What
> /do/ you use?
> 
> I hope this isn't too off-topic.
> 
> Thanks,
> Jay
> 


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



Re: [PHP] Securing AJAX requests with PHP?

2008-10-17 Thread Bastien Koert
On Fri, Oct 17, 2008 at 3:08 PM, Jay Moore <[EMAIL PROTECTED]> wrote:

> I realize this isn't really about PHP, but I was hoping maybe someone had a
> way to make AJAX a little bit more secure using PHP.
>
> I was thinking of making my AJAX calls also pass the current session id,
> and have my PHP script check to make sure it's a valid id, but I'm open to
> other ideas.
>
> Do you guys use PHP to make AJAX calls a little bit more secure?  What /do/
> you use?
>
> I hope this isn't too off-topic.
>
> Thanks,
> Jay
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> I use a hashed user id and a one time token passed with every request. No
token or hash, and the scripts stops right there, then compares the token to
the value stored in the user's session object. If that passed, i validate
the user hash against the users session to ensure that they haven't just
been suspended or had their account altered in some way


-- 

Bastien

Cat, the other other white meat


[PHP] Securing AJAX requests with PHP?

2008-10-17 Thread Jay Moore
I realize this isn't really about PHP, but I was hoping maybe someone 
had a way to make AJAX a little bit more secure using PHP.


I was thinking of making my AJAX calls also pass the current session id, 
and have my PHP script check to make sure it's a valid id, but I'm open 
to other ideas.


Do you guys use PHP to make AJAX calls a little bit more secure?  What 
/do/ you use?


I hope this isn't too off-topic.

Thanks,
Jay

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



Re: [PHP] what's the difference in the following code?

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 1:58 PM, Lamp Lists <[EMAIL PROTECTED]> wrote:
> I'm reading "Essential PHP Security" by Chris Shiflett.
>
> on the very beginning, page 5 & 6, if I got it correct, he said this is not 
> good:
>
> $search = isset($_GET['search']) ? $_GET['search'] : '';
>
> and this is good:
>
> $search = '';
> if (isset($_GET['search']))
> {
>$search = $_GET['search'];
> }
>
> what's the difference? I really can't see?
> to me is more the way you like to write your code (and I like the top one :-) 
> )?
>
> thanks.
>
> -ll

In this exact context there's no real difference.  But in the real
world when you need to validate that a input value is a number and has
a minimum of X, a maximum of X, then your ternary shortcut will not
cut it.

I still wouldn't write mine either of those ways.  Look into
ext/filter [1] or Zend validators [2].  I'm of the school where you
shouldn't sanitize a value, but rather validate it and escape it
appropriately based on usage context.  This takes a lot of discipline
& can be dangerous if you forget even one spot.


[1] http://us3.php.net/manual/en/function.filter-input.php
[2] http://framework.zend.com/manual/en/zend.validate.html

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



Re: [PHP] what's the difference in the following code?

2008-10-17 Thread Richard Heyes
> I'm reading "Essential PHP Security" by Chris Shiflett.
>
> on the very beginning, page 5 & 6, if I got it correct, he said this is not 
> good:
>
> $search = isset($_GET['search']) ? $_GET['search'] : '';
>
> and this is good:
>
> $search = '';
> if (isset($_GET['search']))
> {
>$search = $_GET['search'];
> }
>
> what's the difference? I really can't see?
> to me is more the way you like to write your code (and I like the top one :-) 
> )?

They appear to be the same (to me at least). Just remember that you
need to correctly sanitise or quote them before using them in a (for
example) SQL query. For example if $_GET['search'] contains single
quote, (or double quote), your query may break. Ensure you handle that
eventuality too.

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org

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



[PHP] what's the difference in the following code?

2008-10-17 Thread Lamp Lists
I'm reading "Essential PHP Security" by Chris Shiflett.

on the very beginning, page 5 & 6, if I got it correct, he said this is not 
good:

$search = isset($_GET['search']) ? $_GET['search'] : '';

and this is good:

$search = '';
if (isset($_GET['search']))
{
$search = $_GET['search'];
}

what's the difference? I really can't see?
to me is more the way you like to write your code (and I like the top one :-) )?

thanks.

-ll


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [PHP] Re: PHP Dev Facts

2008-10-17 Thread Frank Stanovcak

""Daniel Brown"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Fri, Oct 17, 2008 at 12:11 PM, Jay Blanchard <[EMAIL PROTECTED]> 
> wrote:
>>
>> It's Friday night, shouldn't you be going to the pub instead?
>
>In another eight years he'll be glad to do that.  Little-known
> fact: Nate is the world's smartest 12-year-old.
>
>

Shouldn't that be  ?

>
> -- 
> 
> More full-root dedicated server packages:
> Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
> Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
> Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
> Dedicated servers, VPS, and hosting from $2.50/mo. 



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



Re: [PHP] Re: PHP Dev Facts

2008-10-17 Thread Daniel Brown
On Fri, Oct 17, 2008 at 12:11 PM, Jay Blanchard <[EMAIL PROTECTED]> wrote:
>
> It's Friday night, shouldn't you be going to the pub instead?

In another eight years he'll be glad to do that.  Little-known
fact: Nate is the world's smartest 12-year-old.



-- 

More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

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



Re: [PHP] Re: PHP Dev Facts

2008-10-17 Thread Nathan Rixham

Jay Blanchard wrote:

[snip]
just a quick note to say I'll compile all this into something more 
meaningful and publish later on tonight :-) nice to see so many

responses.
[/snip]

It's Friday night, shouldn't you be going to the pub instead?



wanna baby sit?

--
nathan ( [EMAIL PROTECTED] )
{
  Senior Web Developer
  php + java + flex + xmpp + xml + ecmascript
  web development edinburgh | http://kraya.co.uk/
}

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



[PHP] Re: MYSQL insert problems

2008-10-17 Thread Frank Stanovcak
Just incase the problem was refrencing an array in an SQL statement I tried 
this too with the same result.

 $value) {
  echo $key . ' : ' . $value . '';
 };
 echo '';
};
mysql_close($connection);
include('..\VariableReveal.php');
?> 



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



[PHP] MYSQL insert problems

2008-10-17 Thread Frank Stanovcak
I'm using the following code to try and do a simple insert query.  However 
it won't insert the data into the table, and I get no error messages.  What 
have I done wrong this time?


 $value) {
  echo $key . ' : ' . $value . '';
 };
 echo '';
};
mysql_close($connection);
include('..\VariableReveal.php');
?> 



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



Re: [PHP] when mysql is down

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 12:07 PM, Stut <[EMAIL PROTECTED]> wrote:
> On 17 Oct 2008, at 16:52, Rick Pasotto wrote:
>>
>> Today my hosting company took down the mysql server for about 1/2 hour.
>> As a result some php errors displayed.
>
> Firstly if they didn't tell you it was going to happen then I suggest you
> change host. Unless it was an emergency, but even then they should have
> contacted you as soon as they knew it was going to happen.
>
>> All of my pages have a random quote from a mysql table. If it's not
>> available it's really not a big deal. However, some of the pages depend
>> entirely on data from the database.
>>
>> What's the best way to handle this? If the mysql is required should I
>> redirect to the front page (which doesn't need mysql except for the
>> quote) or show a blank (or error message) content area (navigation would
>> still be available as it's the same on all pages)?
>>
>> The quote is from an include file. What's the best way to output nothing
>> if the mysql connection fails?
>>
>> I realize these are probably elementary questions but any advice would
>> be appreciated.
>
> Production websites should have display_errors off in php.ini. This will
> prevent the site from displaying PHP errors at all. PHP errors can reveal
> more about your site than you want to share and could potentially reveal
> holes.
>
> To answer your question you simply need to check the return value from the
> connection function. It sounds like you're not doing this and just going
> ahead and trying to use the connection regardless. The best way to avoid
> errors is to not do stuff that will cause them.
>
> Ideally if you cannot create the page that was requested you should return a
> 503 HTTP error, a message indicating a temporary problem and end the script
> there. Not only does this inform your users that the problem is temporary it
> also indicates to search engines that they should not index this page right
> now but that the URL is still valid.
>
> -Stut
>
> --
> http://stut.net/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Okay I just replaced 500 with 503 in my stuff.  Thanks for the tip.

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



RE: [PHP] Re: PHP Dev Facts

2008-10-17 Thread Jay Blanchard
[snip]
just a quick note to say I'll compile all this into something more 
meaningful and publish later on tonight :-) nice to see so many
responses.
[/snip]

It's Friday night, shouldn't you be going to the pub instead?


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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Michal Sokolowski
2008/10/17 Nathan Rixham <[EMAIL PROTECTED]>

> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*
>
Mostly OO

>
> *Dev OS*
>
Ubuntu Hardy

>
> *Dev PHP Version*
>
5.2.? - I don't remember

>
> *Live Server OS*
>
CentOS, Fedora

>
> *Live Server PHP Version*
>
5.2.?

>
> *Which HTTP Server Software (+version)?*
>
Apache 2.2

>
> *IDE / Dev Environment*
>
Eclipse Ganymede + PDT

>
> *Preferred Framework(s)?*

Hopefully Zend soon, as I'm learning it now.

>
>
> *Do you Unit Test?*

No

>
>
> *Most Used Internal PHP Class*

PDO, Mysqli

>
>
> *Preferred OS CMS*

WordPress

>
>
> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*

No

>
>
> ps: I'm not asking for any kind of research project, just interested and
> interested to know what's most common + might learn something/find some new
> tools/toys!
>
> pps: will reply myself as well but if I do here it'll make your intertwined
> replies messy!
>
> Many Regards
>
> Nathan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] when mysql is down

2008-10-17 Thread Stut

On 17 Oct 2008, at 16:52, Rick Pasotto wrote:
Today my hosting company took down the mysql server for about 1/2  
hour.

As a result some php errors displayed.


Firstly if they didn't tell you it was going to happen then I suggest  
you change host. Unless it was an emergency, but even then they should  
have contacted you as soon as they knew it was going to happen.



All of my pages have a random quote from a mysql table. If it's not
available it's really not a big deal. However, some of the pages  
depend

entirely on data from the database.

What's the best way to handle this? If the mysql is required should I
redirect to the front page (which doesn't need mysql except for the
quote) or show a blank (or error message) content area (navigation  
would

still be available as it's the same on all pages)?

The quote is from an include file. What's the best way to output  
nothing

if the mysql connection fails?

I realize these are probably elementary questions but any advice would
be appreciated.


Production websites should have display_errors off in php.ini. This  
will prevent the site from displaying PHP errors at all. PHP errors  
can reveal more about your site than you want to share and could  
potentially reveal holes.


To answer your question you simply need to check the return value from  
the connection function. It sounds like you're not doing this and just  
going ahead and trying to use the connection regardless. The best way  
to avoid errors is to not do stuff that will cause them.


Ideally if you cannot create the page that was requested you should  
return a 503 HTTP error, a message indicating a temporary problem and  
end the script there. Not only does this inform your users that the  
problem is temporary it also indicates to search engines that they  
should not index this page right now but that the URL is still valid.


-Stut

--
http://stut.net/

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



Re: [PHP] when mysql is down

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 11:52 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote:
> Today my hosting company took down the mysql server for about 1/2 hour.
> As a result some php errors displayed.
>
> All of my pages have a random quote from a mysql table. If it's not
> available it's really not a big deal. However, some of the pages depend
> entirely on data from the database.
>
> What's the best way to handle this? If the mysql is required should I
> redirect to the front page (which doesn't need mysql except for the
> quote) or show a blank (or error message) content area (navigation would
> still be available as it's the same on all pages)?
>
> The quote is from an include file. What's the best way to output nothing
> if the mysql connection fails?
>
> I realize these are probably elementary questions but any advice would
> be appreciated.
>
> --
> "... the state ... is not armed with superior honesty, but
>  with superior physical strength." -- Henry David Thoreau
>Rick Pasotto[EMAIL PROTECTED]http://www.niof.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Depends on how you're fetching the data.

For instance in my scripts if I'm showing a list of records I'll do it
like this:

$items = $itemGateway->fetch();
if ($items->isSuccess() !== true OR $items->count() === 0) {
echo "No items existfetchAssoc()):
// render content
endwhile;

This check ensures that if something goes wrong, I'm still covered.
Even if I can't connect it will just say no records exist.  Of course
there are other ways of handling this too because internally if I
can't connect it will throw an exception, so I could just not catch
the exception and it'd bubble up showing the user an error page.

I can do this because my ItemGateway will call my db query method.
This then triggers the connect if it hasn't established one already.
So depending on your set up you might have to go upstream from your
data fetching with checks.

Perhaps something like:
// at top of your script/db include
$con = mysql_connect()
if (!is_resource($con)) {
set 500 error header
include error page
}

or

// inside your random_quote.php
$sql = "SELECT RANDOM ENTRY";
$res = mysql_query($sql, $con);
if (!is_resource($res)) {
   // do nothing if random quote result doesn't exist
   return;
}

So decide for yourself if the database not connecting is a fatal error
or not.  If it is, then show an error page with a error header.
Otherwise just show a note saying oops.

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



[PHP] when mysql is down

2008-10-17 Thread Rick Pasotto
Today my hosting company took down the mysql server for about 1/2 hour.
As a result some php errors displayed.

All of my pages have a random quote from a mysql table. If it's not
available it's really not a big deal. However, some of the pages depend
entirely on data from the database.

What's the best way to handle this? If the mysql is required should I
redirect to the front page (which doesn't need mysql except for the
quote) or show a blank (or error message) content area (navigation would
still be available as it's the same on all pages)?

The quote is from an include file. What's the best way to output nothing
if the mysql connection fails?

I realize these are probably elementary questions but any advice would
be appreciated.

-- 
"... the state ... is not armed with superior honesty, but
 with superior physical strength." -- Henry David Thoreau
Rick Pasotto[EMAIL PROTECTED]http://www.niof.net

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Thorsten Suckow-Homberg

> *Procedural or OOP?*
OOP 

> *Dev OS*
Windows XP 

> *Dev PHP Version*
5.2.6 

> *Live Server OS*
- 

> *Live Server PHP Version*
- 

> *Which HTTP Server Software (+version)?*
Apache 2.2 

> *IDE / Dev Environment*
UltraEdit 

> *Preferred Framework(s)?*
Zend Framework, Ext JS 

> *Do you Unit Test?*
Of course. 

> *Most Used Internal PHP Class*
PDO 

> *Preferred OS CMS*
Wordpress ;) 



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



[PHP] Re: PHP Dev Facts

2008-10-17 Thread Nathan Rixham
just a quick note to say I'll compile all this into something more 
meaningful and publish later on tonight :-) nice to see so many responses.


--
nathan ( [EMAIL PROTECTED] )
{
  Senior Web Developer
  php + java + flex + xmpp + xml + ecmascript
  web development edinburgh | http://kraya.co.uk/
}

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



RE: [PHP] PHP Dev Facts

2008-10-17 Thread Boyd, Todd M.
> -Original Message-
> From: Nathan Rixham [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 16, 2008 6:14 PM
> To: php-general@lists.php.net
> Subject: [PHP] PHP Dev Facts
> 
> *Procedural or OOP?*

Depends on the project.
Large scope: OOP
Small scope: (usually) Procedural
...but I've been known to go OOP on small projects if it seems more
logical.
 
> *Dev OS*

WinXP and Ubuntu 7
 
> *Dev PHP Version*

Home: 5.2.6
Work: 4.4.9
 
> *Live Server OS*

Home: Windows Server 2003 and Ubuntu
Work: Windows Server 2003
 
> *Live Server PHP Version*

Home: 5.2.6
Work: 4.4.9
 
> *Which HTTP Server Software (+version)?*

Home: IIS 6/7 and Apache 2.2.10
Work: IIS 6
 
> *IDE / Dev Environment*

Crimson Editor
 
> *Preferred Framework(s)?*

None
 
> *Do you Unit Test?*

Generally, no
 
> *Most Used Internal PHP Class*

cURL and SimpleXML (or whatever it's called now)
 
> *Preferred OS CMS*

None
 
> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*

PCRE, baby!


Todd Boyd
Web Programmer

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Dan Joseph
On Thu, Oct 16, 2008 at 7:14 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote:

> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*
>

OOP


>
> *Dev OS*
>

Windows & CentOS


>
> *Dev PHP Version*
>

Win 5.1.2, CentOS 5.2.6


>
> *Live Server OS*
>

Windows & CentOS


>
> *Live Server PHP Version*
>

Win 5.1.2, CentOS 5.2.6


>
> *Which HTTP Server Software (+version)?*
>

Win IIS, Cent Apache 2


>
> *IDE / Dev Environment*
>

PhpED


>
> *Preferred Framework(s)?*
>

None


>
> *Do you Unit Test?*
>

Sometimes


>
> *Most Used Internal PHP Class*
>

Soap & Curl


>
> *Preferred OS CMS*
>

I've only ever used Joomla, and it was once...

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."


Re: [PHP] PHP Dev Facts

2008-10-17 Thread András Csányi
2008/10/17 Nathan Rixham <[EMAIL PROTECTED]>:
> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*

OOP but sometimes i have to procedural.

> *Dev OS*

Gentoo Linux

> *Dev PHP Version*

PHP 5.2.6-pl7-gentoo with Suhosin-Patch 0.9.6.2

> *Live Server OS*

FreeBSD

> *Live Server PHP Version*

I don't know. 5.2.x

> *Which HTTP Server Software (+version)?*

Apache 2.2.x

> *IDE / Dev Environment*

Eclipse PDT or vim

> *Preferred Framework(s)?*

Zend Framework

> *Do you Unit Test?*

not yet.

> *Most Used Internal PHP Class*

PDT

> *Preferred OS CMS*

Drupal, but i don't like it.




-- 
- -
--  Csanyi Andras  -- http://sayusi.hu -- Sayusi Ando
--  "Bízzál Istenben és tartsd szárazon a puskaport!".-- Cromwell


Re: [PHP] PHP Dev Facts

2008-10-17 Thread Jason Pruim


On Oct 16, 2008, at 7:14 PM, Nathan Rixham wrote:


Evening All,

I'd be /really/ interested to know who uses what!

*Procedural or OOP?*


Procedural, haven't learned OOP yet. and besides... $this = $that;  
makes more sense to me then $this->$that; :)



*Dev OS*


OS X Leopard (What ever the most current version is)



*Dev PHP Version*

5.2.2 I believe



*Live Server OS*
It used to be a OS X Server running PHP 5.2.2. But after seeing how  
fast one of my sites is that is hosted on another server, I may be  
switching all my stuff away from hosting it my self :)



*Live Server PHP Version*


5.2.2



*Which HTTP Server Software (+version)?*

Currently, apache 1.2.8 on my box, apache 2.2 on my hosts box



*IDE / Dev Environment*

Apple Xcode 3. Mostly for the syntax highlighting.



*Preferred Framework(s)?*

Haven't found one I like yet.



*Do you Unit Test?*

Not currently... Need to research it more.



*Most Used Internal PHP Class*

probably HEREDOC...



*Preferred OS CMS*


I have used Joomla, and WordPress and like both. Drupal I haven't  
tried yet but it looks rather nice.



*Anything else you use frequently in you're PHP'ing that's worth  
mentioning:*
I do try and use subversion if I think the project will be larger then  
a few files...But I'm not real good at that yet.



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
[EMAIL PROTECTED]





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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Kyle Terry
*Procedural or OOP?*
Both depending on the scale of the project.

*Dev OS*
Usually Debian 4

*Dev PHP Version*
5.2.6

*Live Server OS*
Client's choice. For my full time job I write for CentOS 5 and Debian based
OSs.

*Live Server PHP Version*
5.2.6 - It doesn't make sense to program in a version you're not deploying
to.

*Which HTTP Server Software (+version)?*
Apache 2 and Nginx

*IDE / Dev Environment*
Gedit for Debian.

*Preferred Framework(s)?*
Cake is alright

*Do you Unit Test?*
Yes, at my full time job.

*Most Used Internal PHP Class*
Mysqli

*Anything else you use frequently in you're PHP'ing that's worth
mentioning:*
nope.

On Fri, Oct 17, 2008 at 6:12 AM, Tom Shaw <[EMAIL PROTECTED]> wrote:

> Here's mine.
>
> *Procedural or OOP?*
>
> Both, even when I'm doing procedural stuff at the very least I'll have a
> classes directory/autoloader function where I have OOP API's to assist in
> the design.
>
> *Dev OS*
>
> At home windows vista. At work Linux Slackware.
>
> *Dev PHP Version*
>
> PHP 5.2.5. I would run ladder versions But there's problems with the
> Postgres drivers on PHP 5.2.6/7 5.3 alpha.
>
> *Live Server OS*
>
> Linux
>
> *Live Server PHP Version*
>
> 5.1.2
>
> *Which HTTP Server Software (+version)?*
>
> Apache 2
>
> *IDE / Dev Environment*
>
> Zend Studio for Linux or Windows always.
>
> *Preferred Framework(s)?*
>
> Zend Framework R0ckz. Definitely preferred to say the least :) Cake is cool
> programming wise. Usability wise I run for my life.
>
> *Do you Unit Test?*
>
> Not really.
>
> *Most Used Internal PHP Class*
>
> Pdo_mysql/pgsql.
> *Preferred OS CMS*
>
> Joomla.
>
> Tom Shaw
> [EMAIL PROTECTED]
>
> "When one door closes, another opens; but we often look so long and so
> regretfully upon the closed door that we do not see the one which has
> opened
> for us."   Alexander Graham Bell
>
> -Original Message-
> From: Nathan Rixham [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 16, 2008 6:14 PM
> To: php-general@lists.php.net
> Subject: [PHP] PHP Dev Facts
>
> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*
>
> *Dev OS*
>
> *Dev PHP Version*
>
> *Live Server OS*
>
> *Live Server PHP Version*
>
> *Which HTTP Server Software (+version)?*
>
> *IDE / Dev Environment*
>
> *Preferred Framework(s)?*
>
> *Do you Unit Test?*
>
> *Most Used Internal PHP Class*
>
> *Preferred OS CMS*
>
> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*
>
> ps: I'm not asking for any kind of research project, just interested and
> interested to know what's most common + might learn something/find some
> new tools/toys!
>
> pps: will reply myself as well but if I do here it'll make your
> intertwined replies messy!
>
> Many Regards
>
> Nathan
>
> --
> 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
>
>


-- 
Kyle Terry | www.kyleterry.com


RE: [PHP] PHP Dev Facts

2008-10-17 Thread Tom Shaw
Here's mine.

*Procedural or OOP?*

Both, even when I'm doing procedural stuff at the very least I'll have a
classes directory/autoloader function where I have OOP API's to assist in
the design.

*Dev OS*

At home windows vista. At work Linux Slackware.

*Dev PHP Version*

PHP 5.2.5. I would run ladder versions But there's problems with the
Postgres drivers on PHP 5.2.6/7 5.3 alpha.

*Live Server OS*

Linux

*Live Server PHP Version*

5.1.2

*Which HTTP Server Software (+version)?*

Apache 2

*IDE / Dev Environment*

Zend Studio for Linux or Windows always.

*Preferred Framework(s)?*

Zend Framework R0ckz. Definitely preferred to say the least :) Cake is cool
programming wise. Usability wise I run for my life.

*Do you Unit Test?*

Not really.

*Most Used Internal PHP Class*

Pdo_mysql/pgsql. 
*Preferred OS CMS*

Joomla.

Tom Shaw
[EMAIL PROTECTED]

"When one door closes, another opens; but we often look so long and so
regretfully upon the closed door that we do not see the one which has opened
for us."   Alexander Graham Bell

-Original Message-
From: Nathan Rixham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2008 6:14 PM
To: php-general@lists.php.net
Subject: [PHP] PHP Dev Facts

Evening All,

I'd be /really/ interested to know who uses what!

*Procedural or OOP?*

*Dev OS*

*Dev PHP Version*

*Live Server OS*

*Live Server PHP Version*

*Which HTTP Server Software (+version)?*

*IDE / Dev Environment*

*Preferred Framework(s)?*

*Do you Unit Test?*

*Most Used Internal PHP Class*

*Preferred OS CMS*

*Anything else you use frequently in you're PHP'ing that's worth 
mentioning:*

ps: I'm not asking for any kind of research project, just interested and 
interested to know what's most common + might learn something/find some 
new tools/toys!

pps: will reply myself as well but if I do here it'll make your 
intertwined replies messy!

Many Regards

Nathan

-- 
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] Searching MySQL with Japanese chars

2008-10-17 Thread Eric Butera
On Fri, Oct 17, 2008 at 8:22 AM, robert mena <[EMAIL PROTECTED]> wrote:
> Hi,
> I am developing my first application that will have to handle with japanese
> data stored in a MySQL database.  After digging a while it seems that I'd
> have to set all pieces (from the charset of the apache,  to the encoding of
> the templates and database fields) set to UTF-8.
>
> I'd like to know if there is something special that I have to be aware when
> doing searches.  I am not sure that this is more related to PHP or MySQL
> itself so before sending to them (MySQL list) I'd like to hear from you.
>
> Thanks.
>

Make sure your character collation is utf also as that is exactly what
it's for.  You might need to use something like mysql_set_charset().
You'll need something like this also:

header('Content-Type: text/html; charset=utf-8');

The reason I say this is because however you put your data in is how
you need to search on it.  So if you inject utf8 into a latin1 db
you're going to have a hard time in the future.  Other than that
everything else should just work fine.

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



[PHP] Searching MySQL with Japanese chars

2008-10-17 Thread robert mena
Hi,
I am developing my first application that will have to handle with japanese
data stored in a MySQL database.  After digging a while it seems that I'd
have to set all pieces (from the charset of the apache,  to the encoding of
the templates and database fields) set to UTF-8.

I'd like to know if there is something special that I have to be aware when
doing searches.  I am not sure that this is more related to PHP or MySQL
itself so before sending to them (MySQL list) I'd like to hear from you.

Thanks.


Re: [PHP] Randomiser

2008-10-17 Thread Andrew Barnett
I ended up using an example from the PHP website.



Just extended the array to the number of lines I needed.

Andrew


[PHP] Re: PHP Dev Facts

2008-10-17 Thread Carlos Medina

[snip]
*Procedural or OOP?*
depends on the job to be done
*Dev OS*
unix or derivate
*Dev PHP Version*
>= 5
*Live Server OS*
unix or derivate
*Live Server PHP Version*
>= 5
*Which HTTP Server Software (+version)?*
Apache >= 2
*IDE / Dev Environment*
PHPEd/Net Beans
*Preferred Framework(s)?*
Zend Framework, EzComponents
*Do you Unit Test?*
yes
*Most Used Internal PHP Class*
echo! No.. i dont know
*Preferred OS CMS*
SimplyContent()
*Anything else you use frequently in you're PHP'ing that's worth
mentioning:*
none
[/snip]

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



RE: [PHP] PHP Dev Facts

2008-10-17 Thread Jay Blanchard
[snip]
*Procedural or OOP?*
Mix - depends on the job to be done
*Dev OS*
SUSe Linux
*Dev PHP Version*
5.n
*Live Server OS*
SUSe Linux
*Live Server PHP Version*
5.n
*Which HTTP Server Software (+version)?*
Apache 2.n
*IDE / Dev Environment*
Eclipse / Zend
*Preferred Framework(s)?*
none
*Do you Unit Test?*
yes
*Most Used Internal PHP Class*
H.I do not think we have a most used or if we do the margin is
very small
*Preferred OS CMS*
none
*Anything else you use frequently in you're PHP'ing that's worth 
mentioning:*
Zend Platform
[/snip]

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Sancar Saran
On Friday 17 October 2008 02:14:18 Nathan Rixham wrote:
> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*
Procedural in design. And code a bit different. I'm groupping my functions 
under classes like util, user, session etc. Each function is public static. 
also I got some public static arrays and strings. like k5::$config etc.
This gives me some kind of name space and prevent any kind of variable chrash.

> *Dev OS*
Kubuntu 
> *Dev PHP Version*
5.2 
> *Live Server OS*
Centos, RHEL, Debian
> *Live Server PHP Version*
4, 5.1, 5.2
> *Which HTTP Server Software (+version)?*
Apache 1.3 2.0 2.2
> *IDE / Dev Environment*
Kate, Eclipse, 
> *Preferred Framework(s)?*
nope
> *Do you Unit Test?*
what ?
> *Most Used Internal PHP Class*
simple xml, 
> *Preferred OS CMS*
Must use TYPO3, have own CMS/Framework 
> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*
Using PHP array format for storing data to generate greater benefit opcode 
cache.
I'm using inline coding format for templates. Much faster than traditional 
search and replace model and with opcode cache even more faster.
> ps: I'm not asking for any kind of research project, just interested and
> interested to know what's most common + might learn something/find some
> new tools/toys!
>
> pps: will reply myself as well but if I do here it'll make your
> intertwined replies messy!
>
> Many Regards
>
> Nathan


Regards
Sancar

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Jochem Maas
Nathan Rixham schreef:
> Evening All,
> 
> I'd be /really/ interested to know who uses what!
> 
> *Procedural or OOP?*

mostly OOP with a smattering of helper functions.
small CLI scripts are often procedural.

> 
> *Dev OS*

Mac OS X Leopard (with winXP VM)

> 
> *Dev PHP Version*

daily dev 5.2.6
I also run various alphas of other version (e.g. 5.3) for
testing/playing

> 
> *Live Server OS*

Debian, Redhat

> *Live Server PHP Version*

5.1.2 thru 5.2.6 ... coding defensively and conservatively generally
means that there are no problems developing on 5.2.6 and rolling out on
5.1.2 but I try to avoid it.

> *Which HTTP Server Software (+version)?*

Apache2.x (some projects run on Apache1.3.x ... but I don't really feel the 
difference)

> *IDE / Dev Environment*

Zend Studio
Zend Eclipse
Eclipse with PDT/Aptana
Terminal.app (bash)
nano (shell editor)
TextWrangler
TextEdit (winXP)

> *Preferred Framework(s)?*

I eat my own dogfood. I like the look of code in ZendFramework but the
whole library thang I find rather intrusive ... if I find something in a
framework I really need/want I generally strip it out - doing away with
everything I don't need, making it conform more to the project in question
and using the 'refactor time' as an excuse to understand the details of
the code in question ... this all assumes that the framework in question
allows for this kind of thing (I always leave in the relevant author 
attributions, etc)

> *Do you Unit Test?*

not really, but I generally develop in a unit-testy kind of way, I write
code that is known to fail because it relies on as yet unwritten code ... I run
it to check it fails as expected then iteratively add required, unwritten code,
checking at each step to see it fail in a new, exzpected way then add the next 
piece
until Im left with the end result.

I really should get into unit testing, deadlines, lack of budget and general
intertia always seem to get in the way ... I must do better :-/

> *Most Used Internal PHP Class*

Exception. I also use Iterator & related interfaces quite a bit.

> *Preferred OS CMS*

er? I'll hack anything if I have to. but I don't really have a preference,
never really found anything that satisfies my desire for clean, understandable
code. the usual suspects are all somewhat familiar to me but I wouldn't call 
them
friends.

I want to take a look the new typo3 engine ... it seems very ambitious and
Im interested in the potential for a generic workflow engine.

> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*

I use APC quite a bit, play with memcache when I can. and I use firebird
(which is a right can of worms atm with regard to the status quo of the php
extension ... as a DB firebird is very cool).

phpmailer often makes an appearance in projects - I find it to be a very simple,
quick wrapper for handling web-originated emails (not bulk mailing though ... I 
use
mimemail class with tyhe qmail extension for that generally).

Sphinx searchd/indexer is what I'm currently getting to grips with ... other 
than
the basic configuration and figuring out how to managably work with delta 
updates
Im scratching my head as to how to manage sphinx search/indexing for multiple, 
small
sites on a single server.

oh ... I also frequently use this list as a stress-relief mechanism ;-)

> ps: I'm not asking for any kind of research project, just interested and
> interested to know what's most common + might learn something/find some
> new tools/toys!
> 
> pps: will reply myself as well but if I do here it'll make your
> intertwined replies messy!
> 
> Many Regards
> 
> Nathan
> 


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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Stut

On 17 Oct 2008, at 00:14, Nathan Rixham wrote:

I'd be /really/ interested to know who uses what!

*Procedural or OOP?*


My standard architecture is OOP with procedural controllers.


*Dev OS*


OSX.


*Dev PHP Version*


5.2.6


*Live Server OS*


CentOS and FreeBSD.


*Live Server PHP Version*


5.2.6


*Which HTTP Server Software (+version)?*


LoadBalancer: nginx
Static servers: lighttpd
App servers: Apache 2


*IDE / Dev Environment*


Netbeans, Aptana, TextMate and vi.


*Preferred Framework(s)?*


Home-grown every time.


*Do you Unit Test?*


Yes.


*Most Used Internal PHP Class*


MySQLi.


*Preferred OS CMS*


Wordpress.

*Anything else you use frequently in you're PHP'ing that's worth  
mentioning:*


Git, MySQL, Memcache and Gearman.

-Stut

--
http://stut.net/

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Thijs Lensselink

Quoting Nathan Rixham <[EMAIL PROTECTED]>:


Evening All,

I'd be /really/ interested to know who uses what!

*Procedural or OOP?*


OO



*Dev OS*


Ubuntu / Windows XP



*Dev PHP Version*


5.2.6



*Live Server OS*


Debian / Suse



*Live Server PHP Version*


5.2.6



*Which HTTP Server Software (+version)?*


Apache 2



*IDE / Dev Environment*


Zend Studio for Eclipse



*Preferred Framework(s)?*


Zend Framework / Symfony



*Do you Unit Test?*


Sometimes



*Most Used Internal PHP Class*

*Preferred OS CMS*

*Anything else you use frequently in you're PHP'ing that's worth mentioning:*


SVN



ps: I'm not asking for any kind of research project, just interested
and interested to know what's most common + might learn something/find
some new tools/toys!

pps: will reply myself as well but if I do here it'll make your
intertwined replies messy!

Many Regards

Nathan

--
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] PHP Dev Facts

2008-10-17 Thread Lester Caine

Nathan Rixham wrote:

Evening All,

I'd be /really/ interested to know who uses what!

*Procedural or OOP?*

Mainly OOP nowadays


*Dev OS*

'Eclipse'
So I can run transparently on Windows or Linux depending on the customer site


*Dev PHP Version*

In limbo at present awaiting sorting out of windows snapshots :(


*Live Server OS*

Various Windows + Mandriva Linux on sites where the windows bind has been 
removed!


*Live Server PHP Version*

PHP5.2.6


*Which HTTP Server Software (+version)?*

Apache 2.2.8


*IDE / Dev Environment*

Eclipse + PHPEclipse ( STILL better than PDT in my opinion )
I also run all of the documentation and legacy C code through Eclipse. The 
only thing I don't do with it is Java ;)



*Preferred Framework(s)?*

ADOdb + Smarty through bitweaver


*Do you Unit Test?*

Not as much as I probably should


*Most Used Internal PHP Class*

No idea - most would be wrapped in something else


*Preferred OS CMS*

bitweaver but I'm not sure where 'OS' comes into it?

*Anything else you use frequently in you're PHP'ing that's worth 
mentioning:*

phpdoc to produce very useful cross reference information on packages

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Per Jessen
On Fri, 2008-10-17 at 00:14 +0100, Nathan Rixham wrote:
> Evening All,
> 
> I'd be really interested to know who uses what!
> 
> *Procedural or OOP?*
Procedural
> *Dev OS*
opensuse 11.0
> *Dev PHP Version*
5.2.5 & 4.3.8-9-10-11
> *Live Server OS*
opensuse 10.1, 10.2, 10.3, 11.0, 8.2, 9.1
> *Live Server PHP Version*
5.2.5 & 4.3.8-9-10-11
> *Which HTTP Server Software (+version)?*
Apache 2.0 and 2.2
> *IDE / Dev Environment*
Kate, vi
> *Preferred Framework(s)?*
None
> *Do you Unit Test?*
Not really
> *Most Used Internal PHP Class*
None
> *Preferred OS CMS*
None
> *Anything else you use frequently in you're PHP'ing that's worth 
> mentioning:*

I use the XSLT stuff a lot - very fast for doing XSL transforms. 


/Per Jessen, Zürich


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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Larry Garfield
On Thursday 16 October 2008 6:14:18 pm Nathan Rixham wrote:
> Evening All,
>
> I'd be /really/ interested to know who uses what!
>
> *Procedural or OOP?*

Right tool for the job.  I'm comfortable in either.  Most of my work these 
days is in a large open source procedural framework, but I'm slowly working 
more and more OOP into it. :-)

> *Dev OS*

Kubuntu Hardy.

> *Dev PHP Version*

5.2.4

> *Live Server OS*

For my personal stuff, hosted FreeBSD.  At my company, we use a web host 
that's running either RHEL or Fedora.  (I honestly forget which.)

> *Live Server PHP Version*

5.2.6

> *Which HTTP Server Software (+version)?*

Apache 2 in most places, but I think a few may be running 1.3 for no good 
reason.

> *IDE / Dev Environment*

Zend Studio 5.5 is the only IDE I can actually say I like.  More recent 
versions of Eclipse / Eclipse PDT at least don't suck as much as they used 
to, which is the only good thing I can say about any of 'em.

> *Preferred Framework(s)?*

98% of my PHP is written on, for, and with Drupal. :-)

> *Do you Unit Test?*

For internal framework stuff (where I can do proper TDD), extensively.  For 
day to day for clients, not all that much.  Most of that work is not really 
unit-testable to begin with, and functional tests are considerably harder to 
do at this point in Drupal.  (Although that is improving.)

> *Most Used Internal PHP Class*

PDO, probably, since I build the new Drupal DB layer on top of it.  However, I 
am a huge huge fan of ArrayAccess, simply for its cool factor.

> *Preferred OS CMS*

Drupal (surprise surprise).

> *Anything else you use frequently in you're PHP'ing that's worth
> mentioning:*

Don't underestimate the power of associative arrays.  You can get some really 
deep, really powerful, really fast data structures with a little care and an 
embracing of associative arrays.

> ps: I'm not asking for any kind of research project, just interested and
> interested to know what's most common + might learn something/find some
> new tools/toys!
>
> pps: will reply myself as well but if I do here it'll make your
> intertwined replies messy!
>
> Many Regards
>
> Nathan



-- 
Larry Garfield
[EMAIL PROTECTED]

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



Re: [PHP] PHP Dev Facts

2008-10-17 Thread Ashley Sheridan
On Fri, 2008-10-17 at 00:14 +0100, Nathan Rixham wrote:
> Evening All,
> 
> I'd be /really/ interested to know who uses what!
> 
> *Procedural or OOP?*
Procedural
> *Dev OS*
Suse 10.3, Fedora 6, Redhat ?, Windows Server 2003
> *Dev PHP Version*
5.2.5 & 4.?
> *Live Server OS*
Suse 10.3, Fedora 6, Redhat ?, Windows Server 2003
> *Live Server PHP Version*
5.2.5 & 4.?
> *Which HTTP Server Software (+version)?*
Apache & IIS
> *IDE / Dev Environment*
Kate
> *Preferred Framework(s)?*
None
> *Do you Unit Test?*
No
> *Most Used Internal PHP Class*
SimpleXML
> *Preferred OS CMS*
generally build custom ones for jobs
> *Anything else you use frequently in you're PHP'ing that's worth 
> mentioning:*
> 
> ps: I'm not asking for any kind of research project, just interested and 
> interested to know what's most common + might learn something/find some 
> new tools/toys!
> 
> pps: will reply myself as well but if I do here it'll make your 
> intertwined replies messy!
> 
> Many Regards
> 
> Nathan
> 


Ash
www.ashleysheridan.co.uk


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