Welcome Guest, Not a member yet? Register   Sign In
three doubts, about read_file, htmlentities and tiny mce
#1

[eluser]jozeunico[/eluser]
Well, hello everyboady again, sorry about my english and thanks.

And here's my task list Sad
1.-I have a problem when I try to read a file if the file is empty, CI return "false"
for example I did it this:

$string=read_file('./system/application/views/info/some_view.php');
if ($string==false){
echo 'ERROR al abrir el archivo carnal';
}
else{
echo $string;
}

some_view.php exists and the rute is correct (I tested with other files in the same path)
But THE PROBLEM is when the file is empty. Somebody have any idea to solve the problem when the file is empty? I mean I want to "show" the file content even if it's empty. It's because i use a tinymce 2.x to edit the file content, but sometimes the file can be empty.

And a couple of doubts,I mean questions:
2.- Somebody know a plugin to embed a flash mp3 player that works with tinymce
3.- Can I use htmlentities to save strings with html tags into DB?


Messages In This Thread
three doubts, about read_file, htmlentities and tiny mce - by El Forum - 06-10-2008, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB