php-windows Digest 29 Dec 2001 10:18:58 -0000 Issue 925
Topics (messages 11196 through 11200):
Re: header() problem
11196 by: LaserJetter
Re: Mathimatical equations in PHP
11197 by: Todd Williamsen
Re: Image Magick on Windows NT?
11198 by: Curt Strite
Using Exec on windows
11199 by: David
Help!
11200 by: Zack Saadi
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 ---
try getting rid of the extra line between <?php and header, try getting rid
of exit(); and try getting rid of the next blank line
"Jukka Pakkanen" <[EMAIL PROTECTED]> wrote in message
000b01c18fbc$71813000$[EMAIL PROTECTED]">news:000b01c18fbc$71813000$[EMAIL PROTECTED]...
The test.php file only has:
<?php
header("Location: http://www.qnet.fi\r\n\n");
exit();
?>
Result is a blank page, source code:
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"]
[HTML][HEAD]
[META http-equiv=Content-Type content="text/html;
charset=windows-1252"][/HEAD]
[BODY][/BODY][/HTML]
The webserver is Website Pro 3. I've tried IE 5.5sp2 and IE 6. You can try
it at http://www.karting.fi/test.php
Otherwise PHP works ok in the server.
> At 05:44 PM 12/28/2001 +0200, Jukka Pakkanen wrote:
> >Thanks Mike, but still no luck. Nothing happens. No errors, no redirects,
> >no nothing :(
>
> Hmmm.. have you tried just making a blank page with this code? If so,
what
> shows up in the browser? A blank page? View the source, what does it
show?
>
> You're running Netscape 4, is that right? Have you tried it in another
> browser?
>
> -Mike
>
>
> > > At 02:46 PM 12/28/2001 +0200, you wrote:
> > > >Running NT4sp6a and PHP4.1.0.
> > > >
> > > >I try to redirect the browser to a new location [<? header("Location:
> > > >http://www.qnet.fi"); ?>], but nothing happens in the browser. There
> > are no
> > > >extra spaces, CR's, LF's or anything, and output_buffers are on in
the
> > > >php.ini.
> > > >
> > > >Any ideas??
> > > >
> > > >I run in to this problem when trying to run some software which is
> > known to
> > > >work, and now I tested it with a simple test.php (above). Don't work.
> > >
> > > Try:
> > > <?php
> > >
> > > header("Location: http://www.qnet.fi/\r\n\n");
> > > exit();
> > >
> > > ?>
> > >
> > >
> > >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> -=- Mike Flynn - Burlington, VT -=-
> [EMAIL PROTECTED] http://www.mikeflynn.net/ * Give blood *
> ...maintaining lawns, watching televised sports, birthing
> children, listening to Top 40 music, and collecting
> stuffed animals...
>
>
>
--- End Message ---
--- Begin Message ---
Ok....
So to update a record lets say...
I have a current value of 150 and the new value will be 250 now how would I
total them to equal 400?
I was thinking
$sql = "UPDATE $table value1 = value1 + ?
is that correct? how do you update it with simple math?
--- End Message ---
--- Begin Message ---
Below is an example code from an IIS webserver with PHP installed, and
the php is calling on IM to create a thumbnail.
It's been working fine for me. Hope this helps.
// if using convert, find where convert is (you could just manually
configure it, too)
if ($thumbnails == "convert" && $my_convert_path == "")
{
@exec("which convert", $tmp);
$my_convert_path="D:\ImageMagick\convert.exe";
if ($my_convert_path=="") $thumbnails="none";
}
@exec($my_convert_path . ' -geometry ' . round($neww) . "x" .
round($newh) . ' -quality 50 "' . $createfn . '"
"' .
$thumbnailfile . '"');
There's a lot more to it than this, but this is the basic idea. You
call IM the same way you would in *inx but you just use the windows
style path such as C:\whatever\directory\im.exe or
D:\whatever\other\directory\im.exe
-----Original Message-----
From: Damiano Ferrari [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 27, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Image Magick on Windows NT?
I wrote a script that will create a thumbnail page for all the pictures
in a
given directory. The thumbnails are created with the GD libraries and
while
it all works, the result is.. well, very low quality, the .jpg images
actually look like .gif. Is there any way I can use Image Magick on
Windows
NT (and PHP 4.1.0)? If not, is there any other viable solution?
Damiano
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi,
I'm trying to execute a command line program using exec.
I am tring to run a command line interface of Winzip, simpily by executing
a string which works when it is typed into the command line.
However, PHP just hangs there, I can see the program running the the
background, but it does not do anything.
When it is run from the command line it takes about 2 seconds to run, but
using exec, it will never finish...
Does anyone have any idea with this problem?
Regards,
David
--- End Message ---
--- Begin Message ---
Hi,
I have just upgraded to the latest verion of PHP and since then getting
this
message:
Warning: Unknown persistent list entry type in module shutdown (11) in
Unknown on line 0
Please help and thanks in advance!
From: "Zack Saadi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: [PHP-WIN] Problem...
Date: December 27, 2001 12:26 AM
http://www.sumservices.com/phpinfo.php
"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Zack:
> I'm not too sure that you understood what we need to help you:
> Let say that you have the following script called test.php :
> <?php
> phpinfo();
> ?>
> Save this script in the directory where your php.exe is (Assuming c:\php\)
> Then start a DOS cession from the Start button.
> You should see the prompt C:\windows>
> type: cd.. and <enter> You should see the prompt c:\>
> type: cd php and <enter> You should see the prompt c:\php>
> type: php test.php
> Then tell us what you are seeing...
> A+
> Alain
>
> -----Original Message-----
> From: Zack Saadi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 25, 2001 11:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Problem...
>
>
> This is what I got...
>
> Please see the attached error.txt file
>
>
> "Alain Samoun" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Try to run your script in a DOS window (php yourscript.php) starting in
> > the directory of php.exe, and tell us what is the error there.
> > A+
> > Alain
> >
> > -----Original Message-----
> > From: Zack Saadi [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 25, 2001 10:57 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Problem...
> >
> >
> > Hi,
> >
> > I have just upgraded to the latest verion of PHP and since then getting
> this
> > message:
> >
> > Warning: Unknown persistent list entry type in module shutdown (11) in
> > Unknown on line 0
> >
> > Please help and thanks in advance!
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>
--- End Message ---