Author Topic: NO IDEA what's happened but php won't be handled in my browsers...  (Read 545 times)

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
I've tried chrome, and firefox, and neither one of them will handle php anymore it seems. I have tried uninstalling and reinstallling WAMP and even XAMP and it just refuses to work for me. I can however, use PHPmyadmin for some odd reason. It's not allowing me to do anything with them. The code just shows up as plain old code when i attempt to do anything. I even tried using some of the php examples on the php site. Plus building browser games, it still refuses to work for me. on Netbeans it seems to notice it and work but my browsers are refusing to accept php. Apache's loaded though, and so is mysql. I don't see any php running which perplexes me considering phpmyadmin works without it somehow...

edit: Ignorance has led to this simple failure, i'm locking it since there's no reason to be up anymore... it should've clicked when jg was talking about what he said in his post it only just hit today...
« Last Edit: February 06, 2010, 05:17:18 AM by 133794m3r »

Offline JGadrow

  • Level 35
  • **
  • Posts: 1,133
  • Reputation: +23/-2
    • View Profile
Re: NO IDEA what's happened but php won't be handled in my browsers...
« Reply #1 on: February 05, 2010, 08:46:29 AM »
The issue here is not related to browsers. PHP is a server side language. This means that the client (browser window) never has anything to do with the script. The script is processed by your web server and the output of the script is returned to the client.

So, what is happening in this scenario is that your webserver (Apache since you're using an AMP configuration) is not parsing the PHP files. This commonly means that your configuration directives (as indicated by Mike above) are incorrect and Apache doesn't know that it needs to hand the script off to PHP to be processed before returning it to the client.

The effect is that Apache just sends the contents of the file (the scripe) to the browser. Hope that helps to clarify what's going on here.
Idiocy - Never underestimate the power of stupid people in large groups.


Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: NO IDEA what's happened but php won't be handled in my browsers...
« Reply #2 on: February 05, 2010, 11:41:19 PM »
The issue here is not related to browsers. PHP is a server side language. This means that the client (browser window) never has anything to do with the script. The script is processed by your web server and the output of the script is returned to the client.

So, what is happening in this scenario is that your webserver (Apache since you're using an AMP configuration) is not parsing the PHP files. This commonly means that your configuration directives (as indicated by Mike above) are incorrect and Apache doesn't know that it needs to hand the script off to PHP to be processed before returning it to the client.

The effect is that Apache just sends the contents of the file (the scripe) to the browser. Hope that helps to clarify what's going on here.
The main thing is that i don't know why it's no longer working... that's my biggest issue is that the install's not seeming to work. And along with some random increased issues with windows itself i think i'm going to reinstall it. If gimp was up to the task of a photoshop replacement, i'd just stick there well that along with xorg working better since atm no dual screens working properly. So in the end, i guess a reinstall of the entire system from bottom to top should be able to fix it, if it doesn't then i'll come back and post saying nothing worked.

edit: well... it seems nothing's happenned except windows is behaving better. Apache i guess isn't doing its job for some odd reason anymore... so thus i can't even really test the pages on my own local server. I have reinstalled wamp 4 times now and that's simply b/c when i tried to have a gui mysql+php+apache on my own it refused to work. I don't know why its' all of a sudden not working, it used to work perfectly but now it's not working what so ever. I doubt the version of the document that i was using really makes that big of a difference. The only thing that's changed is that i updated netbeans. but then wamp has the latest php with it so i have no idea what's going on.
« Last Edit: February 06, 2010, 04:47:59 AM by 133794m3r »

Offline 133794m3r

  • Level 22
  • *
  • Posts: 265
  • Reputation: +2/-0
    • View Profile
Re: NO IDEA what's happened but php won't be handled in my browsers...
« Reply #3 on: February 06, 2010, 05:15:09 AM »
I feel like the dumbest person that's ever existed ever... -_- i'm a moron... this thread can be closed now. I figured out EXACTLY what's going wrong... the file's not within it's own folder inside of the WWW folder of wamp... gah i feel dumb now... should've figured it out before. Seems habits which you don't use for a few months die...

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal