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

How can I permanently change a html file? Is this done with PHP or what? Rate Topic: -----

#1 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Post icon  Posted 06 October 2007 - 11:12 AM

Hi again! :wr:
What I want to do is very simple.
I want to create a page for my site that only admins have access to (via password-protection, that's not my worry!).
This page is for the admin to write text in a box and then click a button named "Edit/Add". Then whatever text is in that text field gets inserted into the News-page of my site.

So I'm basically looking for a way to edit/add text to my page without having to edit the .htm file with an editor. I guess it should work the way forum-posting works, except that I can't use PHP! My host doesn't allow PHP, so is there a way to do it without it?

When editing the page with that box-interface and then clicking the button to submit, it should change permanently; so the actual html file now contains an extra DIV with the written text inside it - so any Javascript is out of the question (is it?)..

Thanks to anyone who can help me with my site, i.e. with this question!! :)
0

#2 User is offline   haku

  • 日本語 Ninja
  • Icon
  • Group: Staff
  • Posts: 652
  • Joined: 21-September 07
  • Location:Yokohama, Japan

Posted 06 October 2007 - 01:48 PM

You are going to need to use some sort of server side scripting. If PHP is out, then you have to find out what your host will allow - asp, ruby etc. Then you will have to learn it and write something in there, or maybe you can download a module or something.
0

#3 User is offline   benbramz

  • The buddy system:never fails
  • Icon
  • Group: Administrators
  • Posts: 1,794
  • Joined: 04-April 06
  • Gender:Male

Posted 06 October 2007 - 04:55 PM

View Posttemhawk, on Oct 6 2007, 07:45 PM, said:

So I'm basically looking for a way to edit/add text to my page without having to edit the .htm file with an editor. I guess it should work the way forum-posting works, except that I can't use PHP! My host doesn't allow PHP, so is there a way to do it without it?

As haku rightfully said, there is no way of doing this without server side language. Most hosts support server side scripting, i would suggest finding a new host.
QUOTE (Sirkent @ Sep 21 2007, 09:26 AM) <{POST_SNAPBACK}>
<monty python high-pitched female voice>I DON'T LIKE SPAM!</monty python high-pitched female voice>
0

#4 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Posted 07 October 2007 - 10:55 AM

Thanks a lot both of you!
The answer was expected, I wrote an email to my host this morning, trying to convince them to allow PHP; after all I have payed for my account there and I don't see a reason why I should be limited like this. I'm already looking for other hosts; by the way, who hosts :wr:? Maybe that could be an option...

Cheers!
0

#5 User is offline   Sirkent

  • Loose bits sink chips
  • Icon
  • Group: Administrators
  • Posts: 2,101
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 08 October 2007 - 09:44 AM

We used to be hosted by Hostgator.com (who would probably suit you fine) - they're quite cheap, reliable, and the service is very good. I forget the name of the company now hosting us, but the hosting package we use is a better solution if you're a reseller (as Herkalees is).
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) <{POST_SNAPBACK}>
Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

#6 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Posted 08 October 2007 - 09:56 AM

Thanks for that info :)
0

#7 User is offline   supasnail

  • W.R. Corporal
  • Icon
  • Group: Members
  • Posts: 112
  • Joined: 19-September 07

Posted 08 October 2007 - 03:25 PM

I'm astounded that your host doesn't allow php - even the cheapest of hosts that I have come across offer this as a minimum - particularly in these days of blogs - most of which are php based. I'd being interested, out of sheer curiosity in knowing who your host is and how much they charge you for the little they give in return. I don't know if it would be against forum policy to divulge this info - but I am curious ;) lol.
0

#8 User is offline   Sirkent

  • Loose bits sink chips
  • Icon
  • Group: Administrators
  • Posts: 2,101
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 08 October 2007 - 04:13 PM

Temhawk has already revealed in another thread that his host is freewebs. As they're free, it's not entirely surprising that they don't support PHP.
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) <{POST_SNAPBACK}>
Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

#9 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Posted 09 October 2007 - 08:35 AM

Well, freewebs is charging me a hundred dollars for this year. Wouldn't have paid if I had known that I'm going to find myself stuck with html, now that I am prepared to 'step up my game'. Hey supasnail, maybe you know of a good host and want to tell me (us)?

Thanks, yup :)
0

#10 User is offline   haku

  • 日本語 Ninja
  • Icon
  • Group: Staff
  • Posts: 652
  • Joined: 21-September 07
  • Location:Yokohama, Japan

