Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4001822
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:57:04+00:00 2026-05-20T07:57:04+00:00

I’m not sure if this has even been done before, but what I am

  • 0

I’m not sure if this has even been done before, but what I am trying to accomplish can’t be explained in any great detail, but basically, what I am trying to do is Process PHP scripts from within my C# Windows Forms Application.

I have already created a HTTP server, which works just fine. But now I need to be able to process PHP scripts aswell. We’re working on a new privatised language over here, purely for learning and fun.

(Just a little background, not completely related):

We are now able to create a webpage like so:

Using System.Core,
System.Http,
System.Graphics and System.IO;

    protected void -> Webpage(object homepage)
    {
        // Set Webpage properties.
        homepage.Name = "Home";
        homepage.Size = new Size(960[px], 100[%]);
        homepage.Alignment = new AlignmentType.Vertical;
        homepage.Alignment = new AlignmentType.Horizontal;

        // This is a comment.
        // Create objects to be rendered on the page.

        Text text = new Text();
        FormElements formElements = new FormElements();

        private void -> Webpage.Load(object homepage)
        {
            text.Text = "Please enter your name below:";

            text.Style = new Style(
                Alignment = new AlignmentType.Horizontal,
                Alignment = new AlignmentType.ManualAlignment(15[Y, px]),

                Font = new Font(
                    Font.Family("Arial"),
                    Font.Size = new Size(9[pt], LineHeight(4[px])),
                    Font.Color = new Color.FromArgb(15, 15, 15))
            );

            formElements.CreateElements(TextField["textField"], SubmitButton["submitButton"], Form["form"]);

            textField.Name = "name";
            submitButton.Name = "submit";

            form.Encapsulate(name, submit);

            form.Alignment = new AlignmentType.RelativeTo(text.Bottom);

            Elements[] elements = new Elements[]
            {
                text, form;
            };

            homepage.Display.Element.ElementCollection(elements);
        }

        private void -> Webpage.FormSubmission(object form)
        {
            form.Element(name).OmitSpecialCharacters();

            if(form.Value is not Empty)
            {
                text.Text = "Hello, " + form.Element(name).Value;
            }
        }
    }

The above sample demonstrates the ability to create a whole webpage, style it, and process form input in a nice, clean way. However, we’ve come to a complete dead end (trying to support PHP) and we do not wish to delve too far into server-side languages (lack of experience in that area is the main reason), so we would like to be able to “support” PHP scripts from within our WinForms app.

Anyone know of any way to process PHP scripts from within a C# winforms app?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:57:05+00:00Added an answer on May 20, 2026 at 7:57 am

    Use an HttpWebRequest, and request the url to the PHP page like you would to run the PHP page in your browser.

    See here for more info: http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
This could be a duplicate question, but I have no idea what search terms
Does anyone know how can I replace this 2 symbol below from the string
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.