Search found 9 matches

by vram
Tue Apr 22, 2003 1:31 am
Forum: Javascript
Topic: Need Javascript
Replies: 4
Views: 2339

Re

Hi I clarify u.I want a PHP system function to be called when the user performs the following actions only. He closes the window either by pressing X or presing Alt+F4.Unload fn will be called everytime i move from that page to anyother page.Inthat case i dont want to call system fn since im not out...
by vram
Wed Apr 16, 2003 1:25 am
Forum: Javascript
Topic: Need Javascript
Replies: 4
Views: 2339

Need Javascript

Hi friends I want to perform the following actions. 1.I want a script to run when the user closes the window either by pressing ALt+F4 or pressing the X at the top right corner. (actually i want a php system fn to run when the abv action takes place.) 2.I used anchor text in my site .I want the user...
by vram
Thu Apr 10, 2003 11:54 pm
Forum: PHP - Code
Topic: Problem with my PHP code
Replies: 1
Views: 306

Problem with my PHP code

Hi friends I created a webpage thru which i executed Db2 commands using System function available in PHP.I created an instance which i set it to the environment variable .Now when i try to create a sample Database i get the error "SYSTEM" does not have the authority to perform the requeste...
by vram
Thu Apr 10, 2003 4:54 am
Forum: PHP - Code
Topic: One DB2cmd instance
Replies: 3
Views: 592

Using One DB2CMD instance

Hi
It is not working.Tell me any another option. Bye
Thanx in advance.



volka wrote:try

Code: Select all

<?php
...
$cmd = 'db2cmd /c /w /i db2 get instance';
$cmd .= ' && db2cmd /c /w /i db2 connect to sample'; 
$cmd .= '&& db2cmd /c /w /i db2 select * from staff';
...
system($cmd);
?>
by vram
Thu Apr 10, 2003 1:29 am
Forum: PHP - Code
Topic: One DB2cmd instance
Replies: 3
Views: 592

One DB2cmd instance

Hi friends I execute db2 commands thru a webpage using PHP script..For executing db2 commands ,i need to call db2cmd everytime like this to initialise command line environment. <?php Start of PHP //Initialised session .. . system('db2cmd /c /w /i db2 get instance'); system('db2cmd /c /w /i db2 conne...
by vram
Wed Apr 09, 2003 4:24 am
Forum: PHP - Code
Topic: unable to create db using php
Replies: 2
Views: 449

unable to create db using php

Hi all Anybody pls help me how to rectify the error in the below code.I created a webpage thru which i allow users to learn SQL thru DB2 UDB.Initially I created an instance which i set to environment variable. Then i attached the instance to the Win NT user name and password.My prj needs the db2 com...
by vram
Tue Apr 08, 2003 8:48 am
Forum: PHP - Code
Topic: Creating Windows PWD using PHP
Replies: 5
Views: 804

Command to change PWD inWINNT

Hi
Thanks for ur reply.Im thankful to u if u send me the command to change windows NT password and username.Thanx in advance.
by vram
Tue Apr 08, 2003 7:54 am
Forum: PHP - Code
Topic: Creating Windows PWD using PHP
Replies: 5
Views: 804

Creating Windows PWD using PHP

Hi all
Can anybody pls tell me how to update registry to create a
windows userid and password at runtime using the PHP script.Also Try to delete this userid from the system using the script.Thanx in advance
Bye
by vram
Tue Apr 08, 2003 3:58 am
Forum: Databases
Topic: creating sample db thru web
Replies: 0
Views: 363

creating sample db thru web

Hi all I m facing problem in my project.I want to create an instance,then setting it to environment variable,then i should create a sample database.I succeded in the first two task but sample db creation failed .I know the reason.since im executing from a webpage,db2 has no way to know which user tr...