Jump to content

denn0n

Members
  • Posts

    4
  • Joined

  • Last visited

denn0n's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. that's irrelevant, how dare you say no use object tags? and use iframes !! the problem it is really simple , i need an a function on the file called from the object or iframe tag could call an a other function on the fathers document and the opposite ways to, I apretiate your intention Foxy but i will appretiate more if you help me to get this i need
  2. Hi everyone. I'm having a problem, this it will be an example about what I'm trying to do the principal document is index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>My Website</title> <script type='text/javascript' src='js1.js'></script> </head> <html> <object type="text/php" data="contents.php" border="0"></object> </html> js1.js function myfunction() { document.getElementById("logo").style.backgroundImage="url(background.png)"; } contents.php <script type='text/javascript' src='js2.js'></script> <html> <table onclick=​"myfunction2()​">​…​</table>​ </html> js2.js function myfunction2() { myfunction() } what I'm trying to do is the function 2 from the file js2.js calls the function on js1.js i read about some time ago but honestly evean i dont remember it is possible or not, it have to ? it have to be whit DOM i dont understand really good this someone can help me any advise or guide it will be apreciate
  3. i do apreciate your help thescientist but it is solve , between you have right and other things, the paths to the commands have to be full and for some init process on ubuntu you should put sudo before and the error log it is a great ideai put this afther the comand on cron to get a new file log error 2>/var/log/crontab.err
  4. Hello everyone, I'm new to this forum, I have the next problem I hope someone can advise. I have a php script I need to run from cronjobs. This script contains some commands shell_exec, fairly simple and the output is directed to a file, from the webmin module cronjobs goes well but when running from cron, the commands shell_exec stops working the cronjob is * * * * * php /some/path/myscript.php to make it easy #!/usr/bin/php -q <?php $iptables=shell_exec('iptables -S '); $file_name="/some/path/out_test.txt"; $ar=fopen("$file_name","w"); fputs($ar,$iptables); fputs($ar,"nn"); fclose($ar); ?> from the terminal when I run $ php /some/path/myscript.php as root, the file /some/path/out_test.txt is filled with the output of the command $ iptables-S but when run from cron, the file is blank
×
×
  • Create New...