Re: [PHP-WIN] header()

2006-10-04 Thread Alf Stockton
Niel Archer wrote: > Hi Alf > > >> Is this the correct method to use in Windows? >> > > No, it's not the correct method on ANY platform. Before asking a > question on these lists, it's wise to check the documentation first. > > >> Note: HTTP/1.1 requires an absolute URI as argument to L

Re: [PHP-WIN] header()

2006-10-04 Thread Stut
Alf Stockton wrote: I have copied the code almost verbatim out of the manual and it still does not work. /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'index.

RE: [PHP-WIN] header()

2006-10-04 Thread Luis Moreira
Probably I missed a message, so forgive me if I did. If what the code below wants is to redirect to a different page, then I believe that the HEADER command can not be preceeded by an ECHO. echo "".$ReturnTo; header("Location: $ReturnTo"); It won't work after that, and that is clear on t

Re: [PHP-WIN] Fwd: ImageCreate() function Problem

2006-10-04 Thread Arief Kurniawan
Yes It is, actually I also copied it to other directory : c:\php\ext c:\php c:\windows\system32 Something else I should do ? Regards, Arief K On 10/4/06, Henrik Hornemann <[EMAIL PROTECTED]> wrote: Check that php_gd2.dll actually exists. Regards Henrik Hornemann -Oprindelig meddelelse--

Re: [PHP-WIN] Fwd: ImageCreate() function Problem

2006-10-04 Thread Arief Kurniawan
Nope, Text search on output of PHPINFO() only found : Configure Command : cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" I think this is the problem. How to enable DG2 beside the way I did on my previous mail (through php.ini). Regards, Arief K On 10/5/06, [EMAIL PR

Re: [PHP-WIN] Fwd: ImageCreate() function Problem

2006-10-04 Thread Arief Kurniawan
I found this on Apache Error log : PHP Warning: PHP Startup: gd: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0 Any suggestion ?

Re: [PHP-WIN] Fwd: ImageCreate() function Problem

2006-10-04 Thread Niel Archer
Hi that looks like you have a newer version of module compared to PHP. Your original post said you had PHP v5.2, as the current stable release is only 5.1.6, I'd suggest you check again. If necessary download, and install again Niel -- PHP Windows Mailing List (http://www.php.net/) To unsubscr

Re: [PHP-WIN] Fwd: ImageCreate() function Problem

2006-10-04 Thread Arief Kurniawan
Okay, Problem solved. You're great man... I downloaded the stable version and it runs well. Yes, I'm using dev version PHP 5.2 downloaded from http://snaps.php.net/ Regards, Arief K On 10/5/06, Niel Archer <[EMAIL PROTECTED]> wrote: Hi that looks like you have a newer version of module compare