January 19, 201214 yr Hi guys, I need to ask a big favour. My boss wants me to set up hosting, etc and get each site a coming soon page up, so it start getting domain authority until the sites are ready to go live. I was wondering if anybody has a simple bit of code of some kind that can pull the website url and put it on the page? So far this is my page (in HTML) <!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> <title>website url here</title> <style type="text/css"> body {background-color:706F6F;} h1{text-align:center;font-family:Helvetica;color:FFFFFF;} p {text-align:center;font-family:Helvetica;font-size:14px;font-style:normal;font-weight:normal;color:FFFFFF;} </style> </head> <body> <h1>Website Url Here</h1> <p>Coming Soon</p> </body> </html> whereever website url here is, I want the url to be auto pulled, so I dont have to edit 140 index files... I am even willing to pay somebody a small fee for their time/script/effort via paypal Thank you in advance
January 19, 201214 yr I pretty sure what you are asking is done automaically when the hosting package is created / goes live with a lot of host providers. Mine does.
January 19, 201214 yr <h1><?php echo $_SERVER['HTTP_HOST'] ?></h1> Edited January 19, 201214 yr by Spitfire
January 19, 201214 yr Author no, its for a client of his. But I am asking, on behalf of myself - who has been tasked with this massively laborious job. I am sure there is a simpler way then editing 140 index.html files, but I am no script guru. I understand it may seem cheeky, hence why I am willing to pay a small fee for what maybe just a simple script somebody could give me (which they may have just hanging around), so I can just upload the file to all the hosting packages, rather than editing the files, then uploading them. Cheers <h1><?php echo $_SERVER['HTTP_HOST'] ?></h1> Just trying it now, will respond back in a mo. Thanks Edited January 19, 201214 yr by jamesosix
January 19, 201214 yr try spitfires.. just make sure you name the files index.php rather than index.html
January 19, 201214 yr Author I pretty sure what you are asking is done automaically when the hosting package is created / goes live with a lot of host providers. Mine does. Mine doesnt, its on fasthosts (I know - not my choice) Will do Oakleaves, cheers
January 19, 201214 yr Author spifire, works a treat, thanks very much. I owe you a beer! Please check your pm
January 19, 201214 yr spifire, works a treat, thanks very much. I owe you a beer! Please check your pm ...and that is why everyone should have a beer link.
January 19, 201214 yr Author spifire, works a treat, thanks very much. I owe you a beer! Please check your pm I think a reward system in the forum like that would be a great addition for people who really do help . I have offered spit a bit of cash for some beers or cookies, but he politely declined Edited January 19, 201214 yr by jamesosix
January 20, 201214 yr That's quite a good idea. Be good to have it implemented into the forum as a Paypal donation or something.
January 20, 201214 yr That's quite a good idea. Be good to have it implemented into the forum as a Paypal donation or something. There's probably someone on the forum who's good at that sort of thing......
January 20, 201214 yr There's probably someone on the forum who's good at that sort of thing...... let's hope so
January 20, 201214 yr That's quite a good idea. Be good to have it implemented into the forum as a Paypal donation or something. Based on the response to my beer link, I can't see it catching on... unless I just give really bad advice. Edit: The +Rep button doesn't get used anywhere near as much as it should either. I try to Rep people when I see a good answer, but a lot of people disappear once they've had their questions answered without even bothering to say "yup, that worked" - which makes the thread less useful for the next bod with the same question. Edited January 20, 201214 yr by Renaissance-Design
January 20, 201214 yr Thinking about it a bit further, that sort of micropayment system would only really stand a chance of working if there was a clear way to identify Q&A posts, and accompany them with something like (pseudocode): $user has asked $nq questions and rewarded $na answers
Create an account or sign in to comment