PDA

View Full Version : php offline?



themoose
November 6th, 2005, 07:47
is there a way to run php scripts without uploading them to a server first? Perhaps some sort of clever program? Or do you have to completely re-write your hard drive? thanks for any comments,
themoose

Tree
November 6th, 2005, 09:15
Zend Studio lets you do that. PM me and I'll set you up with a link. It is the beta version, so it is completely legal.

robert allen
November 6th, 2005, 09:21
Just install php from php.net and then load the file. That should do it, unless you meant something else.

Death001
November 6th, 2005, 09:23
just install apache (takes 5 mins if that) then install php from php.net (just extract and edit conf file.takes no time at all) and you have a server on your computer where you can copy files to and test them by going to localhost

Brandon
November 6th, 2005, 10:52
http://www.apachefriends.org/en/xampp.html
The easiest way to do it^

themoose
November 6th, 2005, 11:28
http://www.apachefriends.org/en/xampp.html
The easiest way to do it^


I think i might try this one. How safe is it, and should i make any backups/restore points first?

Brandon
November 6th, 2005, 17:44
Its perfectly safe, i use it for all my php testing, has mysql, php, perl, apache, and a lot of stuff.

uploadfront
November 6th, 2005, 19:11
Zend Studio lets you do that. PM me and I'll set you up with a link. It is the beta version, so it is completely legal.


can you send me a link? thanks man!

iBrightDev
November 6th, 2005, 19:25
you can do it with dreamweaver too. you set up a server with dreamweaver to test it on. i think apache is a good way to go though. or zend studio

bloodyveins
November 7th, 2005, 01:31
just a quick note. it's not necessary to install apache to run php.
you can call it using php command line.


Windows > Run > cmd
c:\>php -f path/to/myphpfile.php

manual for php command line


c:\>php -h

check your php manual for more information about this extension.

themoose
November 7th, 2005, 11:08
Its perfectly safe, i use it for all my php testing, has mysql, php, perl, apache, and a lot of stuff.

ok, i'll try that one, but i'll create a restore point just in case :biggrin2:

//edit//
ive been using it now, its all safe, but im a bit confused - how do you make it run a php file?