Jump to content


Photo

Incoporating PHP...


  • Please log in to reply
7 replies to this topic

#1 beamerrox

beamerrox
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts
  • LocationGrimshaw, Alberta, Canada

Posted 04 August 2006 - 05:09 AM

is there anything currently available so that when i click on a php file in my windows ui that it opens in any browser window as the parsed PHP/MySQL instead of a bunch of "gobbledygook"(code)

#2 Caesar

Caesar
  • Members
  • PipPipPip
  • Advanced Member
  • 1,025 posts

Posted 04 August 2006 - 05:48 AM

If you're talking about opening PHP files ("file.php") on your local machine, then no. Unless of course, you install PHP on your local machine. And I discourage the use of PHP on Windows boxes. Especially when people run it in CGI mode. I work in the support/development business....and I can't believe some of the numbskull questions I have heard Windows "Server Administrators" ask. I swear. Some deserve to get shot in the face they're so stupid.

So yea, why don't you use an editor that saves the changes to your code on the server real-time?
PHP Ninja

#3 beamerrox

beamerrox
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts
  • LocationGrimshaw, Alberta, Canada

Posted 05 August 2006 - 06:32 AM

because i want to actively browse php files from the windows gui?

i have been saving to the server

#4 Salis

Salis
  • Members
  • PipPipPip
  • Advanced Member
  • 130 posts

Posted 05 August 2006 - 08:21 AM

Actually there is a great program out there that has PHP 5 MySQL 5 Apachee FileZille and it's free!

http://www.apachefri...g/en/xampp.html

#5 beamerrox

beamerrox
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts
  • LocationGrimshaw, Alberta, Canada

Posted 05 August 2006 - 09:30 AM

umm, why would i want XAMP, when i have Apache2Triad?

i am looking for a GUI hack that makes files readable to the browsers for example C:/test.php would be the PARSED document if brought up in any browser, NOT a server, as i have 2 Red Hat 9 Servers sitting beside me...understand yet?

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 05 August 2006 - 10:26 AM

You cannot run PHP code through the browser, as browsers dont uderstand PHP code and PHP is server side. So it needs a server environment in order to parse the files. If you want to run your PHP you'll have to upload your scripts to your website and run them there, or install Apache, PHP and MySQL (Apache2triad or XAMPP etc) locally on your PC. Save your php files to the htdocs folder and then goto http://localhost/filename.php to run the PHP file.

There is no windows hack to run PHP files through a browser. PHP files need to be parsed by the PHP Intepretor, which then sends the output, which is probably text/html, back to the server. The server sends the output back to browser. The browser then takes the output and parses the html/css/javascript.

#7 ignace

ignace
  • Moderators
  • Now mod flavored
  • 6,430 posts
  • LocationBelgium

Posted 05 August 2006 - 10:37 AM

What you are looking for is an IDE (Integrated Development Environment) an Java IDE can be found at: http://www.eclipse.org/ , ofcourse you don't wanna start programming Java, so you will need the php module, which can be found here: http://phpeclipse.sourceforge.net/

regards,
Ignace

#8 beamerrox

beamerrox
  • Members
  • PipPipPip
  • Advanced Member
  • 35 posts
  • LocationGrimshaw, Alberta, Canada

Posted 05 August 2006 - 05:25 PM

thank you, kinda works...

and to the "guru"s who said it would not happen...i read a million articles on how the do it, i didn't get any links from them




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users