Skip to content
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    6 Posts
    13 Views
    U
    Adding the www-data user to the netdev group should give it the necessary permissions to access the network and ping other PCs on the same network. However, there are a few other things you can check to troubleshoot the issue: Make sure that the PHP script is running as the www-data user. You can check this by adding a line at the beginning of the script to output the current user (echo exec('whoami');) Check the permissions on the PHP script. The script needs to have execute permissions for the www-data user. Check the firewall settings on the PC that you are trying to access. Make sure that incoming connections on the necessary ports are allowed. Check your network settings. Make sure that the two PCs are on the same subnet and that they can communicate with each other. Check your PHP configuration. Make sure that the allow_url_fopen and allow_url_include settings are enabled in your php.ini file. Check the PHP error log to see if there are any error messages related to your script. If none of these steps help, you may need to provide more information about the specific error message or problem you're encountering. Additionally, It might be better to use a library like ssh2-php instead of direct access to the other PC. This will help you to connect to the other PC in a more secure way.
  • Windows 11, what a mess!

    The Lounge help csharp visual-studio linux business
    39
    0 Votes
    39 Posts
    2 Views
    C
    This is an example of Microsoft's complete insanity, dyslexia, or hydrocephelic (new word I learned today). These idiots want us to go to a subscription model for everything - hence the logins all over the place. Since I'm a small business person, I legally qualify the community license to Visual Studio. Enter customer's corporate IT department plus it's insane Global Prevent VPN plus Microsoft's self inflicted technical ignorance. The tools go into a total CJ trying to figure out who I am. This is the age old, "Microsoft, why do you make it so hard to use your tools?" Don't even get me started on the POS Teams is. Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.
  • 0 Votes
    2 Posts
    0 Views
    D
    I wanted to loo smart and sassy saying that this is the year of Linux desktop but apparently ZDNet preempted me. Linux has become such a joke. Worst part? It's starting to become as unpredictable as Widows in term of kernel loading and driver initialization. GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X
  • Create a Makefile from this mess

    C / C++ / MFC linux c++ hosting cloud tools
    8
    0 Votes
    8 Posts
    0 Views
    K
    CXX is defined in the bowels of make somewhere. It is the default variable for the C++ compiler, and is used in the rules for constructing default recipes. So for example, suppose you had an otherwise empty directory with only one file, hello.cpp, in it. Without needing to create a Makefile, you can build the hello executable just by saying "make hello". There's default rules for all kinds of things, C, Fortran, ranlib (.a) libraries, yacc, tex, and on and on. You can get a list of available recipes by saying "make -p", which for my version of make produces 1357 lines of output. The CXX variable can be overridden by specifiying a shell variable of the same name at run time, so if for example you wanted to see what error messages clang++ spits out instead of g++ you can say CXX=clang++ make target Similarly you have CXXFLAGS and CPPFLAGS which pass arguments to the C++ compiler and the CPreProcessor, respectively. So you could say CXX=clang++ CPPFLAGS="-I /path/to/includs" CXXFLAGS="-O2 -Wall -Wextra" LDFLAGS="-L /path/to/lib" LDLIBS="-lmylib1 -lmylib2" make hello and make will apply the variables to the generated command line as expected, and produce: clang++ -O2 -Wall -Wextra -I /path/to/includs -L /path/to/lib hello.cc -lmylib1 -lmylib2 -o hello gnu make hack: You can rebuild everything from scratch, even if already compiled, without having to "make clean" by using the -B flag It should also be noted that the Makefile I provided earlier uses GNU makeisms e.g. $(wildcard),$(patsubst). If you find yourself on a BSD or other unix like system that does not have GNU tools installed, the given make file will fail. But the variable substitutions mentioned here will still work. Keep Calm and Carry On
  • Removing unneeded OS partitions

    Linux Programming question linux announcement
    2
    0 Votes
    2 Posts
    7 Views
    J
    You probably deleted the partition but didn't update your grub configs. As far as how to update Grub... I bet Google knows. Jeremy Falcon
  • 0 Votes
    2 Posts
    0 Views
    N
    Kent Sharkey wrote: Did that PR come from Redmond? Either that or the bug was introduced by a competitor. :rolleyes: on the other hand... what is worse? The linux bug? or the windows dozens of bugs? M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    6 Posts
    0 Views
    M
    Don't worry, they'll be in SystemD rsn.
  • 0 Votes
    20 Posts
    0 Views
    L
    Member 14968771 wrote: you are avoiding to provide a solution. Yes, mainly because I still do not really understand what you are trying to achieve. But, hey ho, that seems to be par for the course with your questions.
  • using fetch(url) to get xml (youtube feed)

    JavaScript help javascript php com linux
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    5 Posts
    0 Views
    D
    None of the fourteen* users got any virus, so technically yes. * six of them are still trying to configure the network adapter. GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X
  • That elusive fifth letter - updated

    The Lounge linux announcement
    14
    0 Votes
    14 Posts
    18 Views
    P
    People who have dug a bit deeper tell me that there are two embedded word lists - one is the "dictionary" of what it recognises as words, the other is the ordered list of daily solutions. (probably the one you found) Re another subthread above, they also say there are no plurals in the list, so the analysis in my OP is, as I suspected, biased. Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
  • 0 Votes
    2 Posts
    8 Views
    Richard DeemingR
    Well, go ahead; you have our permission to do that. Feel free to come back if you have an actual question. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Systemd support is now available in WSL!

    The Insider News com linux question
    2
    0 Votes
    2 Posts
    0 Views
    C
    Except the fine print reads: Quote: First make sure you have these pre-requisites: - Are using a Windows 11 build or higher No Microsoft, I'm not updating my machines to Windows 11. Because you won't let me. cheers Chris Maunder
  • 0 Votes
    27 Posts
    1 Views
    R
    I use Virtualbox running on Windows 10. I will set up a Linux system, Windows system, for whatever I need to test. VB is pretty easy to use, very reliable, very flexible.
  • 0 Votes
    4 Posts
    0 Views
    L
    Thanks for reply. I am actually looking for "discussion forum" . I am running out of ideas how to fix my problem. Yes , I did try qterminal - it has no option to run command with options - so I ended up with xterm. It works OK, but I cannot figure out how to FULLY integrate it with my application. I am able to display the command output in my app "window" but it is NOT really my app window - some folks call it "xterm native window ". So I can display it - it is "inside my other window" , I can move it , using my app "wrapper window", but I cannot process anything in it. I am actually hoping that somebody with good grasp of "windows hierarchy" can shed some light on this. In not so techie terms - how do I process data in xterm native window ? I will take a look at xterm man again, maybe the answer is there.
  • 0 Votes
    2 Posts
    0 Views
    M
    You say Uno, I immediately play my Wild Draw 4 card on you. I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied