Hi metac0m:

> 1. I think that there is an element of confusion here:

    You're certainly right about that! <G>
>
> a. php can be used from the command line (this is usefull for various
> tools, such a cron jobs or time scheduled jobs etc...), here's an
> example:
<snip>

    True, but the faq says that it can be executed locally if the php
program exists locally.
I would like to be able to debug my scripts locally before uploading them to
my server.
So I assumed that it would act like a plug-in in my browser.

    I have no desire to run a server. That's why I pay someone to host my
webpage.

    If I can execute php from the command line, without running Apache, why
can't I execute it from my browser within Windows, without running Apache?

    Is it truly the case that I can't debug a script without FTPing it up to
my host and running it remotely, even if I have the entire PHP program
locally?

Harvey

> "Harvey Frey" <[EMAIL PROTECTED]> wrote:
> >
> >
> > I'm a clueless newbie who just downloaded php-4.3.0-Win32 to Win 98, and
am
> > having multiple problems.
> >
> > 1. When I click on the manual's test program ("Hello World") in IE 6.0,
it
> > brings up a MSDOS box, rather than execute the php file. I can't find
> > anything in the manual that says how to get a php file to operate
locally
> > from a browser. Any Suggestions?
> >
> > 2. Also, I found that in order to get cli/php.exe to execute from the
> > command line, I had to copy php4ts.dll into the cli directory. So maybe
> > that's a bug in the installation program.
> >
> > 3. But when I aimed cli/php.exe at the test file, it just echoed the
code,
> > rather than execute it! Huh?
> >
> > 4. I uploaded the test file to my host, who's running a v. 4.3.0.3
server
> > and got the error message that the parser expected a '('' on line 11.
> >
> > The code is:
> > <html> <head>  <title>PHP Test</title> </head>
> >  <body> <?php echo "Hello World<p>"; ?> </body>
> > </html>
> >
> >     so there is no line 11!
> >
> > Even when I gave it parens:
> >
> > <html> <head>  <title>PHP Test</title> </head>
> >  <body> <?php echo ("Hello World"); ?> </body>
> > </html>
> >
> >     I got the same error message.
> >
> > All suggestions will be welcomed!
> >
> > Harvey
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>


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

Reply via email to