Posted 09 October 2007 - 10:29 AM

A hundred bucks? Thats ridiculous! I spend 100 bucks (American) a year on my server, and I get 300 gigs of storage, 3000 gigs of bandwidth, and it supports a lot of stuff.

www.bluehost.com

It doesnt support ffmpeg though, which one thing I want.
0

#11 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Posted 09 October 2007 - 11:27 AM

I get 750mb of storage (but I think it's enough for me) and 25gb bandwidth. But again, no php and I doubt they allow any other server-scripting!

Thanks for the info though, sounds pretty superior. But I've been using freewebs all along, and I wouldn't know how to switch without losing a lot of money :/
Anyways, I still need to learn PHP a bit before it's even worth the switch; so does anyone here (perhaps a n00b) have time and Skype to teach me the basic basics? Even if it's just helping me how to test .php files on my computer (http://localhost/ or something?), would be great! :shifty:
0

#12 User is offline   supasnail

  • W.R. Corporal
  • Icon
  • Group: Members
  • Posts: 112
  • Joined: 19-September 07

Posted 09 October 2007 - 11:35 AM

If you install WAMP, which is the simplest way to get apache, mysql and php all installed and configured and ready for use, then you'll simply have to place your php files into your www directory and view in your web browser. Once that's setup, google for some basic php tutorials and you'll pick it up quite quickly.
0

#13 User is offline   Marc Amos

  • W.R. General
  • Icon
  • Group: Administrators
  • Posts: 2,835
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA
  • Interests:My wife's happiness, my own happiness, and front-end web development. In that order.

Posted 09 October 2007 - 12:31 PM

I want to be hosted by MediaTemple. I'll weep until that day arrives... and it WILL arrive.
0

#14 User is offline   Sirkent

  • Loose bits sink chips
  • Icon
  • Group: Administrators
  • Posts: 2,101
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 09 October 2007 - 04:43 PM

I've been hosted by MediaTemple and left. It's not al that great. Their shared hosting is average and the rest is very exensive. They're more of a status symbol tbh.
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) <{POST_SNAPBACK}>
Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

#15 User is offline   Marc Amos

  • W.R. General
  • Icon
  • Group: Administrators
  • Posts: 2,835
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA
  • Interests:My wife's happiness, my own happiness, and front-end web development. In that order.

Posted 09 October 2007 - 06:55 PM

View PostSirkent, on Oct 9 2007, 05:43 PM, said:

They're more of a status symbol tbh.

That's nearly why I want in... I'll be signing up for their dedicated server in the hopefully near future, and you know what website will benefit from that?
0

#16 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Posted 10 October 2007 - 09:17 AM

Thanks, I also heard of xampp, what is that? Is it only for windows? I installed it on my pc when it was still working, but I didn't know you had to put the php files in that directory.. So what's the difference between wamp and xampp, and what'd be better for a real starter like me?

Thanks though, I'll be looking for php tutorials again! :)
0

#17 User is offline   Sirkent

  • Loose bits sink chips
  • Icon
  • Group: Administrators
  • Posts: 2,101
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 10 October 2007 - 10:36 AM

WAMP and XAMPP install Apache, PHP, MySQL, etc for you and configure them automatically. They're good because the installation and configuration can be a real headache for most beginners. I've only really used XAMPP in the past, but I've heard good things about WAMP too and I can't imagine there's a great deal between them.
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) <{POST_SNAPBACK}>
Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

#18 User is offline   temhawk

  • W.R. Private First-Class
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

Posted 10 October 2007 - 10:52 AM

Thanks a bunch! :D
0

#19 User is offline   Matthean

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 18
  • Joined: 15-October 07

Posted 16 October 2007 - 07:08 PM

I know this is late, but I use XAMPP too. I have Apache/MySQL/PHP on my laptop, but the versions of each of those are "old." When I tried to install those with the latest versions on my new PC, I was having issues. I think there's an issue with PHP5 and Apache 2 that I couldn't get past. Installed XAMPP, updated the MySQL password, and was off and running.
0

#20 User is offline   sushil

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 7
  • Joined: 28-March 08

Posted 29 March 2008 - 05:34 AM

Ok, then i think you may try again to install PHP on your pc coz i think some file is missing from your installation cd or etc... so try again i am sure u will found succese.

This post has been edited by sushil: 29 March 2008 - 05:35 AM

0

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