View Full Version : PHP & 1st Page 2000 v2
pash_ka
09-25-2002, 04:40 PM
Hi! We are all like 1st Page 2000 and we are all using it for our projects. Maybe there is someone, who use PHP?
Sure there is!
Please say, how you configure CURENT version of 1P2000 to work with PHP?
For example, is it posible to avoid error message then opening *.php file?
pash_ka
09-25-2002, 11:00 PM
Thank you very much for your answer.
When writing PHP code I have these problems:
1) On the file pannel filter "All supported Files" don't recognize *.php files and don't display them, so I have to use "All Files" filter.
2) When opening *.php file I see the message "Association" with text "This file is not recognised. You may corrupt the file if you open and modify the contents. What would you like to do?" and 3 buttons with choises "Open File", "Open in Associated program" and "Cancel". :) Of course, I can click "Open File" and work, but I'm bored with this extra click! ;)
With these 2 problems I've tryed to deal by adding neded extensions to configuration (Options->General program preferences->File Filters) but nothing was changed. :((((
3) The highlighting of PHP code. This must be a limitation of current version, not error, but may be we still coud do something? If it works fun with JavaScript, why we can't do the same with PHP?
Thank you for your answers!
Bye.
neilhoman
11-27-2002, 04:44 AM
Yeah tha'ts not a bad solution but when you open another php file from explorer it opens a seaparte instance of the 1st Page program.
1) On the file pannel filter "All supported Files" don't recognize *.php files and don't display them, so I have to use "All Files" filter.
Options > General Program Preferences
you can add any extensions you want. I added *.php into the web docs and it now lists PHP files using the 'all supported docs' preference
pash_ka
12-01-2002, 03:40 PM
>I added *.php into the web docs and it now lists PHP files using the 'all supported docs' preference
It sounds very strange, but I did the same, even more, I've added *.php to
"All supported documents" field, and it still doesn't show PHP files with any filter.
bluenavigator
01-08-2003, 02:22 PM
I am not sure why other people are having problem with opening php pages. I don't have that problem at all. Only that I can't really preview the actually view of php pages as should be shown on the websites, that provides php service. I know that using F12 as shortcut for preview but it shows the same result. :(
Understanding that php is server side include (SSI), is there a plugin or something to configure the 1stPage 2000 to use to preview the .php pages? :rolleyes:
I use .php to include template of header for all pages so at anytime, I change the header, it affect all pages at once. I don't want to go back to old way to edit each page for the same header's changes.
I just downloaded HTML-Kit and php-4.3.0 for Windows and it works! I would like to see 1st Page 2000 to be supported with php.
Zero Angel
01-08-2003, 02:54 PM
If nobody can find a way to do so, I have a method that works with Arachnophila 4.0 (the web editor I use), it allows the HTML of a PHP file to be previewed using a browser, I can also show you how to build and customize an HTML 4.0 strict compliant template that utilize system commands (ie: autosave on new file creation) using Arachnophilia :)
I'm still working on a way to have the 'footer.php' file auto-inserted (prompt based) when 'header.php' is opened. I might never be successful in this case, though.
pash_ka
01-09-2003, 02:51 PM
---
2 bluenavigator:
Glad to hear that you like PHP as analogue to SSI. But it can do a lot of other things. So, there is no way of creating simple plugin to exec PHP scripts.
Of course, you can create plugin, wich will run PHP interpreter on specified file. But this way can't implement full functionality of Apache+PHP+MySQL.
---
I think, the main problem of integating PHP & 1P2000 is code highlighting. As I don't know the way to add this functionality to 1P2000, now I'm using 2 other
programs: Winsyntax (http://www.winsyntax.com/) and Zend Studio http://www.zend.com.
Winsyntax is thery simple, but fast, small and freeware program - I use it when I need to write simple PHP script, or just to look at HTML/CSS/JScript/PHP - file.
Zend Studio, in opposit, is very powerfull Java-based application. In fact, it's not HTML/PHP editor, but fully-functional IDE (Inegrated Develpment Enviroment) for
PHP. With local ( ! bluenavigator - this might be interesting for you, if you don't want to have local serever) and remote debugging.
Anyway, the problem, pointed by bluenavigator is not a problem for me. There is very simple way to view the page as it wil be showed to user - use your own, local ,
web server. I prefer Apache, but most servers, even PWS, can be configured to support PHP.
I think, the simplest way - download full pack Apache+PHP+MySQL in one archive.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.