Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
preg_match
- Page 1
Re: Web Services using ASP.NET
Programming
Web Development
5 Days Ago
by natashasturrock
Hey! You’re on the right path — I’ve done this in a few custom .NET development projects using ASP.NET Core with SQL Server. The idea of using a web service to handle login and registration is solid and keeps things clean. Here’s what usually works: Create a stored procedure in SQL Server that takes the email and password as parameters, …
Re: Web Services using ASP.NET
Programming
Web Development
2 Weeks Ago
by rajshah85412
Here is the detailed answer : You want to: Register new users to your website. Validate (log in) existing users using a web service. You will achieve this by: Creating a SQL database to store user information. Developing a web service in ASP.NET to handle registration and login. Connecting the web service to your database. …
Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
by lennyli
I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following: Have a webpage with a button, when pressed, it will …
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
2 Months Ago
by usmanmalik57
On April 14, 2025, OpenAI released [GPT-4.1](https://openai.com/index/gpt-4-1/) — a model touted as the new state-of-the-art, outperforming GPT-4o on all major benchmarks. As always, I like to evaluate new LLMs on simple tasks like text classification and summarization to see how they compare with current leading models. In this article, I will…
Re: Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
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
2 Months Ago
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: Is there anything special I should pay attention to when doing SEO?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by scope_2
Choosing the right keywords that match user intent is essential when performing SEO. Develop high-quality, original content that provides value to users and keeps them engaged. Make sure your website loads quickly, is mobile-friendly and is easy to navigate. Consider technical aspects of SEO, such as fixing broken links and optimizing the site's …
Re: Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
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
2 Months Ago
by pritaeas
No, Javascript cannot run/start executables on the client machine.
Re: Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
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
2 Months Ago
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
2 Months Ago
by pritaeas
Are you sure IIS is configured to allow running external scripts?
Re: Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
2 Months Ago
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
1 Month Ago
by Dani
Marking this question as solved. Thanks all!
Re: How to connect to the Pinterest API using PHP?
Programming
Web Development
1 Month Ago
by geekinformatic
Hey! If you're using the CakePHP framework, you can connect to the Pinterest API with cURL and OAuth integration. Just follow Pinterest’s API docs for endpoints and token handling.
Preg match and replace for img urls
Programming
Web Development
16 Years Ago
by ade92uk
I have used preg match to find in a page all img tags: [CODE]<(img)[^>]*?>[/CODE] Can someone please tell me how i would check if it has a full url and if it does not replace it with a full url from a variable called $link2. I would also like to be able to process urls which have change directory such as: ../images/example.gif --&…
help with preg match
Programming
Web Development
18 Years Ago
by realnsleo
hi...i want to use the preg match function to verify a string that should have the format format of a year - two digits - two letters - two digits, like this: [in]2005-03-IT-031[/in] thanks
possible to layer preg match?
Programming
Web Development
14 Years Ago
by andrewliu
… layer my preg_matches? I have a code like this [CODE]
preg_match
("/\<div class=\"dealsListS\"\>(.*?)\<\/div…
Re: possible to layer preg match?
Programming
Web Development
14 Years Ago
by smantscheff
It is not clear which part you want eventually to match. Do you want to replace css classes? The first three
preg_match
statements are better put in one single statement to clarify the code. But first tell us which part you want to have extracted.
Re: Preg match and replace for img urls
Programming
Web Development
16 Years Ago
by jrdark13
I don't know about the other stuff but I know for a fact your second code didn't work be cause [inlinecode]if ($urlres = true) {[/inlinecode] should be [inlinecode]if ($urlres == true) {[/inlinecode] instead. Oh, and why are you using #?
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC