Something gone wrong

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
monstaink
Forum Newbie
Posts: 8
Joined: Wed Nov 17, 2010 9:59 am

Something gone wrong

Post by monstaink »

Hi all,
I am new to PHP and working through some tutorials, being fairly ok with html i'm understanding wher ei'm going and if something goes wrong in the page I can normally find it.

But here is my problem, mt test server has decided to throw a benny.

Apache2.2 php5.2 and mysql5.1 the server is running and i get that test page back it works a ok

but when i now execute any php file it is asking me to open or save it, open and it opens dreamweaver and svae well speaks for its self.

Has anybody any idea what has gone up the wall, or do i have the mundain task of trying to find it. only thing i have done since loading my serverside and php ect is then install dreamweaver.

Thanks for any help its really appreciated.
keith
monstaink
Forum Newbie
Posts: 8
Joined: Wed Nov 17, 2010 9:59 am

Re: Something gone wrong

Post by monstaink »

Ok an update on my problem

When i first installed all programs i made a test.php with the following line <?php phpinfo(); ?>

this worked as it should and returned the data in it, that has since stoped working as well, open the pages with IE and they come up as a downlaod file to save open or cancel

the only thing i have done since installing php5 apache2,2 mysql5.1 and myphpadmin, is install my dreamweaver.

This was all installed on a formatted drive i made a few webpages php pages in programers notebook before i installed dreamweaver and they worked they have now stopped as well.

Could this be a dreamweaver problem
monstaink
Forum Newbie
Posts: 8
Joined: Wed Nov 17, 2010 9:59 am

Re: Something gone wrong

Post by monstaink »

Sorry Guys

I said i was new to php, what a dumba$$ i am

was loading from c:/progetc/indeex.php rather than localhost/index.php

so that is that sorted all working again

i think
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: Something gone wrong

Post by Luke »

You will have much better luck getting a response if you change your post title to something a little more descriptive. "Something gone wrong" doesn't get prospective helpers anything to go by. That could mean anything. Also, please don't use symbols to get past our language filters. They are there for a reason. Thanks! :)
Goldwinterrain
Forum Newbie
Posts: 4
Joined: Sun Mar 13, 2011 9:15 pm

Re: Something gone wrong

Post by Goldwinterrain »

Ok an update on my problem

When i first installed all programs i made a test.php with the following line <?php phpinfo(); ?>

this worked as it should and returned the data in it, that has since stoped working as well, open the pages with IE and they come up as a downlaod file to save open or cancel

the only thing i have done since installing php5 apache2,2 mysql5.1 and myphpadmin, is install my dreamweaver.

This was all installed on a formatted drive i made a few webpages php pages in programers notebook before i installed dreamweaver and they worked they have now stopped as well.

Could this be a dreamweaver problem
jim.barrett
Forum Newbie
Posts: 20
Joined: Tue Mar 01, 2011 5:47 am

Re: Something gone wrong

Post by jim.barrett »

Sorry if this is a stupid question...but how are you opening the files? Are you navigating the file system to where your localhost is and selecting 'open' or typing the url to your localhost into the browser?

on windows I think your localhost resides at something like c:/wamp/www ... correct? well, if you navigate to that folder in the file system and select to open a particular file, it will generally open with the default program..and as it happens Dreamweaver (unless you tell it not to during installation) sets itself to be the default program to open all sorts of file types.

try opening a browser and entering "localhost/" and the name of your local site and see if that helps?
Post Reply