- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Student
22 Posted Topics
Hi, I am trying to write a .htaccess script that can redirect any URL on my site (whether it exists or not, including sub-domains) to the index page of that site. For example: example.com/pages/page.htm ---> example.com sub.example.com/page.htm ---> example.com error.example.com/error ---> example.com I've tried a few things with mod_rewrite but … | |
Hi, I need to put a time on my website which simply shows the current GMT London time... I tried using[inlinecode]<? echo date("g:ia") ?>[/inlinecode] but for some reason it displays the time exactly one hour ahead of my time. It should be displaying Europe/London time. (I do live in the … | |
I have some music in the background of my website (Let it snow.mp3) - using the following code: <script language="JavaScript"><!-- if(navigator.appName=="Netscape"){ document.write('<embed src="let it snow.mp3" autostart="true" loop="true" controls="SmallConsole" width=50 height=15></embed>');} else if(navigator.appName=="Microsoft Internet Explorer"){ document.write('<embed src="let it snow.mp3" autostart="true" loop="true" width=70 height=25></embed>');} else{ document.write('<embed src="let it snow.mp3" autostart="true" loop="true"></embed>');} //--> … | |
I would like a .htaccess file which rewrites .php files as .htm files, however, if the .php file doesn't exist - try simply opening the .htm file with the same name. It also needs to do a 301 redirect for anyone visiting any page on a certain domain (using same … | |
I am currently reading and displaying the entire contents of a text file using the following code: [ICODE]$html_get = file('content.txt'); foreach ($html_get as $html_num => $html_text) { echo $html_text; }[/ICODE] I would like, however, to have the code read the contents of the text file up to a certain line … | |
Hi, I went to... [url]http://www.mv.com/webtools/forms-info/form-submit-ex-em.html#em[/url] ...and I copied the text for each file, saved them as: em.html em.submit em.template em-done.html I then changed the e-mail address in "em.submit" to mine. And the address in em.html from "/cgi-bin/form-submit/ipusers/jruser/forms/em" to "[B]/cgi-bin/form-submit[/B]/mnt/storage/users/m/a/r/martinkorner/form test[B]/em[/B]" The bold is what I think I was told to … | |
I'm using [INLINECODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/INLINECODE] (xhtml strict doctype) for a site I'm designing and when I validated it, I found that you cannot have [INLINECODE]target=""[/INLINECODE] included else it's not valid. It then went on to say that I should use CSS to do this. I … | |
Hi, I have a simple ".htaccess" file which needs to do two simple things; It needs to allow php in normal htm and html files, and use my customized error pages. The following code is the contents of my entire .httaccess file: [code] ErrorDocument 400 /error/error400.htm ErrorDocument 403 /error/error403.htm ErrorDocument … | |
Is it possible to have a script on my site which says something like: [I]"Please click on at least 3 of the links below to continue to the download."[/I] Then, when the user clicks one of the specified links it opens in a new window and this page says: [I]"Please … | |
Hi, In the HTML forum I asked how I could get the results from a form which I will put on my site via e-mail, I was told: [QUOTE]Give them a form to fill. The form posts to a PHP, ASP, or ASP.NET program that stores the results in the … | |
On my site I use the following code to tell users when I last updated my website: [CODE]Last updated: ', new Date(document.lastModified).toLocaleString(), '[/CODE] This shows users something like this: [QUOTE]Last updated: 22 April 2006 12:53:12[/QUOTE] Would it be possible to remove the time, so it just says: [QUOTE]Last updated: 22 … | |
Re: Is there two of you, or has cscgal just had a short coversation with herself above? hehe Only kidding - Glad you sorted it out. Ive just started with flash and I've realised how much cool stuff you can do with it - I think it's ace! :lol: Martin :lol: | |
In the HTML, javascript + css forum someone told me that to make a download dialogue box pop up when a page is opened you can use the following script: [QUOTE]$file is the actual file (with the path included) $new_filename is the filename that you want to send to the … | |
Re: [QUOTE=chizy2]If you are a novice - DO NOT USE THIS PACKAGE - you must know server config and how to tweak the config files, but is a great package.[/QUOTE] I've just started with PHP and want to be able to test my PHP scripts without having to put them on … | |
Would it be possible to display only a message e.g. "Page Loading..." until the page has fully loaded, then display the fully loaded page? I don't know if this can be done with Javascript, css or html. Would it also be possible to show what percent of the page has … | |
How do I make a button that will bring up the download box for something on my website, without the user having to right-click and select "Save Target as..." :?: Thanks :lol: Martin :lol: | |
How do I download and install Apache HTTP Server on my Windows XP computer )so I can test my PHP scripts without having to publish the script to the internet every time)? [B]Martin[/B] | |
I want to put a form on my website which will work on any browser and preferably doesn't make the user have to see the e-mail and have to click send. If this isn't possible I would just like a form for my website which will work in internet explorer … | |
Re: I know a javascript code which will prompt the user to bookmark your page: You will need to change the following to your own details var url="ENTER YOUR WEBSITE ADDRESS HERE"; var title="ENTER A TITLE FOR YOUR SITE HERE"; Here's the code: <script language=javascript> <!-- Begin if ((navigator.appName == "Microsoft … | |
My home page is made up of two seperate web pages - one contents and one for the actual website. When a link in the contents is clicked it loads in the main web site page. When an external website is linked to my site it has to go to … | |
I have seen other Websites which have their logo next to their web address where there is normally a picture of an "e" on top of a piece of paper (See the right hand side of the address bar on this page). Do you know how I could change it … | |
Is it possible to have a small page load (saying thanks for visiting etc.) when the user closes my website? Thanks [B]Martin[/B] |
The End.