Forum Moderators: coopster

Message Too Old, No Replies

php queries

         

phpnovice

3:42 am on Feb 17, 2003 (gmt 0)

10+ Year Member



Hi there

I need to learn php and implement
order on-line facilities for a site, but
without the shopping engine.

I am a Mac OS X user.

This is what I need to do:

- customer needs to signin in order to place order
on-line. And we need to put the customer's details in
the database.

- and also, we need to have a function to disallow a
customer's password if that particular account is not
active or has never purchase anything for a duration
about 6 months. That customer can re-register though.

This looks simple, so I bought the friends of ed
Foundation Dreamweaver MX book. I have installed the
Apache and php alright. But when I tried to define a
server model and test the php pages from within
dreamweaver, I was stuck with always this error:
"dreamweaver cannot use the prefix you entered to
display live data. Please double-check your site
configuration or click on Help for more information on
how to correct this problem. [HTTP Error: 12007]"

I tried to ask the publisher/author for advice, they
only responded a couple of times and then stopped.
I think I might have entered an incorrect path along
the way, probably I've got that part wrong when storing
those php pages in the root directory where Apache
stores the web pages, I think...

Anyhow, your help
and advices are greatly appreciated as I am pressing
for time...

Thanks in advance...
matt

brotherhood of LAN

2:06 am on Feb 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi Matt, welcome to WebmasterWorld.

I'll not try to troubleshoot the problem because htere are so many things that can go wrong! apache and php working OK is most of the trouble out the way though I guess.

Apart from the error message that's showing up, how is this stopping you what you want to do with php/apache? I have a copy of DW but ive never played around with server settings (nor the program at that), but i use PHP and apache loads. If DW was stopping me from php'ing id php outside it :)

jatar_k

4:37 am on Feb 19, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



As far as the dreamweaver error goes have you tried the macromedia support forums?
webforums.macromedia.com/dreamweaver/

The rest is pretty simple, though somewhat less so when adapting existing software.

Your "check for login" script could be triggered by them clicking on the order button. Probably included in the top of each purchase page. If they are not logged in it could forward them to the login page with a link for signup.

When they login it could check for a flag in the database for active to see if their account is active.