Actually now that I come to think about it, there is a 3rd option. I use a
script editor called Magnum PHP Studio. It has a feature where it can run
your script in PHP acting like the webserver. I am not sure if you can use
it to submit forms etc etc, but it would provide a basic method for you to
test your files for parse errors/layout errors etc. You can download it or
find out more infomation at
http://www.maguma.com/products/index.php

----- Original Message -----
From: "Harvey Frey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 2003 6:35 AM
Subject: Re: [PHP-WIN] PHP from the Browser?


> 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
>
>



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

Reply via email to