[PHP] Crypt Function-- Encryption and Decryption
Hi All, I have a password file , which has all the passwords words encrypted with the Crypt Function I know that Crypt uses one-way algorithm to generate the encryptions and PHP has no Decrypt function , ( but can it be developed to have one ?) But I am eager to know whether it is really impossible to decrypt the passwords , if possible , how it caqn be done. like salts and all Can somebody *please* throw more light on Crypt() and Encryption and Decryption in this thread. Thanks, Nikhil
[PHP] HTML button as hyperlink
Hi All, My Question is that , I have an HTML page , how can I make it as Hyperlink instead of a Form Button When user clicks on that button , it must be a href link . Please guide me. Thanks, Nikhil.
RE: [PHP] HTML button as hyperlink
Hoped that this is the best list , I had my problems got solved under PHP always here , so mailed request to it. -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] HTML button as hyperlink Hello Nikhil, Thursday, November 18, 2004, 2:04:51 PM, you wrote: MN My Question is that , I have an HTML page , how can I make it as MN Hyperlink instead of a Form Button Failing to see the PHP relevance here. Perhaps you want a Beginners Guide to HTML? Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I am not young enough to know everything. - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML button as hyperlink
Thanks Martin , it gelled :) -Original Message- From: Martin Holm [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 8:07 PM To: Mulley, Nikhil Cc: [EMAIL PROTECTED] Subject: Re: [PHP] HTML button as hyperlink Mulley, Nikhil wrote: Hi All, My Question is that , I have an HTML page , how can I make it as Hyperlink instead of a Form Button When user clicks on that button , it must be a href link . Please guide me. Thanks, Nikhil. . first of all, i dont see anything regarding php in this question. form method=post action=http://new.url.com/whatever.html; input type=submit value=Go to other page /form // Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Is Perl faster than PHP?
It all depends on the factors like Computer Hardware, Optimization of PHP for that System/OS , Network Factors and all . Though it has been the perl way , as it is almost more than a teenager of age now and has more modules written for it than for PHP , PHP is the beggining , but I am sure the Programmers around the world ,who code for PHP way , thier hardwork will not go waste. and also Shifflet , I know you are the one among , PHP is easier to code than Perl . Yeah , its true that top sites do not use Java or NET , -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 8:44 AM To: Merlin; [EMAIL PROTECTED] Subject: Re: [PHP] Is Perl faster than PHP? --- Merlin [EMAIL PROTECTED] wrote: it came to my attention that most of the high traffic portals are using perl in the backend. Those sites do also apear to me to be very fast in comparison to most php sites. Are there any known performance comperissons between the two available? Or can one say that PHP or Perl is faster about x percent in general compared to the other one? PHP and Perl are both key tools used to build many of the Web's top sites - Amazon, Yahoo, Ticketmaster, Google, etc. As a Perl developer worded it at this past week's ApacheCon, these types of sites receive an obscene amount of traffic. How these two languages perform and scale relative to one another is entirely dependent on the design and implementation - neither is going to consistently be better than the other, but both are very good. You will notice that the top sites don't use Java or .NET. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming February 2005http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Domain Information
Hi Lists, I wanted to know one thing that , I am migrating all my Office Desktops to Linux Desktops , I wanted to know if Active Directory is for Windows , then What is in Linux Community ?
RE: [PHP] Domain Information
Sorry , but this are the groups where I always get my concern addressed :) Thanks, Nikhil. -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 5:46 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Domain Information On Wed, 3 Nov 2004 14:44:58 +0530, Mulley, Nikhil [EMAIL PROTECTED] wrote: I wanted to know one thing that , I am migrating all my Office Desktops to Linux Desktops , I wanted to know if Active Directory is for Windows , then What is in Linux Community ? Did you forget to include your PHP question perhaps? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] System Command and snmp commands
Hi All, I want to use system command to perform snmp queries on a remote machine and the problem is that I want to store the output /result in an Array , so that I can later use it for parsing purposes.I know I could use exec and passthru statements actually,But I am unable to store the result in the array or I am unsure whether the result is not getting stored in the array Here is the code ?php exec(' snmpget -v 2c -c public 10.103.16.14 sysUpTime.0',$ret); list($a)=split('[,]',$ret); echo $a[0]; ? Point me , if any thing wrong in the code Please help me. Thanks, Nikhil.
RE: [PHP] System Command and snmp commands
Tring Tring . Just to ring please help me. I am giving to out print_r($ret) then it returns 1 at exec(' snmpget -v 2c -c public 10.103.16.14 sysUpTime.0',$ret); --Nikhil -Original Message- From: Mulley, Nikhil [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 12:41 PM To: [EMAIL PROTECTED] Subject: [PHP] System Command and snmp commands Hi All, I want to use system command to perform snmp queries on a remote machine and the problem is that I want to store the output /result in an Array , so that I can later use it for parsing purposes.I know I could use exec and passthru statements actually,But I am unable to store the result in the array or I am unsure whether the result is not getting stored in the array Here is the code ?php exec(' snmpget -v 2c -c public 10.103.16.14 sysUpTime.0',$ret); list($a)=split('[,]',$ret); echo $a[0]; ? Point me , if any thing wrong in the code Please help me. Thanks, Nikhil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Configuration Error
Hi All, When I am compiling php4.3.8 with mysql,apxs and snmp on a -Linux Build i386 GNU/Linux I am getting this error Can some body please help me I have PHP already installed but I want to reconfigure it to work with snmp Here is the End of the configuration message checking base type of last arg to accept... (cached) socklen_t checking return type of qsort... (cached) void configure: error: Cannot find MySQL header files under /usr/local/mysql/bin/ Nikhil
RE: [PHP] .htaccess and .htpasswd
Can I know the platform on which you are running apache. -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 1:57 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] .htaccess and .htpasswd # .htaccess AuthType Basic AuthName Restricted Area AuthUserFile /www/html/path/to/file/admin/.htpasswd require valid-user # .htpasswd Admin:ChqaxtiTH1e0E Both files are in same directory. Why it doesn't work? Can I use as AuthUserFile .htpasswd since they are in the same directory? I know its not smart but let's get this working and I'll move .htpasswd later to upper level :) -afan Dude...do you know what mailing list you're on? http://httpd.apache.org/lists.html -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Table Creation Time Stamp.....
Hi Guys , How do we get the time_stamp of a Table creation , I know something like this would work ... SHOW TABLE STATUS LIKE 'table name' ; But How do I get only the column of time stamp column. Thanks, Nikhil.
RE: [PHP] Table Creation Time Stamp.....
Yeah I did it, But asked for any specic statement , any way Thanks :) -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 5:53 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Table Creation Time Stamp. [snip] How do we get the time_stamp of a Table creation , I know something like this would work ... SHOW TABLE STATUS LIKE 'table name' ; But How do I get only the column of time stamp column. [/snip] There is no specific way to get that column using just a query (just ask a SQL list). But you could do the query, explode the returned data and get the right colun from the returned array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Class
Hi All , I do not know whether to post here or not , but it always happens that I always get the crispy answers from here. I have JDK 1.4.2 Installed on my machine, Now I externally downloaded a Jimi Package and I wanted to know how to install/deploy/put this Jimi ( java Extension )in which folder. Jimi is a Java Class for Images, I need this because I wanted to use it in PHP. Please any soon relevant reply will be appreciated. --Nikhil.
[PHP] Is there any way of knowing User Currently Logged On?
Hi Guys, Is there any way of finding the current user logged on the remote system I have a perl script which gets the user name who is currently logged on a remote Windows Machine #LoggedOnUsers(server, userRef).pl use Win32::NetAdmin; use strict; use vars qw($server @users_list); if(@ARGV0){ $server=$ARGV[0]; } else{ print \n\nEnter a valid Hostname or IP Address : ; chomp($server=STDIN); } Win32::NetAdmin::LoggedOnUsers($server,[EMAIL PROTECTED]); foreach(@users_list) { print \n$server-- $_; } This one gets the users logged in on a remote Windows machine , Is there a similar way of finding / doing the same regardless of an OS, Can it be done through a Web Browser Any Clues ?? --Nikhil.
RE: [PHP] Is there any way of knowing User Currently Logged On?
No Holmes ,Its not working , is there any other way ... And My specific would be something that by Giving an IP or a hostname ,the script should fetch the user logged in currently,, like when we use the nbtstat command on a Windows Domain with the argument as the hostname , it would fetch the details something like this. P:\nikhil\userloggedon nbtstat -an hydws00014 Local Area Connection: Node IpAddress: [10.103.6.22] Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status - HYDWS00014 00 UNIQUE Registered JUNOHYD00 GROUP Registered HYDWS00014 03 UNIQUE Registered HYDWS00014$03 UNIQUE Registered HYDWS00014 20 UNIQUE Registered JUNOHYD1E GROUP Registered MSASI 03 UNIQUE Registered == He is the actual user currenly logged on. HYDWS00014 01 UNIQUE Registered MAC Address = 00-B0-D0-2D-DF-6F Regards, Nikhil. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 12:19 AM To: Mulley, Nikhil Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is there any way of knowing User Currently Logged On? Mulley, Nikhil wrote: Is there any way of finding the current user logged on the remote system You can try $_SERVER['LOGON_USER'], but I think the remote computer has to be in the same domain as the server... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Is there any way of knowing User Currently Logged On?
Hi Vail, My Worry is that If a remote OS is not Windows, then this would throw out garbage, Where as this Perl Script would work well at a Windows Side ,Bcoz I am using the 'Win32' Module ,is there any other module such that . We cannot even predict ( or I believe there is no exact way ) what the remote OS could be :( Nikhil. -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 11:33 PM To: 'Mulley, Nikhil'; [EMAIL PROTECTED] Subject: RE: [PHP] Is there any way of knowing User Currently Logged On? If you code in php something like the following, you just might be able to use the perl script; $ok = exec(path/to/Perl myperscriptname.pl server, $result); // you may have to straighten out syntax Foreach($result as $line) { echo $line; // or you could process the results } Hope this helps, Warren Vail -Original Message- From: Mulley, Nikhil [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Is there any way of knowing User Currently Logged On? Hi Guys, Is there any way of finding the current user logged on the remote system I have a perl script which gets the user name who is currently logged on a remote Windows Machine #LoggedOnUsers(server, userRef).pl use Win32::NetAdmin; use strict; use vars qw($server @users_list); if(@ARGV0){ $server=$ARGV[0]; } else{ print \n\nEnter a valid Hostname or IP Address : ; chomp($server=STDIN); } Win32::NetAdmin::LoggedOnUsers($server,[EMAIL PROTECTED]); foreach(@users_list) { print \n$server-- $_; } This one gets the users logged in on a remote Windows machine , Is there a similar way of finding / doing the same regardless of an OS, Can it be done through a Web Browser Any Clues ?? --Nikhil. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Is there any way of knowing User Currently Logged On?
How do I turn on the Integrated Authentication turned on. Ours is a mixed heterogenous network which has Windows,Linux,Solaris,BSD Lindows,Linspire and many other OS all together,So How Do I? -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 1:07 AM To: [EMAIL PROTECTED] Cc: John Holmes; Mulley, Nikhil Subject: RE: [PHP] Is there any way of knowing User Currently Logged On? It does and Windows Integrated Authentication has to be turned on (and Anonymous access turned off). I just got my company to configure that so my PHP scripts could grab the authenticated user for logging purposes. -TG -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, October 11, 2004 2:49 PM To: Mulley, Nikhil Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is there any way of knowing User Currently Logged On? Mulley, Nikhil wrote: Is there any way of finding the current user logged on the remote system You can try $_SERVER['LOGON_USER'], but I think the remote computer has to be in the same domain as the server... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals - www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Gmail Search
Hi guys, I have a new need here..., I have some 3 gmail accounts which are filled up with some 800MB stuff useful each like MySQl and PHP ,Linux ,What I wanted is a search I have my home page in my Intranet, I want to put a search their, What it should do is take the search query and search the relevant query in my GMail Inboxes ( provided in a config file with the userid and passwords --- if a program developed ;) ). and take those search results in an array ( or an array of arrays --PHP way ), then put them in a standard HTML Table format or any convenient browsing way. And the thing I would not let my user ID and password let open to the world in any case :) , avoidin security breach Does any one have any clue Regards, Nikhil.
RE: [PHP] fopen and http://
May be the path is not the correct ,just check with the Web Directory you configured to be and if its htdocs then I would say that its better to remove the htdocs from the path in fopen statement. -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 6:22 PM To: [EMAIL PROTECTED] Subject: [PHP] fopen and http:// Hi, I'm having a problem with fopen and http files. I keep getting the error: Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15 http://zed/htdocs/rgfindingaids/series594.html does not exist Warning: fopen(http://zed/htdocs/rgfindingaids/ser391.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15 http://zed/htdocs/rgfindingaids/ser391.html does not exist Warning: fopen(http://zed/htdocs/rgfindingaids/ser392.html ) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15 http://zed/htdocs/rgfindingaids/ser392.html does not exist I have a text file /home/awilliam/public_html/rgfaids containing URLs such as: http://zed/htdocs/rgfindingaids/series594.html http://zed/htdocs/rgfindingaids/ser391.html http://zed/htdocs/rgfindingaids/ser392.html and I can bring up these URLs fine in a browser on the PC i'm running the script on. The following is my code: ? $filelist = fopen(/home/awilliam/public_html/rgfaids, r); if (!$filelist) { echo error opening rgfaids; exit; } while ( !feof($filelist)) { $line = fgets($filelist, 9); $filetotest = fopen($line, r); if (!$filetotest) { echo $line does not existbr; } elseif ($filetotest) { echo $line does exist; } } ? But I don't understand why I am getting that error about failed to open strem: HTTP request failed, when I can bring up the links fine in a browser on the server running the php script. So can anyone help me out? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I know whether PHP is installed as CGI or Apache Module.
Hi All, Is there any way out finding ,How do the PHP is installed ,whether as Apache Module or CGI. Thanks, Nikhil.
RE: [PHP] I don't understand why !!!!
Yeah It was the same problem with me too,When I tried to Google,I found that PHP 5 is not an upgrade of PHP 4 ,but a complete rewrite, So,I thought of switching to php 4,which works quiet relevantly, You need to configure php4.3 wit MYSQL and apache before they are used and the thing is that in PHP 4 ,the the support is inbuilt ,U need not configure the DLLS so,In php 5.0 everything comes under a differrent package If U need any assistance during configuration try a site search at google by PHP Apache Mysql site:devsite.net Thanks, Nikhil. -Original Message- From: Nicolae Serban [mailto:[EMAIL PROTECTED] Sent: Monday, September 13, 2004 4:30 AM To: [EMAIL PROTECTED] Subject: [PHP] I don't understand why -- Forwarded message -- From: Nicolae Serban [EMAIL PROTECTED] Date: Mon, 13 Sep 2004 01:58:38 +0300 Subject: [PHP] I don't understand why To: [EMAIL PROTECTED] I just install the PHP 5 ! This is the code ?php $link=mysql_connect(localhost,root,1234); mysql_close($link); ? and this is the error messege WHY !!! Fatal error: Call to undefined function mysql_connect() in C:\Apache\Apache2\htdocs\ttt.php on line 3 Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] My problem with the code
Hi All, I have a problem...with my code ,can any one please guide or correct me. [BLUE] My main aim is to develop a php(or php in html) ,in which Login is there ,after appropriate login ,User must get the Option of selecting available databases ,Upon selecting databases,user must get to select the appropriate tabl from Selected database, Can I have that code. Please do the needful. [BLUE] Please find the questions in blue format authenticate.php (should be login.php no probs but) ?php include(phpscripts/draw_table.php); $hostname=xxx; $usrname=$_POST['username']; $usrname=root; $pswd=$_POST['password']; $db_selected; $db_list; $row; $dbconnlink=mysql_connect($hostname,$usrname,$pswd); if($dbconnlink) { echo h4bConnected to the MYSQL Server : $hostname /bh4br; $db_list = mysql_list_dbs($dbconnlink); echo h4The Databases available in $hostname are :/h4; while ($GLOBALS[row] = mysql_fetch_object($db_list)) { // echo $row-Database . \n; echo form METHOD=\POST\ action=?php show_table($row-Database); ?p input type=\radio\ name=\Database_Selection\ value=\$row\ $row-Database /p [BLUE] I am listing the available databases here present in the mysql server 'xxx' I want the user to select the database available ,upon the submit of selection of database,User must be able to see the available tables in that selected database Again in the same format of Radio Options to select the table,He must be able to select the table,Upon selecting particular available table,he must be able to see the Values in it. [BLUE] br ; echo Testing; $selectcat=$row[category]; echo option value=\$selectcat\$selectcat/option br; //To List all the Databases present in $hostname } echoBRINPUT TYPE=\reset\ VALUE=\Clear\ INPUT TYPE=\submit\ VALUE=\Select\ ; [BLUE]Can I have here to put the value as dynamic database.[/BLUE] mysql_free_result($row); } else { echo bError : .mysql_error()./bbr.b pre Go Back and type the Exact User ID and Password Which mySQL Admininistrator Gave You, if not available,Please contact a href = \[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /pre script language=\javascript\ javascript.alert(\Go Back and type the Login Information Correctly\); /script br /b; } function show_table() { $tableselected=''; $tableselected= $_POST[$row-Database]; } ? Thanks, Nikhil.
[PHP] Problem with the code
Hi All, I have a problem...with my code ,can any one please guide or correct me. [BLUE] My main aim is to develop a php(or php in html) ,in which Login is there ,after appropriate login ,User must get the Option of selecting available databases ,Upon selecting databases,user must get to select the appropriate tabl from Selected database, Can I have that code. Please do the needful. [BLUE] Please find the questions in blue format authenticate.php (should be login.php no probs but) ?php include(phpscripts/draw_table.php); $hostname=xxx; $usrname=$_POST['username']; $usrname=root; $pswd=$_POST['password']; $db_selected; $db_list; $row; $dbconnlink=mysql_connect($hostname,$usrname,$pswd); if($dbconnlink) { echo h4bConnected to the MYSQL Server : $hostname /bh4br; $db_list = mysql_list_dbs($dbconnlink); echo h4The Databases available in $hostname are :/h4; while ($GLOBALS[row] = mysql_fetch_object($db_list)) { // echo $row-Database . \n; echo form METHOD=\POST\ action=?php show_table($row-Database); ?p input type=\radio\ name=\Database_Selection\ value=\$row\ $row-Database /p [BLUE] I am listing the available databases here present in the mysql server 'xxx' I want the user to select the database available ,upon the submit of selection of database,User must be able to see the available tables in that selected database Again in the same format of Radio Options to select the table,He must be able to select the table,Upon selecting particular available table,he must be able to see the Values in it. [BLUE] br ; echo Testing; $selectcat=$row[category]; echo option value=\$selectcat\$selectcat/option br; //To List all the Databases present in $hostname } echoBRINPUT TYPE=\reset\ VALUE=\Clear\ INPUT TYPE=\submit\ VALUE=\Select\ ; [BLUE]Can I have here to put the value as dynamic database.[/BLUE] mysql_free_result($row); } else { echo bError : .mysql_error()./bbr.b pre Go Back and type the Exact User ID and Password Which mySQL Admininistrator Gave You, if not available,Please contact a href = \[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /pre script language=\javascript\ javascript.alert(\Go Back and type the Login Information Correctly\); /script br /b; } function show_table() { $tableselected=''; $tableselected= $_POST[$row-Database]; } ? Thanks, Nikhil.
[PHP] Problem with the code
Hi All, I have a problem...with my code ,can any one please guide or correct me. [BLUE] My main aim is to develop a php(or php in html) ,in which Login is there ,after appropriate login ,User must get the Option of selecting available databases ,Upon selecting databases,user must get to select the appropriate tabl from Selected database, Can I have that code. Please do the needful. [BLUE] Please find the questions in blue format authenticate.php (should be login.php no probs but) ?php include(phpscripts/draw_table.php); $hostname=xxx; $usrname=$_POST['username']; $usrname=root; $pswd=$_POST['password']; $db_selected; $db_list; $row; $dbconnlink=mysql_connect($hostname,$usrname,$pswd); if($dbconnlink) { echo h4bConnected to the MYSQL Server : $hostname /bh4br; $db_list = mysql_list_dbs($dbconnlink); echo h4The Databases available in $hostname are :/h4; while ($GLOBALS[row] = mysql_fetch_object($db_list)) { // echo $row-Database . \n; echo form METHOD=\POST\ action=?php show_table($row-Database); ?p input type=\radio\ name=\Database_Selection\ value=\$row\ $row-Database /p [BLUE] I am listing the available databases here present in the mysql server 'xxx' I want the user to select the database available ,upon the submit of selection of database,User must be able to see the available tables in that selected database Again in the same format of Radio Options to select the table,He must be able to select the table,Upon selecting particular available table,he must be able to see the Values in it. [BLUE] br ; echo Testing; $selectcat=$row[category]; echo option value=\$selectcat\$selectcat/option br; //To List all the Databases present in $hostname } echoBRINPUT TYPE=\reset\ VALUE=\Clear\ INPUT TYPE=\submit\ VALUE=\Select\ ; [BLUE]Can I have here to put the value as dynamic database.[/BLUE] mysql_free_result($row); } else { echo bError : .mysql_error()./bbr.b pre Go Back and type the Exact User ID and Password Which mySQL Admininistrator Gave You, if not available,Please contact a href = \[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] /pre script language=\javascript\ javascript.alert(\Go Back and type the Login Information Correctly\); /script br /b; } function show_table() { $tableselected=''; $tableselected= $_POST[$row-Database]; } ? Thanks, Nikhil.
RE: [PHP] Users of RDBMS
You can create user from mysql prompt by connecting it through first cmdmysql -h host -u userid -p instance password : ** then type GRANT ALL PRIVILGES ON *.* TO 'newuser'@'host' IDENTIFIED BY 'password' with GRANT OPTION; where newuser is new users id and host may be either localhost or any other host,if you want to add that user to connect from any host then replace 'host' with '%' with single quotes. and password is new users password. Regards Nikhil -Original Message- From: Victor Saldaña D. [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 1:03 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Users of RDBMS On Wed, 8 Sep 2004 12:01:55 -0700 (PDT), Pahlevanzadeh Mohsen [EMAIL PROTECTED] wrote: Dears, I need to create user for MySQL. Please guide me.. Please RTFM http://dev.mysql.com/doc/mysql/en/Adding_users.html -- Victor Saldaña D. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php