Archivo de la etiqueta: Java

Chinese characters in form submission

Client page:

<head>
<meta http-equiv="Catchup Scheduler" content="text/html; charset=UTF-8">
</head>

<body>
<form action="next.php" method="POST" >
<input type="text" name="programme_name"></br>
<input type="submit">
</form>
</body>

Server page:

$name = $_POST['programme_name'];

mysql_query("SET character_set_client=utf8",$con);
mysql_query("SET character_set_connection=utf8", $con);
mysql_query("SET character_set_results=utf8", $con);

$query = "Select * from programme 

Sigue leyendo

Etiquetado , , , , | Deja un comentario

What is the best architecture to use at the back end for a java client based client/server setup?

I’m fairly new to programming and have been focussing a great deal on Java in recent months. I would like to write an application with a Java applet front end which will capture information about my users and allow forSigue leyendo

Etiquetado , , , , | Deja un comentario

Recognizing a character to be Chinese and get Chinese “pinyinphonetics from simplified characters?

Es posible
A) find out if a character is Chinese (simplificado)
and in that case
B) get the pinyin? example: 你好 => nǐhǎo
using java or php?
Aplausos… Sigue leyendo

Etiquetado , , | Deja un comentario

Google AppEngine java.net.Socket is restricted error

I’m using Quercus/PHP on AppEngine. When I run a simple script with file_get_contents($url);… Me sale un error:
java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
Please see the Google App Engine developer’s guide for more details.
I’ve googled and although I find Sigue leyendo

Etiquetado , , , | Deja un comentario

java php sha1 function

what is alertnate of sha1 function in java
just like in php

sha1("here is string");

what will be in java Sigue leyendo

Etiquetado , , | Deja un comentario

Cannot read response from Java socket server using PHP client

I have a server written in Java. Its a simple one that echoesHELLOwhen a client connects and then echoes back any reply the client sends. El código se encuentra por debajo:

ServerSocket ss=new ServerSocket(2001);
while(true) {
  Socket s=ss.accept();
  BufferedReader in=new 

Sigue leyendo

Etiquetado , , , | Deja un comentario

php javascrip posting data to php file andler on php and javascript

im posting data to a php file
i only getting some sata not all of it
and a dont know how to handle that data one in php to the java script
i’m doing the code in oop this isSigue leyendo

Etiquetado , , | Deja un comentario

Signing PDFs on a server document using a signature from the user

Esto es lo que quiero hacer:
user creates document (html)
edit -> save PDF on server
ask if user wants to sign the document

(sí) here is the problem
(en) no hay problema

???? (not important)
So now the problemSigue leyendo

Etiquetado , , , | Deja un comentario

Androide, http: How to upload a file to a site hosted by a shared server?

I bought myself a website where it is being hosted on a linux server which shares one IP address using cpanel. The problem that is, ahora, i want to use this code to upload a file to my site. EverytimeSigue leyendo

Etiquetado , , , , | Deja un comentario

android Json parser gives me errors

I’m very new in android and i’m developing an application that passes data from android to mysql through php and I’m in registering users part now. I got some codes from searching but while i’m implementing it I’m getting errors.Sigue leyendo

Etiquetado , , , , | Deja un comentario
18 páginas