Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~7K People Reached
About Me

Student

Member Avatar for martinkorner

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 …

Member Avatar for guruparthi
0
1K
Member Avatar for martinkorner

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 …

Member Avatar for Danny696
0
197
Member Avatar for martinkorner

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>');} //--> …

Member Avatar for MattEvans
0
157
Member Avatar for martinkorner

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 …

Member Avatar for Michael_Knight
0
109
Member Avatar for martinkorner

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 …

Member Avatar for mario.stoica
0
171
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
141
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
305
Member Avatar for martinkorner

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 …

Member Avatar for MattEvans
0
131
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
325
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
226
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
385
Member Avatar for Dani

I have an all-CSS drop down menu with a z-index set to 100. However, it still appears behind some form elements and flash advertisements. What can I do to fix this? Thanks

Member Avatar for Dani
0
109
Member Avatar for martinkorner

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 …

Member Avatar for UberAAZ
0
428
Member Avatar for Barabus

First of - I'm almost a newbie. I messed around a bit with PHP 4 for a while until things got scary and they switched Globals on in 4.2 - where I had to then re-write my scripts all over again. It seems that with every upgrade you need to …

Member Avatar for martinkorner
0
339
Member Avatar for martinkorner

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 …

Member Avatar for tgreer
0
149
Member Avatar for martinkorner

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:

Member Avatar for tgreer
1
1K
Member Avatar for martinkorner

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]

Member Avatar for PoA
0
129
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
217
Member Avatar for raywood5

I am looking for a script that will promt the user to bookmark my site when they try to close the browser. I have seen them in the past I cant seem to find one now that I need it.

Member Avatar for martinkorner
0
204
Member Avatar for martinkorner

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 …

Member Avatar for zippee
0
348
Member Avatar for martinkorner

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 …

Member Avatar for martinkorner
0
197
Member Avatar for martinkorner

Is it possible to have a small page load (saying thanks for visiting etc.) when the user closes my website? Thanks [B]Martin[/B]

Member Avatar for martinkorner
0
147