Re: [PHP] Re: PHP frameworks

2011-07-23 Thread mrfroasty
Investing your time on Zend Framework is worth it.I do mostly php
development under Magento Platform, and Zend Framework becomes one of
the vital skills I need.Apart from that, ZF is also a well thought
Library that is a joy to work with.As one mentioned, the best part of it
it gives the option to just use what you need and leave the rest stay put.

I always think, only if those devs of Wordpress,Joomla etc have invested
time in ZF we would have a much matured CMS systems today.I am not
saying WordPress is not good, but its known to have lots of security
issues due to poor framework behind it.

Wasalaam,
Muhsin

On 07/22/2011 11:56 AM, Richard Quadling wrote:
> On 21 July 2011 23:56, Shawn McKenzie  wrote:
>> On 07/21/2011 03:59 PM, Chris Stinemetz wrote:
>>> Hello all,
>>>
>>> I am thinking about venturing into PHP frameworks, but I would like to
>>> get advice on what the correct selection would be for someone that is
>>> about intermediate in PHP knowledge.
>>>
>>> Thank you,
>> So, with your post you will probably get one or more replies suggesting
>> every one of the popular frameworks and then several that suggest some
>> lesser known ones.
>>
>> I think Zend looks great, but for many people (including me) it is
>> overly complex and cumbersome. Â It is a very professional and
>> standardised class library, but has no "glue" to put it all together for
>> you. Also, it takes OOP to the extreme (for PHP anyway). Â Everything has
>> abstract classes, interfaces and the like.
>>
>> CI is good from a lightweight, gives you something to build on perspective.
>>
>> I however prefer CakePHP. Â Its been around for a while, it can
>> automatically build an app from just a well designed database and
>> doesn't require configuration files in XML, YAML or what have you. Â The
>> documentation is OK and could be much better.
>>
>> It really depends on what you want out of the framework. Â I would
>> suggest going through the CakePHP and CI tutorials and seeing which one
>> seems like a good fit for you.
>
> I use a combination of Zend Framework (Soap and Config), PEAR (for
> Console_CommandLine) and my own code developed along the lines of Zend
> Framework.
>
> I think the "What framework is best" question can be partially
> answered by asking which framework allow you the greatest degree of
> flexibility.
>
> I don't have to use any part of Zend that I don't want. Same with PEAR.
>
> Having said that, none of these frameworks will write your app for
> you. Others may, based upon various rules or file structures.
>
>
>


-- 
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,PHP,SQL,HTML
Typo:40WPM
url:http://www.mzalendo.net
url:http://www.zanbytes.com




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



[PHP] Segmentation Fault

2011-07-23 Thread Floyd Resler
I moved to our new server which is using 5.3.2.  I'm getting a segmentation 
fault error on certain ODBC queries I run.  For some reason when I ask for 
particular columns from the database table I get the error.  The error is 
Program received signal SIGSEGV, Segmentation fault.
0x7530df1a in memcpy () from /lib/libc.so.6

Does anyone have any ideas why this is happening?

Thanks!
Floyd


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




[PHP] Members area Login with permissions!

2011-07-23 Thread alekto
Hi,
I need some help with my html/php, restricted access script. 
The purpose with this script is to let users login to a members area; some with 
admin permission, some with newbe permission and some with advanced 
permissions. The permissions are pre-defined in the MySQL-DB with a 
use_level-field in the user-table. 

The different user-groups should have access to the following content:

admin - permissions to everything (for now the same as advanced)
advanced - lecture 1 and lecture 2
newbe - only lecture 1

The problem with this script is that it does not redirect the different user 
groups to their repective index-pages, please help me to detect why!




http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>
   
   
   
   Connexion
   
   
   
   
   

You have successfuly been loged out.
Home
0)
   {
   //If the password is good, we dont show the form
   $form = false;
   //We save the user name in the session username and the 
user Id in the session userid
   $_SESSION['username'] = $_POST['username'];
   $_SESSION['userid'] = $dn['id'];

if($usr_level == 1)
   {
 ?>
You have successfuly been logged in. You can now access 
the admin area.
Home

You have successfuly been logged in. You can now access to 
the newbe area.
Home

You have successfuly been logged in. You can now access 
the advanced area.
Home
'.$message.'';
   }
   //We display the form
?>

   
   Please type your IDs to log in:
   
   Username
   Password
   
   
   


   Go 
Home
   


Re: [PHP] Segmentation Fault

2011-07-23 Thread Nilesh Govindarajan
On 07/23/2011 09:38 PM, Floyd Resler wrote:
> I moved to our new server which is using 5.3.2.  I'm getting a segmentation 
> fault error on certain ODBC queries I run.  For some reason when I ask for 
> particular columns from the database table I get the error.  The error is 
> Program received signal SIGSEGV, Segmentation fault.
> 0x7530df1a in memcpy () from /lib/libc.so.6
> 
> Does anyone have any ideas why this is happening?
> 
> Thanks!
> Floyd
> 
> 

There is something fishy about libc, php or the odbc driver you are
using on the new server. Try recompiling php, odbc. You wouldn't be able
to compile libc, unless you're using a source based distribution like
gentoo.

-- 
Regards,
Nilesh Govindarajan
@nileshgr on twitter/identica

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