Dynamic Properties in PHP 8.2 Programming Web Development by Dani … futile attempt to remain using the now-defunct CodeIgniter 3 framework, I came across something that I figure might be worth… and easy MacGyver patch, until it stops working as well. (DaniWeb is currently on PHP 8.3.8 and it's… Re: Web Services using ASP.NET Programming Web Development by Dani > Visual Studio 2008? Yes, the OP specified they are using VS 2008. > Also 12 years late. Not only *not* against the rules, but also not discouraged on DaniWeb. That's the beauty of forums that live on for decades. Re: Dynamic Properties in PHP 8.2 Programming Web Development by Dani Oh, and an important bit I forgot to mention: PHP's built-in stdClass has the `#[AllowDynamicProperties]` attribute already added. In fact, you can see in the [PHP docs](https://www.php.net/manual/en/class.stdclass.php) that the definition of the stdClass is "a generic empty class with dynamic properties." That means that you can always … Re: Dynamic Properties in PHP 8.2 Programming Web Development by jkon I can't get it , why anyone would want to `$user = new User(); $user->nickname = 'Dani';` if nickname is not a public property of User , or even worse `$user = new stdClass(); $user->nickname = 'Dani';` ? Why ? Re: Dynamic Properties in PHP 8.2 Programming Web Development by Dani The first I agree would not make much sense to do because one would presume that the User class has its own set of getters and setters for a reason, and just creating random properties on a whim defeats the purpose of organizing and structuring your code by having the class in the first place. Nevertheless, I ran into this exact issue while trying … Re: Dynamic Properties in PHP 8.2 Programming Web Development by Dani > This obviously does not make sense to do if you want to create or work with a User object or something of that sort. I realize that in my previous post I incorrectly gave the example of `$user = new stdClass(); $user->nickname = 'Dani';`. My intention was not to say that it was good coding practice to represent a user of the app with an … Re: Question/Answering over SQL Data Using LangGraph Framework Programming Computer Science by Pelorus_1 Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever. Integrating OpenAI Web Search API in LangGraph Programming Computer Science by usmanmalik57 … advanced agentic applications in Python are developed using an orchestration framework such as LangGraph. Therefore, it is important to understand the… res['output'][0]['annotations']] sources ``` **Output:** ![img4.png](https://static.daniweb.com/attachments/4/fb5fd79b1682c2b567ee11df4964d9e0.png) ## Conclusion Web search is an… Cannot run exe from asp.net Programming Web Development by lennyli I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-… in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish… Re: Any jQuery 4 users? Programming Web Development by jkon … still using jQuery, a very slim build. Our JS library/framework handles all the heavy lifting, including AJAX, WebSockets, logical events… Re: Cannot run exe from asp.net Programming Web Development by pritaeas > while at the same time run the same exe on the local client pc. Not possible. Re: Cannot run exe from asp.net Programming Web Development by pritaeas No, Javascript cannot run/start executables on the client machine. Re: Cannot run exe from asp.net Programming Web Development by rproffitt I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . You can get there. Re: Cannot run exe from asp.net Programming Web Development by lennyli Why does the following code dont run and launch the exe I specify (eg, notepad.exe, or ribbons.scr)? <%@ Language="VBScript" %> <!DOCTYPE html> <html> <Body> <% Dim objShell Dim command Dim result ' Path to the executable command = "C:\… Re: Cannot run exe from asp.net Programming Web Development by pritaeas Are you sure IIS is configured to allow running external scripts? Re: Cannot run exe from asp.net Programming Web Development by lennyli > Are you sure IIS is configured to allow running external scripts? The document folder and asp file has security permission set to ALL rights for 'everyone'. In IIS, under handler mappings for .asp files, under request restriction/access, script was chosen (not execute) for feature permissions, all 'read' 'script' 'execute' are chosen Re: Cannot run exe from asp.net Programming Web Development by lennyli > I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. > > For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . > > You can … Re: Cannot run exe from asp.net Programming Web Development by john_111 Let me expand on what rproffitt said, by explaining why. If a webpage could run a program installed on another computer, the entire world wide web would be hacked into tiny pieces and cease to exist. No one would ever use the web, it would be so totally insecure. So web pages are prohibited from running programs on your computer. They can … Re: Cannot run exe from asp.net Programming Web Development by Salem https://xyproblem.info/ * User wants to do X. Sometime later... > My boss just asked me to create a prototype as proof of concept. There is no specific language/tool I must use * User asks for help with Y. Initially asked... > Have a webpage with a button, when pressed, it will launch a webpage that runs a server side exe (eg, … Re: Cannot run exe from asp.net Programming Web Development by Reverend Jim >No, Javascript cannot run/start executables on the client machine. Technically correct but there are ways around it. For example, save a file in a special folder on the target computer, which has a folder watch on that folder. The watching task could then trigger a local task. Re: Cannot run exe from asp.net Programming Web Development by Neil_brown001 Why your approach isn’t working What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: Running a .exe on the server You can technically make the server launch an .exe file like Notepad, but: It will run in the background on the server, not visibly on the desktop. It needs special … Re: Cannot run exe from asp.net Programming Web Development by lennyli > Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on… Re: Cannot run exe from asp.net Programming Web Development by gediminas.bukauskas.7 Pritaeas answered the question: normal WEB security settings forbids launching executables on a client machine. The only legal workaround is to create windows service (daemon in Linux environment), install it on client machine and listen for some commands coming from server over WEB sockets. Re: Cannot run exe from asp.net Programming Web Development by lennyli > Pritaeas answered the question: normal WEB security settings forbids launching executables on a client machine. The only legal workaround is to create windows service (daemon in Linux environment), install it on client machine and listen for some commands coming from server over WEB sockets. Sure, I understand, but for my above new … Re: Cannot run exe from asp.net Programming Web Development by Salem > When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. So did it even give you `print("Waiting for a connection...")` ? Consider making your server main like this. if __name__ == "__main__": print('Server Begin') … Re: Cannot run exe from asp.net Programming Web Development by lennyli > > When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. > > So did it even give you `print("Waiting for a connection...")` ? > > Consider making your server main like this. > > if __name__ == "__main__": >… Re: Cannot run exe from asp.net Programming Web Development by lennyli I fixed the problem by ensuring the path is including python. Also on the server I must run pip install Thank you all All working now Re: Cannot run exe from asp.net Programming Web Development by Salem Congrats on getting going. > Even if i run the setup and ticked the option "add to path", the echo %PATH% command didnt seem to show what i expected. Yeah, this won't transform the PATH of any existing process. In increasing annoyance order, you may have to: 1. Start a new cmd window 2. Log out and log in again 3. Reboot … Re: Cannot run exe from asp.net Programming Web Development by Dani Marking this question as solved. Thanks all! Re: Daniweb API Programming Software Development by Learner010 … ], "uri":"http:\/\/www.daniweb.com\/software-development\/vbnet\/threads\/469330\/compare-between… of all check whether the net framework installed or not,\nIf installed then which…} ], "uri":"http:\/\/www.daniweb.com\/software-development\/vbnet\/threads\/469304\/invalidcastexception",…