Is it possible to create sign up possibility without PHP? - php

Is it possible to create a sign up possibility without PHP?
i made an application with jQuery, and i want the users to be able to sign up and
save there input. Is this possible without PHP?
Thanks in advance

Web applications consists of two sides. server and client, server is stored in some host in remote computer while we are the client who request them from our desktop.
php is a server side programming language (that runs on server) while javascript is client side language(runs on our computer). so if you want to create alert message with php then then you cannot. similarly you cannot store data on sever with javascript because it runs on your computer.
data are sent from server as request and they are manipulated on browser with css and javascript. (you are are able to see browse page with extention .php even though you don't have php installed on your computer. beasuse server has php compiler)
now if you want to create a sign up then, you need to store data in server (because data has to be available), and javascript does on run on server. so you will need a server side language. there are lots of languages for server side scripting and that they are really good and you can choose any of them as mentioned above. But most important thing is you need one ...!

You can use any server-side language, so strictly speaking yes, you can solve it without PHP. I assume you want this without any programming on the server side - that's not possible as far as I know.

You can store input in their browser's localStorage, or in a cookie if it's really small. That way users can save their stuff, but don't even have to sign up.
Otherwise, "signing up" usually implies creating some sort of account, which must be handled server side.

Not really. You still need a language on the server-side that is able to interpret your input (login and password) and compare it with your users data.
The only way to achieve this is throug a programming language on the server side. If your hosting environment is using Apache and PHP, then PHP is probably the easiest way to do it.

Related

PHP code inside HTML tags

I have a PHP script for my contact form, but my host is not compatible with PHP scripts. Is there a way to get this PHP code in an <script>tag?
No, there is not. PHP runs on the server, not on the client.
And this is for good reasons. A lot of the things you do with PHP, you wouldn't want to let the client do anyway. For instance loading data from the database - if you gave the client your database password it could get any data from your database.
Some of the things done with PHP could be done in JavaScript instead, but in quite different ways. But not all things could.
If your host does not support PHP, you will either have to live without it or change host.
If your server is not compatible with PHP how do you plan one running PHP? To answer your question, no.
However you could look into using node.js
check this out http://www.nodemailer.com/
No you can't, because PHP is a server-side language, so if your server doesn't support PHP you can't do anything: tags are for client-side languages, such as Javascript, so in this case are useless.
What languages does your server support?
No. If the PHP software itself isn't installed on the server, it isn't available to you to run from any scripts as it is server-side code and has nothing to do with the browser (client-side).
However, if PHP was installed on the server, you can run PHP code within <script> tags as follows:
<script language="php">
// Your PHP code
</script>
(But that isn't good practice)
It's not a good practice to use server side scripts on the front end, better use client side scripts, say javascript. Server side scripting should be used to serve and consume data, to clean user submitted data mainly.
Please make you a favor and enter javascript . There are many good modern frameworks like ANGULARJS and REACTJS, just to mention my preferred.
Having said that, I answer your question, no it's not possible, but your hosting should support any server, so better ask what server scripting does it provide, because it must. The majority of web hostings provide PHP as default.

Can two remote users view the same PHP web page and each update it?

Is it possible for the same web page to be viewed by two different remotely separated web browser such that when input is put into one browser the same data is displayed in the other browser? Think GoogleDocs (I know this works) or perhaps a document in SharePoint (I'm told this works).
PHP is a server-side scripting language, this means that when the client asks to view the page the PHP-script will render an HTML-page that the client then receives. Any changes that are then done on the client-side will not affect the file on the server.
The way of doing this would be (as already suggested by VWGolf2) to use JavaScript and upload the changes to the server once the client has made any changes. These can then be downloaded (using JavaScript) to the other client and then updated on their webpage.
You can ofcourse write this all in PHP, but it will not be the PHP that is performing the actual logic on the client-side, it will most likely be JavaScript.
You can not solve this problem in php. You will need to use JavaScript and ajax.

Create folder from server to client in intranet using php

I have a server and i need to create a folder in the clients side and store a file for security purpose
Is it possible please let me know. Thank you
The server cannot have this level of interaction with the client. So it's not possible from PHP for sure.
It might be possible with JavaScript, and I'm not even sure there's a reliable way to do it there, because browsers are normally not allowed to touch the file systems.
With PHP its not possible. PHP run on the server. For this you need a programm that has enough rights on your system and it must run on the client side a JAVA Applett or Flash with enough system rights.
But i think its not the best way.
For "security purpose", PHP does not and will never allow this sort of interaction with a computer. You can download files and then the person can put it in the folder, that way the user has knowledge they even have the file on their computer, otherwise there is no way unless using Java (with the correct rights of course)

jsp + php + asp.net + python in one site?

I have a question: can I mix jsp, php, asp.net and python in one site?
For example:
www.mysite.com/customer.html <-- this page is written by jsp
www.mysite.com/mycart.html <-- this page is written by php
www.mysite.com/login.html <-- this page is written by asp.net
www.mysite.com/admin.html <-- this page is written by python
I use ".html" as I don't want other know what technology I am using.
I am facing some problems:
What web server can hold all these technologies?
How can they share session?
Or just simply tell me this is impossible...
Thanks
You cannot share a session unless there is one module (for apache or something) that encompasses all of these technologies properly.
If this doesn't bother you, then, just configure your webserver to handle all of the file endings and such.
Speaking from my experience, I suppose all web servers supports these languages. You just have to install their parsers/modules and configure your web server to use them. You'd have to give your pages different suffixes though, so that your web server will know what to do with the files.
www.mysite.com/customer.jsp
www.mysite.com/mycart.php
www.mysite.com/login.aspx
www.mysite.com/admin.py
You can always generate a random key like a234feg321de32 for the session, store it into your db for each user, and send it in the GET or POST variables, then check it with a select query. This would work even if you pushed your test further and switched from one server to another.
I like your idea. With nginx you can easily redirect requests to the different applications in whatever way you prefer. When it comes to session sharing (and all kinds of data sharing) the easiest and safest way would be to communicate via a database. Problem is, you would have to implement your own session management solution in all different systems.

Is it possible to take a screenshot of all the visible items displayed on the monitor of a client machine from a sever?

Is it possible to take a screenshot of all the visible items displayed on the monitor of a client machine from a sever?
No. You would need some kind of client-side technology for this, but I doubt it is possible due to the restrictions in which browsers plugin operate.
For example, Fogbugz, a bug tracking software, has an option to do screen grabs, but to use it you need to install a local program on the computer.
from the client should send the items displayed for example with AJAX, and in server related to the capture of the user session
... a Java applet or an Activex control might able to pull it off. In theory anyway, in Java's case through JNI, so me thinks. Could be wrong though.
If it is possible it is definitely not with PHP. PHP is a server-side language, all of its work is done once the page is returned from the server.

Categories