Source From Root
how do u get somthing from the root directory no matter where abouts you are? say i'm in /folder1/bla/test/foler2 and i wanted to place an image on this page but i don't want to have to backtrack ( ../../../../ ) all the way to get there. is there a peice of code that can go straight to the root directory?
View Replies
ADVERTISEMENT
I was wondering if there was a way to get the root URL of the virtual
directory where an ASP file is called from. For example if there's a virtual
directory pointing to http://server/myvirtdir, and an asp file is located in
http://server/myvirtdir/subdir/anothersubdir/file.asp, is there a method
that returns http://server/myvirtdir
View Replies
View Related
Is there a way to INCLUDE a file BELOW the web root directory?
View Replies
View Related
How do I setup perrmissions in my FTP to allow anonymous access where you can only upload to and download from a separate folder but not create sub folders or change any permissions etc.
I have my trusted users with extended permission in like c:ftproot ame1, c:ftproot ame2 etc and would like to have my anonymous access directed to something like c:anonymous. I do not want them to see the trusted accounts. Can I and how do I do that?
View Replies
View Related
My IIS server (Win2K) I created a new application, but when I #Include a file it goes to the root of the Default Web site rather than the root of the site? I tried
Response.write server.mappath("default.asp")
and got
c:inetpubwwwrootdefault.asp
I know this is IIS 101 but I cannot get it to work.
View Replies
View Related
Is there a way to use the include statement to access a file BELOW my wwwroot directory?
for instance, I'm using this:
<!--#include virtual="/includes/SearchParam.asp" -->
this is basically accessing D:UsersSite2wwwrootincludesSearchParam.asp
I want to put my include files in D:UsersSite2Includes for security reasons but i can't figure out how to access them.
View Replies
View Related
my isp has created a directory with read/write access above the domain root. I asked them to do this to make it safer. I have used 'freeasp upload' to create an upload page (which works) but now I can't access the image files in this new directory. How do you guys deal with uploading images in a CMS admin and then retrieving them on the public site?
View Replies
View Related
Using IIS I want to embed a TIFF file in my web/intranet page that is stored in a folder that is not accessible to everyone. The files are strictly private in nature and only the requested TIFF file may be shown. They are in a folder that is used by another application and it can’t be moved. Code:
View Replies
View Related
I have a situation which i am sure has arisen previously. But for the life of me i cant figure out how to get this to work.
I have a directory setup like this:
Site1 - www.site1.com
Asp -
Images -
Site2 - www.site2.com
Asp -
Images -
The problem that i am having is i cant get site 2 to display images from site 1 using the virtual path '../' as this only takes you to the root of site 2 and wont let me out of it.
I have tried to use the full path of http://www.site1.com/Images but this seems to take an a really long time to load the images.
Is it possible to go outside of this root directory using some kind of trick? I dont want to copy the images accross to site 2 either as there are actually hundreds of sites that will be referencing site1's image folder and it is updated regularly.
I was thinking of putting a virtual directory in site1 thatpointed to the image folder in site2 but i couldnt get that to work.
View Replies
View Related
Is it possible to include my remote web server path eg: m:/html/root/site1
| m:/html/root/site2 etc
....in virtual includes....
Thus eliminating the need to create duplicate INC files in each sub-domain on my remote web server host domain IP. eg: http://72.3.5.6.0 (www.site1.com; www.site2.com)
I would like to be able to use a UNIVERSAL INC file in the root of my web IP for the benefit of all my sub domains.
View Replies
View Related
I have the standard folder structure on my web server (sya that the server is estserver):
My site is in c:Inetpubwwwrootmysite
I have also introduced the folders:
c:Inetpubimagerootcompany1
c:Inetpubimagerootcompany2
c:Inetpubimagerootcompany3
The idea is security (the companyN folders store images belonging to the companies 1,2,3 - and never the twain shall meet - this does not matter so much). The images are stored above MySite (in the imageroot folder) so that no-one can see them - if they sat in mysiteimages, for example, anyone can see them. And to further thre security, /imageroot does not have a URL
What I need is someway that I can display an image in imageroot on a page in MySite, eg /mysite/gallery.
I need to use an absolute path from my page in mysite to the required image
so in HTML that would be
<IMG SRC=" estserverinetpubimagerootcompany1picture.gi f">
however, that don't work. So how do you do it?
View Replies
View Related
Can I implement session without global.asa file in my root directory....and is there any good site for sessions tutorial.
View Replies
View Related
I have defined a virtual directory and application called Test. The directory is C:inetpubwwwrootTest. I created a trivial page:
<%
response.write Server.Mappath("/")
%>
When I execute this page I get:
C:inetpubwwwroot
but I was expecting to see:
C:inetpubwwwroot est
Isn't the root of my virtual directory "test"?
View Replies
View Related
I am working on a small project which requires XML data to be read from ASP.
I am successful at using XML/DOM objects. But when the data size goes up, sequential access will tax the web server. I would like to retrieve the data in the xml file like a MSAccess DB.
I read somewhere that XML source can be provided as data stream in ADO. If anyone has knowledge on this, please provide me links. If possible, answer to these queries will also be appreciated.
1. Which version of IIS supports this.
2. Which version of ADO
3. Additional components needed at the server ?
I found the following link at MS.
http://support.microsoft.com/default.aspx?scid=KB;en-us;q263247
View Replies
View Related
I am looking for an open source, very simple CMS that allows an administrator to add pages, news articles, and maybe a staff directory.
We don't need new users to signup, or comment, or anything along those lines. Maybe a wysiwyg editor included. Just for a homepage, a news section (that may include many sub-cats, pages).
View Replies
View Related
I've got a Windows 2000 server running with about 50 websites on it, all
running ASP scripts. I've noticed that the servers CPU usage gets up 100%
sometimes, caused by dllhost.exe, which I'm certain is a hanging ASP script
somewhere on the box. Probably an on error resume next line that doesn't go
anywhere when an error is an encountered. Anyways, I'm not sure if there's
a way to isolate the website where its originating, or even the page this
problem is originating from. Is there a way to do this?
View Replies
View Related
i dunno what's the DSN coz it's my friends code and she's using windows2000 so her open database connection code differs from what i use..like
"con.open ...."
what should i do to redirect the the connection to its database?i cant change all the codes coz there's many pages and takes ahellotta time
View Replies
View Related
Does anyone know of any source control software (besides Visual studio) that allows a multi-user environment to be able to check out/in files and keep version control?
View Replies
View Related
I am trying to debug some values in production server.I want to print the value of rRes(10),but I don't want to show it in the screen.I just want to show it in the source code but comment out,so that I can look at the value.Is it possible?
Response.Write("rRes(10) = " & rRes(10)) will show the value in the screen,but i want to hide it in the screen but still see the value in the source code.
View Replies
View Related
there are any open source for ecommerce site like a one such for 'oscommerce' in php/mysql.
View Replies
View Related
i've developed an appliaction that i want to sell it to my client, but dont want him to reseller it, so is there any solfware or techniques that i can used to protect my asp source ?
View Replies
View Related
I want to open the source code in an iFrame. What's the ASP script for that?
View Replies
View Related
ADODB.Connection.1 error '80004005'
SQLState: IM002
Native Error Code: 0
[INTERSOLV][ODBC lib] Data source name not found and no default driver specified
------------------
strconn ="DSN=dsnname ; UID=username ; PWD=password"
set conn = Server.Createobject("adodb.connection")
conn.Mode= 3
conn.open strconn
the error is in the last line. THANX
View Replies
View Related
Is there a way of processing an ASP page and placing the resulting HTML
source code into a TEXTAREA on another page?
I have a page that will be generated dynamically from database content.
However, I want a form on another page to have access to the compiled source
code for use in an electronic newsletter.
Manually I would load the dynamic page, view the source and copy it out. I
would then paste it into my form field on the relevant page.
View Replies
View Related
This is not really language specific but more of a source code parsing.
I have a large ASP source file that I like to split up, resulting in separate ASP files, each containing one function and the filename named after that function.
Does anyone know of a tool/script which does this?
PS: I am too lazy to learn Perl/AWK/Python to do this, hence why I believe someone has already written a tool/script to do this. Possibly in C++/etc.
View Replies
View Related
how can i load in an adodb.recordset a remote xml file on another http
server.
if i use the simple ole-db provider, that work as an admin only. (according
to ms, this component mustn't be used for non-interactive users.
So i found serverxmlhttp but ...
i can load the remote source in,
i can load it in an domdoc, as describe in the msdn,
but,
as my files are encoded for french, they can't be open by the recordset.
so my question is the following ?
is serverxmlhttp the only way ?
if it is, how to make it work properly in this case ?
View Replies
View Related
How can i get the source code of a web page through asp code?
View Replies
View Related
I Would Like To Be Able To Hide All My Code And Stop Others From Taking My Scripts From The View>source Option. And I Would Like To Be Able To Put A Picture In That Option So That When Other View Source All They Get Is A Picture ?
View Replies
View Related
Is there a code that will deactivate the View Source on a browser? I have people tealing my page content from my client web site.
View Replies
View Related
My company has developed a Learning and Content Management System (LCMS) using ASP (there is some .NET) and SQL Server 2000.I are currently exploring the idea of releasing the source code to the Microsoft development community under an open source agreement. If you or someone you know would be interested in participating please reply to this post with your contact information and why you are interested. (You may also send an email to URL with the subject "Open Source LCMS")
View Replies
View Related
I have a page which contains a TEXTAREA form field.I want to be able to click a button and have it go off and fetch the source code for a compiled ASP page ie.
what the user would see if they loaded the ASP page into their browser and put the source code into this form field.Is this possible?
View Replies
View Related
I want to read an ASP file and display its source text.But I only get its HTML output. Later on,I will extract that source text to display certain thing.
Here is my code:
Const Filename = "/aspBoard.asp"
Dim FSO
set FSO = server.createObject("Scripting.FileSystemObject")
Dim Filepath
Filepath = server.MapPath(Filename)
Set TextStream = FSO.OpenTextFile(Filepath)
Dim content
content = TextStream.readall
Response.Write content
TextStream.Close
Set TextStream = nothing
View Replies
View Related
My company recently hired a third party to handle phone orders during off hours. The third party wants to be able to update our database through their own interface. We are running SQL Server 2000 on Windows 2000 Server with ASP.NET 1.1. The number one thing that come to mind is security for credit cards. Perhaps some kind of web service, xml, etc.? Does anyone have any suggestions on the best way to handle this?
View Replies
View Related