|
|
How To Edit Php Files? | ||
Discussion by lorenza pietersen with 20 Replies.
Last Update: August 25, 2011, 1:45 pm (View Latest) | Page 1 of 2 pages. | ||
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.
Mon Sep 25, 2006 Reply New Discussion
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.
Wed Sep 27, 2006 Reply New Discussion
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
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
Mon Sep 25, 2006 Reply New Discussion
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.
Mon Sep 25, 2006 Reply New Discussion
Mad thing is..I made a post today explaining a user about Xampp this morning!
Mon Sep 25, 2006 Reply New Discussion
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: www.textpad.com
And crimson editor from: www.crimsoneditor.com
You need to pay for dreamweaver but it is a fantastic program and you should get it.
-HellFire
Mon Sep 25, 2006 Reply New Discussion
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
Mon Sep 25, 2006 Reply New Discussion
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
Mon Sep 25, 2006 Reply New Discussion
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.
Mon Sep 25, 2006 Reply New Discussion
QUOTE (lorenza pietersen)
So I have to learn the php programming skills first, before I can modify any php files?
Link: view Post: 87913
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.
Tue Sep 26, 2006 Reply New Discussion
QUOTE (lorenza pietersen)
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.
Link: view Post: 87893
hi,
i'm sure there are lost of editors for php files, this is only a suggestion:
http://www.editpadpro.com/editphp.html
it's not free, but you can download a free evaluation copy, just to check it out
good luck!
Thu Sep 28, 2006 Reply New Discussion
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)
Fri Sep 29, 2006 Reply New Discussion
Fri Sep 29, 2006 Reply New Discussion
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
Sat Sep 30, 2006 Reply New Discussion
here is official homepage : editplus
Tue Oct 17, 2006 Reply New Discussion
Should This Great Site Offer Imagemagick ? May be the admin of this site think over it. (3)
|
(12) Php Send Mail Through Smtp
|
Index




