LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 06:23 PM   #1
Jorophose
Member
 
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Rep: Reputation: 15
Any good PHP programmers here?


(I want to know if this is possible in PHP. If you know it won't work, PLEASE suggest another language. If it will, let me know what I should read up on, give me examples, etc. so I can learn.)

How can I make a page editable in the browser with PHP?

What about discussion pages? Not ala wikipedia, nor a full-blown forum, rather something like what Desktop Linux uses. (http://desktoplinux.com/cgi-bin/boar...oard=talkbacks) I'd love to avoid JavaScript, and possibly databases too in the process.

(Just not something I'd like to deal with.)

What I'm interested in doing is building a system like MediaWiki, except... more static pages. Less reliance on databse. Much more of a mobile operation; I want to lower the amount of reliance on databases and javascript as possible; I'm look for much more server-side, and much less client-side.

IMHO, the wiki is great, but it's got a horrible interface.

Oh, and why I didn't take the mediawiki system and change the stylesheets and modify other stuff like that? I want to get rid of wiki-formatting too. I want to go for an HTML/XHTML or XML-based site instead. (If PHP can work with XML. Haven't read up on it)

Also, I need help organising the actual content. Do you think I should go via categories, via letters/numbers, or just dump them all in one (HUGE) directory? What I'm planning to make it look like is:

me.moo/index.php[/url]

But then for content, either:
me.moo/s/a.php?=Archeology
(If PHP handles pages like that)
or
me.moo/s/news.php?=09_05_07
me.moo/s/warhammer.php?=Dark_Elves
or
me.moo/van.php?=Something_Here_Or_Whatnot

(The "s" represents "static". There will also be "d", "developper". I'll possibly make it like d.me.moo or whatever.)

The idea behind the interface is that all pages are static. No javascript if possible, and PHP does everything server-side only. Where it gets interesting is that there will be a discussion system, where additions can be discuessed, and there will be a nightly-build section; at midnight (or as late as possible), the static pages are archived, and the well-worked nightly-build pages (Any one that had good content added) will either replace, or simply help re-build, the static pages. Oh, and you don't need to register to add anything to the nightly builds, which won't be as highly-moderated (In theory) because it's more of a draft than real information. The discussion board might need registration, and the static page editing will definately require registering, and most likely moderator-level powers.

(In the case of no static page available, the user is prompted to either go to the nightly-build, to either start it or view it, or look for something else.)

It's supposed to help the creadibility of wikis. Generally people don't trust wikis because of the fact that anyone can edit them, and then there's some wikis that just hate you and force you to register before editing things. I'm hoping this system can prove to be credible while still keeping an open-mind. The only thing I'm afraid of is people making edits in the nightly-build section, but having them removed by spammers. I guess the best thing to do would be keep a (sadly, long) log of who posted what somewhere on the server.

Thanks to anyone who's crazy enough to read all of this and help me out.

PS: Sorry if this post reads badly, I wrote it kind of as I went along, so you know not much structure.

PPS: All programmers are good ones except for me :P

Last edited by Jorophose; 05-09-2007 at 06:24 PM.
 
Old 05-09-2007, 09:32 PM   #2
buggabill
Member
 
Registered: Jun 2006
Location: Maine, USA
Distribution: Kubuntu 8.10/Debian Lenny
Posts: 30

Rep: Reputation: 15
I may be wrong here, but this sure sounds like a situation for a content management system.

Check out http://www.joomla.org/
 
Old 05-10-2007, 05:16 AM   #3
chrisranjana.com
LQ Newbie
 
Registered: May 2007
Location: chennai India
Distribution: Chrisranjana.com
Posts: 1

Rep: Reputation: 0
cms systems

If you could take a tour of all features present in Drupal or Joomla or wiki or even wordpress and then if you can post the things that you would like done in addition to the already existing features I guess more help will be forthcoming

For e.g you can pass protect wiki pages so that no everyone can edit them etc
 
Old 05-10-2007, 03:17 PM   #4
Jorophose
Member
 
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks for the Joomla link... But I think I'm just going to mix+match the parts that I want.

One critical thing though: How do I get the "something.php?=Something" effect that I see sometimes? And can it cross directories? (IE: "something" could be at /blag/soft/something)
 
Old 05-10-2007, 05:45 PM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Isn't it http://httpd.apache.org/docs/2.2/rew...ite_guide.html thing?


And what's the difference between your system and the wiki? Each edit creates new html file? As I understand, you need a online WYSIWYG editor, which is done with javascript. PHP is only preprocessor, it can't interact with the user directly.
 
Old 05-10-2007, 06:31 PM   #6
Jorophose
Member
 
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Original Poster
Rep: Reputation: 15
There's some other stuff I wanted to try and build; notably the discussion forum thingie. I don't like the way wikis handle it; IIRC, they all use the Talk pages, which are just like regular pages, except they hold little content. And I also wanted to figure out the whole navigating-with-php system.

I'm pretty sure though I wouldn't need Javascript for uploads and messaging and stuff; I've seen uploading via CGI, and I'm sure it's not overly difficult to strip as much JS possible out of the pages for the editing process.

Of course, the real reason I won't go with a wiki is the wiki syntax. It drives me nuts. I just want people to use XHTML directly, or a custom XML. I don't want something that I don't enjoy using.
 
Old 05-15-2007, 06:58 PM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
With PHP it is no trouble to just load up an existing html page on the server, and ship it to the user in an html textarea. If you do a proper job of separating your content from your structure, the only html the user sees will be the content. I don't see why you wouldn't want to put that content in a database and just pick it from there, but there is no law that says you have to.

Just fopen the html file, read it in as a string, and ship it to the user. No biggie. User changes it, ships it back, you save it off.

Of course, you'll need to be careful because a php script configured to do this could in principle fopen any file and ship the information. This would be a really bad security problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for good programmers Dralnu Linux - Games 36 11-09-2006 09:23 PM
to all php programmers hokagi_ninja Linux - Newbie 1 01-17-2005 07:28 AM
PHP Programmers and HTML wanted Goblin Programming 0 08-31-2003 10:45 AM
any good c programmers around??? black111 Programming 8 05-23-2003 06:41 AM


All times are GMT -5. The time now is 10:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration