apurva 0 Report post Posted October 22, 2007 i have just installed apache msql and php. so i test eerything locally . i mostly use it to test the word press themes. so i have also installed wordpress Share this post Link to post Share on other sites
OneMinute 0 Report post Posted October 22, 2007 Here's a solution! http://www.wampserver.com/en/ Share this post Link to post Share on other sites
Amezis 0 Report post Posted November 9, 2007 I am usually testing my scripts locally, thus elimitating the need to upload the files every time I update them (and the time to reload the page is obviously smaller). Here's a solution! http://www.wampserver.com/en/I've just installed XAMPP, a package containing Apache (with some extra mods), PHP (and several addons and Pear scripts), MySQL, phpMyAdmin and a few other useful scripts. I've tried other Apache+PHP+MySQL packages, including WAMP (posted by OneMinute) and Apache2Triad, but XAMPP is by far the best and most reliable one. On the other hand, it's not recommended if you want to run a public server, but it's awesome if you're only going to use it to test your scripts. Share this post Link to post Share on other sites
mahirharoon 0 Report post Posted December 4, 2007 this is for all the lazy people who do not like installing a server and phpjust go and install www-sharp runtime from http://www-sharp.com/runtime/index.php instead of all the web server and php junk in your computerit installs only 27 files (most files as html in the error folder)but i am thinking where to download mysql Share this post Link to post Share on other sites
muji 0 Report post Posted December 4, 2007 I generally test scripts locally, but I use linux, so it's easy to do that. A few years ago, when I was still using windows I used something like http://www.wampserver.com/ to setup a server and again tested locally. For basic scripts there's unlikely to be any issues with then uploading to your web-host. However, if you get more complex, for example sending mail or the like, then you may need to match your settings locally. I suspect the main issue is to make sure you work with globals OFF. Share this post Link to post Share on other sites
omarsdali 0 Report post Posted December 5, 2007 I test my php files locally. But I have a diffrent setup. I am using microsoft virtual pc and have windows server 2003 installed + IIS6 + php. Then I have the web folder shared over the network and I map the folder to my computer ( A:\ for example). I just open the files directly from A:\ into dreamweaver and edit them and save them. no uploading necessary. And when I don't need the testing server, I just close it and Virtual pc has a feature called save state, and it saves the state of the server sp next time I open it it continue where it stoped from, kinda like hibernate. That way I don't use up system resources. Share this post Link to post Share on other sites
de4thpr00f 0 Report post Posted December 6, 2007 I test my scripts at my pc. It's easier if you want to make a lot of changes in the script. But from the topic i thought you wanted to know how to test variables, lol.The answer to test variables is echo them. (for me at least)Greetz~Jo?o Lopes Share this post Link to post Share on other sites
gogoily 0 Report post Posted December 6, 2007 I use apache2+php5+mysql5 in WindowsXP. Share this post Link to post Share on other sites
techclave 0 Report post Posted February 18, 2008 Get apache,mysql and php installed on your own pc. It shouldn't be a big task !! Also all of these come free. Share this post Link to post Share on other sites
[John] 0 Report post Posted February 20, 2008 There are many ways to do this, i personally just have my notepad connected to my FTP directly, so once i hit save it is updated on the server. I have also built a small app a few years back i call HTTPEdit. It is a browser based editor so you dont have to keep uploading the file, you just submit and view through your browser.  other options Install PHP locally on your computer - may have difficulties depending on if your computer savvyUse an auto-updater like my notepad, there is one in Macromedia Dreamweaver if I'm correct. Use a program like XAMPP to emulate php and mysql on your computerUse a web based editor like mine Last but not least, Classical FTP to Server   there are probably many more ways, those are the most common. good luck! Share this post Link to post Share on other sites
darran 0 Report post Posted February 20, 2008 The easiest way to do this is definitely installing XAMPP, run the services and there you go, put the files in the appropriate folder and you can view PHP pages instantly on your local machine. The other way I would go around previewing my code is to upload it directly on my host, but then again it isn't very bandwidth friendly with the number of times you are going to preview the page. Share this post Link to post Share on other sites
minimcmonkey 0 Report post Posted June 24, 2008 The easist way is to create a folder on your site called PHP or something, then make a quick javascript page in there, so you can type the filename, and it will bring you to the page you typed the name of. But if you want to test offline. You need an environment... I know that there is something included in windows XP for that, which supports PHP and ASP ect...sorry i cant be more specific... Share this post Link to post Share on other sites
Galahad 0 Report post Posted June 24, 2008 While I was using Wintendo, I used to run PHPTriad, then switched to XAMPP... They are the best and the easiest solution for web developers...Now, I run a linux box, I always have the latest stable version of Apache, MySQL, and PHP... Plus a ton of extras, since I have my own server at home SSH, ftpd, and such... And it all works out of the box...Uploading to a remote server isn't very productive, since it takes time to upload all you need up, then preview... You can loose upto half a minute each time... And when added together, it can become a big time amount, like half an hour lost, or so... Share this post Link to post Share on other sites
optiplex 0 Report post Posted June 27, 2008 (edited) I always test them onlineusually call it test.php, upload it, and upload all includes it needs, and connect page.sometimes I code a log in itSo I connect it, and if it do its thing, then im happy, and continue coding the scriptI dont test it local, because some things locally dont work on other servers, thats why - optiplex Edited June 27, 2008 by optiplex (see edit history) Share this post Link to post Share on other sites
coolcat50 0 Report post Posted June 27, 2008 I usually use both my local server as well as my webhosting account. This is because my server has different configurations and some scripts might work differently. Share this post Link to post Share on other sites