[PHP-WIN] file processing question

2003-02-20 Thread paradiddles
greetings, I am learning the basics of file processing, starting w/ how to write data to a file. So far, I've created the .txt file and wrote the code. This is all being done on my local windows 2k PC for practice. My question is, where should I save the .txt file? So far, my forms and .php

[PHP-WIN] basic variable question

2003-02-13 Thread paradiddles
Hi everyone. Why does my code work when I enter just 1 for the quantity, but only returns $1.10 when I enter a quantity of 2 or more? $totalqty = 0.00; $totalamount = 0.00; define(HALLTABLE, 800); $totalqty = $_POST[hallqty]; //quantity $totalamount = $_POST[hallqty] *

[PHP-WIN] code change in new version?

2003-02-04 Thread paradiddles
Hey everyone! I noticed that in the older version of php (when register globals was 'on' by default) that coding for 'post' variables (where info is passed from the form into the variables) took an easier approach ...ie. $totalqty = $tireqty + $oilqty + $sparkqty; (old way)

[PHP-WIN] newbie form question..

2003-01-24 Thread paradiddles
I just created a simple html form and a .php file as a test to be sure php is working right. All I want the form to do is test the echo construct (which prints the text between the opening and closing php tags) to be sure my php interpreter is working right. The line in my html form used to

RE: [PHP-WIN] newbie form question..

2003-01-24 Thread paradiddles
Rich, thanks for your response. I've tried using the ?php tag- no joy and I can view the code in my php file. Also, you mentioned that I should take a look at the server log. Where would I find that? thanks- Patrick forget your lust for the rich man's gold. All that

RE: [PHP-WIN] newbie form question..

2003-01-24 Thread paradiddles
Warren, that was it! I wasn't envoking the form from the 'local host'. Instead I was browsing the c drive. Now I can see the text w/in the php echo tag. Thanks again for the help guys- Patrick forget your lust for the rich man's gold. All that you need, is in your soul.

[PHP-WIN] Help!

2003-01-23 Thread paradiddles
Greetings everyone, I successfully installed (locally) the php/mysql/apache bundle called swamp-0.1.1. I created my 1st php file that I've attached along w/a very basic .html form that it is supposed to parse (from the bookPHP and MySQL Web Development by Welling and Thomason). the php file does

[PHP-WIN] HTTP 404 File not found error

2003-01-10 Thread paradiddles
Hey everyone, I installed php 4.3.0-win32, mysql-3.23.54-win and apache_1.3.27 on Win2000 last week, followed instal directions (from the manual) as best I could. For testing purposes, I created a file called phpinfo.php. When I try and load it locally, my browser returns the HTTP 404 File

RE: [PHP-WIN] HTTP 404 File not found error

2003-01-10 Thread paradiddles
Thanks for your response. So far, so good. I added everything you suggested and ran apache from the cmd line. In doing so, I got an errror (please see below): C:\Program Files\Apache Group\Apacheapache Syntax error on line 194 of c:/program files/apache group/apache/conf/httpd.conf : Cannot

RE: [PHP-WIN] HTTP 404 File not found error

2003-01-10 Thread paradiddles
Its in thereI still get the same error. Perhaps there is something not quite right in my httpd.conf file. I attatched it. Please take a quick peak here and see if you notice any ass backward entries. thanks, Patrick"you can observe a lot by watching" ~ Yogi BerraDo you Yahoo!?

RE: [PHP-WIN] HTTP 404 File not found error

2003-01-10 Thread paradiddles
I deleted that line (which is not where I put my php file, its in the htdocs). Anyway, I ran apache after that and now it seems that random syntax errors are popping up. For example: (see below) C:\Program Files\Apache Group\Apacheapache Syntax error on line 344 of c:/program files/apache

Re: [PHP-WIN] [newbie] What does this mean?

2003-01-08 Thread paradiddles
Jim, thanks for the response. Well- I think your right! I created index.htm and saved it to my htdocs dir. I get the file not found when I try and bring it up. To answer your question ... I have: DocumentRoot C:/Program Files/Apache Group/Apache/htdocs/ typed into my httpd.conf file just

RE: [PHP-WIN] newbie ...instal question.

2003-01-07 Thread paradiddles
Robert, Did you add this php4apache2.dll to the config file in some way? If so, how should I add it? thanks- pr you can observe a lot by watching ~ Yogi Berra - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now

[PHP-WIN] [newbie] What does this mean?

2003-01-07 Thread paradiddles
Hey list, I'm still having problems loading my ?php phpinfo;? where I get the HTTP 404 - File not found error. When I view the apache error log, I see.. [Tue Jan 07 11:56:21 2003] [error] [client 127.0.0.1] (2)No such file or directory: script not found or unable to stat:

Re: [PHP-WIN] [newbie] What does this mean?

2003-01-07 Thread paradiddles
Sorry, In reference to my last question, I did type ?php phpinfo();? correctly and it still gives me the file not found error. pr you can observe a lot by watching ~ Yogi Berra - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable.

[PHP-WIN] newbie ...instal question.

2003-01-06 Thread paradiddles
I just installed php 4.3.0-win32, mysql-3.23.54-win and apache_1.3.27 on Win2000 in hopes of getting my feat wet. Well, I've yet to get past the phpinfo.php (test) page w/out getting the file not found error. After following the instructions from php.net, I thought that I was on target. The