I have an SCO system with several PC's hooked up via ProComm and serial cabling (no Ethernet). I want to occasionally transfer a small text file from the UNIX system to a specific PC without the PC operator having to do anything (she may be out to lunch or doing other work during the transfer)
... (0 Replies)
Hello,
I have written some scripts that query the user and waits for keyboard input for an answer. I was wondering if there is any generic code snippets out there that would allow me to run this as a GUI. I am thinking of a simple dialogue box that would display the question and have a text... (1 Reply)
hi all,
can anybody help me with script or command to ftp some text file from windows machine to AIX machine.
this is shud be done by executing a shell script. (1 Reply)
Hi,
plz ignore the error in subject. i need new line in text area.
I am designing a JSP in which i have to display a field taken from oracle DB table in a text area.. field is first selected from oracle thru C++ and passed to jsp in a variable as one long string. the problem is while inserting... (2 Replies)
Hi,
I need to format the content in a text file as below format. Can some one help me how to approach? Also whether is it possible to convert the output to excel in column wise?
Present:
=============================================================================
Name: vinodh
Status:... (1 Reply)
I am having one string like
./usr1/Server/temp/app.env ./usr1/Server/temp/upp/app.env ./usr1/Server/ORIG_temp/app.env ./usr1/Server/ORIG_temp/upp/app.env ./usr1/Server/work_temp_40/app.env ./usr1/Server/work_temp_40/upp/app.env ./usr1/fd/app.env ./usr1/PurgeArchive/app.env ./usr1/bm/bin/app.env... (6 Replies)
Hello everyone,
I work under Ubuntu 11.10 (c-shell)
I need a script to create a new text file whose content is the text of another text files that are in the directory $DIRMAIL at this moment.
I will show you an example:
- On the one hand, there is a directory $DIRMAIL where there are... (1 Reply)
I have two files,
sec.txt(1st File)
3172
disp.txt(2nd file)
the file name is
***********
45676
Now i want to compare the value in sec.txt file with disp.txt file
Excatly i want to compare the value 3172 in first file and 45676 in second file.
i want to compare the first line of... (11 Replies)
hi,
i have a list box , a text box and a button in a html form.
list box displays some values, when a user selects a value from the list box and press the button. the selected value should be copied to the text box value.
can any1 give me a html and javascript code to do this facility.
... (1 Reply)
Hi,
I have an issue modifying a file. Below is the content of the file.
File name - a.txt
SELECT LISTAGG(SCORE), LISTAGG(VB),
LISTAGG(SCORE*12 + 3),
LISTAGG(DOB)
from T_CONCAT ;
SELECT LISTAGG(SCORE),
LISTAGG(VB),
LISTAGG(SCORE*100 + 3),
from... (1 Reply)
Discussion started by: Mannu2525
1 Replies
LEARN ABOUT PHP
mysql_escape_string
MYSQL_ESCAPE_STRING(3) 1 MYSQL_ESCAPE_STRING(3)mysql_escape_string - Escapes a string for use in a mysql_querySYNOPSIS
Warning
This function was deprecated in PHP 4.3.0, and will be removed in the future, along with the entirety of the original MySQL exten-
sion. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more
information. Alternatives to this function include:
omysqli_escape_string(3)
o PDO::quote
string mysql_escape_string (string $unescaped_string)
DESCRIPTION
This function will escape the $unescaped_string, so that it is safe to place it in a mysql_query(3). This function is deprecated.
This function is identical to mysql_real_escape_string(3) except that mysql_real_escape_string(3) takes a connection handler and escapes
the string according to the current character set. mysql_escape_string(3) does not take a connection argument and does not respect the cur-
rent charset setting.
o $unescaped_string
- The string that is to be escaped.
Returns the escaped string.
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 5.3.0 | |
| | |
| | This function now throws an E_DEPRECATED notice. |
| | |
| 4.3.0 | |
| | |
| | This function became deprecated, do not use this |
| | function. Instead, use |
| | mysql_real_escape_string(3). |
| | |
+--------+---------------------------------------------------+
Example #1
mysql_escape_string(3) example
<?php
$item = "Zak's Laptop";
$escaped_item = mysql_escape_string($item);
printf("Escaped string: %s
", $escaped_item);
?>
The above example will output:
Escaped string: Zak's Laptop
Note
mysql_escape_string(3) does not escape % and _.
mysql_real_escape_string(3), addslashes(3), The magic_quotes_gpc directive..
PHP Documentation Group MYSQL_ESCAPE_STRING(3)