Hello, I think all you can do in JSP is also possible in PHP? What I don't understand well is the differences in time (which is faster), installing and configure difficulty (apache vs tomcat? MySql vs Java DB), charge (hosting, development) and speed.
Kind regards,
C.
User Profile
Collapse
-
JSP comparison with PHP
-
postgres in java
hello
how to connect my java application with postgresSQL BDMS, I means which connection string do I need and what about the using of SQL ?
thx -
Hi,
Thank you so much, it works perfectly but there is a little diference between my code and yours:
On line 47 you write:
But I just use the variable $teller:Code:$message = $teller > 1 ? "Your number is correct! And you have found this in " . $_SESSION['teller'] . " attempts!": "Your number is correct! And you have found this in 1 attempt!!";
...Code:$message = $teller
-
Yes, I know that I should use POST in stead of GET but this is just a test and simple to test in order to answer my question ..
Ok, I also thought about session but why does this work for recomend_number and answer but not for teller ??
I only know the theory and unserstand how to use the session for passing a variable between different pages, I truelly don't know where or how I have to use the session in this example ... ...Leave a comment:
-
What am I doing wrong in this application?
It is just one page called me.php
[PHP]<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title>Find the number ...</title>
</head>
<body>
<h3>Find the numer generated by your PC between 1 and 100 </h3>
<?php
// I make a counter to save the number of attempts
if (! isset($teller)) {
... -
Hello dear nathj
I am going to use the list you posted :-)
1. MySQL as the database
2. PHP for the dataprocessing server side
3. JavaScript for client side scripting
4. AJAX for processing between the client a server side
5. HTML and CSS for the display.
Without Ajax because I don't have the basic understanding of this technology and sure I shall ask the questions come up during my exercices....Leave a comment:
-
Thank you
But the aim is to explain the ICT words in other language a full explanation or defenition ..
kind regardsLeave a comment:
-
Yes I forget to tell you something which is very important
I am not going to translate the words used in the ICT by myself but I want to program the web application for some friends who are going to translate the words and save them into the database.
Thank youuuuLeave a comment:
-
What should you use for this project ?
I would like to make an online computer dictionary (free :P )
Some thing like this:
Computer : saçba shi
Programming: barmijiti
HTTP: izi protokoli fantshi intaranti baro misti
...
What should you use to make this one?
Java Applet
PHP
CGI with Perl
Flash with ActionScript
Javascript with XML
...
And why ?? I want just... -
after the php control:
............... ............... ............... ...........
[HTML]<?php
session_start() ;
if (!IsSet($_SESSI ON['login'])) {
header("Locatio n: index.php");
exit(0);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dt d">
<html...Leave a comment:
-
-
-
That is absolutly not a Java implementation, but that's how it works ..
Implementation you should give a string
strVar[100] = some string
thanks
have a nice day...Leave a comment:
-
Thanks, I'm going to do that .. but is that the only solution?
You have also things like n-tier application, there you should split your application
into different layers
HTML with {example} PHP references
PHP database
PHP connection
PHP variables
...
Just like we do using CSS, Javascript and XHTML.
I'm looking for a good tutorial using this way ..
Thank...Leave a comment:
-
:-) absolutly, I think I'm going to try sessions ..
Thanks...Leave a comment:
-
good choice, java is fun and teaches microsfot to discover the world of oop and runtime ..Leave a comment:
-
-
If you don't know how many strings you are going to use don't use arrays but arraylists or other classes from collections ..
When you make this:
this.gen = new String[];
you have to tell the memory how many adresses it has to allocate for you array
for example
this.gen = new String[453234];
String[] gen; // declares an array of strings (strings = array of charachters)
gen=...Leave a comment:
-
Listbox value in the textbox
Hello all
I have one list box ans text box on my site, lik this:
...Code:<select name="lstScript"> <option>Javascript</option> <option>VBscript</option> <option>PHP</option> <option>Actionscript</option> <option>Other</option> </select> <input type="text" id="txtScript" readonly="yes"
-
GET POST or which methode should you use ?
Good time everyone here
When I created an account on this site I got this url:
http://www.thescripts.com/forum/regi...hp?do=register
So now I have a question about ?do=register and what does this mean ?
Suppose you have a web page named main.php with some links to different pages with same layout (one table) but different contents depending on what the visitor clicks.
For example:
Link 1 leads...
No activity results to display
Show More
Leave a comment: