ummm... what are you trying to do??

are you trying to parse a PHP script, then parse the
output as Ruby??  You can do that in PHP, with code.

As far as i know, the statements you suggest below
won't work (or at least, wont work the way you want
them to)

PS: having PHP parse '.html' files could be confusing
to others, so you might want to stick to the conventional
naming system for simplicity's sake.... 
PHP=>".php", Ruby=>".rhtml"


> -----Original Message-----
> > Hello gurus,
> >
> > does anyone know a way to make PHP and RUBY running together (parsing both
> > the same file) ?
> >
> > This is what I tried to do:
> >
> > httpd.conf:
> >
> >     AddType application/x-httpd-php-source .phps
> >     AddType application/x-httpd-php .html
> >
> >     #Action application/x-httpd-php "/php/php.exe"
> >
> >     AddType application/x-httpd-eruby .rhtml .html
> >     Action application/x-httpd-eruby /cgi-bin/eruby
> >
> > as you can see PHP runs as apache's module and Ruby as CGI,
> >
> > It works fine for .rhtml files (with ruby), but when I give them the same
> > file extension to parse only Ruby works, PHP shows the source.
> >
> > I know this a wrong try, well, still a try. Has anyone tried to do the same?
> > Any success in any way?
> >
> > There are some things I'd like Ruby to do while processing PHP files.
> >
> >
> > Sincerely,
> >
> >  Maxim Maletsky
> >  Founder, Chief Developer
> >  PHPBeginner.com (Where PHP Begins)
> >  [EMAIL PROTECTED]
> >  www.phpbeginner.com
> >
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to