HTML - Need To Get The Server Name/host Name Using Html Code
Hi,
My requirement is to write a piece of HTML code that will give me the server name / host name of that particular environment. I am trying to pass on the server name to another application which will run in different environments. Any idea will be appreciated. Thanks Similar TutorialsI am trying to get some information out of an html string and I am not getting any luck and preg_matching is a little new to me. Here is the text <A href="http://www.dentalplans.com/afftracker.asp?affid=14511&cr=4210" target="_blank"><img src="http://images.dentalplans.com/images/336x280/336x280dp.gif" width="336" height="280" border=0 alt="Affordable Dental Coverage from DentalPlans.com"></a> What i need to do is extract all the host stuff and the image stuff into 2 seperate variables Same he <script type="text/javascript"><!-- google_ad_client = "pub-8284804724746047"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728x15_0ads_al_s"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Can anybody help? (It's very urgent) I am an Admin for a PC gaming clan ( |ESF| ), and we have several game servers. Our goal is to have a random "server of the day" widget on the main page of the site. Here is what we need it to do: > Show the same server for all visitors to the page > Show the same server for a 24 hour period, say from 12am - 11:59pm > Have the code editable in case we change/add/remove a server I have some experience in Vb6 and Vb.Net, but not much HTML. I would assume the code would be something similar to: Dim SOTD As New String (Server of the Day) "Server List" Dim s1 As New String (Server 1) Dim s2 As New String (Server 2) Dim s3 As New String (Server 3) If TimeOfDay Is 12:00am Then Show SOTD(Random Server from List) Until TimeOfDay Is 11:59pm End If I know that isn't close to HTML, but it should help get the overall point across. Any help to get us closer to this goal is MUCH appreciated. If I wasn't specific enough with the above information, please let me know what else you need to know. It's very late and I'm super tired. Thank you in advance. Hi, I am not too sure if this is doable, but I have several buttons that let you put in an image location. Then at the bottom you click another button. I want this button to upload those images to my server. I know this sounds confusing, sorry. Does anyone know how to help me with this? thanks, David This is what I want to do but I'm not sure how it's possible. I have an HTML script that I want to run/show. But I want to host that script somewhere in DropBox or a hotlinked location on a server. So ideally when the script runs it'd run a script to run the HTML script file in DropBox. This is to be able to deactivate the script if I need to without having to go into the initial script's source. There will be alot of initial scripts with matching external scripts. So logically it'd feel like this... source code: run script: server.com/script.html then it'd run it. by displaying what the HTML says to. Does this make sense? Any help would greatly be appreciated. I'm sure this is an easy code to write. If HTML can't do this, what can? I need an HTML script I can embed. Thanks!! XTC I need to keep a html page open for ever on web server no matter who is login Is it possible? (do not ask the reason) I want to make a page in html in which i want to make upload option for uploading image to server using html language. Anyone who can instruct me to do so. I am trying to use a font that isn't one of the 12 most common for pc and mac (arial, verdana, times ect.) but dont want to make everything an image. I would like to use the font on the page text. How would i go about using it? I want to load a local html file in an IFrame. The main page is loaded from a remote site (http://www.mysite.com). How can I do that if I don't have a web server installed on the local machine? Is there any workaround? Thank you! My html problem keeps failling, with all my image codes.. shown for 10 errors which are all for the images what's wrong? Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- New Perspectives on HTML and XHTML 5th Edition Tutorial 2 Case 2 Fiddler Home Page Author: Date: 2-16-2011 Filename: home.htm Supporting files: fiddler.jpg --> <title>, ITSE 1411 Lab Project 2, Tutorial 2 Case 2, Due 02/23/2011</title> </head> <body> <div> <img src="fiddler.jpg" alt="Fiddler on the Roof" /> <hr /> <a href="home2.htm"><img src="home.jpg" alt="home" /></a> <a href="slide1txt.htm"<img src="start.jpg" alt="start" /></a> <a href="slide1txt.htm"<img src="back.jpg" alt="back" /></a> <a href="slide2txt.htm"<img src="forward.jpg" alt="forward" /></a> <a href="slide6txt.htm"<img src="end.jpg" alt="end" /></a> <br /> <a href="slide1txt.htm"<img src="thumb1.jpg" alt="slide1" style="border-width: 5" /></a> <a href="slide2txt.htm"<img src="thumb2.jpg" alt="slide2" style="border-width: 0" /></a> <a href="slide3txt.htm"<img src="thumb3.jpg" alt="slide3" style="border-width: 0" /></a> <a href="slide4txt.htm"<img src="thumb4.jpg" alt="slide4" style="border-width: 0" /></a> <a href="slide5txt.htm"<img src="thumb5.jpg" alt="slide5" style="border-width: 0" /></a> <a href="slide6txt.htm"<img src="thumb6.jpg" alt="slide6" style="border-width: 0" /></a> </div> <hr /> <div> <img src="slide1.jpg" alt="slide1" /> </div> <blockquote> <p><i>Do You Love Me?</i> sung by Deb Ingalls and Thomas Gates</p> </blockquote> </body> </html> Hi, i'm a noob in html, i decided to give it a go in Dreamweaver without any templates, however I uploaded it to one of those free hosting services like 007 GB host and the index.html comes out dead weird ? please visit http://1001magiccards.007gb.com/ to see what i mean, dont worry its not one of those PPC advertises Thanks I want to post a table on another forum site, which doesn't allow processing of HTML code for members, in threads. Is there somewhere I could store this file, so that I can just post a URL to it on that forum, for others to access the processed table. The data in the table needs to be accessable from a Google search...I could post the list as a jpg image, but the data would be dead. I am wanting to embed a swf file in my website. I have worked out how to do this, but I need to upload my flash file to a url somewhere else. I have read about wordpress being used for this, but I don't want to use Wordpress. Is there any other sites I can use. Note: the files need to be given a url that they can be viewed from. Thank you. Bethan Hi, im mounting an apache server using Uniform Server to access remote files or VPN or VNC and Im making like a home page. Inside the home page there are three different links: one for accesing the file server, other for accesing via VPN and other for performing a VNC session to the server. My question is, how can I set the link parameter for accesing to the different services? They are hosted in different ports but in the same server. Hi all, Please excuse all of my ignorance. I am teaching myself (and being taught by nice people like yourselves) on html and website building. Mods, I was unsure as to where to put this and apologize if I am in the wrong section. This will be a semi long post as I have lots of questions for all of you. I will organize it into sections in hopes to get a more detailed response. The Background I have experience with basic html and have (until now) only used free web servers with web site building tools and just used html for templates and buttons etc. I run my own fish/aquarium supply business and wanted my own .com name instead of a sub-domain. So my better half bought me a a domain and basic hosting package from godaddy.com -I am running OS X on a powerbook via safari and firefox. -My host is at godaddy.com -I am confused and in need of help. The Problem Well, so far for me being "good" with websites what a joke that was. Without a web site editor software like the free sub-domains come with I am lost. I understand a html editor would be the best and easiest way to make pages for my site? -My main problem is I cannot get html documents onto my website. I understand I should be using FTP? I have tried with no success, I am unsure as to which folder to even move the page to, I dont even know which one is my home page *Blushes* -I am very new to FTP and would like some advice for the best way to transfer HTML to a site. -I also dont know how to name the page i.e.: mypage.com/AboutUs.html (How do call the page "about us") -I have tried looking around on go daddy for some answers and havent found much info besides it telling me to use FTP to upload files. I must not have done it right because i am still getting the "oops this site isnt up yet" message. If you couldnt tell I need a lot of help. I really just need to know how to get my first few pages up and running....I just dont know how to get the files from where they are on my computer to my site, since the package I have doesnt have a website builder/software. If your willing to educate me, Im willing to learn. All help is appreciated and feel free to laugh at my ignorance. Im doing my best. Drew P.s. Do you need the name of my site in order to help me? If so, Am I allowed to even post the name of my site for reference purposes? Hello! I have a blog on blogger and i want to make a c++ tutorial.. But every time i type "<iostream>" on post, when i see it, it is only "iostream". How can i make a code like the "[code]" from BBcode to cancel the compiling from HTML? Thanx! Hello, I am trying to hose just a single splash page with a background image, a logo & a couple of links. I only need this free/cheap hosting for 1-2 months. Any ideas who would work for this? I'd prefer free. There may be a lot of traffic at some point to the splash page, but the only thing they will be able to do from that page is email or go to the myspace page. So I dont think I need a lot of disc space, but not sure how the bandwidth will be used since there techincally isnt anything there but a logo and a couple of links? No nudity will be on this particular splash page, so I assume I can host the file(s) any where. Hello everybody, I'm new here. I'm redesigning my own website and came up with some tricky situation. I write HTML lessons and I want to put just the pure code in my posts, but they appear as a regular html document... How do I make the code to be shown just as text (code), like we do in the forum boards (code tags or whatever)? I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. Dear Forum-goers, If I knew what to search for I would, but I don't know what this idea is called. I want to create a website with code that does the following: <body> (INSERT FROM OTHER HTML FILE: Page introduction) (INSERT FROM OTHER HTML FILE: Content) (INSERT FROM OTHER HTML FILE: Sidebar) </body> Is there a way to do this? If not, then okay. I've tried using <link />, which doesn't do the job. You'll see the line in question in blue font: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>This is the main page.</title> <link type="text/css" rel="stylesheet" href="journal.css" /> </head> <body> <link type="text/html" rel="content" href="tobelinked.html" /> </body> </html> Hey guys im new to html me and my friend have managed to get a website up and running only that we have a problem with the homepage code it's ok using firefox but when you use chrome or explorer it act's wierd: anyways : heres the website: http://viahacking.altervista.org could someone please fix it?? thanks |