Professional Documents
Culture Documents
>
<?php } ?>
<?php } ?>
12
passing data from php to java script via view
Simply use one of the following methods.
<script type="text/javascript">
var js_variable = '<?php echo $php_variable;?>';
<script>
OR
<script type="text/javascript">
var js_variable = <?php echo json_encode($php_variable); ?>;
</script>
Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak)
Login to CPanel > Tweak Settings > All> "Restrict outgoing SMTP to root, exim, and
mailman (FKA SMTP Tweak) and switch it from �On� to �Off�.
for my case I used the shell (ssh) to fix this :
/scripts/smtpmailgidonly off
11
down vote
It is very important to set a default timezone to get the correct result
<?php
// set default timezone
date_default_timezone_set('Europe/Berlin');
// timestamp
$timestamp = 1307595105;
// output
echo date('d M Y H:i:s Z',$timestamp);
echo date('c',$timestamp);
?>
Online conversion help: http://freeonlinetools24.com/timestamp
When importing a template, if you're shown a "500 Internal Server Error", this can
be solved by adding the following to your "wp-config.php" file.
ini_set('memory_limit', '256M');
ini_set('upload_max_filesize', '32M');
ini_set('post_max_size', '32M');
ini_set('file_uploads', 'On');
ini_set('max_execution_time', '300');
1
2
3
4
5
6
7
ini_set('memory_limit', '256M');
ini_set('upload_max_filesize', '32M');
ini_set('post_max_size', '32M');
ini_set('file_uploads', 'On');
ini_set('max_execution_time', '300');
https://www.md5online.org/