Re: [PHP] Serving pages based on user input

2008-08-23 Thread Prasad Chand
: At 2:03 PM -0700 8/23/08, Prasad Chand wrote: >I am fairly new to PHP. I would like to serve a page to a user based on his input. Say, I have a page 1 where user has 3 options(drop down menu). Based on his selection I would like a php script to direct him to another page (to pages 2,3,4 ba

Re: [PHP] Serving pages based on user input

2008-08-23 Thread Prasad Chand
Jochem Maas wrote: Prasad Chand schreef: Hi, I am fairly new to PHP. I would like to serve a page to a user based on his input. Say, I have a page 1 where user has 3 options(drop down menu). Based on his selection I would like a php script to direct him to another page (to pages 2,3,4 based

[PHP] Serving pages based on user input

2008-08-23 Thread Prasad Chand
Hi, I am fairly new to PHP. I would like to serve a page to a user based on his input. Say, I have a page 1 where user has 3 options(drop down menu). Based on his selection I would like a php script to direct him to another page (to pages 2,3,4 based on what he selected). I am unable to figur

[PHP] PHP :: SSH2 ??

2005-01-01 Thread Pari Purna Chand Nannapaneni
Can anybody give me a small example on using ssh2 functions ( http://pecl.php.net/package/ssh2 ). I want to execute a command on the remote machine and want to get the ouput into a phpvariable. Here is my php code ... I'm getting some "Resource id #5" as output. What does this mean. How to g

Re: [PHP] Best way to figure out whether a query returns RESULT or NON-RESULT

2004-10-16 Thread Karam Chand
Thanks. Never knew there existed (===). Silly me :) Regards, Karam --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Karam Chand wrote: > > Hello, > > > > mysql_query() returns non-false even if there was > an > > UPDATE statement and the query was successfu

Re: [PHP] Best way to figure out whether a query returns RESULT or NON-RESULT

2004-10-16 Thread Karam Chand
mysql_num_rows() at all. The problem is that if I set error_reporting( 0 ), everything works but we are required to have error_reporting ( E_ALL ) Regards, Karam --- Chris <[EMAIL PROTECTED]> wrote: > Karam Chand wrote: > > >Hello, > > > >I have an app where one module is

[PHP] Best way to figure out whether a query returns RESULT or NON-RESULT

2004-10-15 Thread Karam Chand
Hello, I have an app where one module is similar to phpMyAdmin (well only .1%) with error_reporting() set to E_ALL. Now a user can execute any query. What is the best way to know whether a query is result or non-result. e.g. >> $result = mysql_query ( $query, $mysql ); if

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread Karam Chand
165 $diff = 0.002506 So to get the difference in ms I have to multilply $diff by 1000. Am I correct? Regards, Karam --- John Holmes <[EMAIL PROTECTED]> wrote: > Karam Chand wrote: > > In Win32 API to profile a job we use the following > > method: > > > >

[PHP] Time consumed in microseconds

2004-08-30 Thread Karam Chand
Hello, In Win32 API to profile a job we use the following method: timetaken = GetTickCount(); /* do some job */ timetaken = GetTickCount() - timetaken; In this way timetaken returns you the time taken by the job to complete? How can I get it in PHP. I want the exact figure in ms? I used mic

Re: [PHP] Server Error : Premature end of script headers: php-engine

2004-08-24 Thread Karam Chand
combined work crosses the memory limit. Regards, Ritesh --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Karam Chand: > > Hello, > > > > Connecting to the PHP using Windows WinInet APIs. > Mine > > is a C++ app that connects to the PHP and gets >

Re: [PHP] Server Error : Premature end of script headers: php-engine

2004-08-24 Thread Karam Chand
, Karam --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Karam Chand: > > Hello, > > > > I have a fairly big table of 60K rows with 9 cols. > > > > > I have a C++ app that connects to a PHP page. This > PHP > > page in turn connects to the a

[PHP] Server Error : Premature end of script headers: php-engine

2004-08-24 Thread Karam Chand
Hello, I have a fairly big table of 60K rows with 9 cols. I have a C++ app that connects to a PHP page. This PHP page in turn connects to the above table and outputs all the row in form of XML. I get all this data in my C++ app, parse it with an XML parser and do my work. My PHP source looks som

Re: [PHP] MySQL/PHP Tunneling

2004-07-11 Thread Karam Chand
TED]> wrote: > * Thus wrote Karam Chand: > > --- Curt Zirzow <[EMAIL PROTECTED]> > wrote: > > > > Now, many of the ISPs blokc 3306 for security > reason > > and you cannot access MySQL from a 3rd party tool > and > > have to use phpMyAdmin which is a

Re: [PHP] MySQL/PHP Tunneling

2004-07-10 Thread Karam Chand
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > First off, when starting a new topic, don't reply to > message and > then change the topic. Sorry. But I just didnt remember the email addy so I took that way :). > > * Thus wrote Karam Chand: > > Hello, > &g

[PHP] MySQL/PHP Tunneling

2004-07-10 Thread Karam Chand
Hello, Recently lot of MySQL clients try to overcome host based privilege system of MySQL by using PHP tunneling method. In this method they call up a PHP file in the server and the PHP file executes a query and sends the data in XML format. I am using C API() and I was just wondering if somebo

[PHP] Webyog releases SQLyog 3.71 & SJA 2.0

2004-06-09 Thread Karam Chand
Webyog has released SQLyog 3.71 & SQLyog Job Agent ( SJA ) v2.0 Some of the major features added in SQLyog 3.71 are - -- SQLyog Notification Services - This new feature allows delivery of formatted resultset(s) over email at scheduled intervals. -- SQLyog Database Synchronization Tool now suppor

[PHP] PHP code documentation tool

2004-01-08 Thread Karam Chand
Hello I recently got a fairly big project in PHP. Before starting I would like to clear some doubts. What is the best way to document such projects? How you developers document your project? For .NET etc. there are many documentation tools like doc-o-matic etc. Do we need to document the code b

Re: [PHP] Not able to execute Linux binary

2003-12-07 Thread Karam Chand
OTECTED]> wrote: > On Saturday 06 December 2003 12:56, Karam Chand > wrote: > > > looking at manuals and help and some help from > you. i > > wrote the attached code- > > > > error_reporting (E_ALL); > > ini_set('display_errors&

Re: [PHP] Not able to execute Linux binary

2003-12-05 Thread Karam Chand
It is returning output 2Array ( ) which means the array is empty !!! it should have outputted ErrorError Both the php and the binary exsits in http://www.mydomain.com/mgmt/ Can I send you the binary so that you can check it out? Karam --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Satur

Re: [PHP] Not able to execute Linux binary

2003-12-05 Thread Karam Chand
Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off safe_mode_include_dir no value no value Thanks for the help. Karam --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Friday 05 December 2003 20:43, Karam Chand wrote: > > > I have set the error reporting t

Re: [PHP] Not able to Linux binary

2003-12-05 Thread Karam Chand
the regcode? I dont have any idea about safe mode. My PHP is loaded up in my Host's server. Can I change the settings? If yes then what should I do? Thanks for your help. Karam --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Friday 05 December 2003 14:04, Karam Chand wrote: > &

[PHP] Not able to Linux binary

2003-12-04 Thread Karam Chand
Hello I created a linux binary using GCC. Whenever you execute it reads a file from the current directory and outputs the contents. e.g. - ./myapp output hello world. Now I want to execute it from php() so that I can output the content on a HTML page or get the data in a variable. Reading thru

[PHP] Execute a linux binary that generates a registration code...

2003-12-04 Thread Karam Chand
Hello I have got an app wherein you need to pass a name as the first parameter and it will output that is cout << a registraion code for my app based on the name. I would like to give a web based interface wherein a user can give his name on the form and I will be able to generate the code from

[PHP] PHP Journals and Magazined

2003-10-13 Thread Karam Chand
Hello I just shifted to PHP from ASP and I am impressed. I have a query though - Apart from sites like phpbuilder.com etc. which is the most read English magazines read by PHP developers. I know PHP Arch..nebody reading something else...just querying...might subscribe to one of them. Karam

[PHP] SQLyog 3.51 Released

2003-06-30 Thread Karam Chand
SQLyog v3.51 - The definitive Windows Front End for MySQL, has been released. SQLyog is a superfast, compact and easy to use Front End for MySQL. Some of the new features added in SQLyog 3.51 are - -- Complete support for MySQL 4.1. -- Improved SQL Editor. -- Improved ODBC Import Tool. -- BLOB

[PHP] SQLyog 2.51 - the definitve FREE Windows front-end to MySQL

2002-11-12 Thread Karam Chand
Greetings SQLyog v2.51. The definitive Windows Front End for MySQL. SQLyog is FREE! Some of the new features added in SQLyog 2.51 are - -- Alter Table structure in an easy to use Grid mode. -- Optimized for speed and network resources. -- Insert / Update data in a table. -- Insert / Update

[PHP] IMAP - Moving messages between folders

2002-09-09 Thread N. Pari Purna Chand
Hi all imap gurus out there, I have sruggling for quite some time to get the imap_mail_move() function to work. Imap server : Courier IMAP PHP Version : 4.1.2 where $msg is an array of imap-mailid's which are to be moved from INBOX to $movetofolder. But the above code is not working and is n

Re: [PHP] split() - not working in this case

2002-09-08 Thread N. Pari Purna Chand
Yeah, I have outputted to browser Split() was working fine.. Sorry for the noise on the list. But I have realised that the very moment I posted the mail on the list. /Chandu - Original Message - From: "Chris Wesley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc

[PHP] split() - not working in this case

2002-09-08 Thread N. Pari Purna Chand
I have a string $to = " abcd <[EMAIL PROTECTED]>, efgh <[EMAIL PROTECTED]>" ; I want a function returning an array of indivial names+mailids like from the $to seperated by "," something like $tos[0] = "abcd <[EMAIL PROTECTED]>"; $tos[1] = "efgh <[EMAIL PROTECTED]>"; Now split() in the followin

[PHP] Array - Match

2002-09-07 Thread N. Pari Purna Chand
I have $sub = "abc"; and $subs[0] = "cde"; $subs[0] = "iyu"; $subs[0] = "abc"; .. .. .. $subs[50] = "xyx"; How to find whether $sub matches with any one of $subs[$i] I have used a for loop but it is returning true when $subs[$i] = "xabc". /Chandu

Re: [PHP] replacing \n with

2002-09-06 Thread N. Pari Purna Chand
Bothe of us got the same problem at same time :-) - Original Message - From: "David T-G" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 9:28 PM Subject: [PHP] replacing \n with -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] \n to Problem

