Nov 23, 2004 #1 TheConeHead Programmer Joined Aug 14, 2002 Messages 2,106 Location US can I run php/mySQL on a machine as a stand-alone? if so, where do I download the software to do such
can I run php/mySQL on a machine as a stand-alone? if so, where do I download the software to do such
Nov 23, 2004 1 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US as a stand-alone"? The standard places for downloading PHP and MySQL are http://www.php.net and htttp://http://www.mysql.com, respectively. Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
as a stand-alone"? The standard places for downloading PHP and MySQL are http://www.php.net and htttp://http://www.mysql.com, respectively. Want the best answers? Ask the best questions! TANSTAAFL!!
Nov 23, 2004 #3 BitFuzzy Technical User Joined Jun 8, 2001 Messages 343 Location US sure you can. all you need is PHP and Mysql configured and installed You're going to be setting up your scripts like you would a bash script. a simple example of a stand alone PHP script #!/usr/bin/php <? // Date formatting // Month Types: M = May m = 05 // Day Types: D = Tue d = 02 // Year Types: Y = 2004 y = 04 function formatDate($val) { $date = date("M-Y"); // Put layout requirements here return $date; } $date = formatDate('timestamp'); echo "$date \n"; ?> copy the above into a file making sure that #!/usr/bin/php // is on line 1 chmod 777 the file then type the file name and you should get Nov-2004 It runs the same as it would in apache with a few differences. Upvote 0 Downvote
sure you can. all you need is PHP and Mysql configured and installed You're going to be setting up your scripts like you would a bash script. a simple example of a stand alone PHP script #!/usr/bin/php <? // Date formatting // Month Types: M = May m = 05 // Day Types: D = Tue d = 02 // Year Types: Y = 2004 y = 04 function formatDate($val) { $date = date("M-Y"); // Put layout requirements here return $date; } $date = formatDate('timestamp'); echo "$date \n"; ?> copy the above into a file making sure that #!/usr/bin/php // is on line 1 chmod 777 the file then type the file name and you should get Nov-2004 It runs the same as it would in apache with a few differences.
Nov 23, 2004 Thread starter #4 TheConeHead Programmer Joined Aug 14, 2002 Messages 2,106 Location US Any guidance as to what I need to download if I simply want it to work on my machine? Upvote 0 Downvote
Nov 23, 2004 #5 BitFuzzy Technical User Joined Jun 8, 2001 Messages 343 Location US all you need is mysql and php " The standard places for downloading PHP and MySQL are http://www.php.net and htttp://http://www.mysql.com, respectively. " Upvote 0 Downvote
all you need is mysql and php " The standard places for downloading PHP and MySQL are http://www.php.net and htttp://http://www.mysql.com, respectively. "