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

2004-08-06 Thread Michael T. Peterson
lhost/northwest_steelheader/ does not get passed. I can't help but think that I'm not configuring the 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,

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

2004-08-06 Thread Michael T. Peterson
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 tag. When the submit button is clicked the php file is displayed, rather than executed. Here's the HTML code of the sub

[PHP] Re: [Q] Converting SQL Datetimes to timestamps

2004-08-04 Thread Michael T. Peterson
Thanks, everyone. I appreciate this very much. Cheers, Michael "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Evidently the strtotime() function will not convert an SQL datetime to a > timestamp. Am I missing something? Here'

[PHP] [Q] Converting SQL Datetimes to timestamps

2004-08-03 Thread Michael T. Peterson
Evidently the strtotime() function will not convert an SQL datetime to a timestamp. Am I missing something? Here's an example of what I mean: $sql_datetime = '1948-30-03 01:30:00'; $ts = strtotime( $sql_datetime ); print( $ts.''); When this script is executed, strtotime() returns -1. If true, th

[PHP] [Q] Regex Woes

2004-07-18 Thread Michael T. Peterson
All, This should be dirt simple -- So simple, in fact, that I'm somewhat embarassed to make this post, but, oh well I need to find all lines that begin with the string 'WAZ' after reading from a url (http://www.atmos.washington.edu/data/zone_report.KSEW.html). While I've tried every combinati

[PHP] [Q] PHP 101 -- How to check for session existence?

2004-07-14 Thread Michael T. Peterson
To protect certain web pages on my site, I am using the following code inserted at the very beginning (top) of the page: ... Dreamweaver template code here... Is this a recommended way of doing this? Next, to initialize the session, a login page posts the username - password information to

[PHP] [Q] Using $_SERVER['DOCUMENT_ROOT'] correctly

2004-07-12 Thread Michael T. Peterson
I'm attempting to define a set of environment variables that will allow me to edit and test my web pages on my local machine and then upload to my ISP for verification and publication without having to change any symbols. What variable should I use for the document root? Here's how some of the sym

[PHP] Re: [Q] Why does my php file gets displayed instead of executed

2004-07-11 Thread Michael T. Peterson
Per request, here are the two other source files that get executed prior to the invocation of validate_member_login.php, index.php and init.php. But first, here's a simple restatement of the problem: (1) Direct the browser to open index.php (2) init.php is included by index.php. (3) index.php dis

[PHP] Re: [Q] Why does my php file gets displayed instead of executed

2004-07-11 Thread Michael T. Peterson
t(), sets a bunch of constants (e.g., MEMBER_HOME_PAGE, etc.), sets an error handler, and includes a bunch of libraries. All standard stuff. Again, any help would be appreciated. Cheers, Michael "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When a

[PHP] [Q] Why does my php file gets displayed instead of executed

2004-07-11 Thread Michael T. Peterson
When a user first comes to my site, the user's session id is checked and validated. If no session id is present or the validation fails, the user is vectored to a second page containing a login form. When the user enters the username and password and then clicks the submit button the info is forwa

[PHP] [Q] PHP code embedded in html files - What happens?

2004-03-14 Thread Michael T. Peterson
When the following file, tmp.htm, is executed no output is produced. Test hello world'; ?> However, when the name of the file is changed to tmp.php the expected output, 'hello world', is obtained. Is this the correct behavior? More specifically, is the php script not executed? Cheers,

[PHP] [Q] Session management when WEB site is based on template

2004-03-13 Thread Michael T. Peterson
I'm having difficulty figuring out where/how to integrate PHP session management into a web site whose pages are based on a template. Pointers to docs and/or examples would be very helpful. Cheers, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] [Q] About "Method Not Allowed" error message

2004-02-20 Thread Michael T. Peterson
When I click the submit button (after completing a [member registration] form), I get the following error message: Method Not Allowed The requested method POST is not allowed for the URL /northwest_steelheader/members/register_new_member.html. This used to work but, during the course of m

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-18 Thread Michael T. Peterson
Thanks, everyone. Just the answer(s) I was looking for. Michael "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have written a very straightforward user login script. Once the user > successfully logs in, I would like my PHP script t

[PHP] Re: [Q] Howto go directly to a URL?

2004-02-13 Thread Michael T. Peterson
use a path-relative URL. Cheers, Michael member_login_page -> member_home_page rather than member_login_page -> intermediate_page -> member_home_page. "Michael T. Peterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have written a very st

[PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Michael T. Peterson
I have written a very straightforward user login script. Once the user successfully logs in, I would like my PHP script to take him directly to the home page. I know this sounds simple, but the only solution I've found is a function called do_html_url() from Welling and Thompson's book (see http:

[PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-10 Thread Michael T. Peterson
I have a registration form which collects some data then, when the user clicks the submit button sends the data to a second page (a PHP script). The problem I'm having is getting my webserver (apache) to invoke the PHP scrip to process the data. What's so baffling about this is that I've already wr

[PHP] [Q] Compatibility issues using Apache and/or IIS

2003-12-24 Thread Michael T. Peterson
First I'm very new to all this, so forgive the naivity of these questions: Anyway, I am building a WEB Site dev environment that supports PHP-MySQL development. I have both IIS and Apache WEB servers available for local testing which begs the following question: What are the factors that would in

[PHP] [Q] Best Practices Question - Directory Structures for WEB site dev using PHP

2003-12-23 Thread Michael T. Peterson
Hi, I'm new to PHP and WEB site development, but have coded in C/C++, Java, and multiple shells for over 20 years. So far I've found this stuff really neat (and challenging). Anyway, I have a few questions dealing with file locations, [de facto] directory structures, etc., when designing a WEB Si