Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 04-14-2009, 08:00 AM   #1 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default php only shows source

after installing php on a windows xp with iis, the source is shown in the broswer as opposed to dynnamic putput.

i tried installing as isamp fastcgi & cig.

running the command line outputs the same as the browser.

what can i do to troubleshoot?
office politics is offline  
Old 04-14-2009, 08:46 AM   #2 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,159

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: php only shows source

Do you have the php script tags around it?

EDIT: Alternatively post up your code.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline  
Old 04-14-2009, 10:33 AM   #3 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: php only shows source

just trying to display phpinfo();

after uninstall reinstall i receive this output

Code:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_oci8.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_oci.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_oci8.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_pgsql.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_pdo_sqlite_external.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to l
internet guest user has read exe access to php\ext. php.ini has extension_dir="C:\PHP\ext" in it
office politics is offline  
Old 04-14-2009, 09:14 PM   #4 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: php only shows source

If it was Apache I could help ya, but I don't know IIS.

Unless you plan on using ASP I'd recommend ditching IIS and using Apache, tbh.
__________________

Need website help? PM me!
CrazeD is offline  
Old 04-14-2009, 10:24 PM   #5 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: php only shows source

if it was a linux box, i'd actually perfer Apache. but since its a windows box, i'm against installing apache.

i'll keep banging away at it. in the interm we're going to run the following virtual appliance

MediaWiki Appliance | Virtual Appliance Marketplace
office politics is offline  
Old 04-14-2009, 10:25 PM   #6 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: php only shows source

Quote:
Originally Posted by office politics View Post
if it was a linux box, i'd actually perfer Apache. but since its a windows box, i'm against installing apache.

i'll keep banging away at it. in the interm we're going to run the following virtual appliance

MediaWiki Appliance | Virtual Appliance Marketplace
Why? Apache works absolutely fine on Windows.
__________________

Need website help? PM me!
CrazeD is offline  
Old 04-14-2009, 10:28 PM   #7 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: php only shows source

iis is builtin to windows. microsoft product installed on a microsoft product.

as opposed to a product orginally developed for linux then ported for windows.

"runs fine on windows" <-- reminds me of what i told my coworkers about installing php on windows "it's just a double click"
office politics is offline  
Old 04-15-2009, 05:32 PM   #8 (permalink)
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,683

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: php only shows source

Well I don't want to start a big argument, but I think you're being a little close minded.

I have a Windows box running Apache, MySQL, and PHP with absolutely no issue.

"Microsoft product installed on a Microsoft product" is like a double fail.
__________________

Need website help? PM me!
CrazeD is offline  
Old 04-17-2009, 05:09 PM   #9 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default Re: php only shows source

LAMP Appliance | Turnkey Linux Software Appliances

allows to install directly to the disk
office politics is offline  
Old 04-22-2009, 03:35 PM   #10 (permalink)
davehost's Avatar
 
Newb Techie

Join Date: Apr 2009

Posts: 1

davehost is on a distinguished road

Send a message via Skype™ to davehost
Default Re: php only shows source

Hi,
This looks like you may need to comment out these in your php.ini file. They each refer to database software, Oracle, pgsql and SQLlite. I have never run PHP on IIS but this may be something to do with connectors. I would think that by uncommenting these out you may get some joy.

If that doesn't work maybe the path to your extensions directory is wrong, or your php.ini file may not be in the right directory. Normally you would find it in C:\Windows\ but with IIS I think you need to make sure in the registry that you have the location defined correctly.

As I said I haven't used PHP with IIS but I seem to remember that the HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath Windows Registry location is the one you need.

If this helps great if not sorry.
davehost is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How echo works in PHP Osiris Programming Discussions 0 03-04-2009 08:34 AM
PHP - what it does and what it doesn’t Osiris Programming Discussions 1 02-16-2009 04:09 PM
Wev Development: How does PHP work? Osiris Programming Discussions 1 01-08-2009 04:31 PM
Computer Still acting screwy Shana2415 Virus - Spyware Protection / Detection 10 09-03-2008 11:36 AM