473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Where to start

I've posted this to some other forums, though one hasn't been answered
yet and the other - well not sure if it was the correct place to do so.

Here's my deal.

I'm looking at upgrading my current perl based shopping cart to a PHP
MySQL driven cart / database.

I've installed and configured PHP successfully. I habve no experience
with MySQL, I went to install MySQl (I'm running 5.4-RELEASE FreeBSD
5.4-RELEASE) I went into ports and see

mysql++/ mysql-navigator/ mysql40-client/
mysql50-client/ mysqlman/
mysql++1/ mysql2odbc/ mysql40-scripts/
mysql50-scripts/ mysqltcl/
mysql-administrator/ mysql2pgsql/ mysql40-server/
mysql50-server/ mytop/
mysql-connector-java/ mysql323-client/ mysql41-client/
mysql_last_value/
mysql-connector-odbc/ mysql323-scripts/ mysql41-scripts/
mysqlcc/
mysql-editor/ mysql323-server/ mysql41-server/
mysqlcppapi/

Does anyone know what is required?

Do I need server? Cleint? Both? Scripts? What is the typical
installation for MySQL?

Secondly - Are there any security risks I should be aware of with
permissions or stored locations of files/db's ?

I'm not a book reader, but I love online resources. Can anyone point me
to recommended sites that cover the basics through advanced MySQL -
With ample real-world examples?

Thanks,

Henry

Jan 23 '06 #1
4 1950
custodian wrote:
I'm looking at upgrading my current perl based shopping cart to a PHP
MySQL driven cart / database.
Are you aware of existing solutions? Like this one:
http://www.zen-cart.com/modules/frontpage/
I've installed and configured PHP successfully. I habve no experience
with MySQL, I went to install MySQl (I'm running 5.4-RELEASE FreeBSD
5.4-RELEASE) I went into ports and see

mysql++/ mysql-navigator/ mysql40-client/
mysql50-client/ mysqlman/
mysql++1/ mysql2odbc/ mysql40-scripts/
mysql50-scripts/ mysqltcl/
mysql-administrator/ mysql2pgsql/ mysql40-server/
mysql50-server/ mytop/
mysql-connector-java/ mysql323-client/ mysql41-client/
mysql_last_value/
mysql-connector-odbc/ mysql323-scripts/ mysql41-scripts/
mysqlcc/
mysql-editor/ mysql323-server/ mysql41-server/
mysqlcppapi/

