php-windows Digest 31 Jan 2003 09:54:37 -0000 Issue 1564
Topics (messages 18241 through 18262):
What are the PHP Best Practices in virtual Server environment?
18241 by: Mark Thornton
Re: Register globals on and off
18242 by: Dash McElroy
18258 by: Davy Obdam
getimagesize() error
18243 by: Ryan
For those who ask about a great host...
18244 by: Asendorf, John
Re: Wierd Windows Problems
18245 by: Chris Deam
18247 by: Dash McElroy
18248 by: Chris Deam
Apache service stalls
18246 by: Pedro MG
18252 by: Wade
Re: Web pages don't show up in IE 6 w/SP1.
18249 by: Stephen Edmonds
18262 by: Uttam
Turn on Error Messages
18250 by: Wade
18253 by: Christoph Grottolo
Re: Running PHP and ASP on same server.
18251 by: Christoph Grottolo
SQL SERVER TRUSTED CONNECTION HELP
18254 by: Daniel Masson
18255 by: Bruce Barnes
18256 by: Daniel Masson
18260 by: Frank M. Kromann
php4apache.dll on windows2k gives warning
18257 by: pzaz
Re: [PHP] Re: [PHP-WIN] Register globals on and off
18259 by: Tom Rogers
SSI, SHTML and PHP, INCLUDES...
18261 by: Leo G. Divingracia III
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 ---
What are the Best Practices for configuring PHP on IIS5 for virtual servers?
What are the security implications? What doesn't work, if anything?
--
Mark Thornton
--- End Message ---
--- Begin Message ---
Yes. Either via a .htaccess file or in your httpd.conf in a Directory
entry put this:
php_value register_globals on
See the following URL's for more info:
http://www.php.net/manual/en/configuration.changes.php
http://www.php.net/manual/en/function.ini-set.php
-Dash
AQUARIUS (Jan 20 - Feb 18)
You have an inventive mind and are inclined to be progressive.
You lie a great deal. On the other hand, you are inclined to
be careless and impractical, causing you to make the same
mistakes over and over again. People think you are stupid.
On Thu, 30 Jan 2003, Davy Obdam wrote:
> Hello people,
>
> On my development machine (win XP/Apache 2.0.44/PHP 4.3.0/MySQL 3.23.55)
> i have several websites that i made some time ago that require register
> globals to be On in the php.ini. Ofcourse i know thats not a good idea
> at all for security, but rewriting all this code is not an option.
> However in my php.ini i have set register globals to Off because that
> better. Is it possible to configure my webserver/php so that only those
> sites that require register globals to be On have that setting, for
> instance in a .htacces file?? Any help is appreciated:-)
>
> Best regards,
>
> Davy Obdam
> mailto:[EMAIL PROTECTED]
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Thanks for your reactions guys, I stil havent been able to get it to
work... I have added a .htaccess file into my directory that needs the
register globals on, containing
php_value register_globals on
And i have chanched AllowOverride None to all in the httpd.conf file, and restarted my webserver... But its stil not working. I am i doing something wrong? Thanks for your time...
Best regards,
Davy Obdam
mailto:[EMAIL PROTECTED]
Davy Obdam wrote:
Hello people,
On my development machine (win XP/Apache 2.0.44/PHP 4.3.0/MySQL
3.23.55) i have several websites that i made some time ago that
require register globals to be On in the php.ini. Ofcourse i know
thats not a good idea at all for security, but rewriting all this code
is not an option. However in my php.ini i have set register globals to
Off because that better. Is it possible to configure my webserver/php
so that only those sites that require register globals to be On have
that setting, for instance in a .htacces file?? Any help is
appreciated:-)
Best regards,
Davy Obdam
mailto:[EMAIL PROTECTED]
--
--------------------------------------------------------------------
Davy Obdam - Obdam webdesignŠ
mailto:[EMAIL PROTECTED] web: www.davyobdam.com
--------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
I just upgraded my php version to 4.3.0 on a Linux box. The
configuration is the same as previous installs except for added support
for IMAP/POP. getimagesize() is now reporting the following error:
*Warning*: getimagesize() [function.getimagesize
<http://www.php.net/function.getimagesize>]: php_network_getaddresses:
getaddrinfo failed: Temporary failure in name resolution in
*/home/www/dev.antfarm/osgw/functions.php* on line *186*
*Warning*: getimagesize(http://host.com/graphics/image.gif)
[function.getimagesize <http://www.php.net/function.getimagesize>]:
failed to create stream: Resource temporarily unavailable in
*/home/www/osgw/functions.php* on line *186*
Get image size works properly when accessing the file through the
filesystem. The errors only show up when trying to access the image
through http. Can anyone give me some information on how to fix this?
My server is running Apache 1.3.24 /w mod_ssl
Thanks
--- End Message ---
--- Begin Message ---
I would just like to say that I have been with Spenix for a month for a
personal domain now and am so incredibly happy that I wanted everyone to
know how great these guys are.
http://www.spenix.com
I will never switch to another host (and I've probably worked with a dozen
for a variety of projects).
The question, "Can anyone suggest a great host?" Need never be asked
again...
John
P.S. I quite honestly have nothing to do with these guys except I'm a very
happy customer.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
--- End Message ---
--- Begin Message ---
Okay, you are correct about the coding practices, but this is not really
helping me. One other thing I forgot to mention is that I have two such
buttons:
<button type="submit" name="action">Search</button>
<button type="submit" name="action>Add</button>
When I click on search, $action is suppossed to be set to Search, but it is
actually getting set to Add. Any ideas?
--- End Message ---
--- Begin Message ---
Looks like a missing quote could be a culprit here.
<button type="submit" name="action">Add</button>
Would you not also need a value="Add" in the <button> tag?
IE borks on stuff like that.
-Dash
For those who like this sort of thing, this is the sort of thing they
like.
-- Abraham Lincoln
On Thu, 30 Jan 2003, Chris Deam wrote:
> Okay, you are correct about the coding practices, but this is not really
> helping me. One other thing I forgot to mention is that I have two such
> buttons:
> <button type="submit" name="action">Search</button>
> <button type="submit" name="action>Add</button>
> When I click on search, $action is suppossed to be set to Search, but it is
> actually getting set to Add. Any ideas?
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Okay, I fixed it. Here is the fix.
<Input type="submit" Name="action" Value="Search">
<Input type="submit" Name="action" Value="Add">
Instead of:
<button type="submit" name="action">Search</button>
<button type="submit" name="action">Add</button>
But what I don't understand is that the latter works both in IE and Netscape
on the Linux setup, but only the fix works on the windows setup. Any ideas?
--- End Message ---
--- Begin Message ---
Hi,
i installed succesfully Apache 2.0.43 on a Win Millenium as a service.
The problem is that i can't stop the service using the command line, and
using the monitor. I cant even restart it.
If i delete the "process" using alt-ctrl-del, the computer stall for 1
minute, and after i get a new process for Apache.
When i want to restart the computer, it stalls with that "process" for 3
minutes and i have to manually delete the "process".
The rest is working well.
What can it be ?
--
Regards,
Pedro MG
www.tquadrado.com
--- End Message ---
--- Begin Message ---
01302007 1410 CST
I couldnt get 2.0.43 to run on W2k either. Just use 1.3.26. Its stable
and it just works. Unless you absolutly need something in 2.0.43 or just
want to play with it, dont use it for anything developmental.
Wade
Pedro Mg wrote:
Hi,
i installed succesfully Apache 2.0.43 on a Win Millenium as a service.
The problem is that i can't stop the service using the command line, and
using the monitor. I cant even restart it.
If i delete the "process" using alt-ctrl-del, the computer stall for 1
minute, and after i get a new process for Apache.
When i want to restart the computer, it stalls with that "process" for 3
minutes and i have to manually delete the "process".
The rest is working well.
What can it be ?
--
Regards,
Pedro MG
www.tquadrado.com
--- End Message ---
--- Begin Message ---
Well its not your browsers fault - PHP is all generate before being sent to
the browser. Is PHP enabled on your webserver? Which server are you using?
Did you remember to restart the server after installing php? And is your
file end with .php?
More infomation on your server/php page would be helpful
Stephen
----- Original Message -----
From: "Jammy Hall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 2:50 PM
Subject: [PHP-WIN] Web pages don't show up in IE 6 w/SP1.
> I running Windows 2000 w/SP3 and IE 6 w/SP1 and I can't get pages using
PHP
> to show up in my browser....
>
> I don't get any errors, just a blank space were the PHP info would be.
>
> Any suggestions???
>
> Thanks,
>
> Jammy
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
use the 'view source' to see what information is being passed to browser.
otherwise post more information about your configuration, address used to
access the file, contents of php file etc.
regds,
-----Original Message-----
From: Jammy Hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 20:20
To: [EMAIL PROTECTED]
Subject: Web pages don't show up in IE 6 w/SP1.
I running Windows 2000 w/SP3 and IE 6 w/SP1 and I can't get pages using
PHP
to show up in my browser....
I don't get any errors, just a blank space were the PHP info would be.
Any suggestions???
Thanks,
Jammy
--- End Message ---
--- Begin Message ---
01302003 1407 CST
How do you turn on error messages in your PHP scripts?
I have removed ";" from the php.ini and changed OFF to ON in two
locations. But when I check the phpinfo() page it still says they are
off and my pages still return no errors. What gives?
Wade
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Wade) wrote:
>01302003 1407 CST
>
>How do you turn on error messages in your PHP scripts?
>I have removed ";" from the php.ini and changed OFF to ON in two
>locations. But when I check the phpinfo() page it still says they are
>off and my pages still return no errors. What gives?
Probably your php.ini file is in a wrong location your you have more
than one in your path - or you didn't restart your webserver after
changing the ini file.
Christoph
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Fred Mastropasqua) wrote:
>I have IIS 5 on Win2K.
>
>If I install PHP 4.2.3 on my system using the ISAPI DLL I can run PHP files
>just fine.
>But when I go back to my ASP pages I get:
>--------------------------
> -2147417842 (0x8001010e) error on the pages
>--------------------
Try with 4.3.0 or a recent stable snapshot from http://snaps.php.net.
There is a big chance that it works now because ISAPI is much more
stable.
>
>If I try the Php.EXE CGI method then my ASP pages work but I get:
>-------------------------
>Security Alert! The PHP CGI cannot be accessed directly.
Did you remove the ';' at the beginning of the cgi.force_redirect = 0
line?
You can find out if php works and if your ini settings are getting
read by calling php from the command line:
php -c "path-to-your-ini-file" -i (-4.2.3) or
cli\php -c "path-to-your-ini-file" -i (4.3.0+)
Christoph
--- End Message ---
--- Begin Message ---
Hello list.
I know about sql server authentication (windows and sql) y installed sql
server 2000 on an win xp box, and my server already has "SQL and windows
authentication", and still my php script goes "Login failed for user
'myuser'. Reason: Not associated with a trusted SQL Server connection. "
Anyone got this before ??
Scripts are in a NT4 box and sql server 2000 on a xp box.
Thanks every1 any help would be very very appreciated.
--- End Message ---
--- Begin Message ---
What version of XP are you running. If you are not running XP Professional
and you have an Internet connection, it will NOT connect simultaneously to
another computer or server.
Bruce Barnes
ChicagoNetTech / Rinella Internet Services
-----Original Message-----
From: Daniel Masson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 16:27
To: 'PHP-WIN'
Subject: [PHP-WIN] SQL SERVER TRUSTED CONNECTION HELP
Hello list.
I know about sql server authentication (windows and sql) y installed sql
server 2000 on an win xp box, and my server already has "SQL and windows
authentication", and still my php script goes "Login failed for user
'myuser'. Reason: Not associated with a trusted SQL Server connection. "
Anyone got this before ??
Scripts are in a NT4 box and sql server 2000 on a xp box.
Thanks every1 any help would be very very appreciated.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
It is XP professional .. the scripts are running on a NT box on IIS 4
and database on XP professional.
Thanks for your reply.
-----Mensaje original-----
De: Bruce Barnes [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 30 de enero de 2003 17:44
Para: [EMAIL PROTECTED]
Asunto: RE: [PHP-WIN] SQL SERVER TRUSTED CONNECTION HELP
What version of XP are you running. If you are not running XP
Professional
and you have an Internet connection, it will NOT connect simultaneously
to
another computer or server.
Bruce Barnes
ChicagoNetTech / Rinella Internet Services
-----Original Message-----
From: Daniel Masson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 16:27
To: 'PHP-WIN'
Subject: [PHP-WIN] SQL SERVER TRUSTED CONNECTION HELP
Hello list.
I know about sql server authentication (windows and sql) y installed sql
server 2000 on an win xp box, and my server already has "SQL and windows
authentication", and still my php script goes "Login failed for user
'myuser'. Reason: Not associated with a trusted SQL Server connection. "
Anyone got this before ??
Scripts are in a NT4 box and sql server 2000 on a xp box.
Thanks every1 any help would be very very appreciated.
--
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 ---
If your SQL Server is configured with both SQL and Windows auth you shoule
be able to connect using a SQL user. You need to configure both Server and
client to use the same default protocol, or configure an alias at the
client using the protocol expected by the server.
These configurations are done with 'Server Network Utility' and 'Client
Network Utility'
When this configuration is correct (and tested with Query Analizer) you
can start using PHP. You might set
mssql.secure_connection = On
in your php.ini file. This will cause the MSSQL extension to use a trusted
Windows logon when connecting to the server. You still have to configure
the protocols though.
- Frank
> It is XP professional .. the scripts are running on a NT box on IIS 4
> and database on XP professional.
>
>
> Thanks for your reply.
>
>
> -----Mensaje original-----
> De: Bruce Barnes [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves, 30 de enero de 2003 17:44
> Para: [EMAIL PROTECTED]
> Asunto: RE: [PHP-WIN] SQL SERVER TRUSTED CONNECTION HELP
>
> What version of XP are you running. If you are not running XP
> Professional
> and you have an Internet connection, it will NOT connect simultaneously
> to
> another computer or server.
>
> Bruce Barnes
> ChicagoNetTech / Rinella Internet Services
>
> -----Original Message-----
> From: Daniel Masson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 16:27
> To: 'PHP-WIN'
> Subject: [PHP-WIN] SQL SERVER TRUSTED CONNECTION HELP
>
>
> Hello list.
>
> I know about sql server authentication (windows and sql) y installed
sql
> server 2000 on an win xp box, and my server already has "SQL and
windows
> authentication", and still my php script goes "Login failed for user
> 'myuser'. Reason: Not associated with a trusted SQL Server connection.
"
>
> Anyone got this before ??
>
> Scripts are in a NT4 box and sql server 2000 on a xp box.
>
> Thanks every1 any help would be very very appreciated.
>
>
> --
> 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
>
>
--- End Message ---
--- Begin Message ---
I started with these files for my Win2k laptop:
Apache_1.3.27-Mod_SSL_2.8.12-OpenSSL_0.9.6h-Win32.zip
php-4.3.0-Win32.zip
mysql-3.23.54-win.zip
However, when I start apache from the command prompt I get the following
[warn]...
Loaded DSO C:/php/sapi/php4apache.dll uses plain Apache 1.3 API, this module
might crash under EAPI (please recompile it with -DEAPI)
I'm not sure what to do with this message.
The next message in the start up reads...
Apache/1.3.27 (Win32) PhP/4.3.0 mod_ssl/2.8.12 OpenSSL/0.9.6h running...
and that's it. Shouldn't it return to the C:\APACHE> prompt? It seems like
it's waiting for something.
thank you in advance for your feedback.
--- End Message ---
--- Begin Message ---
Hi,
Friday, January 31, 2003, 10:42:42 AM, you wrote:
DO> Thanks for your reactions guys, I stil havent been able to get it to
DO> work... I have added a .htaccess file into my directory that needs the
DO> register globals on, containing
DO> php_value register_globals on
DO> And i have chanched AllowOverride None to all in the httpd.conf file, and
restarted my webserver... But its stil not working. I am i doing something wrong?
Thanks for your time...
DO> Best regards,
DO> Davy Obdam
DO> mailto:[EMAIL PROTECTED]
It should be:
php_flag register_globals on
--
regards,
Tom
--- End Message ---
--- Begin Message ---
have a slight problem.
need to include some template files that are javascript.
so i have setup my apache 1.3.x server to parse .SHTML files.
now, i need to add php to this.
so fine. all i thought i could do was add this to my apache conf file:
AddType application/x-httpd-php .php4 .php .htm .php3 .inc .html .shtml
but after that change, when i call that .shtml page with a bit of php
code, it brings up the SAVE AS dialog box.
here's the part of apache's conf file to parse SSI files:
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
so is there way to get around this? or am i stuck?
thanks...
--
Leo G. Divinagracia III
[EMAIL PROTECTED]
zzzzz
--- End Message ---