php-windows Digest 28 Nov 2002 04:02:43 -0000 Issue 1460
Topics (messages 17161 through 17179):
PHP Sessions and Redirects... (was Re: [PHP-WIN] Redirect browser to another URL?)
17161 by: Luis Ferro
Weird PHP Problem
17162 by: Becky Gruebmeyer
17163 by: Rich Gray
17164 by: Luis Ferro
17165 by: Zaid Al-Hamdoon
17167 by: Matt Kynaston
17168 by: David Elliott
Re: Another Newb PHP question
17166 by: Step Schwarz
question about session PHP
17169 by: Franco Pozzer
17170 by: Cam Dunstan
17171 by: Rich Gray
Re: C++ dll files
17172 by: Brennan Mann
help with db selection with php .............
17173 by: toby z
17178 by: George Nicolae
17179 by: Diggy Bell
Re: Redirect browser to another URL?
17174 by: Jack Kelly Dobson
17177 by: Dash McElroy
IIS and PHP with $HTTP_SERVER_VARS
17175 by: Shaun Garriock
Install PHP4.2.3 with Apache 2.0.43 on Window 2000
17176 by: Jack R.
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 ---
If there are sessions involved, this second method is prefered, because
it will give PHP a chance to change the server sessions.
Sessions can be VERY tricky, specially if one expects the changes of a
var to reflect immediatly in the session... they won't... and it is
prefered that you issue a client-side refresh to force the update. In
that respect, ASP session management is much more straightforward...
(even is ASP is way inferior in almost everything else...)...
Cheers...
Luis Ferro
Cam Dunstan wrote:
Jack,
here is another quick and dirty function to stick in your library, yet
another way to redirect from anywhere in your script
function redirect($url){
echo "<script>window.location.replace(\"".$url."\")</script>";
}
usage:
blah
blah
redirect("any_url");
exit;
-----Original Message-----
From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Redirect browser to another URL?
Hello,
Anyone know how to have a script re-direct the browser to a URL cleanly?
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
database. Here is the issue:
I have a nvarchar field with a size of 4000.
I submit a text string from a form to this field.
It will display on submit using echo nl2br($variable) and it will display
fine.
When I look in the database, it has all the information stored correctly.
When I pull it back out of the database, it cuts it off and only displays
the first part of the string.
Anyone have any ideas why?
--- End Message ---
--- Begin Message ---
When you say the 'first part of the string' do you mean it returns only the
string up to the 1st space character? Can you provide an example with code?
-----Original Message-----
From: Becky Gruebmeyer [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 11:24
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Weird PHP Problem
Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
database. Here is the issue:
I have a nvarchar field with a size of 4000.
I submit a text string from a form to this field.
It will display on submit using echo nl2br($variable) and it will display
fine.
When I look in the database, it has all the information stored correctly.
When I pull it back out of the database, it cuts it off and only displays
the first part of the string.
Anyone have any ideas why?
--- End Message ---
--- Begin Message ---
SQL Server is notorious for is fair amount of bugs... With that in
prespective i must ask:
a) Are you reading the fields in EXACTLY the same order as they appear
in the filed list in the SQL Server Enterprise Manager? [SQL Server will
return damaged results if one tries to read strings in a diferent order]
b) Will the same happens if the field is of type Text?
Cheers...
Luis Ferro
P.S.- Hope that provides some "hints" on how to solve the problem... i'm
not an expert in SQL Server...
Becky Gruebmeyer wrote:
Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
database. Here is the issue:
I have a nvarchar field with a size of 4000.
I submit a text string from a form to this field.
It will display on submit using echo nl2br($variable) and it will display
fine.
When I look in the database, it has all the information stored correctly.
When I pull it back out of the database, it cuts it off and only displays
the first part of the string.
Anyone have any ideas why?
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
Are you saying that you've defined the the field as VARCHAR(4000)? I thought
VARCHAR only went up to 255?
Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
database. Here is the issue:
I have a nvarchar field with a size of 4000.
I submit a text string from a form to this field.
It will display on submit using echo nl2br($variable) and it will display
fine.
When I look in the database, it has all the information stored correctly.
When I pull it back out of the database, it cuts it off and only displays
the first part of the string.
Anyone have any ideas why?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--- End Message ---
--- Begin Message ---
Are you using mssql_* functions? They limit varchar and nvarchar to 256
characters. For workarounds take a look through the user comments in the
manual, or use odbc_*
Matt
> -----Original Message-----
> From: Luis Ferro [mailto:[EMAIL PROTECTED]]
> Sent: 27 November 2002 12:30
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Weird PHP Problem
>
>
> SQL Server is notorious for is fair amount of bugs... With that in
> prespective i must ask:
>
> a) Are you reading the fields in EXACTLY the same order as
> they appear
> in the filed list in the SQL Server Enterprise Manager? [SQL
> Server will
> return damaged results if one tries to read strings in a
> diferent order]
>
> b) Will the same happens if the field is of type Text?
>
> Cheers...
> Luis Ferro
>
> P.S.- Hope that provides some "hints" on how to solve the
> problem... i'm
> not an expert in SQL Server...
>
>
> Becky Gruebmeyer wrote:
>
> >Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
> >database. Here is the issue:
> >
> >I have a nvarchar field with a size of 4000.
> >I submit a text string from a form to this field.
> >It will display on submit using echo nl2br($variable) and it
> will display
> >fine.
> >When I look in the database, it has all the information
> stored correctly.
> >When I pull it back out of the database, it cuts it off and
> only displays
> >the first part of the string.
> >
> >Anyone have any ideas why?
> >
> >
> >
> >
> >
>
>
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Greetings Becky
On 27 November 2002 at 06:23:58 -0500 (which was 11:23 where I live) Becky
Gruebmeyer emanated these words of wisdom
> Ok...Using newest version of PHP on an NT IIS machine with a SQL 2000
> database. Here is the issue:
> I have a nvarchar field with a size of 4000.
> I submit a text string from a form to this field.
> It will display on submit using echo nl2br($variable) and it will display
> fine.
> When I look in the database, it has all the information stored correctly.
> When I pull it back out of the database, it cuts it off and only displays
> the first part of the string.
> Anyone have any ideas why?
I think that i had this problem once. I seam to remember that I had to cast
the columnn as text or something like that.
--
BBFN, _______________________________________________
David | David Elliott | Software Engineer |
_________________________| [EMAIL PROTECTED] | PGP Key ID 0x650F4534 |
| Now there's a mind like a steel sieve. |
--- End Message ---
--- Begin Message ---
Hi Joe,
> The zip file with the calendar code/instructions is attached here is their
> website: http://calendar.codewalkers.com/
I believe that code was written by Matt Wade himself -- the founder of
Codewalkers, if I'm not mistaken. You may want to re-post your question in
the Codewalkers forum (http://codewalkers.com/forum/index.php) because I did
a quick search of the code and I don't see any target="_blank"s in there.
If you want to e-mail me a link to your site off-list, I'll be happy to take
a peek.. maybe something will stick out.
Good luck,
-Step
--- End Message ---
--- Begin Message ---
I hope to write well. Thanks for all for the response.
My appl Apache+PHP in Win32 system use PHP_Session fecture.
The cookies session are store in the path
D:\OPENFEDRA\Apache\htdocs\fedra\sv\src\tmp
The php.ini are fine configurated. all work fine.
Only when I reuse and re-start applicazion (exec apache.exe and qith browser I
call back the main page like : http://localhost:8081/fedra/sv/src/html/home.htm
i have these error:
Warning: unlink() failed (Permission denied) in
C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 10
Warning: Cannot send session cookie - headers already sent by (output started at
C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php:10) in
C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 14
Warning: Cannot send session cache limiter - headers already sent (output
started at C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php:10) in
C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 14
The script are this:
<?
/* session_start();
session_destroy();*/
$handle = opendir($FolderTmpExt);
while (false !== ($file = readdir($handle)))
{
if ($file != "." && $file != "..")
{
unlink ($FolderTmpExt."/".$file); (line 10)
}
}
closedir($handle);
session_start(); (line 14)
include_once ($xPathLibraryExt."functionXpath.php");
External file where i have config of the application call into the script by
pre_append option in the php.ini
$formPhpExt = $document_root."/fedra/sv/src/formphp/";
$srcJsExt = $document_root."/fedra/sv/src/js/";
$srcPhpExt = $document_root."/fedra/sv/src/php/";
$srcHtmlExt = $document_root."/fedra/sv/src/html/";
$FolderTmpExt = $document_root."/fedra/sv/tmp";
The reload of the page of the browser the error do it is lost.
Have clean file session in the path ..../tmp + cache of bwsr but in any case I
have the same error.
I thinks, but i am not sure, it is a problem depending the Apache cache.
Have sameone an idea about this error?
Ciao Franco
--- End Message ---
--- Begin Message ---
Franco,
I`m not so sure if unlink() can be relied on to work on a windoze server,
never actually tried it but have hazy recollections of some "windows only"
issue with it. Check the FAQs or manual.
----- Original Message -----
From: "Franco Pozzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 12:14 AM
Subject: [PHP-WIN] question about session PHP
> I hope to write well. Thanks for all for the response.
>
> My appl Apache+PHP in Win32 system use PHP_Session fecture.
>
> The cookies session are store in the path
> D:\OPENFEDRA\Apache\htdocs\fedra\sv\src\tmp
>
> The php.ini are fine configurated. all work fine.
>
> Only when I reuse and re-start applicazion (exec apache.exe and qith
browser I
> call back the main page like :
http://localhost:8081/fedra/sv/src/html/home.htm
> i have these error:
>
> Warning: unlink() failed (Permission denied) in
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 10
>
> Warning: Cannot send session cookie - headers already sent by (output
started at
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php:10) in
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 14
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php:10)
in
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 14
>
> The script are this:
>
> <?
>
> /* session_start();
> session_destroy();*/
> $handle = opendir($FolderTmpExt);
> while (false !== ($file = readdir($handle)))
> {
> if ($file != "." && $file != "..")
> {
> unlink ($FolderTmpExt."/".$file); (line 10)
> }
> }
> closedir($handle);
> session_start(); (line 14)
> include_once ($xPathLibraryExt."functionXpath.php");
>
> External file where i have config of the application call into the script
by
> pre_append option in the php.ini
>
> $formPhpExt = $document_root."/fedra/sv/src/formphp/";
> $srcJsExt = $document_root."/fedra/sv/src/js/";
> $srcPhpExt = $document_root."/fedra/sv/src/php/";
> $srcHtmlExt = $document_root."/fedra/sv/src/html/";
> $FolderTmpExt = $document_root."/fedra/sv/tmp";
>
> The reload of the page of the browser the error do it is lost.
>
> Have clean file session in the path ..../tmp + cache of bwsr but in any
case I
> have the same error.
>
> I thinks, but i am not sure, it is a problem depending the Apache cache.
>
> Have sameone an idea about this error?
>
> Ciao Franco
>
>
>
>
--- End Message ---
--- Begin Message ---
I have used the unlink() function on Win32 with no probs in the past.
What are the directory permissions on
'D:/OPENFEDRA/Apache/htdocs/fedra/sv/tmp' - do they allow deletion by the
web server process?
Was the file to be unlinked already opened by another process i.e. a share
violation?
-----Original Message-----
From: Cam Dunstan [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 14:17
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] question about session PHP
Franco,
I`m not so sure if unlink() can be relied on to work on a windoze server,
never actually tried it but have hazy recollections of some "windows only"
issue with it. Check the FAQs or manual.
----- Original Message -----
From: "Franco Pozzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 12:14 AM
Subject: [PHP-WIN] question about session PHP
> I hope to write well. Thanks for all for the response.
>
> My appl Apache+PHP in Win32 system use PHP_Session fecture.
>
> The cookies session are store in the path
> D:\OPENFEDRA\Apache\htdocs\fedra\sv\src\tmp
>
> The php.ini are fine configurated. all work fine.
>
> Only when I reuse and re-start applicazion (exec apache.exe and qith
browser I
> call back the main page like :
http://localhost:8081/fedra/sv/src/html/home.htm
> i have these error:
>
> Warning: unlink() failed (Permission denied) in
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 10
>
> Warning: Cannot send session cookie - headers already sent by (output
started at
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php:10) in
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 14
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php:10)
in
> C:\OPENFEDRA\Apache\htdocs\fedra\sv\src\html\benvenut.php on line 14
>
> The script are this:
>
> <?
>
> /* session_start();
> session_destroy();*/
> $handle = opendir($FolderTmpExt);
> while (false !== ($file = readdir($handle)))
> {
> if ($file != "." && $file != "..")
> {
> unlink ($FolderTmpExt."/".$file); (line 10)
> }
> }
> closedir($handle);
> session_start(); (line 14)
> include_once ($xPathLibraryExt."functionXpath.php");
>
> External file where i have config of the application call into the script
by
> pre_append option in the php.ini
>
> $formPhpExt = $document_root."/fedra/sv/src/formphp/";
> $srcJsExt = $document_root."/fedra/sv/src/js/";
> $srcPhpExt = $document_root."/fedra/sv/src/php/";
> $srcHtmlExt = $document_root."/fedra/sv/src/html/";
> $FolderTmpExt = $document_root."/fedra/sv/tmp";
>
> The reload of the page of the browser the error do it is lost.
>
> Have clean file session in the path ..../tmp + cache of bwsr but in any
case I
> have the same error.
>
> I thinks, but i am not sure, it is a problem depending the Apache cache.
>
> Have sameone an idea about this error?
>
> Ciao Franco
>
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I been getting progress. I got my DLL registered using regsvr32. But I can't
connect using PHP. I get this error:
Warning: Invalid ProgID, GUID string, or Moniker: Invalid syntax in
c:\inetpub\wwwroot\dllfile.php on line 1
<?php
$obj = new COM("testcom.Process");
?>
testcom is the dll file I registered. testcom.dll
Process is a function inside testcom.
Any Suggestions?
Thanks,
Brennan
--- End Message ---
--- Begin Message ---
ok guyz i need some inside info .....
plz help me with:
1. if i ve to conver a db in foxpro to mysql or sql which one should
i preffer to use with php and y ????
2. and while im converting the foxpro db to mysql what will i ve to
loose ???? the common pitfalls ......
3. there aint no foreign keys in mysql then what can i do about
cascading updates, deletes and all
5. n finally do i have anyother choice of open source database
(cheapest if not completely free) for this conversion ?????
id be eternally gratefull if anyone cud guide me thru this ......
thnx a billion zillion guyz .....
toby ......
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
1. MySQL
2. Nothing
3. in your code you must take care about this.
4. ?
5. PostgreSQL
--
Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com - Professional Web Design
www.PaginiWeb.com
"Toby z" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> ok guyz i need some inside info .....
>
> plz help me with:
>
>
> 1. if i ve to conver a db in foxpro to mysql or sql which one should
> i preffer to use with php and y ????
>
>
> 2. and while im converting the foxpro db to mysql what will i ve to
> loose ???? the common pitfalls ......
>
>
> 3. there aint no foreign keys in mysql then what can i do about
> cascading updates, deletes and all
>
>
> 5. n finally do i have anyother choice of open source database
> (cheapest if not completely free) for this conversion ?????
>
>
>
> id be eternally gratefull if anyone cud guide me thru this ......
>
>
> thnx a billion zillion guyz .....
>
> toby ......
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Toby,
Either MySQL or PostgreSQL are good database alternatives. I'm more of a
hardcore database person so I prefer PostgreSQL because of it's support for
transactions. I've also found the SQL grammar in PostgreSQL to be a little
more standard. Another option would be the Firebird project
(http://firebird.sourceforge.net/). It was originally the Interbase product
from Borland.
Coming from FoxPro, either database is going to be a nice step up in the
world. The main thing to keep in mind is that you'll have to pay a bit more
attention to some of the standard database things like normalization and
referential integrity.
--
William D. 'Diggy' Bell
Principal
DB Software Development
http://www.dbsoftdev.com
"Toby z" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> ok guyz i need some inside info .....
>
> plz help me with:
>
>
> 1. if i ve to conver a db in foxpro to mysql or sql which one should
> i preffer to use with php and y ????
>
>
> 2. and while im converting the foxpro db to mysql what will i ve to
> loose ???? the common pitfalls ......
>
>
> 3. there aint no foreign keys in mysql then what can i do about
> cascading updates, deletes and all
>
>
> 5. n finally do i have anyother choice of open source database
> (cheapest if not completely free) for this conversion ?????
>
>
>
> id be eternally gratefull if anyone cud guide me thru this ......
>
>
> thnx a billion zillion guyz .....
>
> toby ......
>
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Thanks for all the help guys.
My problem, as most of you figured, is that my script has a form in it that
re-runs itself when the form is submitted so there is only one script
including the form and all the validation for the form. If the validation is
successful it sends you to a different page depending on the information
posted in the form. There was therefore no way I could get the header() to
be at the top of the returned data.
I ended up using:
if ($condition) {
print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
"'</SCRIPT>");
}
A rather elegant solution I've decided.
Oh, and FYI to all you IIS users out there... (At least I'm assuming it's
IIS and not the Windows platform itself. I'd be interested to know what
Windows users running Apache are experiencing).
I didn't have this problem with my script until I migrated it to a
Linux/Apache platform.
I assume that means that when I was doing it the original way that I had
multiple sets of header information and no telling what else being sent back
to the browser and IIS wasn't producing any error. Anyone using IIS and the
header(location: '') function might want to make sure they aren't exposing
data they didn't mean to.
j-
"Cam Dunstan" <[EMAIL PROTECTED]> wrote in message
002801c29602$d3e50da0$7866a8c0@camhome">news:002801c29602$d3e50da0$7866a8c0@camhome...
> Jack,
> here is another quick and dirty function to stick in your library, yet
> another way to redirect from anywhere in your script
>
> function redirect($url){
> echo "<script>window.location.replace(\"".$url."\")</script>";
> }
>
> usage:
>
> blah
> blah
> redirect("any_url");
>
> exit;
>
>
>
> >
> > -----Original Message-----
> > From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 2:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Redirect browser to another URL?
> >
> >
> > Hello,
> >
> > Anyone know how to have a script re-direct the browser to a URL cleanly?
> >
>
>
--- End Message ---
--- Begin Message ---
Just for feedback (note: I don't run Apache on win32 live anywhere - it's
primarily a test bed), Apache has worked flawless for me. However, I tend to
put Apache on Linux when I get the chance. Stability of NT still scares me.
I like using Apache for a few reasons:
1. It's cleaner (simple text config file)
2. It's smaller (takes up less resources)
3. Apache seems to be more compliant (expect MS to be compliant with any
spec other than their own?)
But one of the biggest reasons is this: I have almost never had to use PHP
on a windows server (only once, and that was on IIS3 which was eventually
migrated to Apache). I'm comfy with Apache so I stick with it. I have the
unfortunate task of managing a few IIS servers which run proprietary
software which I cannot switch to Apache.
By the way, the header() call does not need to be at the top of the page -
just before any output has been sent to the browser. I have header calls
90-100 lines down simply because it's part of an else statement (like if
blah { /*lines 2-100*/ } else { header (location: blah.php);}). Just make
sure no output of any kind was sent before the header call (except session
stuff or other header calls).
-Dash
-----Original Message-----
From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 8:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Redirect browser to another URL?
Thanks for all the help guys.
My problem, as most of you figured, is that my script has a form in it that
re-runs itself when the form is submitted so there is only one script
including the form and all the validation for the form. If the validation is
successful it sends you to a different page depending on the information
posted in the form. There was therefore no way I could get the header() to
be at the top of the returned data.
I ended up using:
if ($condition) {
print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
"'</SCRIPT>");
}
A rather elegant solution I've decided.
Oh, and FYI to all you IIS users out there... (At least I'm assuming it's
IIS and not the Windows platform itself. I'd be interested to know what
Windows users running Apache are experiencing).
I didn't have this problem with my script until I migrated it to a
Linux/Apache platform.
I assume that means that when I was doing it the original way that I had
multiple sets of header information and no telling what else being sent back
to the browser and IIS wasn't producing any error. Anyone using IIS and the
header(location: '') function might want to make sure they aren't exposing
data they didn't mean to.
j-
"Cam Dunstan" <[EMAIL PROTECTED]> wrote in message
002801c29602$d3e50da0$7866a8c0@camhome">news:002801c29602$d3e50da0$7866a8c0@camhome...
> Jack,
> here is another quick and dirty function to stick in your library, yet
> another way to redirect from anywhere in your script
>
> function redirect($url){
> echo "<script>window.location.replace(\"".$url."\")</script>";
> }
>
> usage:
>
> blah
> blah
> redirect("any_url");
>
> exit;
>
>
>
> >
> > -----Original Message-----
> > From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 2:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Redirect browser to another URL?
> >
> >
> > Hello,
> >
> > Anyone know how to have a script re-direct the browser to a URL cleanly?
> >
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi
The problem I am having is as follows:
I setup PHP with IIS and it seems to work fine. I am creating a Intranet
site and would like to obtain the user logged on to the networks
username. I have setup basic auth but when I visit the site it asks me
for my username and password before I can get in. Integrated Windows
Auth is turned off. When I turn it on and try to login it says login
failed. I know that ASP can have a script added to the page to turn pass
through auth but I need one for PHP.
I am using $HTTP_SERVER_VARS["LOGON_USER"] to get the username and it
works when I login. I just need to get rid of the login box.
Please any help or ideas would be much appricated
Thanks for your help in advance.
Shaun Garriock
*** The contents of this message are confidential and are intended for the addressee
only. The views expressed in this message do not necessarily represent those of Robert
Gordon's College. Electronic mail transmission is not guaranteed to be secure,
therefore, Robert Gordon's College does not accept liability for the contents of this
transmission. This message does not form a legal binding contract. ***
--- End Message ---
--- Begin Message ---
I am trying to install php 4.2.3 with apache 2.0.43 on window 2000.
I copy php4ts.dll to winnt/system32 and add the following at the end of my
apache config file per install instruction.
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
But after I did that, my apache fails to start and I don't see there is any
error in the apache log.
Do I miss something else?
Thanks.
--- End Message ---