Does anyone know what is required?
First deside what version of the server you wish to use. There seems to
be 3.23, 4.0, 4.1 and 5.0 available. I suggest 4.1 or 5.0, depending
which you prefer more. Stability or new features. (Not saying that 5.0
wouldn't be stable.)

You need at least the server package (this is the minimum) and I would
personally not work without the client package as command line
connection is most usefull when debugging problems.

I'm not sure how are you planning to connect PHP to MySQL, but if you
are running it as a module, you will need somekind of a php-mysql
module. And if you are running as a cgi, you will need to compile with
--with-mysql (or something like that) or install the cgi which has mysql
support build in it.
Secondly - Are there any security risks I should be aware of with
permissions or stored locations of files/db's ?
It depends how it is installed. I have no idea how it is done in your
system.
I'm not a book reader, but I love online resources. Can anyone point me
to recommended sites that cover the basics through advanced MySQL -
With ample real-world examples?


Solutions to pretty much every problem asked in here can be found from
the manual:
http://dev.mysql.com/doc/refman/5.0/en/index.html
Jan 23 '06 #2
"custodian" <he****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
I've installed and configured PHP successfully. I habve no experience
with MySQL, I went to install MySQl (I'm running 5.4-RELEASE FreeBSD
5.4-RELEASE) I went into ports and see .. . .

The FreeBSD ports directory does not contain full software packages. You'll
probably notice if you run "du -s mysql*" under ports that the contents of
each of these directories is surprisingly small. The directories contain
only the source diffs needed to get a given package to compile on FreeBSD.
Frequently these diffs are very minor.
Does anyone know what is required?

Do I need server? Cleint? Both? Scripts? What is the typical
installation for MySQL?
It would be easiest to download precompiled binaries for FreeBSD here:
http://dev.mysql.com/downloads/mysql/5.0.html

Scroll down to "FreeBSD tar format downloads" and download the kit for
FreeBSD 5.x (x86). I'd recommend choosing the "Max" MySQL download. It
should have all you need.

Also note the general issue using PHP with MySQL 4.1 or later. Read the
note on PHP on this page:
http://dev.mysql.com/doc/refman/5.0/en/old-client.html
Secondly - Are there any security risks I should be aware of with
permissions or stored locations of files/db's ?
Any server software has security risks if managed improperly.
The question is too broad to answer here.
You should read this section of the manual and its subsections:
http://dev.mysql.com/doc/refman/5.0/en/security.html
I'm not a book reader, but I love online resources. Can anyone point me
to recommended sites that cover the basics through advanced MySQL -
With ample real-world examples?


http://dev.mysql.com/doc/refman/5.0/en/tutorial.html
This tutorial doesn't cover writing web applications, but just using SQL

You can also google for "mysql php tutorial" and find dozens of online
articles.

Regards,
Bill K.
Jan 23 '06 #3
Wow, thanks to both of you for the input. It's a little much to absorb.
I'm not new to unix at all, but very green to both php and My/SQL.

All this for a shoppingcart. My main issue was attempting to get away
from cgi-bin paths and other session indicators in the url to make
indexing from the search engines more apt.

I was so happy with my current perl cart :( Oh well, guess I'm off to
do some learning.

Henry

Jan 23 '06 #4
Aggro

I had looked into Zen and I like the idea of free (as most do) though
I'd like to be able to create a single db and set each individual
regisitered account as either retail or wholesale - this is the #1
reason for my switch from my current cart; which is only retail and has
not account features... you come, you buy, you can review your record
based on your email and that's it. I'd like to keep account settings
seperate, retain cust info for quicker return checkout, inventory (ie:
1 left) etc...

Please correct me if I am wrong, but from what I see Zen does not do
some of these and the screen shots are extremely small :)

Usually if I get a perl app that is close to this I could modify it to
accomidate me, though with no experience with php or sql, I'll need
something more complete until I can get a grasp on it and feel
comfortable to modifications, testing and reverting if need be.

Henry

Jan 23 '06 #5

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

Similar topics

2
by: Nat | last post by:
Hi there, I have code as following but it returns error Error Type: Microsoft VBScript compilation (0x800A03F6) Expected 'End' /urbisjhdintranet/metadata/resultList.asp, line 324 which is the...
2
by: MT McNasty | last post by:
Hi. I'm trying to start modifying a VNC client (say RealVNC or UltraVNC). My problem is that I don't even know where to begin? I can't find a list of API's on any of them, and I just don't know...
2
by: GAVO. | last post by:
This probably is not the best group to post this question but any ways. I've been working with ms access for the last couple of years and gotten very good at it. I have never been on any ms...
7
by: Mr. Mountain | last post by:
In the following code I simulate work being done on different threads by sleeping a couple methods for about 40 ms. However, some of these methods that should finish in about 40 -80 ms take as long...
14
by: Odinn | last post by:
Greetings , This is my first year at programming and 3rd week at this so count me as a pure newbie. I am trying to make a program that gets a number and prints out starts as this: For input 3 :...
3
by: saundra | last post by:
This appears to be the code that is giving me trouble. Can someone help <? include("common.php"); require_once("$HeaderFile"); if(empty($_GET)){ $Start = '0'; }else{ $Start = $_GET;
5
by: =?Utf-8?B?cm9jY28=?= | last post by:
Hello, easy question: - what are the best books to start learning C#? Thanks! Rocco
2
by: Ceebaby via AccessMonster.com | last post by:
Hi Folks I wondered if someone could point me in the right direction before I completely tear my hair out. I have a user selection form where options can be selected for a report. Users now...
37
by: Phlip | last post by:
1230987za wrote: Kanze is a classically-trained "unit tester". In some circles "unit" is a QA concept - specifically, if a test fails, you only need to inspect one unit. So "units" are...
2
natalie99
by: natalie99 | last post by:
Hi All I thought this would be easy but I am having great difficulty! Could someone kindly please explain where I am going wrong? I have a single table of data, tblA each line shows a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.