You are here: Re: Output differs between browser and console « PHP Programming Language « IT news, forums, messages
Re: Output differs between browser and console

Posted by Alvaro G. Vicario on 07/05/07 17:56

*** google@thefifthimperium.com escribió/wrote (Thu, 05 Jul 2007 10:21:35
-0700):
> I'm running PHP v4.4.0 on a Windows 2000 Server (SP4) running IIS
> v5. A simple script I'm using is generating ODBC errors (not finding
> my tables) when I run the script through a web browser connected to
> the IIS server.
>
> If I then run the unchanged script locally, from a Windows console
> window, the PHP script connects to the database and I can dump the
> table listing and access a particular table fine - I see the database
> contents scrolling by.

Are you using a system-wide DSN or a user DSN? When you run a script from
the command line it uses your user credentials, but when you run it through
a web server it uses the credentials of whatever user the web server runs
as (typically "LocalSystem").

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация