473,651 Members | 3,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

content manager without MySql

Hi folk

I would like to setup a website for someone where they can change some
content themselves (list of concerts).

The obvious choice is to use PHP and MySql, but is there a way to do it
without MySql. It will save me about US$15.00 per months, is it worth the
hassle?

Keen to hear your thoughts

- Nicolaas
Jul 17 '05 #1
6 1371
windandwaves wrote :
Hi folk

I would like to setup a website for someone where they can change some
content themselves (list of concerts).

The obvious choice is to use PHP and MySql, but is there a way to do it
without MySql. It will save me about US$15.00 per months, is it worth the
hassle?

Keen to hear your thoughts

- Nicolaas


You could use flat files for your content, and have some kind of
template mechanism that _marries_ these files with _placeholders_ in
your html templates.

eg....

aboutme.html contains somthing like this....

<body>
{PAGE_CONTENTS}
<div id="menu">
{STANDARD_MENU}
</div>
<div id="pagemenu">
{ABOUTME_MENU}
</div>
{STANDARD_FOOTE R}
</body>
....and your flat file could be called...
aboutme.menu.in c
and
aboutme.content s.inc
....
you could then fopen() these files depending on the page name, eg
"aboutme", the simply write to these files when your done.

then the contents of these could simply replace the placeholders in
your html page at runtime.

then you could go several level of include stuf, eg the aboutme.men.inc
could include another file "standard.menu. inc", and this could contain
references to each page in a partticular folder, etc..

--
a beef jerky web site : http://www.choicebeefjerky.com.au
not a beef jerky web site : http://mycoolfish.com/vote.cmks
if you pay for your gym memebership, use it

Jul 17 '05 #2
Disco Octopus wrote :
windandwaves wrote :
Hi folk

I would like to setup a website for someone where they can change some
content themselves (list of concerts).

The obvious choice is to use PHP and MySql, but is there a way to do it
without MySql. It will save me about US$15.00 per months, is it worth the
hassle?

Keen to hear your thoughts

- Nicolaas

Oh. BTW. to answer your question "is mySql worht it?" I say yes.
however, you may be able to find a cheaper rate then $15 per month.

--
a beef jerky web site : http://www.choicebeefjerky.com.au
not a beef jerky web site : http://mycoolfish.com/vote.cmks
talk to the teacher now and then about something other than the subject

Jul 17 '05 #3
Disco Octopus wrote:
Disco Octopus wrote :
windandwaves wrote :
Hi folk

I would like to setup a website for someone where they can change some
content themselves (list of concerts).
<snip>
Keen to hear your thoughts

- Nicolaas

Oh. BTW. to answer your question "is mySql worht it?" I say yes.
however, you may be able to find a cheaper rate then $15 per month.


The most valuable static component of most websites is likely to be its
data. You need to a safe place to keep it. The next most valuable component
is the code. If I were you I'd consider writing the code to use the dbx_
functions. Then implement the site using SQLlite (i.e. DBMS-less data
access, but via SQL). If at a later date you think it's worth the $15, or
you find a better hosting deal ($15 extra JUST for MySQL????) then it
should be a lot less painful to switch.

HTH

C.
Jul 17 '05 #4
Colin McKinnon wrote:
Disco Octopus wrote:
Disco Octopus wrote :
windandwaves wrote :
Hi folk

I would like to setup a website for someone where they can change
some content themselves (list of concerts).
<snip>
Keen to hear your thoughts

- Nicolaas

Oh. BTW. to answer your question "is mySql worht it?" I say yes.
however, you may be able to find a cheaper rate then $15 per month.


The most valuable static component of most websites is likely to be
its data. You need to a safe place to keep it. The next most valuable
component is the code. If I were you I'd consider writing the code to
use the dbx_ functions. Then implement the site using SQLlite (i.e.
DBMS-less data access, but via SQL). If at a later date you think
it's worth the $15, or you find a better hosting deal ($15 extra JUST
for MySQL????) then it should be a lot less painful to switch.

HTH

C.


Thank all of you. I think I am going to stick with MySql, because it sounds
like PHP does not really have its own DB system and I can just imagine the
thing mushrooming....
Jul 17 '05 #5
why spend $180 / year if you don't have to to? Start simple and build
in the complexity when you have to. Sometimes you'lll be surprised how
far the simple and cheap solutions will take you. You're just wasting
your time and money if you start with a complex solution to a very
simple problem. these are just my words of advice. i am no expert, but
as an engineer I can't stand to see someone build the 1$ bridge for
$10.

for your problem of updating a list of concerts all you need is a
simple script that reads the concert list file and displays it on the
webpage. If the edit flag is turned on like

myscript.php?us er_wants=edit

then you just display the concert list inside of a textarea field like
this perl code below:

open(F, $file_path) or die "could not open '$file_path' $!";
flock(F, 2); # lock file

print"<form action=/myscript.php method=POST>

<textarea name=message cols=75 rows=20>";

if ($password eq $pass & defined $user_wants){ print <F>;}

print"</textarea>";

Then some code like this to finish it off:

close(F);

echo '<CENTER><P><b > Enter Password:</b> <input type="password"
name="password" >

