[PHP] Agile Toolkit - looking for your feedback!

2011-10-19 Thread Romans Malinovskis
Hi All,

I’ve been working hard on the PHP UI Framework called Agile Toolkit. Some of 
you might have already heard and tried it, but I’m willing to get it out to 
more people.

What is UI Framework
 PHP UI Framework is collection of a PHP Classes which are designed to care of 
Web User Interface while letting you focus on developing business and ui logic. 
User Interface Frameworks are common in other web programming languages, but 
there haven’t been a really strong one in PHP yet. That’s where I’m aiming with 
Agile Toolkit.

Agile Toolkit based applications have a very unique structure and they resemble 
development for Cocoa / Windows and desktop UI. You get to operate with objects 
such as Page, Form, Button, Icon. Below is the syntax showing how you can add a 
button to your page:

 $button = $page->add(‘Button’);

Once object is added, you can interact with it and bind events on it:

 $button->setLabel(‘abc’)->js(‘click’, $otherform->js()->submit() );

At this time still no HTML is produced. At the later stage, application will 
recursively render all the Views and collect the HTML using template engine.

For more code examples and on-line feature demonstration please take a look at 
the short introduction here: http://agiletoolkit.org/intro

Why Agile
Agile Toolkit focuses on getting the job done. You will find a “Learning Agile 
Toolkit Book” in the documentation, which also explains how to get some 
practical tasks done faster. You are still encouraged to do testing, but it’s 
clearly divided into unit-tests for business logic and browser-testing for the 
UI logic. You no longer need to test some of the basic stuff as it’s being 
handed by the framework.

Important concept of Agile Toolkit is separation of UI logic from Business 
logic. And by UI logic I mean “PHP code”, which mashes up views to produce your 
pages. The final code of you using Agile Toolkit looks concise and flexible.

Features of current version
 Agile Toolkit is not just the concept. It is a powerful framework containing 
many features, the whole universe I might say. Some of the notable features are:

 - Comes with cross-browser HTML5 User Interface based modern CSS technologies: 
jQuery UI CSS, Flexible Grid System, typography included.
 - Business-focused Model implementation, native PHP definition, Active Record, 
Dynamic Queries, Multi-table support, calculated columns, actions.
 - jQuery and jQuery UI integration. It goes beyond bungling them and develops 
a completely new and secure way to interact between PHP code and JavaScript.
 - Many Views are bundled such as Form, Grid, CRUD, Lister, Menu as well as 
native integration with jQuery UI widgets for Dialogs, Buttons, Sliders, Growl 
and many more.
 - No code generation. All the code is a clean object-oriented native PHP code 
with strong focus on the "don’t repeat yourself" principle.
 - Close coupled. That means Auth class by default will automatically use Form 
and JS components to simplify your life.
 - Addons. There are many of them, but not too well documented. Filestore helps 
with file upload and storage, Payment gateways, Encryption, Image handling, 
OAuth. Addons don’t add intermediate layer between you and service, but instead 
they tie-in service into the system in the most convenient way for you.

Full list of features: http://agiletoolkit.org/about/features

Try it
Agile Toolkit is easy to try. Download and place somewhere into your webroot. 
PHP5.2+ is required. Copy-paste examples from the documentation into your local 
installation.

Developers who have tried it so far are very satisfied and are loving all 
aspects of the framework. It still has some rough edges (mostly in 
documentation) but it’s ready for use in real projects.

I invite you to try it. It’s dual-licensed so that you can use it for free in 
your personal projects. All source code is supplied and can be found on Git as 
I’m a very strong believer in open-source.

http://agiletoolkit.org/ 


Thanks for your time.
—
http://vizualize.me/romaninsh 

[PHP] Questions Regarding Recent Ubuntu PHP5 Security Announcement

2011-10-19 Thread Jon Watson
Hello All,

I am trying to make some sense of this PHP5 security vulnerability notice
from 18 October 2011:

http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478

It states that for Ubuntu 8.04 users, a PHP upgrade to 5.2.4 is required to
take care of the security issues. It also states that for Ubuntu 10.04
users, a PHP upgrade to 5.3.3 is required.

For operational reasons, I am running 5.2.17 on Ubuntu 10.04 and cannot
upgrade to PHP 5.3, Does anyone know if 5.2.17 is safe since evidently 5.2.4
is?

The security notice doesn't go into any real detail on the specific version
numbers so I am having trouble understanding what needs to be done.

Thanks.


