PHP in instant rails

Hello

I’m trying to use php in rhtml(views) of Instant rails, but it is not
working although javascript works

and instant rails supports PHP. Why?

Thanks in advance
Hana

Well, javascript is handled by the browser, so it doesn’t matter what
server
you’re using. Are you using a server such as Mongrel or WEBrick? If so
then
PHP’s not working because those servers don’t support php. PHP will only
work if you’re running Apache with InstantRails.

On 2/3/07, Hanan M. [email protected] wrote:

Hello

I’m trying to use php in rhtml(views) of Instant rails, but it is not
working although javascript works

You cannot use php in an rhtml file, only ERb. It’s just the way Rails
works. I’m not aware of any way to use php from within a Rails
application,
though you might be able to dig up such a project.

You probably find better support from the Rails mailing list.
http://lists.rubyonrails.org/mailman/listinfo/rails

and instant rails supports PHP. Why?

On 2/4/07, Ryan W. [email protected] wrote:

works. I’m not aware of any way to use php from within a Rails
application,
though you might be able to dig up such a project.

You probably find better support from the Rails mailing list.
http://lists.rubyonrails.org/mailman/listinfo/rails

and instant rails supports PHP. Why?

Instant Rails includes PHP because PHP is needed to run MyPhpAdmin. You
could use IR to write standalone PHP apps, but Ryan is correct that PHP
is
not supported with in Rails/rhtml.

Curt

On Feb 3, 2007, at 20:56, Hanan M. wrote:


Express yourself instantly with MSN Messenger! Download today it’s
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Just out of curiosity — why do you need to use PHP in your Rails app?
Is there something impossible to do by Rails?

Yours sincerely,
Damian/Three-eyed Fish

Just for thesis purpose

To my knowledge, PHP is included in Instant Rails only to provide access
to PHPMyAdmin, which is there to provide GUI access to MySQL.

This is really a question for the Rails list.