Re: [PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-09 Thread Jonathan Haddad
And if you want to be really extreme, you can edit httpd.conf to use 
virtual hosting and recognize each of the sites you have as individual 
web servers.

Then, edit your hosts file to match the domains.. say I am working on my 
own web site, oldirtyhaddad.com (shameless plug).  I have set up my 
hosts file to recognize oldirtyhaddad and it gets served up locally.  I 
have one of these for each of the 20 sites that I maintain.  I also have 
this set up for phpMyAdmin.  (accessed by typing dbadmin).

Jon
Chris Martin wrote:
Michael T. Peterson wrote:
Hi,
I know this must be really obvious to many of you, but I have been 
unable to
configure DW (using [preferences] or [site-edit]) so that it will 
execute a
php script from a form action=foo.php... tag.  When the submit 
button is
clicked the php file is displayed, rather than executed.

Here's the HTML code of the submit button form:
form action=update_river_measurements.php method=post name=form1
target=mainFrame
 select name=interval_period
  optionSelect interval/option
  option value=22 days/option
  option value=44 days/option
  option value=88 days/option
  option value=3131 days/option
  /select
 input type=submit value=Update Database
/form
When the [Update Database] button is clicked, the file specified by the
action parameter is displayed, rather than executed.
My dev machine is a Windows XP system with Apache, PHP, and MySQL 
installed.
I have confirmed that my Apache-PHP configuration is correctly 
configured.
For example,  PHP correctly executes the script when I pass
update_river_measurements.php to IExplore.exe from the command 
line. Also,
when I upload these local files to my ISP, the PHP also executes 
correctly.

Any suggestions as to how to get DW to execute these files would be
appreciated.
Cheers,
Michael
P.S. Cross-posted to the DreamWeaver news group
I'm not sure that dreamweaver will execute them.
If you've got Apache/PHP setup, just go to 
http://localhost/your_script.php in your browser to test them out, no 
need to use the command line to pass to a browser.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread Chris Martin
Michael T. Peterson wrote:
Hi,
I know this must be really obvious to many of you, but I have been unable to
configure DW (using [preferences] or [site-edit]) so that it will execute a
php script from a form action=foo.php... tag.  When the submit button is
clicked the php file is displayed, rather than executed.
Here's the HTML code of the submit button form:
form action=update_river_measurements.php method=post name=form1
target=mainFrame
 select name=interval_period
  optionSelect interval/option
  option value=22 days/option
  option value=44 days/option
  option value=88 days/option
  option value=3131 days/option
  /select
 input type=submit value=Update Database
/form
When the [Update Database] button is clicked, the file specified by the
action parameter is displayed, rather than executed.
My dev machine is a Windows XP system with Apache, PHP, and MySQL installed.
I have confirmed that my Apache-PHP configuration is correctly configured.
For example,  PHP correctly executes the script when I pass
update_river_measurements.php to IExplore.exe from the command line. Also,
when I upload these local files to my ISP, the PHP also executes correctly.
Any suggestions as to how to get DW to execute these files would be
appreciated.
Cheers,
Michael
P.S. Cross-posted to the DreamWeaver news group
I'm not sure that dreamweaver will execute them.
If you've got Apache/PHP setup, just go to 
http://localhost/your_script.php in your browser to test them out, no 
need to use the command line to pass to a browser.

--
Chris Martin
Web Developer
Open Source  Web Standards Advocate
http://www.chriscodes.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread Michael T. Peterson
Thanks to both of you, but it is still not working. I've configured the site
(both local and testing) correctly, but what gets passed to IExplore is the
URL below:

C:\Program Files\Apache
Group\Apache\htdocs\northwest_steelheader\rivers\northwest_rivers.htm

http://localhost/northwest_steelheader/ does not get passed. I can't help
but think that I'm not configuring the form action= correctly.

Cheers,

Michael


Michael T. Peterson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I know this must be really obvious to many of you, but I have been unable
to
 configure DW (using [preferences] or [site-edit]) so that it will execute
a
 php script from a form action=foo.php... tag.  When the submit button
is
 clicked the php file is displayed, rather than executed.

 Here's the HTML code of the submit button form:

 form action=update_river_measurements.php method=post name=form1
 target=mainFrame
  select name=interval_period
   optionSelect interval/option
   option value=22 days/option
   option value=44 days/option
   option value=88 days/option
   option value=3131 days/option
   /select
  input type=submit value=Update Database
 /form

 When the [Update Database] button is clicked, the file specified by the
 action parameter is displayed, rather than executed.

 My dev machine is a Windows XP system with Apache, PHP, and MySQL
installed.
 I have confirmed that my Apache-PHP configuration is correctly configured.
 For example,  PHP correctly executes the script when I pass
 update_river_measurements.php to IExplore.exe from the command line.
Also,
 when I upload these local files to my ISP, the PHP also executes
correctly.

 Any suggestions as to how to get DW to execute these files would be
 appreciated.

 Cheers,

 Michael
 P.S. Cross-posted to the DreamWeaver news group

 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: [Q] How to setup Dreamweaver so that PHP scripts are executed?

2004-08-06 Thread David Bevan
On Fri, 2004-08-06 at 22:07, Michael T. Peterson wrote:
 Thanks to both of you, but it is still not working. I've configured the site
 (both local and testing) correctly, but what gets passed to IExplore is the
 URL below:
 
 C:\Program Files\Apache
 Group\Apache\htdocs\northwest_steelheader\rivers\northwest_rivers.htm
 
 http://localhost/northwest_steelheader/ does not get passed. I can't help
 but think that I'm not configuring the form action= correctly.
 
 Cheers,
 
 Michael
 
 
 Michael T. Peterson [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  I know this must be really obvious to many of you, but I have been unable
 to
  configure DW (using [preferences] or [site-edit]) so that it will execute
 a
  php script from a form action=foo.php... tag.  When the submit button
 is
  clicked the php file is displayed, rather than executed.
 
  Here's the HTML code of the submit button form:
 
  form action=update_river_measurements.php method=post name=form1
  target=mainFrame
   select name=interval_period
optionSelect interval/option
option value=22 days/option
option value=44 days/option
option value=88 days/option
option value=3131 days/option
/select
   input type=submit value=Update Database
  /form
 
  When the [Update Database] button is clicked, the file specified by the
  action parameter is displayed, rather than executed.
 
  My dev machine is a Windows XP system with Apache, PHP, and MySQL
 installed.
  I have confirmed that my Apache-PHP configuration is correctly configured.
  For example,  PHP correctly executes the script when I pass
  update_river_measurements.php to IExplore.exe from the command line.
 Also,
  when I upload these local files to my ISP, the PHP also executes
 correctly.
 
  Any suggestions as to how to get DW to execute these files would be
  appreciated.
 
  Cheers,
 
  Michael
  P.S. Cross-posted to the DreamWeaver news group
 
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

Your action attribute looks okay but the url which the browser is
getting isn't the url in the action for the form (C:\Program
Files\Apache
Group\Apache\htdocs\northwest_steelheader\rivers\northwest_rivers.htm)
your browser should be getting update_river_measurements.php.

Make sure all of the files are in the same directory/folder or at least
make sure the appropriate navigation is added to the url (e.g.
../update_river_measurements.php). Or maybe, put everything in the same
directory and try it that way as a means of narrowing down where the
problem is.

-- 
Regards,

David

GetAnyIdeas Web Design
[EMAIL PROTECTED]
P. 416.452.9410
F. 416.570.4529

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php