-- 
Jon Watson
Systems Engineer
Teamspace Canada
Suite 304 Bedford Tower
1496 Bedford Highway, Bedford, NS, Canada  B4A 1E5
Phone:  902.444.3490 x | Fax: 902.444.3495
email: jon.wat...@teamspace.ca
http://www.theredspace.com | http://www.teamspace.ca


Re: [PHP] Questions Regarding Recent Ubuntu PHP5 Security Announcement

2011-10-19 Thread Jim Lucas
On 10/19/2011 7:00 AM, Jon Watson wrote:
> Hello All,
> 
> I am trying to make some sense of this PHP5 security vulnerability notice
> from 18 October 2011:
> 
> http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478
> 
> It states that for Ubuntu 8.04 users, a PHP upgrade to 5.2.4 is required to
> take care of the security issues. It also states that for Ubuntu 10.04
> users, a PHP upgrade to 5.3.3 is required.
> 
> For operational reasons, I am running 5.2.17 on Ubuntu 10.04 and cannot
> upgrade to PHP 5.3, Does anyone know if 5.2.17 is safe since evidently 5.2.4
> is?
> 
> The security notice doesn't go into any real detail on the specific version
> numbers so I am having trouble understanding what needs to be done.
> 
> Thanks.
> 
> 

This is discussing the packages distributed for Ubuntu X.X.  Sounds like what
you have is your own custom install.  If that is the case, the concern may still
apply, but it is going to be up to you to figure out what the security issue is
and verify your system in some manor.

-- 
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

C - (541) 408-5189
O - (541) 323-9113
H - (541) 323-4219

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



Re: [PHP] Questions Regarding Recent Ubuntu PHP5 Security Announcement

2011-10-19 Thread Jon Watson
On Wed, Oct 19, 2011 at 11:54 AM, Jim Lucas  wrote:

> On 10/19/2011 7:00 AM, Jon Watson wrote:
> > Hello All,
> >
> > I am trying to make some sense of this PHP5 security vulnerability notice
> > from 18 October 2011:
> >
> > http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478
>
> 


> This is discussing the packages distributed for Ubuntu X.X.  Sounds like
> what
> you have is your own custom install.  If that is the case, the concern may
> still
> apply, but it is going to be up to you to figure out what the security
> issue is
> and verify your system in some manor.
>

Agreed and I guess that is what I am trying to assess. The Ubuntu security
notice doesn't go into specifics about the 5.2.x version has the issues
other than presumably something earlier than 5.2.4. It would have been most
helpful of them to provide some sort of test or at least the full version of
the affected release.

So, basically hunting around for some confirmation that my version is OK.

I also find it odd that there is no accompanying security notice from
PHP.net. If this is a security vulnerability in PHP 5 as reported by
Canonical, why has PHP.net not released a security notice?


[PHP] PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Joseph Adenuga



Dear All,


I’m using Window XP operating system. I’ve just installed
PHP 5.2.5 and Apache 2.2.8 over a week now. I’ve checked if Apache installation
is okay with ‘localhost’ in my Firefox browser and it displays ‘It Works!’ But, 
my php code Hello Web!";
?> that I saved as ‘first.php’ in the ‘htdocs’ will not display “Hello Web! in 
my browser. In the ‘Review
Error Log file’ I found:


PHP Warning:  PHP
Startup: Unable to load dynamic library 'C:\\php\\ext\\php_msql.dll' - The
specified module could not be found.\r\n in Unknown on line 0

[Wed Oct 19 16:22:12 2011] [notice] Child 7728: Child
process is running

[Wed Oct 19 16:22:13 2011] [notice] Child 2016: Released the
start mutex

[Wed Oct 19 16:22:13 2011] [notice] Child 7728: Acquired the
start mutex.

[Wed Oct 19 16:22:13 2011] [notice] Child 7728: Starting 64
worker threads.

[Wed Oct 19 16:22:14 2011] [notice] Child 2016: All worker
threads have exited.

[Wed Oct 19 16:22:14 2011] [notice] Child 2016: Child
process is exiting

[Wed Oct 19 16:22:14 2011] [notice] Child 7728: Starting
thread to listen on port 80.


I’ve checked my Apache and PHP configurations again and
again. I’ve checked the information on the internet with more configuration
info. I don’t know what else to do. Please I’m very new to PHP codeand Apache 
environment. I need
your help. I don’t know what I’m doing wrong and what to do. Please please help.
Joseph


[PHP] Problem of load balance among php-cgi process

2011-10-19 Thread Sean Chen
Hi,

 

