|
You use include files to do this. <!--#include file="nav.asp"-->
So in your, lets say, default.asp page you will have that line of code where you want the contents of nav.asp to be inserted. You can then use it from multiple pages, one change to nav.asp will affect all the other pages. The include is inserted when the page is requested.
regards,
Paul Watson
Bluegrass
South Africa
Marc Clifton wrote:
"organically fed captivity free regurgitated bee nectar" (honey) on dieting.
Crikey! ain't life grand?
|
|
|
|
|
I have a web site with limited space and bandwidth alootment, but I need to have the ability to host files and control access to them.
I need a (PHP?) program that will do the following:
Allow users to upload files:
0) Only authorized users can upload files
1) Files can only be specific names
2) Files can only have specific extentions
3) Files must be able to be size-restricted
4) Uploads must be able to be restricted by frequency of occurance by user (allow a given user to upload every X number of days, or on a given day of the month)
5) When a file has been uploaded, the program updates an existing web page to reflect the files that are now available for download.
Allow users to download files:
0) Only authorized users can download files (be able to toggle this on/off to allow anyone to download).
1) Track which of the files are new since a given user last downloaded it.
2) Specify how many times a day a given user can download a given file.
I'm using phpBB2 for bulletin board software, so it would be very convenient if the program was able to use the database of registered users used by that program.
Can anyone help?
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
You're hoping for someone to create this program for you?
|
|
|
|
|
I'm hoping for guidance as to how to approach it, some code that kinda gets me started, or yes, for someone to make the magnanimous gesture of doing it for me (being the lazy bastard that I am, this is the preferred route ).
I know nothing about php, or any of the other scriptng languages, and while I have a deeply ingrained dislike for learning anything new (I'm pretty old and set in my ways), I will if I have no other choice. However, I see no reason to reinvent any part of that wheel if someone else has already done so.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
The following is a link to a free perl script which allows you to upload files with a specific extension and file size.
There are upgrade versions with other features.
With a little noodling in perl, you could probably work in the other features fairly easily.
http://www.perlscriptsjavascripts.com/perl/upload_lite/[^]
"The beat goes on.. da-da-dum dadum dum" BW
|
|
|
|
|
Many thanks. I'll check it out.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
www.Hotscripts.com[^]
There are literally 1000's of pre-written scripts of all kinds...from KBases to polls to file managment.
However from my experience, pre-written scripts suk and are always buggy and full of security holes...so you should plan on looking over the code and trying to correct flaws PHP is easy enough that almost anybody with basic programming experience can crank out a fairly complex script. Thats where Perl might be a little better.
John Simmons / outlaw programmer wrote:
I'm using phpBB2 for bulletin board software, so it would be very convenient if the program was able to use the database of registered users used by that program.
That you'll probably have to do yourself. Thats another reason I hate pre-written scripts.
Cheers
I'm drinking triples, seeing double and acting single
|
|
|
|
|
I need people to help me create a browser driven opensource Operating system that will be linux based ie I am currently working on the linux kernel as I write this note. I have all of my componants such as file management, drivers, cdrom startup, and the browser base for the kernel. This would take me too long to do myself even though I have all of the componants (I think);P but I will need help tying it all together.
I will soon have a webpage up and running where you can go to find out about the project but just now please email me.
|
|
|
|
|
So, what is your question?
is it Web dev related?
theJazzyBrain
Wise is he who asks good questions, not he who gives good answers
|
|
|
|
|
Don't do it
Thats my advice
I'm drinking triples, seeing double and acting single
|
|
|
|
|
Hi, I am using DCOM in my web page and back end is SQL server. My server's port:135 is locked. How can i establish database connection using ado? (by default port no:1433 for sql server is not sufficient.).
I am using connection string as
"PROVIDER=SQLOLEDB.1;Network Library = dbmssocn;Data Source =<datasource>,1433;Persist Security Info = False;UID=<uid>;PWD=<pwd>; Initial Catalog=<initial_catalog>" . I am getting error as "Distributed Transaction Error".
Please help me.?
Meenakshi Sundaram D, Ananlyst Programmer
|
|
|
|
|
Hi all
I am having a problem with window.open
In a file called pageone.html, I have the following:
<html>
<head>
<script language="javascript">
window.open("pagetwo.html");
</script>
</head>
</html>
pagetwo.html is nothing special - just some text (no javascript at all).
The problem I get is a javascript error - "Access Denied"
pageone.html is accessed by http://localhost/pageone.html
So why the hell is this happening? I can't figure it out at all. I have the correct permissions to the folder.
Thanks in advance,
Anthony
|
|
|
|
|
antbates wrote:
window.open("pagetwo.html");
Why do you want this to happen? Any advt page.. if thats the case, there are different solution for it
I was born intelligent Education ruined me!.
|
|
|
|
|
SPS wrote:
Why do you want this to happen?
One of our applicatons needs to have more than one window open. It's a bit odd, but necessary. Anyway, turns out that the machine it was failing on had an odd combination of MS patches, and when we updated it fully, it worked properly. Thanks for your help anyway.
|
|
|
|
|
antbates wrote:
when we updated it fully, it worked properly
You mean ... your posted code worked properly with the patch updates (I assume that was a patch for the IE)
I was born intelligent Education ruined me!.
|
|
|
|
|
SPS wrote:
your posted code worked properly with the patch updates
Yes, that's right. It's very odd - I know MS have made some changes to window.open to restrict cross-domain opening, but the two files were in the same directory. Maybe they made a mistake and corrected it later. A mystery.
|
|
|
|
|
antbates wrote:
A mystery
MS and mystery... dont ask
I was born intelligent Education ruined me!.
|
|
|
|
|
What is this gift-registry? Actually I was asked to do something with a retail store site. And this part popped up. Cananyone guide on this please??
I was born intelligent Education ruined me!.
|
|
|
|
|
For an example of a gift registry site go here.
The site is used usually for wedding gifts. The happy couple to be choose the gifts that they wish to receive on there wedding day and save their selection to an "account". The account name and password can then be given out to their guests who can log into the gift registry site and buy the gifts that the couple have selected.
It's similar to a wish list, except access can be gained my many parties.
|
|
|
|
|
Thanks.
I was born intelligent Education ruined me!.
|
|
|
|
|
I decided to have a go at making a webpage that doesnt use tables..and came up with this http://www.onyeyiri.co.uk/idea/[^] it displays fine in IE, but when nonny tested it in mozilla, it wasnt a bit off, any gurus out there want to point out my mistakes?
To those who didn't make it, we will remember you. To those who did is back. - Megan Forbes in Black FridayAnother Post by NnamdiOnyeyiri
|
|
|
|
|
|
thanks for that, the pages pass the tests now.
To those who didn't make it, we will remember you. To those who did is back. - Megan Forbes in Black FridayAnother Post by NnamdiOnyeyiri
|
|
|
|
|
I played around with the stylesheet a bit, and came up with something that seems to work mostly fine in both browsers, but isn't quite the same I can't remember all the changes, but you can take a look for yourself:
http://lugatgt.org/temp/main.css[^]
I also had to remove the <?xml ... > header on the index.html (but left the DOCTYPE declaration) since it seems like IE was getting confused and reverting to quirks mode.
- Mike
|
|
|
|
|
You have really cool design ideas.
Do you do Flash...?
I'm drinking triples, seeing double and acting single
|
|
|
|