Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with PHP

1 view
Skip to first unread message

Waqas Yousufzai

unread,
Jun 18, 2004, 11:05:41 PM6/18/04
to
HI,
I designed a website with paypal online shopping cart. I had to put buy now
and view cart button on every single page and generate pages as normal html
but it was a difficult and killer task because I had to change the code
manually in the buy now button if I wanted to change the prices.
I have seen view sites which are designed by PHP/MYSQL but not sure how to
do this. My web hosting company offers MYSQL database online but do I have
to design a database locally on my computer and then upload it on the server
or what?I wanna go for MYSQL because my web hosting company only supports
MYSQL because they have Linux servers.
Help needed to design a site with PHP/MYSQL.


Andy Heer

unread,
Jun 19, 2004, 5:06:36 AM6/19/04
to
Hi Waqas

You're best to install PHP and a web server, preferably Apache, on your
computer. Then you can experiment all you like without having to upload to
your remote server all the time.

It's easy enough to do - go to http://www.firepages.com.au/phpdev41.htm and
downlaod phpdev whcih will install PHP and Apache in one go.

Andy


"Waqas Yousufzai" <wa...@pacetech.co.uk> wrote in message
news:cb09u4$t7...@news01.netobjects.com...


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 14/06/2004


Tony W

unread,
Jun 19, 2004, 7:00:09 AM6/19/04
to
http://tinyurl.com/32k68
£25 + p&p will give you just about everything you would need to learn this.

You can install phpMyAdmin to administer MySQL through your browser (either
locally or remotely)
http://www.fuse7.co.uk/article/solution/29/

also see
http://www.awave.net/html/fusiontutorials.php

note: for reasons of shelf life and to save yourself a bunch of time, don't
bother with tutorials on the net that rely on REGISTER_GLOBALS being 'ON'
http://uk2.php.net/manual/en/security.globals.php
http://uk2.php.net/tut.php
http://uk2.php.net/manual/en/tutorial.oldcode.php

Cheers
Tony

"Andy Heer" <an...@TAKETHISAWAAYforthbusiness.co.uk> wrote in message
news:cb0v1m$2...@news01.netobjects.com...
: Hi Waqas

:
:


Waqas Yousufzai

unread,
Jun 19, 2004, 7:33:03 AM6/19/04
to
Thanks for your reply ANDY. I have downloaded PHPDEV but not sure how to use
it with netojects 7.

Waqas

"Andy Heer" <an...@TAKETHISAWAAYforthbusiness.co.uk> wrote in message
news:cb0v1m$2...@news01.netobjects.com...

Andy Heer

unread,
Jun 19, 2004, 8:24:51 AM6/19/04
to
1. Run the program that you've downloaded. That will install PHP, Apache and
MySQL.

2. You will now have a folder called phpdev. In that folder is a batch file
called 2k-NT-XP-phpdev_start.bat to start the web server for Windows 2000,
NT, XP and another called 98-ME-phpdev.bat to start it for Windows 98 or ME

3. In the phpdev folder is a sub-folder called www. Publish your web site
into that or a sub-folder within that.

4. Make sure that you publish your site with .php extensions to the page
names - see "Advance Publish" settings when you publish.

5. To incorporate PHP script into your web pages create a text box, press
Ctrl-T and enter your PHP code - or create the PHP scripts externally using
a PHP editor and then use <? include "myfile.php"; ?> in the text box. I
find the second method better because you just publish the site once and
then tinker with the external PHP files.
(If you are using PHP session you will need to put <? session_start(); ?> at
the beginning of each page - NOF7.5 is better for this.

6. When you publish your site, if you have followed step 3, NOF will open
your browser at something like C:\phpdev\www\mysite.index.php - this is no
good - to see the site via your local server you need to go to
http://localhost/mysite/ which is the same physical location on your hard
disk but means that your site is "served" rather than just displayed.

It sounds complicated but it's not really - give it a go!

Andy

"Waqas Yousufzai" <wa...@pacetech.co.uk> wrote in message

news:cb17le$5...@news01.netobjects.com...

Waqas Yousufzai

unread,
Jun 19, 2004, 8:41:53 AM6/19/04
to
Thanks Andy.
The thing is i want to design a shopping cart site with products in the
database and change prices there etc.
what would recommend?

"Andy Heer" <an...@TAKETHISAWAAYforthbusiness.co.uk> wrote in message

news:cb1ald$6...@news01.netobjects.com...

Andy Heer

unread,
Jun 19, 2004, 10:27:25 AM6/19/04
to
Unless you have specific requirements there's no point in re-inventing the
wheel. Take a look at www.hotscripts.com and do a search for "shopping
carts" in the PHP section.

There are hundreds including many free or open-source. The daddy of the
open-source carts is OScommerce which can do pretty much anything. The only
problem is that you have to get pretty deep into it to customise it to look
like your site.

A simple and cheap one is www.clovershop.com. It doesn't use MySQl, it keeps
all its data in csv files. I originally bought this and learnt a lot from
adapting it to my needs.

Andy

"Waqas Yousufzai" <wa...@pacetech.co.uk> wrote in message

news:cb1bmg$6...@news01.netobjects.com...

Version: 6.0.708 / Virus Database: 464 - Release Date: 18/06/2004


Waqas Yousufzai

unread,
Jun 20, 2004, 12:27:02 AM6/20/04
to
thanks for ure reply Andy,
The thing is i want to design a shopping cart website with some record of
customer data and stock control as some form of database. My webhosting
company provides me with mysql database.
I have seen a site http://www.timecomputers.com , they use php to
communicate with there database. I want to design something like that.

Thanks

"Andy Heer" <an...@TAKETHISAWAAYforthbusiness.co.uk> wrote in message

news:cb1hr7$9...@news01.netobjects.com...

Chris (Fusion User Community)

unread,
Jun 20, 2004, 3:59:48 AM6/20/04
to
Here is an inexpensive OSCommerce Cart. You can normally get a custom design
for OSC for $100-200 including the installation. Depends how much
customization is needed. This one therefore is pretty cheap at $39.99

Chris
Fusion User
www.fusionuser.com

SIGN UP FOR FREE FUSION GOODIES TODAY (Worth $100)
http://www.fusionuser.com/create_account.php?

"Waqas Yousufzai" <wa...@pacetech.co.uk> escribió en el mensaje
news:cb332m$n...@news01.netobjects.com...

Bikeman

unread,
Sep 9, 2004, 10:10:59 AM9/9/04
to
I am a bit confused as to why you entitled your posting Help with PHP when
what you appear to actually want is a shopping cart alternative to paypal.

A later post suggests oscommerce - this is a very good free php/mysql
ecommerce solution but not the easiest to get to grips with.

Candy presss and comersus both do very good solutions using mysql db but
require ASP hosting not php - they are also free and easier to start with
than oscommerce.

If you want to keep it simple go for a non-database solution - Mal's
ecommerce is a free hosted shop cart solution which can link into paypal or
other credit card processors.

Regarding mysql db population, the above shop cart sw comes with admin
funstions so that the product database can be populated/change without you
messing around with learning sql. Like a previous posts said 'why reinvent
the wheel' - there is no need to learn php or sql unless you really want to.


0 new messages