Is there any way that i can view php on my computer rather than on the net?
Is there any way that i can view php on my computer rather than on the net?
Sure. Setup your computer as a webserver.
Look at php.net for the files to install to a "server" and do so to your computer. Note that you should have apache or something installed to run it with (not sure on the specifics here, sorry).
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Webservers aren't the only way to do it, though they're usually the best. If you just want to test some simple code, though, it's faster to use the command-line interpreter:Code:prompt$ php <?php echo("Five plus three is " . (5+3)); ?> (end-of-input control sequence, ctrl-D on *n?x) Five plus three is 8 prompt$
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Ok so youre saying put the php code between
"prompt$ php
//content here
prompt$
You enter the code after executing the "php" command and before pressing the control sequence![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Er... that's automatically on your system? I'm clearly missing something.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Originally Posted by djr33
I think it's somewhere near that -GR key![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
I'm up way too late, and just got a really fun picture of a whole bunch of gears spinning around in Twey's head.
Hehe.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
I don't know about "a whole bunch"... unless they are all loose![]()
{CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
Follow Me on Twitter: @InkingHubris
PHP Code:$result = mysql_query("SELECT finger FROM hand WHERE id=3");
echo $result;
Almost certainlyIt is on *n?x if you supply the correct compile options (I think building a command-line interpreter is default). On Windows I believe there's an executable, php.exe, that comes bundled with the package.Er... that's automatically on your system? I'm clearly missing something.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks