Hello,
I have installed oracle 9i database on RED HAT 7.3 sucessfully.
Now i am installing oracle developer suite ,but after completing
64% while linking, error comes "error making target install of
make file ins_plsql.mk" . I have serached the net found that
in the $ORACLE_HOME/bin/genclntsh file ,the line
LD_SELF_CONTAINED="-z defs" has to be changed to
LD_SELF_CONTAINED=" "
then i executed the genclntsh script as a oracle user.
but the same error is coming again .
i have checked for gcc, glibc, binutils ...all are installed properly.
please help.
--- amol
Dear all,
when I upload any file in sftp server I want the defaut permession of
that file is 222( Means only Read Permession). How I will do that? For that I
need to write any program or any other way?. Any one plz help me regarding
this.
Thanx in advance.
Warm Regards,
Srinivas
Hi,
> when I upload any file in sftp server I want the defaut permession of
>that file is 222( Means only Read Permession).
^^^ ^^^^^^^^^^^^^^^^^^^^???
it wud be write only..not read only...444 for read-only.
>How I will do that? For that I
>need to write any program or any other way?. Any one plz help me regarding
>this.
Best Regards,
--Yogesh R Upadhye.
Asia Pacific Practice Unit, Pune DC.
Infosys Technologies Limited
+91-20-2932800/1 Extn: 5759
<disclaimer>
The statements and opinions expressed here are my own and do not necessarily represent those of Infosys Technologies Ltd.
</disclaimer>
below is the method to create our custom session in php and mysql
but it gives an error to that start() is undefind in login.php
pl help me..
create database session;
create table sessions (
id int(10) NOT NULL AUTO_INCREMENT,
sess_key char(6) NOT NULL,
val varchar(250) NOT NULL,
ip varchar(35) NOT NULL,
access int(25) NOT NULL,
PRIMARY KEY(id)
);
sess.php
<?php
$host = "localhost";
$user = "user";
$pass = "pass";
$db = "db";
$dbc = mysql_connect($host,$user,$pass) or die("Cannot establish a
connection to the database.");
mysql_select_db($db,$dbc);
class session {
var $key;
var $timeout;
}
// start() will initialize the session by generating the session key or ID
function start($timeout = "") {
// create an array with all the letters of the alphabet
$letters = range("a","z");
// declare the $key variable
$key = "";
// generate our session's key formatted such as #a#aa#
for($i = 0; $i < 6; $i++) {
if(($i == 0) || ($i == 2) || ($i == 5))
$key .= rand(0,9);
if(($i == 1) || ($i == 3) || ($i == 4))
$key .= $letters[rand(0,25)];
}
// store the session's key in a method of the class
$this->key = $key;
// perform a conditional to test if the user defined the timeout and if
not store the default value.
if($timeout == "")
$this->timeout = 300; // five minutes
else
$this->timeout = $timeout;
return 0;
}
// this function will register a value to session. (only one value, see
replace() to update the value)
function register($val) {
// if key is not generated run start()
if($this->key == "")
$this->start();
$insert = mysql_query("INSERT INTO sessions (sess_key, val, ip,
sec_expire, stamp_expire, access) VALUES ('" . $this->key. "', '" .
addslashes($val) . "' , '" . $_SERVER["REMOTE_ADDR"] . "' , " .
$this->timeout . "," . (time() + $this->timeout) . "," . time() .");");
// set the cookie that will store the session key
setcookie("sess_key",$this->key,time()+3600);
}
function read() {
// set $sess_val global - the variable of the session value.
global $sess_val;
// if the cookie doesn't exisit send them back to the login screen.
if(!$_COOKIE["sess_key"]) {
header("Location: login.php");
exit;
}
// fetch the session key from the cookie.
$this->key = $_COOKIE["sess_key"];
// fetch the session value
$query = mysql_query("SELECT val FROM sessions WHERE sess_key = '" .
$this->key . "'") or die("query failed - line 55");
if(mysql_num_rows($query) == 0) {
header("Location: login.php");
exit;
}
$fetch = mysql_fetch_array($query);
// store the session value to $sess_val
$sess_val = stripslashes($fetch["val"]);
// test if session has reached the expiration point
$this->expire();
// this code will only run if expire() returned falsed - we update the
last access point to now.
$update = mysql_query("UPDATE sessions SET access = " . time() . " WHERE
sess_key = '" . $this->key . "'") or die("query failed - line 70");
}
// this function will test if the user has been inactive for the defined
timeout
function expire() {
// fetch the last access and expirations from the database
$query = mysql_query("SELECT access, sec_expire, stamp_expire FROM
sessions WHERE sess_key = '" . $this->key . "'") or die("query failed - line
78");
$fetch = mysql_fetch_array($query);
$access = $fetch["access"];
$expire = $fetch["sec_expire"];
$timeout = $fetch["stamp_expire"];
// test if session is expired based on defined timeout
if(($timeout - $access) <= ($expire - $expire)) {
$this->destory();
die("Your session has expired. Please re-login.");
}
}
// this function will update the session value
function replace($val) {
// fetch the user key from cookie
$this->key = $_COOKIE["sess_key"];
// update the database with the new value
$query = mysql_query("UPDATE sessions SET val = '" . $val . "' WHERE
sess_key = '" . $this->key) or die("query failed - line 77");
}
// this function will kill the session
function destroy($key = "") {
// fetch the user key from cookie
$this->key = $_COOKIE["sess_key"];
// delete session from database
$query = mysql_query("DELETE FROM sessions WHERE sess_key = '" .
$this->key . "'") or die("query failed - line 86");
// remove cookie from the user's computer
$delete = setcookie("sess_key" , $this->key, time()-3600);
if($query && $delete) {
header("Location login.php");
exit;
}
}
login.php
<?php
include "sess.php";
if($login) {
$sess = new session;
$sess->start();
$sess->register($username);
header("Location: welcome.php");
}
?>
<html>
<head>
<title>login</title>
</head>
<body>
<form method="post" action="<?= $PHP_SELF; ?>">
Username: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
<br>
<input type="submit" name="login" value="Login">
</body>
</html>
welcome.php
<?php
include "sess.php";
$sess = new session;
if($logout == "yes") {
$sess->destroy();
header("Location: login.php");
exit;
}
$sess->read();
?>
<html>
<head>
<title>welcome</title>
</head>
<body>
Welcome, <?= $sess_val; ?><br>
<a href="<?= $PHP_SELF; ?>?logout=yes">Logout</a>
</body>
</html>
_________________________________________________________________
On the move? Need to access your mails?
http://server1.msn.co.in/sp03/mobilesms/index.asp Hotmail is now on your
mobile!
Is it possible to write a shell script to extract the number of files added
in a particular directory in a specific time duration (lets say last 2
hours) and then dtermine how many combinations have the same file size and
based on that, do a file compare for the extracted files having same file
size.
If someone has a similar script existing. Please send it to me.
thanks
Homyar.
Homyar Bhathena wrote:
> Is it possible to write a shell script to extract the number of files
added
> in a particular directory in a specific time duration (lets say last 2
> hours) and then dtermine how many combinations have the same file size and
> based on that, do a file compare for the extracted files having same file
> size.
You could write a simple shell script, or use perl. Look at curl and diff.
I am not sure what comparing by file sizes will give you. Would'nt you
rather do a md5sum check?
Something like this:
# compare file checksums
md5new=`md5 -q $NEW_FILE`
md5old=`md5 -q $LIST_FILE`
if [ $md5old = $md5new ]
then
# files are same, exit
exit 0
fi
# files differ, mv new to old text list file
mv -f $NEW_FILE $LIST_FILE
This is one of the headers in an HTTP response from my web server:
Server: Apache/1.3.27 (Unix) Debian GNU/Linux mod_layout/3.2
How would I tell Apache to change that response header? Google
searches show that Apache 2+ can use mod_headers, Apache <2 needs a
recompile. True?
--
Satya. <URL:http://satya.virtualave.net/>
I didn't know it was impossible when I did it.
There's a bug posted at redhat's bugtracker:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=79993
--
Consider well the proportions of things. It is better to be a young June-bug
than an old bird of paradise.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
> From:
> Parag Shah <pshah(a)adaptivesoftware.biz>
> Date:
> Tue, 02 Sep 2003 15:44:08 +0530
> To:
> I have been trying to research pro's and con's of building web based
> Project Management application using J2EE and LAMP. The main factors I
> am considerting are:
>
> 1. Speed of developement
> 2. Salary of programmers
> 3. Security
IMHO, J2EE and LAMP differ largely in scalability and complexity. J2EE
is more targeted towards complex applications, while LAMP is more
suitable for small - medium scale web applications.
Part of the reason is that J2EE has got way too many features to be
applicable in all web-apps and the resources required to get the
middle-ware up and running are much more. Get atleast a GB of RAM if
you want to deploy on a J2EE app server like JBoss or WebLogic. That
done, the application development model, especially EJB (quite similar
to CORBA), is really powerful and flexible though it's not interoperable.
LAMP should be sufficient for a low complexity application and MySQL
would be the first thing to become a limiting factor in load taking
capacity, provided the hardware and network are capable enough. FYI,
sourceforge.net is done in PHP with DB2 having replaced MySQL not too
long ago. I guess LAMP would suffice for the Project Management
Application.
Personally, I am also planning to look into C++ with XML as a platform
for enterprise applications and web services. There are some really
capable application development frameworks like ACE available for it.
Generally, stuff that's available in J2EE is also available in C++.
It's just that the former gets noticed since there's no
c++.bigcorp.com. Oh, but my opinion may be biased due to my perennial
rant against Java, the platform. ;)
--
Tahir Hashmi
code_martial AT softhome.nethttp://www.codemartial.org
I have seen The Source
This note from RMS is self-explanatory. Could you help? It's something
that could really make a world of a difference to the world of Free
Software, and how far it reaches. Do you want to make your work relevant
to many others? FN
----
Could you please forward this to
India-egov(a)yahoogroups.com, pubsoft(a)isoc.org,
fsf-friends(a)gnu.org.in,
linux-india-general(a)lists.sourceforge.net,
gkd(a)phoenix.edc.org, bytesforall_readers(a)yahoogroups.com
since most of those lists will not accept mail from me?
Thirdly, instead of reinventing the wheel, we do need to keep track of the
initiatives underway at the international and national levels. In this
sphere, a lot of work can -- and should -- be shared.
The FSF (in the US) is developing the Free Software Directory, whose
aim is to list all free software that will run on a completely free
GNU or GNU/Linux system. It sounds like that is similar to the FSD.
However, currently the directory lists only 2400 packages, and there
are thousands more to go. Our paid staff person can only check and
add some 1000 packages per year.
A part-time volunteer can easily add 150 packages per year. We now
have one such volunteer, in Brasil. If we had five more volunteers,
we could maybe enter 2000 new packages per year. Would anyone like to
volunteer?
It requires some training to learn to follow our practices, to make
your entries reliable and consistent with the rest of the directory,
so we're looking for people who will make a commitment to keep working
steadily on the directory for a year or more. If you want to
volunteer, please write to jcasey(a)gnu.org.
Meanwhile, if the Indian government hires one person in India to work
with us, that could enable us to add 1000 more packages per year. We
would appreciate the help.
Knowlege is power... share it equitably!
_______________________________________________
prc mailing list
prc(a)mail.sarai.net
http://mail.sarai.net/mailman/listinfo/prc
--
-------------------------------------------------------------------------
Frederick Noronha (FN) | http://www.fredericknoronha.net
Freelance Journalist | http://www.bytesforall.orghttp://goalinks.pitas.com | http://joingoanet.shorturl.comhttp://linuxinindia.pitas.com | http://www.livejournal.com/users/goalinks
-------------------------------------------------------------------------
T: 0091.832.2409490 or 2409783 M: 0 9822 122436
-------------------------------------------------------------------------