php-windows Digest 5 Jan 2003 18:38:14 -0000 Issue 1520
Topics (messages 17648 through 17652):
Re: PHP from the Browser?
17648 by: Stephen Edmonds
17649 by: Stephen Edmonds
Re: Bundled GD - Gif support?
17650 by: Brian Weil
Re: PHP 4.3.0 no gif support?
17651 by: Brian Weil
17652 by: Stephen Edmonds
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Sorry, but he is right. Your browser can't be set to work with php unless
you have a webserver like apache/Xitami/etc... Your two choices are to
upload to your host and test, or to download a free webserver...
Oh, btw, as for your code:
<html> <head> <title>PHP Test</title> </head>
<body> <?php echo "Hello World<p>"; ?> </body>
</html>
You don't need that ; as the <? and the ?> are on the same line. If you
changed your code to this:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
echo "Hello World<p>";
?>
</body>
</html>
Then you would need the ; Personally I prefer the second layout as it makes
the program clearer for a human to read. The amout of white space ( ) does
not effect how well the script runs.
----- 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
>
>
--- End Message ---
--- Begin Message ---
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
>
>
--- End Message ---
--- Begin Message ---
Not true!!!!!
If you read the changelog, you will see that GD is now bundled with PHP and
includes readonly gif support. I'm just wondering which functions are
considered readonly?
"Christoph Petersen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Brian Weil wrote:
> > I'm trying to use imagecreatefromgif() on WIN 2000 / php4.3 /
> > php_gd2.dll,
> > but I get the error:
> > Fatal error: Call to undefined function: imagecreatefromgif()
>
> The Gif support isn't longer available.
> So you have to use *.png.
>
> Regards Christoph
>
> --
> Liebe ist es auch nach einem BlueScreen zu behaupten, es gäbe keine
> Alternative.
>
> Christoph Petersen
> [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
So...
WIll gif support ever be available on win32? Can a patched gd.dll be found
somewhere with readonly gif support or will we have to re-install php when
the binary is updated? I've been (patiently) waiting for this since GD1.6.
Thanks,
Brian
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hrm.. Whoever built the Windows binary didn't define HAVE_GD_GIF_READ I
> guess. Or perhaps it should go into main/config.w32.h.in assuming we are
> always going to build the windows binary against the bundled gd library.
>
> -Rasmus
>
> On Fri, 3 Jan 2003, Zac Barton wrote:
>
> > hi all, i thought php 4.3 was ment to have read-only access to gif
images?
> >
> >
> > all i get via phpinfo(); is:
> >
> > GD Support enabled
> > GD Version bundled (2.0 compatible)
> > FreeType Support enabled
> > FreeType Linkage with freetype
> > JPG Support enabled
> > PNG Support enabled
> > WBMP Support enabled
> >
> > wheres the gif read support?
> >
> > php 4.3 d/loaded via www.php.net so its the correct version.. what am i
> > missing?
> >
> > does gif read support mean i can load a gif image then output it as a
PNG?
> >
> > many thanks in advance
> >
> > zac barton
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--- End Message ---
--- Begin Message ---
Due to the copyright laws, GD had to remove all gif support. I believe you
can still open .gif files, but you can not edit/save them. You should try
using something which is open license like a .png file...
I am not awear of any gif section in phpinfo... i've yet to see one. I could
be wrong, but if that happened then I would have to kill you all... ;-)
Stephen
----- Original Message -----
From: "Brian Weil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 2003 5:31 PM
Subject: Re: [PHP-WIN] PHP 4.3.0 no gif support?
> So...
>
> WIll gif support ever be available on win32? Can a patched gd.dll be found
> somewhere with readonly gif support or will we have to re-install php when
> the binary is updated? I've been (patiently) waiting for this since GD1.6.
>
> Thanks,
> Brian
>
> "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hrm.. Whoever built the Windows binary didn't define HAVE_GD_GIF_READ I
> > guess. Or perhaps it should go into main/config.w32.h.in assuming we
are
> > always going to build the windows binary against the bundled gd library.
> >
> > -Rasmus
> >
> > On Fri, 3 Jan 2003, Zac Barton wrote:
> >
> > > hi all, i thought php 4.3 was ment to have read-only access to gif
> images?
> > >
> > >
> > > all i get via phpinfo(); is:
> > >
> > > GD Support enabled
> > > GD Version bundled (2.0 compatible)
> > > FreeType Support enabled
> > > FreeType Linkage with freetype
> > > JPG Support enabled
> > > PNG Support enabled
> > > WBMP Support enabled
> > >
> > > wheres the gif read support?
> > >
> > > php 4.3 d/loaded via www.php.net so its the correct version.. what am
i
> > > missing?
> > >
> > > does gif read support mean i can load a gif image then output it as a
> PNG?
> > >
> > > many thanks in advance
> > >
> > > zac barton
> > >
> > > --
> > > 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
>
>
--- End Message ---