Web Design Forum: Need a small favour - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need a small favour php script to display the page url Rate Topic: -----

#1 User is online   jamesosix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 16-June 10
  • Reputation: 20
  • Gender:Male
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:SEO

Posted 19 January 2012 - 04:27 PM

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 :D

Thank you in advance :D
0

#2 User is offline   oakleaves 

  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,395
  • Joined: 16-July 11
  • Reputation: 173
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 19 January 2012 - 04:35 PM

So your boss wants to set up 140 different sites?
0

#3 User is offline   oakleaves 

  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,395
  • Joined: 16-July 11
  • Reputation: 173
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 19 January 2012 - 04:38 PM

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.
0

#4 User is online   Spitfire 

  • Mighty Pirate™
  • PipPipPipPip
  • Group: Members
  • Posts: 891
  • Joined: 05-February 11
  • Reputation: 189
  • Gender:Male
  • Location:Berkshire
  • Experience:Web Guru
  • Area of Expertise:Web Developer

Posted 19 January 2012 - 04:39 PM

<h1><?php echo $_SERVER['HTTP_HOST'] ?></h1>

This post has been edited by Spitfire: 19 January 2012 - 04:40 PM

2

#5 User is online   jamesosix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 16-June 10
  • Reputation: 20
  • Gender:Male
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:SEO

Posted 19 January 2012 - 04:42 PM

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

View PostSpitfire, on 19 January 2012 - 04:39 PM, said:

<h1><?php echo $_SERVER['HTTP_HOST'] ?></h1>


Just trying it now, will respond back in a mo. Thanks :D

This post has been edited by jamesosix: 19 January 2012 - 04:46 PM

0

#6 User is offline   oakleaves 

  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,395
  • Joined: 16-July 11
  • Reputation: 173
  • Gender:Not Telling
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 19 January 2012 - 04:44 PM

try spitfires..

just make sure you name the files index.php rather than index.html
0

#7 User is online   jamesosix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 16-June 10
  • Reputation: 20
  • Gender:Male
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:SEO

Posted 19 January 2012 - 04:47 PM

View Postoakleaves, on 19 January 2012 - 04:38 PM, said:

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) :p

Will do Oakleaves, cheers :)
0

#8 User is online   jamesosix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 16-June 10
  • Reputation: 20
  • Gender:Male
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:SEO

Posted 19 January 2012 - 04:50 PM

spifire, works a treat, thanks very much. I owe you a beer! Please check your pm
0

#9 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 19 January 2012 - 04:59 PM

View Postjamesosix, on 19 January 2012 - 04:50 PM, said:

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.
3

#10 User is online   jamesosix 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 446
  • Joined: 16-June 10
  • Reputation: 20
  • Gender:Male
  • Location:South Wales
  • Experience:Intermediate
  • Area of Expertise:SEO

Posted 19 January 2012 - 07:21 PM

View Postjamesosix, on 19 January 2012 - 04:50 PM, said:

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 :o

This post has been edited by jamesosix: 19 January 2012 - 07:22 PM

1

#11 User is online   Spitfire 

  • Mighty Pirate™
  • PipPipPipPip
  • Group: Members
  • Posts: 891
  • Joined: 05-February 11
  • Reputation: 189
  • Gender:Male
  • Location:Berkshire
  • Experience:Web Guru
  • Area of Expertise:Web Developer

Posted 20 January 2012 - 11:08 AM

That's quite a good idea. Be good to have it implemented into the forum as a Paypal donation or something.
0

#12 User is offline   hodephdesign 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 129
  • Joined: 18-January 12
  • Reputation: 10
  • Gender:Male
  • Location:Cardiff, Wales
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 20 January 2012 - 11:12 AM

View PostSpitfire, on 20 January 2012 - 11:08 AM, said:

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......

:lol:
0

#13 User is offline   SniderDK 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 697
  • Joined: 01-November 08
  • Reputation: 88
  • Gender:Male
  • Experience:Web Guru
  • Area of Expertise:Web Developer

Posted 20 January 2012 - 01:28 PM

View Posthodephdesign, on 20 January 2012 - 11:12 AM, said:

There's probably someone on the forum who's good at that sort of thing......

:lol:



let's hope so :lol:
0

#14 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 20 January 2012 - 01:59 PM

View PostSpitfire, on 20 January 2012 - 11:08 AM, said:

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.

This post has been edited by Renaissance-Design: 20 January 2012 - 02:17 PM

0

#15 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 20 January 2012 - 02:23 PM

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

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users