Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About veysel

  • Rank
  1. Thank you, actually i give all permision to www-data to be able to run this command from web page: shell_exec("sudo gdfs -o allow_other /var/www/html/gdfs.creds /media/pi/gdrives"); But, i could not execute it, fortunately i had a "B" plan as explain above(write .txt file if clicked, and check every second .txt file if there is changing, then run command from command line) I will take care your advice , and i will not give all permission to www-data. Maybe i can give some permission to www-data as your example
  2. Actually i solved the problem, when user click the button i write this to .txt file. Then i am checking every second .txt file wheter there is a changing, if there is changing i am running my python script. But i would like to know your safer alternative and do you think my sudoers file unsafe ? if it is, can you give me example that trouble my system.
  3. Thank you, should i change something in apache ?
  4. Hello, I am mounting google drive to my raspberry pi with this command from command line; sudo gdfs -o allow_other /var/www/html/gdfs.creds /media/pi/gdrives İt is working from command line, but it is not work when i execute it from web browser. Here php content; shell_exec("sudo gdfs -o allow_other /var/www/html/gdfs.creds /media/pi/gdrives"); and i changed my sudoers file giving permission www-data. here is my sudoers file content # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # direc
  5. Hello, i am using raspberry pi and there are 2 audio source Mic and Line. I am monitoring audio source name dynamically but i want to monitoring an icon if audio source is LineIn then music icon should be appear , if audio source is microfon, then microfon icon should be appear. Icon and txt should be same row. I could not do this, i hope some one can help me Here what i do; <div class="col-md-4"> <div class="panel_s"> <div class="panel-heading" style="text-align: center;">Au
  6. Hello First of all thank you so much before i ask question, i have this line: var limit=obj.sky[0].satellites.length; if (limit>10) { limit=10 } i want to monitoring max 10 values but it can be less. i solved it with your help. Here what i do for (j= 1; j <=limit-1; j=j+1) { var value1 = str1.concat(obj.sky[0].satellites[j].PRN); } Because obj.sky[0].satellites[j] does not contain obj.sky[0].satellites[0].PRN that's why as you said, satellite[j] does not exist for the current value of j
  7. Hello, var j; for (j= 1; j <=limit; j=j+1) { var value1 = str1.concat(obj.sky[0].satellites[j].PRN); } i do this and it is working in web page but if i do inspect element it says : Uncaught TypeError: Cannot read property 'PRN' of undefined at Object.success ((index):444) at i (VM16347 jquery-3.2.1.min.js:2) at Object.fireWith [as resolveWith] (VM16347 jquery-3.2.1.min.js:2) at A (VM16347 jquery-3.2.1.min.js:4) at XMLHttpRequest.<anonymous> (VM16347 jquery-3.2.1.min.js:4) i am not good at js can anyone tell me what is my fault ?
  8. Thank you so much, this is what i search 👍
  9. hello, i have created this table by html and i am changing the content by javascript but when i see the website in mobile device, web interface is not good. İs there any way to do responsive this? here html : <html> <head> <meta charset=utf-8 /> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> .clr{ color:#25b0e9} </style> </head><body> <table id="myTable" border="1"> <tbody> <tr><td></td> <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  10. problem was solved thank you for your help NotSunfighter
  11. Hello i ask this question another web page and i solved with help. the web page url : https://www.webdeveloper.com/d/386860-progress-bar-not-working/17 i hope it is not illegal(sharing another web page)
  12. Hello NotSunfighter, i tried your solution but it did not work but thank you for help
  13. Hello NotSunfighter i am Veysel, you say amisspelling but i could not find it. And i will try this <? to <?php tomorrow because i am not in work right now, i hope it works. Thank you for your reply
  14. Hello friends, my devin1 div working and updating when i change the .txt file content but devin8 div not updating without refreshing the page. Can anyone have an idea about that ? <? if ($fulldata['mainASSettingsLoc'][0] >= 1) { ?> <div class="panel_s"> <div class="panel-heading" style="text-align: center;">Channel Vumeter 1</div> <div class="panel-body text-left" style="color:#000000;"> LEFT <div class="progress"> <div id="devin1" class="progress-bar progress-bar-striped act
  15. Hello, response.php file return : echo json_encode($resp); that's why i used it
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.