Including PERL Files Within ASP
Does anyone know if its possible to include perl files in my CGI-BIN folder within an asp page?
I've written a forum program in perl (which is all run through the same file /cgi-bin/forum.pl) and I would like to include it within an ASP page.
Is it possible? If so how? Just using the Include Virtual string? By the way I'm on UNIX with ChilliASP installed.
View Replies
ADVERTISEMENT
In ASP, is there a way to use a page to mask the identity of another page? So that say I had a page named google.asp, and I wanted to include all of what is actually on google.com, is there a function similar to the the include option that allows you to mimic a page, rather than include a file?
View Replies
View Related
I am trying to include several files in an ASP script. I have a common file that does the database handling, and that common file will include common functions and classes used throught the script. Although I've checked each of the files for errors, none seem to have any, but when I call a class included from another file, I get this:
Error Type:
Microsoft VBScript runtime (0x800A01FA)
Class not defined: 'ASPTemplate'
/test/test.asp, line 7
Any ideas?
View Replies
View Related
why doesnt including files in an output work? or is there just a different way to do it, the below did nothing at all? Code:
View Replies
View Related
I'm trying to include and calling some ASP files from different directory. It doesn't work.
I need to use <A HREF>tag to link the ASP file and image file using <img src>tag. I entered the whole http://mydomain.com/....... path inside of tag. It doesn't work.
For example.
The original web page is reside in c:webrootwebpageestpagehomepage.asp
All the image files and other ASP files are reside in:
c:webrootwebpageaspfile.asp
c:webrootwebpageimagefile.jpg
In the IE browser, the link would go to
http://www.mydomain.com/webroot/webpage/testpage/aspfile.asp
Of course, it won't work because the aspfile.asp is reside in webrootwebpage, NOT in webrootwebpage estpage diretory.
View Replies
View Related
i need to convert some existing templates into ASP, and have come across a stumbling block (which is probably only due to my complete lack of knowledge of all things ASP related ):
is it possible to include files held on a completely separate domain ? the standards include statement only seems to have file and virtual capabilities, and nothing comparable to php's capability of doing something like Code:
include('http://www.someotherdomain.com/includes/somefile.html');
could anybody enlighten me with some workable code ?
View Replies
View Related
can you please tell which is better. if neither is whats best in what ?
View Replies
View Related
I have a web site written in (VBscript) ASP with a SQL database. I would like to use a sub procedure in a Perl module (written by someone else) from within a VBscript ASP page. The sub takes several parameters and returns a result string. Is there a way to do this within a VBscript ASP page?
My alternative would be having to re-code my ASP page into a Perl page. While possible, I'd like to not have to learn Perl just for this one page. (Re-coding the Perl module into VBscript is not an option.).
View Replies
View Related
if any of you have any knowledge of the Perl Lingua::Identify module and submodules? Links to samples, code, reference?
View Replies
View Related
we have a perl script at work which we run manually from time to time to move files from our staging environment to our live environment. As part of an application I'm working on i'd like to incorporate a buttom on a web form which would kick off this perl script when neccessary. Is there any way to do this?
View Replies
View Related
in perl if we need to get all the html links we use htmp Tokparser do we hv any thing in asp for same purpose.
View Replies
View Related
I have a website that uses perl and switched to a different hosting company. After weeks of pulling teeth to get moved from a unix webserver to a microsoft one, I tell them that the extensive perl portion of my site isnt functioning. They said I need to use ASP instead.
I dont know anything about it and think it is unfair for me to have to completely redevelop my site becasue they dont want to put perl and microsoft on the same server. My last hosting company did it so I know it is possible. Meanwhile everytime somone clicks on this perl application nothing but script comes up (very unprofessional). Is it somthing really easy to implement or should I just forget about it?
View Replies
View Related
I have 2 issues that i could not find a solution,
1) is it possible to convert a "cgi" code into asp page.
2) are there any tools to do this conversion,
is it possible to embed the cgi code inside , for example html, or jsp or asp.
View Replies
View Related
I have an HTML header with a form in it that begins like this:
<form name="main" action="form_action.asp" method="GET" target="bot">
I also have a perl CGI script and I just need one part of that script to be altered by the action of the form. So the user would select from a drop-down menu and, depending on their choice, the perl script would be changed accordingly and then executed.
View Replies
View Related
I am running IIS 6.0 on Windows 2003.
I would like to be able to run a perl script from a web page and
include the output.
I have tried doing it with an ssi:
<form action='docsearch.shtml' method='get'>
<!--#exec cgi="/cgi-bin/docsearch.pl-->
</form>
This correctly ran the script, but it was unable to include the
QUERY_STRING from the parent URL into the included perl script, and
there seems no work around to enable me to do that on IIS 6.0,
therefore on this thread:
http://groups.google.com/group/micr...6ae0d85395a3d72
I was recommended: "to a simple ASP page which will easily do exactly
what you want because it actually has the functionality you want, by
intention, and is supported." Code:
View Replies
View Related
I am trying to include a file in an ASP page. But the problem is that the file is in a different folder. When i put the file in the same folder then it works fine. Is there any way to include a file from different folder. For Example I am using a file for database connection and including it in each ASP page as follows--
<!--#include file="Connection.asp"-->
So i have to put this file in each folder of my web application. But i want to keep it only at one place.
I have also done it with ../ and /(root) but both the methods are not working. These methods work properly on localhost but not on the hosted website
View Replies
View Related
So far I have not been able to import a HTML-page in ASP like I can with PHP. In php you may import a page, and just get the output of the file (not the entire HTML-code, wtih tags like <body> <title and such). Is it possible to do this with ASP?
View Replies
View Related
I have the following file structure:
/
header.asp
test.asp
/subDir
testpage.asp
/images
I would like to have header.asp to be usable from all directories. Header.asp will have images and URLs. When I try to #include the file in test.asp, it works fine. However, if I #include it in testpage.asp, the images in header do not work - testpage.asp thinks the images are in subDir, when they are in the images directory. I have tried a variety of combinations of MapPath, Server.Execute, but I have not gotten the image to appear correctly. What is the correct syntax for what I am trying to accomplish?
View Replies
View Related
I am trying to use the example located here: http://www.asp101.com/articles/jacob/scriptupload.asp
If I have vbscript v5.0 do i still need to include a library inorder to create a new FileUploader object?
View Replies
View Related
I'm after some coding that will allow me to include another url (website) on my page.
What I basically want to do is keep my header and footer and use the information off their site so that when they update it mine will be too. I have their permission to do this.
What include statement would I use.
I know I can do it with frames but I would perfer to use a simple include statement.
View Replies
View Related
I have included all the db scripts in asp above the <head> tag and <html> opener tag.When i submit a page, to add a record that record just get doubled and i dont know why that is happening.It dont happen always but now and then. The problem is not with cliking the submit button twice. So all i want to know is if it may be a problem with including the asp codes above the html tag or not?
View Replies
View Related
how can we include one vbs file into other vbs file?
View Replies
View Related
How would I go about including a .txt file in an If-Then statement? Basically what I want is to have a certain file included depending on what the value of Request.QueryString("type") is equal to. Any ideas?
View Replies
View Related
How would I go about displaying a plain text page that is located on a
website that is not my own? For example... my site is www.x.com and
www.y.com has a news article at http://www.y.com/article1.asp and i want to
"include" this file on a page located on my site (www.x.com).
View Replies
View Related
I wanna just include a .php in a .asp page,I mean,I use PHP Code:
<?php
include('etn.php');
?>
to include and execute the etn.php in test.php file, but now I need only to include etn.php in .asp file in a linux server. Is there any hint , or coding , or server side codes ?
View Replies
View Related
I am having trouble trying to get a line of my script to work. I want to include the variable "name" in a hyperlink. The line of code I am working with is below:
Response.Write ("<a href=""band_news.asp?ID=" & rsCTD("ID") & """> Read more about & rsCTD("name") & </a>")
This code is throwing up errors every since I tried to add the variable for the output of the hyperlink.
View Replies
View Related
I'm including a template on all pages in a site. In the template I have a menu. What I'd like is to have a different menu displayed if I'm in a different directory. Something along the lines of:
If path is /mainsite Then
Regular Menu
If path is /admin Then
Admin Menu
Just not sure about how to go about getting there. My first thought was to use the PATH_INFO server variable, but that returns the page name too. Any suggestions?
View Replies
View Related
Am trying to include a txt file from another site...This is the code I am using:
<table width="540" border="1" cellspacing="1" cellpadding="5" align="center" bordercolor="#DCDCDC" style="BORDER-COLLAPSE: collapse">
<tr class="text" align="center">
<td width="250">
Name</td>
<td width="250">Type</td>
<td width="40">Info</td>
</tr>
<!--#include virtual="http://www.anothersite.com/MyFile.txt" -->
</table>
The contents of the txt file are all arranged with appropriate html so am hoping the output will be displayed appropriately on this ASP page.
View Replies
View Related
My page to place orders is password protected.What ASP script can I use to have the login name of person placing an order pass to database, something like the date which currently I pass using a hidden field <%=date%>.
View Replies
View Related
Is there a way to include a part of an ASP file? Like if I want preformatted text, but don't want to have separate include files for the title, subtitle, and body text? Or including specific variables from a separate page?
I know there are various workarounds for something like this, but I figured I'd ask if for nothing more than an insight into the language (I just started with ASP recently).
The reason I ask is that I want the page to be editable later without risking changing the stylesheets. Since the people who will be doing the updates are not web designers, I want to make the process as risk-free as possible.
View Replies
View Related
is it possible to include php script into .asp page ?
View Replies
View Related
I have a combo box bulit by taking in values from database. some of the values have spaces in between them
e.g
<select name="place">
<option value="Presidents Office">President's Office</option>
</select>
So when i use this code to read
Response.write(Request.Form("place"))
Its only returns me President's
HOw can make it include whole string including spaces..?
View Replies
View Related
Does anyone know of a form to email ASP script that allows the user to
attach an image file from their computer to be sent as an attachment to the
email, along with other data collected from the form?
I've seen this on sites particularly for recruitment allowing resumes to be
attached along with personal info.
View Replies
View Related