Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm wondering if there would be any problems using PHP on an ASP file? I plan to develop a website where I'll be inserting PHP code to load some info from a database but i'll be using ASP for the layout of the site.
Thank you in advance!
This is actually quite possible... if completely boneheaded, in this author's opinion, but it's a fun challenge. Here's how you'd do it:
If you'd like to use PHP to process the file initially, and then use ASP.NET, I would begin by using a VirtualPathProvider which uses a HttpClient (if .NET 4.5+) or HttpWebRequest to make the request to the resource that will be processed by PHP, the VirtualPathProvider is a means of making ASP.NET use a virtual filesystem, it's how you can store .aspx and .ascx files in a database, for example.
If you'd like ASP.NET to process the file initially and then use PHP, it's a bit more difficult, but still doable: you'd use ASP.NET as usual, but implement an IHttpModule which intercepts the result from ASP.NET and provides it as stdin to the PHP CGI executable, and then returns the result.
Implementing both proposals is an exercise left to the reader.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I created an app with PhoneGap but I need to load some stuff from another domain. I tried jQuery load with a xdomainload plugin but It did not work.
The stuff I need to show run on PHP as the back-end language. I'm really noob - I've seen a few tutorials about JSON but all of them did not work and I ended giving up. Is JSON the easiest way?
Thank you all
Generally speaking, PHP wont run client-side in Cordova. If you're trying to access some sort of backend service that you built using PHP, then that's doable with JSON. Whether it's "the easiest", makes this question to open for interpretation. Generally speaking, a common approach may be to use javascript to communicate with backend services which "talk" JSON between each other. This question might get closed for being to opinion based. But that's my 2 cents.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am thinking of creating a simple web based instant messaging using a combination of PHP and SQL. To keep it simple I was thinking of not sending the message to the other clients browser using COMET or AJAX, but simply uploading it to a SQL database. The other clients computer will then periodically refresh the webpage which will cause the PHP code on the server to check for and return any new messages.
Would this method be simply to slow to be actually useful?
Thanks in advance :)
That depends on the scope of your project. If you're thinking of server a thousand users, this is not a recommended method. If you want to chat with your 5 colleagues on an internal LAN: it doesn't really matter much. It will be fast and work just fine.
You could also consider building it with jQuery + PHP + SQL though; read up on jQuery a bit and you'll be amazed by the power of its AJAX functions.
Also, if you're lazy or simple don't have enough time, use a premade library like this one here and i'm sure there are many more to be found on the internet.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm learning php and website development in general. Currently I'm trying to write a script in php that would access a website as Internet Explorer (important) and look for a specified word/pattern everywhere possible. Simply parsing doesn't do the job.
The thing is, I can do that manually - I open website X and press F12 in Internet Explorer->debugging section and I search there. However I have no idea how to implement such a thing in php or any other language.
TL:DR
Need to extract data from a webpage the same way I do it manually (explained in paragraph above). However, simply parsing doesn't do the job. I need to achieve that in php or some other server side language.
In addition to limited approaches such as file_get_contents followed by a string search (or XML parser), you can look into more feature rich libraries such as the SimpleTest Scriptable Web Browser.
You'll want to modify the user agent string in order to simulate a request from Internet Explorer.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was wondering if there is a definitive solution for building web applications that looks like desktop applications, for corporative users that are used to windows. I MEAN THE GUI DESKTOP PERSPECTIVE.
Can anyone help me with that? I use PHP.
I am in a group developing an application that will work for a bank, and that must look exactly like an application so the users do not even notice it is a web based one for security reasons (informed by the bank holder).
We have tried to use Java Applet, but it took just too much time to load, as the application is very big.
you can use ExtJs for your front end and php as back-end.ExtJs is a javascript framework for web-application.
http://www.sencha.com/products/extjs/
I can't recommend PHP for anything personally, so here are some others...
Silverlight is a pretty good start. Does that even count as a web app?
http://en.wikipedia.org/wiki/Microsoft_Silverlight
SharePoint is a better alternative, being a Microsoft product.
http://en.wikipedia.org/wiki/Microsoft_SharePoint
On a subjective note, the internet is so pervasive now that just writing a friendly web page should be enough. Everyone uses the internet and can usually figure things out that present the format nicely.
What data will your application be serving? That has a big part in what framework you pick.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 12 days ago.
Improve this question
I searched in google and come to know that there are some tools which
will provide remote assistance functionality (ex:Gotoassist,teamviewer).But i want to
implement the similar kind of feature in php.
Is it possible to implement in php or not?
I'm going with NOT just in PHP, PHP is a server side scripting language.
http://uk3.php.net/manual/en/faq.general.php#faq.general.what
PHP can be responsible for hooking the session up / starting a server repeater and helping your user to connect with you - but it can't physically do the drawing of client side screen graphics and mouse/keyboard operation - you need something like this:
http://phpremotesupport.com/about/
In tandem with a VNC viewer or other remote viewing product (C, C++, C#, .NET VB would be used to program it most likely) - found this one which might be useful to you called noVNC (web-based):
http://kanaka.github.com/noVNC/
Something like this might help you:
http://phpremotesupport.com/