Acessing A File Above The Root

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


ADVERTISEMENT

Acessing A File In Another Computer...

Is there anyway to acess a file in a computer without being prompt with the password and username?

Imagine that i want to access a shared directory in another computer, if i type this in the START-RUN option, OtherComputerc$Temp, i will be prompt with the username and password, what i want to know is:

If i knew the user and the pass could i type a command like this,OtherComputerc$Temp@userpass (just an example), that it wont ask me the password and go directly to the directory? Code:

View Replies View Related

Can I Implement Session Without Global.asa File In My Root Directory....

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

External Data Acessing

i need to create a site with a feed back system. one of my friend said to me ASP has nothing to do with this project. is it possible to do this using ASP ?if yes then what r the major functions that i should use.

View Replies View Related

Root URL

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

Include Below Web Root Dir

Is there a way to INCLUDE a file BELOW the web root directory?

View Replies View Related

Permissions In FTP Root

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

Virtual Root

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

Use Include Below Root Web Dir?

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

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 View Related

Accessing Files Not Below The Web Root

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

Linking To Images Outside Of The Root Directory

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

Virtual Path And Physical Root

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

How To Display Images Which Are Stored Above Site Root?

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

Definition Of "root" Of Site

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

Converting An Image File To Hexa, Read Text File

i'm converting an image file to hexa..then the hexa is saved to a text file..

can any one help me how to read the content text of a text file?...

im doing it this way because i don't want to save hexa in my database, because it makes the database slower to open up.

View Replies View Related

File Properties :: Find Out The Width And Height Of An Image File

is there a way, using asp, to find out the width and height of an image file?

View Replies View Related

File System Object - Check If File Is Being Read

I have code that loops through a directory reading files..

now the problem is that files are constantly being uploaded and I only want the file system object to read those that are finished being uploaded.

How can I check the properties of the file to see if it's in middle of being written before i read the file?

View Replies View Related

How To Open A File Dialog And Get The Path Of The Selected File In ASP?

i am having a problem in how to create a Open File dialog to enable user to select a image file that will be stored into database. i just want the file path to be stored in database, not the image.

View Replies View Related

How To Find Excel File Width And File Version

It works if the file in on the server side, how to use the component (DSOleFile) with the file on the client side? Also how can I calculate the width of the file. (Page set up - Landscape or porrait). Code:

View Replies View Related

How To Do Online Streaming Audio File Or Video File?

I need to do online streaming multimedia file on my web portal, just like those online portal that selling MP3. User need to click on the preview link to stream the audio file to listen before they decide to buy the file or not. How do i link my audio file in my web server to allow it to be stream? Totally lost on this function,

View Replies View Related

File System Search On An Asp File Yields Not Results

This question has to do with MS file search but it is happening only with
..asp pages, so I though someone programming with .asp pages has experienced
the same situation.

I'm trying to find .asp pages with a certain table name (i.e.
"renewalInfo" )

When I ran the search I get no results. I know that I have that string in a
couple of pages. My file system search engine is working fine with other
file types, like Word documents, Excel spreadsheets, etc.

I tried typing the string outside the <% %> tags and when I do the search I
get the file results, so it seems like if the search engine in my file
system was not searching inside the <%%> tags. Code:

View Replies View Related

File Upload - Need To Check File Size

I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me unfortunately.

Anyway - i need to check the size of the file being uploaded, so i can notify the user and prevent them getting the default Microsoft error message page. The problem is that I can't implement a server side size check which works, using either Request.TotalBytes or load.getFileSize (with "load" being an object of my loader class). It seems that I can't carry out any of these operations when the file size is too large.

View Replies View Related

Executing A Asp File Inside A Executed File

I'm trying to run the server.execute command inside a executed file. It doesn't work. Can anybody tell me why? I've searched all around and haven't found a reason. Could it be because it's not supose to work, or is the syntax diferent then in the first file?
It's something like this:

File 1
...
<%Server.Execute("File2.asp")%>
...

File 2
...
<%Server.Execute("file3.asp")%>
...

File 3
<HTML>
<body>
Hello!
</body>
</HTML>

Is this possible?

View Replies View Related

File System Object - Not Deleting File

I am using the File System Object to create server side cookies and part of
the Function that I am writing deletes a file but I am getting a permissions
denied error on that line of code.

I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?

View Replies View Related

Vbscript Include File In Jscript File

I have an asp page written entirely in jscript with a vbscript used as an include file which one variable on the page must access.

When the page runs, I run into jscript complilation errors when it tries to access the include file (since it is written in vbscript), and I can't figure out how to get the two to work together. How do you get both scripting languages to work on the same page?

View Replies View Related

Store File Path And File Name Seperately

if i got a file path as a variable say for Example:

c:folder1folder2folder3folder4file.txt (The Path could be any long)

how do i just store the Path of the file name and the file name seperately. like :

File Path=c:folder1folder2folder3folder4
File Name=file.txt

View Replies View Related

Upload File To Server And Get File Properties

I would like to add a facility to my web page which allows users to upload basic files (word, excel, text, gif, jpg etc) to the server.

I know there's a facility to do this using HMTL forms, but I don't know how to handle the file on the server side.

What I think I need is an ASP file running some code to manipulate the filesystemobject, allowing me to receive the file and store it in the filesystem on the server. It would be nice to access some of the file properties too (name, type etc).

I've seen a few custom components online which allow you to do this, but I can't depend on installing them. I need to be able to script it myself.

View Replies View Related

Streaming File To User: 'File Could Not Be Opened'

I have a page on our intranet that is supposed to stream an Excel sheet to
the user. I'm using pretty standard code:

View Replies View Related

Converting Text File To Sound File In ASP

Does anyone know of a method of converting text files to sound files (.wav, mp3 etc) which can be accessed from ASP?

I have an ASP-based website that enables users to design choreography for equestrian dressage. The resulting design is held as a series of coded movements in a database and it can then be reproduced as text or as a series of diagrams. I would like to offer the option of an audio version.

View Replies View Related

Set File/User Permission With ASP/VBScript To A File

i would like to add a user and set file permission to a file with ASP.
(No component). is that possible ? do you have a link ? an example ?

View Replies View Related

ASP File Upload - Limit File Types?

I would like to use this code on my website to allow simple file uploads from clients. I would like to restrict the file types they can upload. Code:

View Replies View Related

File Held On Server's File System

i am currently working on a project in which part of the requirements are to store files on the Server filesystem and make these files available for download by users. Is there a simple way to provide the user with a link which starts downloading the file when it is clicked?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved