TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-04-2008, 02:08 PM   #1 (permalink)
The Contributor
 
j4v1's Avatar
 
Join Date: May 2008
Posts: 30
Thanks: 5
j4v1 is on a distinguished road
Default Opening Php files displays script in browser

I tried searching the forums on this issue, pretty sure its been discussed before.

I've just recently had to re-install xampp 1.6.6a. Previously everything was working like a charm. I even kept all the extensions an php.ini. Could this be a httpd.conf issue?

j4v1 is offline  
Reply With Quote
Old 06-04-2008, 02:50 PM   #2 (permalink)
The Contributor
 
Join Date: May 2008
Location: Denmark
Posts: 70
Thanks: 3
SpYkE112 is on a distinguished road
Default

Yes, maybe the loading of the PHP module has been for some reason disabled..
SpYkE112 is offline  
Reply With Quote
Old 06-04-2008, 02:51 PM   #3 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

More likely it would be your httpd.conf than your php.ini - the php configuration won't even come into play until the script is actually parsed as PHP. Are you on Windows or Linux? Make sure you have a line in your httpd.conf that reads something to this effect;

LoadModule php5_module "C:/Program Files/path/to/php/php5apache2_2.dll"

or

LoadModule php5_module modules/libphp5.so

Then you'll need to make sure this is somewhere in your httpd.conf as well,

AddType application/x-httpd-php .php

Hope that helps...
-m
delayedinsanity is offline  
Reply With Quote
Old 06-04-2008, 02:53 PM   #4 (permalink)
The Contributor
 
j4v1's Avatar
 
Join Date: May 2008
Posts: 30
Thanks: 5
j4v1 is on a distinguished road
Default

Checking right now. Also wanted to ask, sometimes I see back slashes used and other times I see forward slashes for windows directory path. Which is correct and when?
j4v1 is offline  
Reply With Quote
Old 06-04-2008, 02:59 PM   #5 (permalink)
The Contributor
 
j4v1's Avatar
 
Join Date: May 2008
Posts: 30
Thanks: 5
j4v1 is on a distinguished road
Default

BRB...I'm so tired of this BS. This was working fine all last week.

I now have to restart Vista...no suprise. See if that jars some of its senses.
j4v1 is offline  
Reply With Quote
Old 06-04-2008, 03:21 PM   #6 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Generally speaking backslashes on Windows, and forward slashes on Linux, though some applications, such as Apache which is native to linux, will accept forward slashes for windows paths as the backslash is generally accepted to be an escape character.
-m
delayedinsanity is offline  
Reply With Quote
Old 06-04-2008, 03:32 PM   #7 (permalink)
The Contributor
 
j4v1's Avatar
 
Join Date: May 2008
Posts: 30
Thanks: 5
j4v1 is on a distinguished road
Default

No dice, on reboot. Still everything is the same. Script shows up in browser.
j4v1 is offline  
Reply With Quote
Old 06-04-2008, 03:34 PM   #8 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Double check your path, make sure the .dll file is where you're specifying it to be, and you definitely have the AddType declaration in your httpd.conf as well?
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
j4v1 (06-04-2008)
Old 06-04-2008, 04:23 PM   #9 (permalink)
The Contributor
 
j4v1's Avatar
 
Join Date: May 2008
Posts: 30
Thanks: 5
j4v1 is on a distinguished road
Default

We've made progress! I'm getting somewhere now. Im using MS Expressions- Web Designer. It has a built in DevelopmentServer that needed to be started.

Thank you.
j4v1 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


All times are GMT. The time now is 01:40 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design