I created this function:
index.php:
<?php
function hello(){
echo "hello word";
}
?>
which works, but refreshing the page in tideSDK gives this error:
Fatal error: Cannot redeclare hello() (previously in .......)
How do I fix this?
I created this function:
index.php:
<?php
function hello(){
echo "hello word";
}
?>
which works, but refreshing the page in tideSDK gives this error:
Fatal error: Cannot redeclare hello() (previously in .......)
How do I fix this?
the functions is save in the cache of the app,
if refresh the page, the app will the functions pre creates.
solution:
if(!function_exist("hello")){
function hello(){
echo "hello word";
}
}