lorenza pietersen 0 Report post Posted September 25, 2006 Hi,You can use frontpage to preview HTML files, but how can I edit and preview PHP files offline. I'm not well-known with PHP and I see more and more using this script to manage their site. Share this post Link to post Share on other sites
Markymark2 0 Report post Posted September 25, 2006 Hi Welcome to Asta Ok first of all I would suggest this as the best program for editing any kind of text file like a php file Notepad ++ Its pretty amazing at what it can do... It understand languages like Php Html Sql etc so when you make a new file or open a file it wil understand the syntax and the arguments and change the colour of them to make it al much easier to see.. example of how it does this...this is a bit of php code im looking at right now wth notepad ++ /* Load and run the appropriate controller */ $results = array(); see what its done? the /* comments are in green statements are coming out in blue.. It makes it much easier in spotting mistakes in your code also.. It puts line numbers down the side so if you get errors from php like "error returned at line 9" you can jump right to it and change the code.. Also it splits you code into blocks using pagebreaks so u can collapse and expand sections..this is handy if you set a whole load of arguments at the start of the code and forget them and have to keep scrolling up again to see what name u called the argument,,something i tend to do a lot! Check out the Language menu item at the top and you can change to lots of different programming languages and then it will detect parts of the code it understands and colour them out for you making it easier to see as i showed earlier. Its also available in a huge list of real world languages..even Basque! and Farsi Its Open license too!! So you got nothing to loose!! Good Luck with it Share this post Link to post Share on other sites
Quatrux 4 Report post Posted September 25, 2006 (edited) You just need to have php installed on your system and use the php.exe, but that won't satisfy you. As most users, you can install a server of your own, you just need to get apache+php and maybe also you can install mysql, so on windows it would be called a WAMP (Windows Apache MySQL PHP) Server on Linux LAMP, the same just Linux.. For windows there are different software which installs everything for you. I also suggest to install Zend optimizer the latest stable version. Google is full of tutorials how to do it, step by step tutorials are available.. Even this forum has something, because I remember reading about it here, so you can use the forum search.Some PHP Editors (IDE) has debuggers and you just need to show the path to php.exe and it will output everything in an ie or some other browser engine.. but you won't have full features of php. :)Oh! Mark420 you were faster, but as I read your post you just suggested a php editor, I think he wanted to preview his php files without uploading them to an online php server through ftp or some other protocol. Edited September 25, 2006 by Quatrux (see edit history) Share this post Link to post Share on other sites
Markymark2 0 Report post Posted September 25, 2006 Lol @ Quatrox..yes Ive got fast fingers :)Mad thing is..I made a post today explaining a user about Xampp this morning! Share this post Link to post Share on other sites
HellFire121 0 Report post Posted September 25, 2006 You can do this in frontpage but other programs can do it better. If you right click on the file you can open it in the actual editor that frontpage has. Since i no longer use frontpage i don't know exactly how to do it.I recommend you use a different editor. Ones that i have tried are textpad, crimson editor and dreamweaver. Textpad and crimson editor are both free and do a good job. Crimson editor also has special features that will help you with editing.You can get textpad from: http://forums.xisto.com/no_longer_exists/ crimson editor from: http://forums.xisto.com/no_longer_exists/ need to pay for dreamweaver but it is a fantastic program and you should get it.-HellFire Share this post Link to post Share on other sites
vujsa 0 Report post Posted September 25, 2006 Even funnier is that the topic was originally in the database forum!@#%!$#@! I move dit here and think that the user wanted to both to edit the files offline and preview the ouput generated.So I would recommend installing apache, MySQL, and PHP on your local system and use any text editor like Notepad, Notepad++, PHP Designer, CuteHTML.Keep in mind that PHP is a server side scripting language and will require you to learn basic programming skills whereas HTML is only a markup language which only modifies the text and images on a webpage. If you are using FrontPage, then you may not even fully understand the way HTML works which is a requirement if you want to design a website using PHP.The reason you need to know both HTML and PHP is because the PHP you write will simply generate HTML on the fly for you and that HTML is what the user's browser will see. Only you and your server wil see the PHP coding.vujsa Share this post Link to post Share on other sites
bakr_2k5 0 Report post Posted September 25, 2006 (edited) I did a quick google search and came with this!Dev-PHP:http://devphp.sourceforge.net/It has it's builtin webserver for previewing php en stuff like that..Don't use it myself since it's software for windows,but a friend of mine used to use this.So check it out bakr_2k5 Edited September 25, 2006 by bakr_2k5 (see edit history) Share this post Link to post Share on other sites
lorenza pietersen 0 Report post Posted September 25, 2006 Thank you all.So I have to learn the php programming skills first, before I can modify any php files? I thought that there must be an editor like frontpage for php (you cannot open php in frontpage, because it open automatically in notepad) where you can just copy/paste images etc. Share this post Link to post Share on other sites
pyost 0 Report post Posted September 26, 2006 So I have to learn the php programming skills first, before I can modify any php files? Exactly. There are numerous differences between (X)HTML and PHP because of which there's isn't anything like FrontPage for PHP. As already stated, PHP is a server side scripting language - that means that it will only run on a server supporting PHP. Why? Because it uses resources provided by the server. It is more dependant that HTML.Here's a simple example. In HTML, you must define exactly what you want to be shown, and that's why there is a possibility of using WYSIWYG (what you see is what you get) editors. A single PHP file, however, can output different things in different moments. If it contains a part there generates the current date, the output will change every day, but without changing the code. That isn't possible with HTML.In order to completely understand this, you really would have to learn at least some basic PHP, as it is a standard nowadays. Share this post Link to post Share on other sites
minnieadkins 0 Report post Posted September 27, 2006 I've heard of a utility called PHP design. I honestly don't know what it is. But yes there's no GUI to help generate your code as some sort of WYSIWIG. If you think about it, it makes sense. In php you have to use logic, where as you just "mark-up" your html to show what you want. I use notepad++ as well but I've had a few problems out of blank space and indentions. Overall however you can't beat the price.PHP is parsed by the server so you can't just run it locally on your machine without something to parse it with. First a first time user I suggest installing a bundled webserver, php, and mysql package such as the one's mentioned here. Share this post Link to post Share on other sites
anewgame 0 Report post Posted September 28, 2006 Hi,You can use frontpage to preview HTML files, but how can I edit and preview PHP files offline. I'm not well-known with PHP and I see more and more using this script to manage their site. hi,i'm sure there are lost of editors for php files, this is only a suggestion:http://www.editpadpro.com/editphp.htmlit's not free, but you can download a free evaluation copy, just to check it out good luck! Share this post Link to post Share on other sites
CrazyPensil 0 Report post Posted September 29, 2006 (edited) Hello there!Don't wanna read previous posts and your question might be already answered... anyway;)I prefer the NullStudio phpEd. Don't remember the link to download, but I think you may easily find a lot of.Also a good one is PHP Expert Editor(developer - Ankor). The linkage situation is same as with previos one.All these are most for editting. (1st one can proceed some scripts, but more dificult are not to be runned).Advanced scripts can be runned using Server emulation applications such as Apache, Sokkit, ColdFusion etc...Again, I'm givin' no links...You may assume that I'm lazy to go for searching all these on the Internet...And you'll be completely right=]OK, my opinion&advice is here... Good luck in your searches) Edited September 29, 2006 by CrazyPensil (see edit history) Share this post Link to post Share on other sites
nighthawk1405241531 0 Report post Posted September 29, 2006 I used dreamweaver and PhpDesigner for editing php, but then I've found notepad2. It recognizes sintax of many different languages (php, html, javascript, sql, c++ ...) works very, very fast and can work even without installing. If you install decide to install it then notepas2 will replace windows' original notepad. Share this post Link to post Share on other sites
nightfox1405241487 0 Report post Posted September 30, 2006 Actually, what I did when I was looking for a php editor, I just found a bunch and figured out which one had the features I needed, how stable, the license and such. That's when I found PHP Designer. It's great! If you install PHP on your computer, you can point PHP Designer to it and you can test your scripts from the program as long as they don't pass parameters though the URL or contain SQL, then a local installation of MySQL and Apache will work fine for debugging. The debugging feature is nice! One cool feature is that when you do more advanced stuff, you'll have code in brackets (e.g. { and }) and when you have multiple ones, it gets confusing. PHP Designer will actually highlight the set of brackets you're working in! Can't beat that![N]F Share this post Link to post Share on other sites
ajit bohra 0 Report post Posted October 17, 2006 Use EditPlus 2 it is great editior for editing php, css, ,html and many more.here is official homepage : editplus Share this post Link to post Share on other sites