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

···

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

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.

···

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/3/07, Hanan Mneimneh <hanan_mneimneh@hotmail.com> wrote:

Thanks in advance
Hana

_________________________________________________________________
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

···

On Feb 3, 2007, at 20:56, Hanan Mneimneh wrote:

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

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

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 2/4/07, Ryan Williams <mr.cruft@gmail.com> wrote:

On 2/3/07, Hanan Mneimneh <hanan_mneimneh@hotmail.com> 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?

Just for thesis purpose

···

From: Damian Terentyev <threeeyedfish@rambler.ru>
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: PHP in instant rails
Date: Tue, 6 Feb 2007 21:26:55 +0900

On Feb 3, 2007, at 20:56, Hanan Mneimneh wrote:

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

_________________________________________________________________
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

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

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

Hanan Mneimneh wrote, On 2/7/2007 1:25 PM:

···

Just for thesis purpose

From: Damian Terentyev <threeeyedfish@rambler.ru>
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: Re: PHP in instant rails
Date: Tue, 6 Feb 2007 21:26:55 +0900

On Feb 3, 2007, at 20:56, Hanan Mneimneh wrote:

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

_________________________________________________________________
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

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

This is really a question for the Rails list.

···

On 2/7/07, Sammy Larbi <sam@powersource.com> wrote:

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

Hanan Mneimneh wrote, On 2/7/2007 1:25 PM:
>
> Just for thesis purpose
>
>> From: Damian Terentyev <threeeyedfish@rambler.ru>
>> Reply-To: ruby-talk@ruby-lang.org
>> To: ruby-talk@ruby-lang.org (ruby-talk ML)
>> Subject: Re: PHP in instant rails
>> Date: Tue, 6 Feb 2007 21:26:55 +0900
>>
>> On Feb 3, 2007, at 20:56, Hanan Mneimneh wrote:
>>
>>> 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
>>>
>>> _________________________________________________________________
>>> 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
>>
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's
> FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>

--
Giles Bowkett
http://www.gilesgoatboy.org

http://gilesgoatboy.blogspot.com