Avatar of daz1234
daz1234 asked on

how to insert a vb script inside a php file

how to insert a VB script inside a PHP script


VB script below
 
<%@ Page language="VB" %>
<%@ Assembly name="web" %>
<script runat="server" language="vb" src="script/toolkit.aspx" />
<script runat="server" language="vb" src="script/rrors.aspx" />
<% ScriptSetup() %>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
<html>
<head>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body id="login">
	<div class="container">
		<div class="content" style="height: 330px; padding: 10px 10px 10px 10px">
			<br>
			<% Login() %>
		</div>
</body>
</html>
 
php script
 
<?php
$loc = "home";
include ("includes/header.php");
?>
	
<div id="fullwidth">
 
		<!-- LEFT CONTENT -->
		<div id="fullleft">
 
			<div id="homeupdate">
				<img src="layout/fakeupdate.gif" alt="live update" />
			</div>
			<script type="text/javascript">
				<?php		
					include ("flashcsv.php");
					echo "var so = new SWFObject(\"includes/update.swf?$flashString\", \"mymovie\", \"199\", \"362\", \"9\", \"cccccc\");\n";
				?>
				so.addParam("wmode", "transparent");
				so.addParam("menu", "false");
				so.addParam("quality", "best");
				so.write("homeupdate");
			</script>
 
 
 
	</div>
 
<?php
 
include("includes/footer.php");
 
?>

Open in new window

PHPVB Script

Avatar of undefined
Last Comment
pain_is_relative

8/22/2022 - Mon
nplib

what do you mean?
ASKER
daz1234

the first part part of the script above is from an aspx file running VB

need to place that section into the php file under the vb script how to convert
nplib

you want to convert your vb script to php?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
hielo

PHP does NOT execute/interpret asp/asp.NET code. You will actually have to open script/toolkit.aspx and script/rrors.aspx and translate that code logic to php
ASKER
daz1234

don't want to convert just execute the scripts in php
nplib

well you can't, they are different languages.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
hielo

>>don't want to convert just execute the scripts in php
again, the correct answer is "PHP does NOT execute/interpret asp/asp.NET code. You will actually have to open script/toolkit.aspx and script/rrors.aspx and translate that code logic to php".
pain_is_relative

WHY Would you do such a heinous thing!

i going to go out to the back yard and scream an exclamation that I cant't utter in polite company.

what kind of web server are you going to run it on??? The advantages of using PHP are primarily there because it runs on Apache as a native module.
ASKER CERTIFIED SOLUTION
pain_is_relative

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question