Jump to content

Archived

This topic is now archived and is closed to further replies.

beamerrox

Incoporating PHP...

Recommended Posts

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)

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
because i want to actively browse php files from the windows gui?

i have been saving to the server

Share this post


Link to post
Share on other sites
Actually there is a great program out there that has PHP 5 MySQL 5 Apachee FileZille and it's free!

http://www.apachefriends.org/en/xampp.html

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.