Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Other scripting Languages? 2

Status
Not open for further replies.

sera

Technical User
Jun 29, 2000
360
US
I am just wondering if PHP allows you to use other scripting languages? ASP allows you to use either Javascript or VBScript! Can you use any scripting language you want in PHP or is it restricted to Perl?
Sera
I often believe that...
My computer is possessed!
 
PHP isn't Perl. I have no idea where you heard or read that, but that's very untrue. PHP is it's own scripting language, like JavaScript or VBScript. The syntax is far from the same, but the general idea is the same.
To answer your question, no, you can only run PHP scripts through the PHP engine. //Daniel
 
Okay, so I didn't watch my language closely enough! Sorry! I would not venture to say that the syntax is "far from the same" as Perl. I think that when control structures (IF/ELSE, FOR, etc.) are similar, and variable naming conventions are similar, two languages are pretty similar.
But, I know nothing about Php and am researching using it for an application I am developing. I have only looked at 6 or 7 tutorial sites in order to get a feel for what Php is all about. Thank you for correcting my language and answering my question, for that you get a star!


Sera
I often believe that...
My computer is possessed!
 
This is the second or third reference to running other languages from ASP I've read in the last two days.

Although ASP will allow you to instantiate the VBScript object and invoke its methods, the program is still running in the conext of ASP. You haven't changed programming languages in mid-stride.

Similarly, I could invoke a perl script from withing PHP and accept its returns as input to my PHP program. That doesn't mean I've left the PHP programming context. ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top