php-general Digest 6 Aug 2011 08:16:04 -0000 Issue 7431

Topics (messages 314391 through 314394):

Re: using pg_query in a function not working
        314391 by: Jim Lucas
        314392 by: Marc Fromm

Re: PHP frameworks
        314393 by: Christopher Lee
        314394 by: Lester Caine

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 8/5/2011 12:08 PM, Marc Fromm wrote:
> 
> I have to sql statements in functions to use in my code. Even though the echo 
> statements show the sql is valid the sql does not seem to execute and I get 
> the error, "PHP Warning:  pg_fetch_object() expects parameter 1 to be 
> resource, boolean given in . . . line 154 . . ."
> Line 154: while($val = pg_fetch_object($student))
> 

$conn is not in scope

> 
> Marc Fromm
> Information Technology Specialist II
> Financial Aid Department
> Western Washington University
> Phone: 360-650-3351
> Fax:   360-788-0251
> 


--- End Message ---
--- Begin Message ---
Thanks! Sometimes I'm blind.

-----Original Message-----
From: Jim Lucas [mailto:li...@cmsws.com] 
Sent: Friday, August 05, 2011 1:01 PM
To: Marc Fromm
Cc: php-gene...@lists.php.net
Subject: Re: [PHP] using pg_query in a function not working

On 8/5/2011 12:08 PM, Marc Fromm wrote:
> 
> I have to sql statements in functions to use in my code. Even though the echo 
> statements show the sql is valid the sql does not seem to execute and I get 
> the error, "PHP Warning:  pg_fetch_object() expects parameter 1 to be 
> resource, boolean given in . . . line 154 . . ."
> Line 154: while($val = pg_fetch_object($student))
> 

$conn is not in scope

> 
> Marc Fromm
> Information Technology Specialist II
> Financial Aid Department
> Western Washington University
> Phone: 360-650-3351
> Fax:   360-788-0251
> 



--- End Message ---
--- Begin Message ---
Hello,

I am new to PHP and wanted to ask a question which I think is related to this 
discussion thread. What are you referring to when using the term "PHP 
Framework?" I downloaded Eclipse-JEE with PHP Development Tools. Would this 
development environment constitute a PHP Framework?

Best,

Christopher
________________________________________
From: Laruence [larue...@baidu.com]
Sent: Sunday, July 24, 2011 11:19 PM
To: Floyd Resler
Cc: PHP
Subject: Re: [PHP] PHP frameworks

Hi:

if you have high performance need, you can considering Yaf( a PHP
framework which is build in PHP extension)

http://pecl.php.net/package/Yaf

thanks

Best regards

惠新宸     Xinchen Hui
http://www.laruence.com/


On 2011/7/22 20:38, Floyd Resler wrote:
> On Jul 22, 2011, at 8:33 AM, Richard Quadling wrote:
>
>> On 22 July 2011 13:26, Floyd Resler<fres...@adex-intl.com>  wrote:
>>> On Jul 21, 2011, at 11:41 PM, Micky Hulse wrote:
>>>
>>>> On Thu, Jul 21, 2011 at 6:44 PM, Shawn McKenzie<nos...@mckenzies.net>  
>>>> wrote:
>>>>> A la CakePHP.  Will automagically build controllers and views for the
>>>>> admin of your tables/models if you wish.
>>>> Oooh, interesting! I will check out CakePHP! Thanks for tip! :)
>>>>
>>> I actually use my own framework.  I needed a very light weight, flexible 
>>> framework.  I designed it from the ground up to be very flexible and to use 
>>> AJAX and jQuery on the client side.  If you'd be interested in check it 
>>> out, just let me know and I'll give you a link to the source code.
>>>
>>> Take care,
>>> Floyd
>>
>> http://www.brandonsavage.net/why-every-developer-should-write-their-own-framework/
>>
> Good article!  I knew there was a reason why I never released mine but just 
> offer it up on occasion to someone who might find it useful!  :)
>
> Take care,
> Floyd
>
>
>
> --
> 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

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the email by you is prohibited.

--- End Message ---
--- Begin Message ---
Christopher Lee wrote:
> I am new to PHP and wanted to ask a question which I think is related to this 
> discussion thread. What are you referring to when using the term "PHP 
> Framework?" I downloaded Eclipse-JEE with PHP Development Tools. Would this 
> development environment constitute a PHP Framework?

Eclipse IS more a 'development environment' (IDE) than a framework ...

The key element to a framework is that it provides the basic functionality in
you applications, so in my own case it provides user management, database
access, templating via the smarty library.
Some of the frameworks such as zend also link in with Eclipse via their own
plugins, others actually run under PHP and provide development tools
'internally' of which codeigniter is probably a good example.

My own 'interpretation' of framework is the core on which you build the extra
bits you want. It provides in my case the 'MVC (Model / View / Controller)'
elements and all the tools to make my 'frilly bits' work. So I use ADOdb and
Smarty wrapped in bitweaver ... not the most modern of setups, but I know how it
works internally so changing would be pointless ;)

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/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

--- End Message ---

Reply via email to