
![]() |
KaptainKrayola
From: http:// corfield.org/blog/index.cfm/do/blog.entry/entry/ColdFusion_8_running_
PHPquote Update: now supports Ruby as well as PHP! I'll post a couple of Ruby examples next.We're always getting grief from those PHPfolks, aren't we? What if you could runPHPcode directly inside ColdFusion?<cfset who = "Sean" /> <cf_ php><? phpecho "Hello ".$_COLDFUSION["who"]."<br />"; $COLDFUSION["greeting"] = "wibble"; ?> </cf_ php><cfoutput>greeting = #greeting#</cfoutput> quote This outputs Hello Sean and greeting = wibble. Yes, you can pass ColdFusion variables into PHPand set variables inPHPthat you can access back in ColdFusion land. [Note: Unlike the first version I posted, the new version takes no attributes but instead makes available the entire variables scope from the calling page - and now uses $_COLDFUSION which is more in keeping withPHP.]Should make porting code a TON easier. ![]() perkiset
Cool bridge kapn... excellent way to start moving across. Must make you a very happy little pirate
![]() /p |

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads