whisher06 wrote:Hi.
I'll change file_put_contents with
fopen etc because of file_put_contents
starts from PHP 5 for a better portability.
Bye.
halojoy wrote:There will soon not be many using PHP 4 no more.
PHP 5 is mature now. There has been quite many debugged versions.
We should not encourage people to use older versions of PHP.
Two years is a very long time in the computing world.
PHP 5.1.4 Released: 04 May 2006 ( 11th version of PHP 5 )
PHP 5.0.0 * Released: 13 July 2004 ( first PHP 5, two years ago )
Same way we should not write scripts that depend on:
- register_globals ON
- allow php shorttags
....... and a couple of other bad issues that some still like to stick to.
By using modern, developed and stable PHP versions and write for recommended php.ini settings
we are doing everybody and the PHP itself a big favour.
But nobody can force anybody. Only encourage by setting a good example.
It is upto each, if they want to stay with 'old habbits'
or use new practical, powerful and userfriendly functions.
Shrike wrote:I guess it depends on what work you do with PHP. If you want use the features of version 5 to the full you simply can't go back to 4.
http://gophp5.org/
π
Hello again people.
Just went back and tested my Text & File Editor Lite. It was relesed here, in June 2006.
My current setup is PHP 5.2.4 with >>>> php.ini-recommended settings
# Apache 2.2.6 for Windows 32
# .htaccess PHP settings
php_flag short_open_tag OFF
php_flag magic_quotes_gpc OFF
php_flag register_globals OFF
php_value error_reporting 2047
The editor script itself turns OFF:
set_magic_quotes_runtime(0)
I really wasnt expecting such an old and simple 1 file script to work without issues.
1312 bytes, with Unix \n line endings.
But to my surprise π was no error.
The PHP code I entered was written perfectly into target file.
<?php // FileEditorLite-1.1 by halojoy
// Version released: 03 July 2006
error_reporting(2047); // E_ALL debug
set_magic_quotes_runtime(0);
// file to edit
$filename = 'mypage.php';
I am happy π
I may even start using this for some basic webscripts ( blog, guestbook, lite-cms )
that I am currently writing code for.
Not always we would need such great JAVA based editors like
Still I love my little script.
It is 'my style' of KEEP IT SIMPLE coding.
If you would find any small bugs, I will fix this in next release.
Thanks for anyone testing my script.
And also to Weedpacket, who helped me once and gave me a hint to use:
$text_display = htmlspecialchars($save_code, ENT_NOQUOTES);
http://gophp5.org/
Regards π
halojoy - is no pityful killer - havent got the guts
- but gets much more pleasure to Write Killer Scripts in PHP 5
You do not need a bunch of B-52 bombers Aeroplanes
to kill a few foreign members of one family or some youngsters in some schools.
It is often enough to fire your handgun or your riffle a few times.
Until you get the result .... you desire.