I've got a problem when running PHP with nginx, there are several php-cgi
processes and only one is busy at one time, like this:

 

500  23868  0.0  0.0 209164 10948 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23871  0.0  0.0 209136 10684 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23872  0.0  0.0 209136 10732 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23873  0.0  0.0 209136 10712 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23874  0.0  0.0 209076 10576 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23875  0.0  0.0 209136 10976 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23876  0.0  0.0 209136 10796 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23877  0.0  0.0 209136 11068 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23878  0.0  0.0 209136 10708 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23879  0.0  0.0 209136 10960 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  23880  0.0  0.0 209136 10832 ?S21:23   0:01
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

500  27195 15.0  0.1 210196 12644 ?S23:02   0:02
/usr/local/websrv/php/bin/php-cgi --fpm --fpm-config
/usr/local/websrv/php/etc/php-fpm.conf

 

The red one is busy, and other php-cgi processes is cpu free, cpu load is
about 20% total, with lot of free memory, disk and network io status is
fine,

and mean time, response of HTTP request to this server is very slow.

 

The cpu load of php-cgi processes return normal when I restart the php-fpm
service (each process takes some cpu slice which means they are all working
I think). But, after several minutes, the problem appears again and again.

 

what's wrong with my php-cgi?

 

PS: how do I debug or monitor the php program running status when it goes
wrong?

 

versions:

php: 5.2.17

nginx: 5.8.55

OS: CentOS 5.6 64-bit

 

Regards

Sean

 



[PHP] Re: PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Shawn McKenzie
On 10/19/2011 10:36 AM, Joseph Adenuga wrote:
> 
> 
> 
> Dear All,
> 
> 
> I’m using Window XP operating system. I’ve just installed
> PHP 5.2.5 and Apache 2.2.8 over a week now. I’ve checked if Apache 
> installation
> is okay with ‘localhost’ in my Firefox browser and it displays ‘It Works!’ 
> But, my php code Hello Web!";
> ?> that I saved as ‘first.php’ in the ‘htdocs’ will not display “Hello Web! 
> in my browser. In the ‘Review
> Error Log file’ I found:
> 
> 
> PHP Warning:  PHP
> Startup: Unable to load dynamic library 'C:\\php\\ext\\php_msql.dll' - The
> specified module could not be found.\r\n in Unknown on line 0
> 

There should be a line in your php.ini file similar to this:

extension='C:\\php\\ext\\php_msql.dll'

Comment that out with a semi-colon and restart apache:

;extension='C:\\php\\ext\\php_msql.dll'

-- 
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] PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Lester Caine

Joseph Adenuga wrote:

I’m using Window XP operating system. I’ve just installed
PHP 5.2.5 and Apache 2.2.8 over a week now. I’ve checked if Apache installation


Both of those are quite old! If you are just starting out then it would be worth 
ditching them and getting PHP5.3.8 with Apache2.2.21 which are the latest versions.



PHP Warning:  PHP
Startup: Unable to load dynamic library 'C:\\php\\ext\\php_msql.dll' - The
specified module could not be found.\r\n in Unknown on line 0


Just to get you started, just add a ';' back in front of the line in php.ini 
which is trying to load 'extension=php_msql.dll', then php should at least run.


Anybody ... why is 'extension=php_msql.dll' in the ini file when there is not a 
matching extension although I suspect that this is simply an out of date setup 
anyway? It is correct in the 5.3.8 setup.


--
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

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



Re: [PHP] PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Tim Thorburn

On 10/19/2011 11:36 AM, Joseph Adenuga wrote:

Dear All,


I’m using Window XP operating system. I’ve just installed
PHP 5.2.5 and Apache 2.2.8 over a week now. I’ve checked if Apache installation
is okay with ‘localhost’ in my Firefox browser and it displays ‘It Works!’ But, my php codeHello Web!";
?>  that I saved as ‘first.php’ in the ‘htdocs’ will not display “Hello Web! in 
my browser. In the ‘Review
Error Log file’ I found:


PHP Warning:  PHP
Startup: Unable to load dynamic library 'C:\\php\\ext\\php_msql.dll' - The
specified module could not be found.\r\n in Unknown on line 0

[Wed Oct 19 16:22:12 2011] [notice] Child 7728: Child
process is running

[Wed Oct 19 16:22:13 2011] [notice] Child 2016: Released the
start mutex

[Wed Oct 19 16:22:13 2011] [notice] Child 7728: Acquired the
start mutex.