2002-09-06 Thread N. Pari Purna Chand
I have a small problem in converting a plain text to html. say $text = "PHP Rocks"; Observe the '\n', When I call the converttohtml function which I wrote ( see bottom ) $html = converttohtml($plaintext); The $html I'm getting is "PHP Rocks"; Observe the '\n' still exists, What is the way to

[PHP] What's the trick ?

2002-08-25 Thread N. Pari Purna Chand
Hi guys, Am writing a web based mailclient (obviously with PHP+IMAP), In the 'ReplyMail' script, inorder to add the "> " string at the beginning of everyline, I used the following code, ", htmlspecialchars(trim(imap_body($mbox, $msg; ?> This is giving an output with one additional \n in th

Re: [PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facin

Re: [PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facin

[PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
Hi guys, I am facing a strange problem, php's mail() function is not working when a php page is executed thru apache, but the same page which has mail() function is working fine and is sending mails when php is used as a scripting language in shell. I'm using xmail's sendmail and xmail as MTA on

[PHP] Refreshing session variables

2002-07-18 Thread N. Pari Purna Chand
Hi guys, I got a problem with refreshing session variables. When the following code is run , for the first time both $z and $secretstring are showing same values. But when page is refreshed, the $secretstring variable is still having the old value no matter how many times I click refresh. Am I

[PHP] hiding submitted variable values in location bar of browser !

2002-07-09 Thread chand
Hi everyone, Is there any way to hide my form submitted variables (like passwords etc) in the location bar "http://somedomain.org/checkpassword.php? password=mypassword" or atleast show in an encypted form n the location bar. /Chandu

[PHP] Problem with special characters

2002-03-24 Thread N. Pari Purna Chand
When a form is submitting data to another php page it is sending specialcharacters with escape sequences added. Ex : & when i do an echo $var1; in the submitted php page it is showing "c:\\programfiles\\" instead of "c:\programfiles\" Howto overcome this ? /Chandu -- PHP General Mailing

[PHP] Cannot Find php binary

2002-03-19 Thread N. Pari Purna Chand
Hi all I have compiled php on a slack box ./configure --with-apxs=/usr/local/apache/bin/apxs .. make && make install everything Fine and .php pages are being parsed with php when called thru webserver(apache). But I can not find any binary named "php" which I need to run php scripts from she

[PHP] check this new site

2002-02-08 Thread Sagar Chand
hi all out there, just tell me howz this new site "www.linuxfornerds.com" A site meant for ardent linux lovers but every one r invited to post any views on any open source software. so get ur voice out /sagar __ Do You Yahoo!? Send FREE Va

Re: [PHP] Using session functions in PHP4.1.1

2002-02-03 Thread sagar N chand
i dont know how u r using the thing like PHP on the fucking Win. Moreover WinMe is the worst of all the OS's. So, better migrate to other OS as soon as possible. /sagar - Original Message - From: "John Mpaliza" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 1

[PHP] cant redeclare class......

2001-10-20 Thread Sagar N Chand
Hi all, I'm using jm_sms class in mysql dowhile($myrow=mysql_fetch_array($result)) loop. the class is running fine for the first time. But when it is called for the second time i'm getting an error saying "cant redeclare the class". How to make this class work within a loop. i'm attaching

Re: [PHP] A powerful editor!

2001-10-03 Thread sagar N Chand
coool man, i've been using it since 2yrs. /sagar - Original Message - From: Dean Householder To: Alex Shi ; [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 2:27 AM Subject: Re: [PHP] A powerful editor! I used to use TextPad until I found EditPlus. I'm also amazed by

Re: [PHP] Creating mailaccounts

2001-10-03 Thread sagar N Chand
work out with squrrelmail or basilix. If u want to set up won mail server then you must have your head and fingers into linux. /sagar - Original Message - From: Bjornie To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 12:25 AM Subject: [PHP] Creating mailaccounts

[PHP] only c if u r an indian...

2001-10-03 Thread sagar N Chand
hi, any body out there from hyderabad. if u r a hyderabadi plese mail me. v have got a lot of things to do. thanks, /sagar

[PHP] sessions in php4

2001-10-01 Thread sagar N Chand
hi all, i'm using a php4.0.6 with apache on win2k. when i register a session and immediately if i redirect to another page the session seems not to be registered. eg. when i go to the new page i c that the session has not been reigstered. but in case if i dont redirect from php rather use a h

[PHP] sock prob

2001-09-29 Thread sagar N Chand
hi, the socket() function is not working on win2k. any help? thanx, /sagar

[PHP] php chat

2001-09-27 Thread sagar N Chand
i've seen many members seeking for a good php chat. so my suggestion is use phpmychat. its the best php chat i've ever come across. here is the site where u can download your version. www.phpheaven.net its also very easy to install and configure with good admin. ejoy your chat server, /sagar

Re: [PHP] session not working

2001-09-27 Thread sagar N Chand
session must be registered before any code is sent to the browser. so the syntax should be html code here /sagar - Original Message - From: Krushna Kumar R To: [EMAIL PROTECTED] Sent: Thursday, September 27, 2001 5:43 PM Subject: [PHP] session not working Hi, I w

Re: [PHP] Variable declaration

2001-09-27 Thread sagar N Chand
its really a big headache with compilers like c bugging all the way just for declarations. its cl to have the freedom of using any variable at any place wherever v want in bet ween the code. chao of PHP. /sagar - Original Message - From: * R&zE: To: Rasmus Lerdorf Cc: [

Re: [PHP] updating a database (mysql)

2001-09-27 Thread sagar N Chand
try using the die function. it might help out. or u can use the mysql_affected_rows functions. check out. http://www.php.net/manual/en/function.mysql-affected-rows.php /sagar - Original Message - From: Joseph Bannon To: PHP (E-mail) Sent: Thursday, September 27, 2001 1:17 AM

Re: [PHP] PHP Chat recommendations

2001-09-27 Thread sagar N Chand
try 'phpmychat' search in google. its the best chat in php available till now. /sagar - Original Message - From: Tom Beidler To: Maxim Maletsky (PHPBeginner.com) ; php list Sent: Wednesday, September 26, 2001 8:51 PM Subject: Re: [PHP] PHP Chat recommendations I did, that

Re: [PHP] PHP already build but '--without -mysql'

2001-09-25 Thread N. Pari Purna Chand
Augusto Cesar wrote > I just instaled a Linux, but php is already working > but without mysql. > What should I do? How can I rebuild again? I can't understand u'r question, May be u are asking how to build php with mysql support, First install mysql get php4.x src, ../configure --wit

Fw: [PHP] Capturing several checkbox values

2001-09-25 Thread sagar N Chand
- Original Message - From: sagar N Chand To: John Day Sent: Tuesday, September 25, 2001 6:46 PM Subject: Re: [PHP] Capturing several checkbox values give each checkbox an individual name before you submit it. In the next page put this code : while(list($key,$value)=each

[PHP] no of files in a folder....

2001-09-25 Thread sagar N Chand
hi all, is there any way out to get the total no of files in a directory including its subfolders ? thanQ,, /sagar

[PHP] how to get the total disk space used in a directory

2001-09-23 Thread sagar N Chand
hi all, is there any way to get the total disk space used under a directory including its subdirectories and all the contents. /sagar

[PHP] mysql error on win2k

2001-09-21 Thread sagar N Chand
hi, i have installed win2k and configured apache and php4.0.6 but mysql is giving error 1016 or so. why is this happening. /sagar

[PHP] how to password protect files

2001-09-21 Thread sagar N Chand
i want to restrict the access of some files to a single user only whose names and pwds are stored in mysql table and i'm authenticating them through my website. So what i'm looking for is that the files should not be downloaded when their urls are typed in the browsers. /sagar

[PHP] How to download files to the server

2001-09-21 Thread sagar N Chand
hi everyone, I'm sorry that i'm not there on the list for a few days. Actually i'm working for a project in which i want to download some files to the server(remote) if the user inputs the url of the file name. hope u got me. i want to make my server to do the downloads for me so that i can lat

Re: [PHP] Server Setup

2001-08-29 Thread N. Pari Purna Chand
I have never used a binary version (rpm or tar) as I use slackware. Both PHP and Mysql have been recently added to the distribution.So I have been using src all the time. U'll certainly have some performance gain by compiling the src. But the default Redhat 7.1's php distribution is very

[PHP] cant connect to mysql

2001-08-28 Thread Sagar N Chand
Hi geeks, I have a strage problem over here. I developed a site which runs fine at my home. When i hosted it on to the remote server it is giving an error saying cant connect to mysql. the error is like this Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111) in

[PHP] PHP for APACHE 2.x API

2001-07-03 Thread N. Pari Purna Chand
Are there any pathches sort of availabe for php 4.0.x so that I can compile php4 for Apache 2.0.x beta regards Chandu

[PHP] Compiling PHP with pgsql

2001-07-03 Thread N. Pari Purna Chand
Hi I am able to Successfully compile PHP 4.0.6 with imap and pgsql as an Apache DSO. But after make and make install Apache is not restarting saying that it cannot find libpq.so.2 So I copied the libpq.so.2 from /usr/local/pgre/lib/ to /var/lib/apache/libexec but still apache wont restart. I'm

[PHP] Compiling PHP with IMAP

2001-06-30 Thread Sagar Chand
Hiall, I am compiling php4.0.5 with imap support as a DSO for APache. with ./configure --with-apxs. --with-imap And I got an error saying rfc822.h missing. So I downloaded the latest Imap Beta 2001 tilldate And cp'd the c-client to /usr/include And after compiling the imapd and ipop3d I cp'd

[PHP] how to install pws on win2k

2001-06-20 Thread sagar chand
hi everyone,   I have recently shifted from win98 to win2k. the pws i'm using is not installing on win2k. Is there any remedy 4 this?   thanks for all u guys who help here with this mailing list.   bye sagar