<input type="radio" name="user_want s" value="display" checked>
Display/ Edit Page
<input type="radio" name="user_want s" value="edit"> Save Changes';

print"<input type=hidden name=file_path value=$in_file_ path>";
print"<input type=hidden name=referer value=$referer> ";
print"<input type=hidden name=passwords_ list
value=$in_passw ords_list>";

print'<p> <input type="submit" value="Submit/ Update"> <p> ';

Spend the $180 per year when the above is no longer a solution as your
files are several MB large AND you have customers ready with these
large files.

Jul 17 '05 #6
el************* @yahoo.com wrote:
why spend $180 / year if you don't have to to? Start simple and build
in the complexity when you have to. Sometimes you'lll be surprised how
far the simple and cheap solutions will take you. You're just wasting
your time and money if you start with a complex solution to a very
simple problem. these are just my words of advice. i am no expert, but
as an engineer I can't stand to see someone build the 1$ bridge for
$10.

for your problem of updating a list of concerts all you need is a
simple script that reads the concert list file and displays it on the
webpage. If the edit flag is turned on like

myscript.php?us er_wants=edit

then you just display the concert list inside of a textarea field like
this perl code below:

open(F, $file_path) or die "could not open '$file_path' $!";
flock(F, 2); # lock file

print"<form action=/myscript.php method=POST>

<textarea name=message cols=75 rows=20>";

if ($password eq $pass & defined $user_wants){ print <F>;}

print"</textarea>";

Then some code like this to finish it off:

close(F);

echo '<CENTER><P><b > Enter Password:</b> <input type="password"
name="password" >

<input type="radio" name="user_want s" value="display" checked>
Display/ Edit Page
<input type="radio" name="user_want s" value="edit"> Save Changes';

print"<input type=hidden name=file_path value=$in_file_ path>";
print"<input type=hidden name=referer value=$referer> ";
print"<input type=hidden name=passwords_ list
value=$in_passw ords_list>";

print'<p> <input type="submit" value="Submit/ Update"> <p> ';

Spend the $180 per year when the above is no longer a solution as your
files are several MB large AND you have customers ready with these
large files.

Thank you for this superhelpful reply. I totally agree with keeping it
simple is usually the best way.

Thanks again
Nicolaas
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3041
by: Gemini | last post by:
Hello I am looking for the best content/article manager software, perferred open source, php, mysql backend.. can anyone recommend me one? I think that the best discussion is phpbb, the best e-commerce is oscommerce, what is the best article manager?
12
3190
by: jonathan.beckett | last post by:
Hi All, For the past few months I have been working on an open source Apache/PHP/MySQL content management system - and have recently made it available for download. It's still very much a work in progress (current release version is 0.4.6), but you should get a very good idea of what it's about by visiting the site (which uses it, funnily enough), or downloading a copy of it and trying it out.
1
2416
by: Epetruk | last post by:
Hello all, I'm sorry for the long post, but I think it's better if I'm as detailed as I can be so that I don't make a mistake in my choice and so that there's a clear understanding of to what I'm looking for. I'm looking for a content management system to use on a site (http://www.nigeriavillagesquare.com) that I help to moderate. Unfortunately (as I have discovered), there are literally hundreds of CMS's to choose from, so I am...
0
1385
by: Crercio O. Silva | last post by:
We are pleased to announce the new release 2.2.0 of the DBManager Professional. It is a major bug fix bringing stability and performance to the application. Also it adds support to SQLite databases and Xbase Tables which you can manage using the same way you do for MySQL and PostgreSQL. In next version support for Interbase/Firebird will be available. Here is the list of changes: a.. Added support for SQLite Databases b.. Added support...
0
2653
by: tobi | last post by:
Hello, Is there anybody who can solve my problems to install the IBM Content Manager? I have installed the software components in the following order: DB2 UDB MS Visual C++ WebSphere IBM Content Manager 8.2 After I have installed MS Visual C++ I have moved the Variables include, path and lib. Before I began to install I had matched the 3 CMS-User
2
1568
by: cda_Alford | last post by:
Hello, I applogize in advance for my lack of understanding and the lack of information I'm about to provide. I am out of my element and I'm hoping that someone here can help point me in the right direction. I have a customer who has images and index data for those images. I would like to extract the data and load it into a SQL Server database and I would like to extract the images and store them as tiff or jpeg files.
8
40631
by: Dakkar | last post by:
I wrote a program with c# for connecting mysql and taking data from it but when someone without me try to execute the program they are taking this error ERROR Data source name not found and no default driver
0
1649
by: balavigneswaran | last post by:
Do we need to have IBM DB2 Content Manager software, to use Content Manager OnDemand? Basically I'm confused between the two & wanted to verify whether IBM Content Manager is a mandatory software requried to use IBM Content Management suite. Thanks for your help. -Bala
1
4686
by: Ken Fine | last post by:
I have been investigating programmatically downloading FLV content from various sites ("video scraping"??) Many interactive GUI tools do this, such as the Orbit downloader. At the heart of them are packet sniffers which inspect the ethernet traffic coming over the wire. I would like to do this noninteractively in code. There is a .NET specific flavor of WinPCap called SharpPCap: http://www.tamirgal.com/home/dev.aspx?Item=SharpPcap...
0
8367
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8589
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.