[Wed Oct 19 16:22:13 2011] [notice] Child 7728: Starting 64
worker threads.

[Wed Oct 19 16:22:14 2011] [notice] Child 2016: All worker
threads have exited.

[Wed Oct 19 16:22:14 2011] [notice] Child 2016: Child
process is exiting

[Wed Oct 19 16:22:14 2011] [notice] Child 7728: Starting
thread to listen on port 80.


I’ve checked my Apache and PHP configurations again and
again. I’ve checked the information on the internet with more configuration
info. I don’t know what else to do. Please I’m very new to PHP codeand Apache 
environment. I need
your help. I don’t know what I’m doing wrong and what to do. Please please help.
Joseph


How did you install Apache/PHP on your computer?  If you went with the 
Windows binaries for each, did you ensure to get the VC6 version of PHP 
if you installed Apache2 from apache.org?  You may also need to set a 
binding in your hosts file that points to 127.0.0.1


Failing this, do you need Apache?  If you just want a web server to test 
some stuff on, you can download Microsoft's Web Platform - it will 
install and configure IIS to run with PHP, I think it'll even do MySQL 
as well if you install one of the available CMS'.  Less clicking and 
playing with text files if you're a beginner.  Could also try running a 
Linux distro in a VM on your computer - many will come pre-configured 
with Apache and PHP, or provide an easy installer/command line to get 
you up and running.  Ubuntu is very beginner friendly.


HTH,
-Tim


Re: [PHP] PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Tommy Pham
On Wed, Oct 19, 2011 at 9:26 AM, Tim Thorburn  wrote:

>
>
> Failing this, do you need Apache?  If you just want a web server to test
> some stuff on, you can download Microsoft's Web Platform - it will install
> and configure IIS to run with PHP,


IIS is only available on Windows XP Professional.  Other versions of XP
doesn't have IIS, IIRC.


[PHP] Check variable value if change inside the Loop

2011-10-19 Thread ®0L¥
Hello World,

I have a question regarding loops, How I can check inside a loop if a
variable chage a value, for example

$sql = mysql_query("SELECT model FROM table")

while($row=mysql_fetch_array){
$model = $row['model'];
echo "First model: ".$model."";
   * // if $model chage its model value*
*   // echo "Second Model: ".$model.""*
}

Thank you world !


-- 
salu2 ®0L¥


Re: [PHP] Questions Regarding Recent Ubuntu PHP5 Security Announcement

2011-10-19 Thread Jim Lucas
On 10/19/2011 8:05 AM, Jon Watson wrote:
> On Wed, Oct 19, 2011 at 11:54 AM, Jim Lucas  wrote:
> 
>> On 10/19/2011 7:00 AM, Jon Watson wrote:
>>> Hello All,
>>>
>>> I am trying to make some sense of this PHP5 security vulnerability notice
>>> from 18 October 2011:
>>>
>>> http://comments.gmane.org/gmane.linux.ubuntu.security.announce/1478
>>
>> 
> 
> 
>> This is discussing the packages distributed for Ubuntu X.X.  Sounds like
>> what
>> you have is your own custom install.  If that is the case, the concern may
>> still
>> apply, but it is going to be up to you to figure out what the security
>> issue is
>> and verify your system in some manor.
>>
> 
> Agreed and I guess that is what I am trying to assess. The Ubuntu security
> notice doesn't go into specifics about the 5.2.x version has the issues
> other than presumably something earlier than 5.2.4. It would have been most
> helpful of them to provide some sort of test or at least the full version of
> the affected release.
> 
> So, basically hunting around for some confirmation that my version is OK.
> 
> I also find it odd that there is no accompanying security notice from
> PHP.net. If this is a security vulnerability in PHP 5 as reported by
> Canonical, why has PHP.net not released a security notice?
> 

My guess is that this is not a security issue with PHP but more so a security
issue with they way they had that version configured/setup on the system.

-- 
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

C - (541) 408-5189
O - (541) 323-9113
H - (541) 323-4219

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



Re: [PHP] Check variable value if change inside the Loop

2011-10-19 Thread Jim Lucas
On 10/19/2011 12:32 PM, ®0L¥ wrote:
> Hello World,
> 
> I have a question regarding loops, How I can check inside a loop if a
> variable chage a value, for example
> 
> $sql = mysql_query("SELECT model FROM table")
> 
> while($row=mysql_fetch_array){
> $model = $row['model'];
> echo "First model: ".$model."";
>* // if $model chage its model value*
> *   // echo "Second Model: ".$model.""*
> }
> 
> Thank you world !
> 
> 

You have two ways of solving this issue:

1) Do it in Mysql with a GROUP BY option

$results = mysql_query("SELECT model FROM table GROUP BY model")

2) Within PHP, do something like this.

$results = mysql_query("SELECT model FROM table")

# This assumes none of the values stored in DB column model are type=NULL
$model = null;
while( $row = mysql_fetch_array($results) ) {
  if ( is_null($model) || $model !== $row['model'] ) {
$model = $row['model'];
echo $model . '';
  }
  ...
}

Either one should give you the same results.

-- 
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

C - (541) 408-5189
O - (541) 323-9113
H - (541) 323-4219

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



[PHP] junk from my forms output

2011-10-19 Thread hanson zhou
I have the following in a file called "hello.php" in my htdocs directory
(Apache webroot).


 Your name: 
 Your age: 
 


as well as the following in a file "action.php", also in the same directory.


Hi .
You are  years old.

When I click on the submit button of the form in hello.php, it should say
something like:
"Hi Hanson.  You are 33 years old."  But instead of just saying that it also
appends a bunch of junk at the beginning like this:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
Arial;}} {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\f0\fs20 Hi
hanson .\par You are 33 years old.\par } �

Can someone help me with this?  Why does my forms reply from action.php
contain so much junk?  I have a Windows installation of PHP and Apache.

thanks,
-Hanson


Re: [PHP] junk from my forms output

2011-10-19 Thread Simon J Welsh

On 20/10/2011, at 10:24 AM, hanson zhou wrote:

> I have the following in a file called "hello.php" in my htdocs directory
> (Apache webroot).
> 
> 
> Your name: 
> Your age: 
> 
> 
> 
> as well as the following in a file "action.php", also in the same directory.
> 
> 
> Hi .
> You are  years old.
> 
> When I click on the submit button of the form in hello.php, it should say
> something like:
> "Hi Hanson.  You are 33 years old."  But instead of just saying that it also
> appends a bunch of junk at the beginning like this:
> 
> {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
> Arial;}} {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\f0\fs20 Hi
> hanson .\par You are 33 years old.\par } �
> 
> Can someone help me with this?  Why does my forms reply from action.php
> contain so much junk?  I have a Windows installation of PHP and Apache.
> 
> thanks,
> -Hanson


You saved action.php as a RTF file rather than a plain text file. Resave it as 
a plain text file.
---
Simon Welsh
Admin of http://simon.geek.nz/


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



Re: Re: [PHP] junk from my forms output

2011-10-19 Thread Tim Streater
On 19 Oct 2011 at 22:27, Simon J Welsh  wrote: 

> On 20/10/2011, at 10:24 AM, hanson zhou wrote:
>
>> I have the following in a file called "hello.php" in my htdocs directory
>> (Apache webroot).
>>
>> 
>> Your name: 
>> Your age: 
>> 
>> 
>>
>> as well as the following in a file "action.php", also in the same directory.
>>
>> Hi .
>> You are  years old.
>>
>> When I click on the submit button of the form in hello.php, it should say
>> something like:
>> "Hi Hanson.  You are 33 years old."  But instead of just saying that it also
>> appends a bunch of junk at the beginning like this:
>>
>> {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
>> Arial;}} {\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\f0\fs20 Hi
>> hanson .\par You are 33 years old.\par } �
>>
>> Can someone help me with this?  Why does my forms reply from action.php
>> contain so much junk?  I have a Windows installation of PHP and Apache.

> You saved action.php as a RTF file rather than a plain text file. Resave it as
> a plain text file.

Sounds like you should also use a text editor rather that Word or similar for 
editing your program files. Use Notepad or whatever they have or Windows 
machines.

--
Cheers  --  Tim

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

[PHP] different menus for different roles

2011-10-19 Thread drupal dev
Hi Gurus,

 I am new to php and drupal both .


I have created two domains in drupal. and two different roles.

Now i wanted to show different page for each role.can you anybody tell me
how to do it.

Or share with me if something is readily available.


Thanks,
S


Re: [PHP] different menus for different roles

2011-10-19 Thread George Langley
On 2011-10-20, at 12:31 AM, drupal dev wrote:
> I have created two domains in drupal. and two different roles.
> 
> Now i wanted to show different page for each role.can you anybody tell me
> how to do it.
> 
> Or share with me if something is readily available.

Um, drupal.org would fall into that latter category:

http://drupal.org/project/menu_per_role

Remember: Google IS your friend.

G

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