[PHP] File Repository / Managment Software

2006-11-03 Thread Prathaban Mookiah
Hello, Is there a open source file repository / managment software written in PHP ? I need to setup a file repository where everyone working in my group can share their files in an organized manner. I am talking about something like phpBB, but with file handling capabilities. Thanks in advance

Re: [PHP] Remote Robot Control with PHP

2006-11-01 Thread Prathaban Mookiah
t;Richard Lynch" <[EMAIL PROTECTED]> To: "Prathaban Mookiah" <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Sent: Wed, 1 Nov 2006 14:50:11 -0600 (CST) Subject: Re: [PHP] Remote Robot Control with PHP > On Tue, October 31, 2006 2:54 pm, Prathaban Mookiah wrote: > &g

[PHP] Remote Robot Control with PHP

2006-10-31 Thread Prathaban Mookiah
Hello List, I thought of sharing my experience of writing a controller to remotely control a robot through a webserver using PHP. Though I could not use PHP alone to do the entire job due the high delay it takes to connect to the telnet port on the robot, (I adopted the PHPTelnet class written

Re: [PHP] Running a Java Program

2006-10-26 Thread Prathaban Mookiah
--- From: Ray Hauge <[EMAIL PROTECTED]> To: php-general@lists.php.net Cc: "Prathaban Mookiah" <[EMAIL PROTECTED]> Sent: Thu, 26 Oct 2006 18:39:26 -0500 Subject: Re: [PHP] Running a Java Program > On Thursday 26 October 2006 6:48 pm, Prathaban Mookiah wrote: > > Hello List, &

[PHP] Running a Java Program

2006-10-26 Thread Prathaban Mookiah
Hello List, I have a situation where, when the user logs into the system (Apache 2/PHP 5.1/Win XP) the php script should activate a Java program to run in the background. This program will keep running in the background while everytime the user requests something, the subsequent php scripts com

[PHP] Active Connections

2006-10-23 Thread Prathaban Mookiah
Hello List, I am trying to develop a web based controller for a robot. The robot has an embedded telnet deamon and it is controlled primarily through issuing commands on this port. I am planning to implement this system with PHP on the server side. Ideally what I would like to do is have two p

Re: [PHP] Problems creating a user in MySQL

2006-10-01 Thread Prathaban Mookiah
I am not sure why you get this error message, but are you sure about the permsissions? i.e. does this user have permission to write to the MYSQL database and user table? Prathap -- Original Message --- From: Deckard <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Sun, 0

Re: [PHP] if statement with or comparison (newbie)

2006-09-08 Thread Prathaban Mookiah
Let me rephrase it. Your color should be black or white to be the right colour. Is this correct? In that case you should change it to if ($_REQUEST['id'] != "black" AND $_REQUEST['id'] != "white") { echo "wrong color"; } else ( echo "right color"; } - Or

Re: [PHP] Problem With Cookies

2006-07-19 Thread Prathaban Mookiah
: "Prathaban Mookiah" <[EMAIL PROTECTED]> To: PHP Mailing Lists Sent: Wed, 19 Jul 2006 23:01:29 +0600 Subject: [PHP] Problem With Cookies > I have run into a wierd problem with cookies. I am trying to set a > cookie as usual: > > $COOKIE_EXPIRES = 3600; > $CO

[PHP] Problem With Cookies

2006-07-19 Thread Prathaban Mookiah
I have run into a wierd problem with cookies. I am trying to set a cookie as usual: $COOKIE_EXPIRES = 3600; $COOKIE_VALID_PATH = "/mydirectory/"; $COOKIE_DOMAIN = ".myhost.com" setcookie("mycookie1", "somevalue", time()+$COOKIE_EXPIRES, $COOKIE_VALID_PATH, $COOKIE_DOMAIN, 0) I want this cooki

Re: [PHP] page redirecting

2006-06-28 Thread Prathaban Mookiah
Did you try using a Cookie? You could set the cookie first and then use Just one idea. I am sure there are better ways to do this. Prathap -- Original Message --- From: kristianto adi widiatmoko <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Wed, 28 Jun 2006 11:17:3

Re: [PHP] Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

2006-06-28 Thread Prathaban Mookiah
Are you trying to use PHP to write the HTML onto a database. If this is the case you can simply use addslashes(). This way you can still preserve the double quotes, but write into the database without any problems. Either way some processing will be involved at some point. So I guess there is n

Re: [PHP] Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

2006-06-28 Thread Prathaban Mookiah
mailing list. Good luck. Prathap -- Original Message --- From: Ryan A <[EMAIL PROTECTED]> To: Prathaban Mookiah <[EMAIL PROTECTED]>, php php <[EMAIL PROTECTED] net> Sent: Wed, 28 Jun 2006 03:10:27 -0700 (PDT) Subject: Re: [PHP] Single quotes verses double quote

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
--- From: Chris <[EMAIL PROTECTED]> To: Prathaban Mookiah <[EMAIL PROTECTED]> Cc: "php-general@lists.php.net" Sent: Mon, 26 Jun 2006 14:52:39 +1000 Subject: Re: [PHP] Problem Displaying Images > Prathaban Mookiah wrote: > > I wish it would work. But id doesn'

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
t;[EMAIL PROTECTED]> To: Prathaban Mookiah <[EMAIL PROTECTED]> Cc: "php-general@lists.php.net" Sent: Mon, 26 Jun 2006 11:56:31 +1000 Subject: Re: [PHP] Problem Displaying Images > Prathaban Mookiah wrote: > > Oh sorry. I use addslashes(). > > Then you'll probab

Re: [PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
Oh sorry. I use addslashes(). -- Original Message --- From: Chris <[EMAIL PROTECTED]> To: Prathaban Mookiah <[EMAIL PROTECTED]> Cc: "php-general@lists.php.net" Sent: Mon, 26 Jun 2006 07:14:42 +1000 Subject: Re: [PHP] Problem Displaying Images > Prathaba

[PHP] Problem Displaying Images

2006-06-25 Thread Prathaban Mookiah
I am trying to manage images with a web database application. It works fine with MySQL 5.0.17 and PHP 5.1.1. But when I port it to another machine that runs MySQL 3.23.54 and PHP 4.2.2, I have problems viewing the images retrieved from the database in the browser. The relevant part of the code

Re: [PHP] Stream download problem

2006-06-20 Thread Prathaban Mookiah
Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. For complete information on this you may want to have a look at http:// support. microsoft.com/default.aspx/kb/279667 Cheers, Prathap -- Original Message --- Fro

Re: [PHP] Stream download problem

2006-06-20 Thread Prathaban Mookiah
Micheal, I ran into this problem too. A easy workaround is to right click and choose 'save as' which worked for me. For complete information on this you want to have a look at http://support. microsoft.com/default.aspx/kb/279667 Cheers, Prathap -- Original Message --- From: Mi

Re: [PHP] Processing HTML in mail form

2006-06-20 Thread Prathaban Mookiah
Jonas: I am not sure if I understood your problem correct. But the way I understood it, you want the mail to be displayed as: F-namn: J L-namn: R Birth: 12 Address: 34 Zip: 56 City: 78 Phone: 90 Mail: [EMAIL PROTECTED] Desc: N Hair: hair Make: makeup Am I correct? If that is the case, I guess y

Re: [PHP] mysql_db_query & INSERT

2006-06-20 Thread Prathaban Mookiah
No. I was looking for a way to do it. mysql_insert_id did the job for me. I can't figure out how I missed out on this function. I browsed through the manual for 2 hours yesterday looking for such a function. Anway, thank you Jay and Chris. And you too John, for your attention. Cheers, Prathap

[PHP] mysql_db_query & INSERT

2006-06-19 Thread Prathaban Mookiah
I have run into a tricky situation and need some help to work my way through the problem. I use MySQL. I accept some data from the user and insert them into two tables. 1. I insert part of the data into the first table. I do not specify the primary key field. It is auto generated through auto_i

Re: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Prathaban Mookiah
If customer_username is a string (char, varchar, text etc.) then I guess it should be mysql_query("SELECT customer_id FROM Customers WHERE customer_username = \"$username\" AND customer_password = \"$password\"") Prathap -- Original Message --- From: Mark Sargent <[EMAIL PRO

Re: [PHP] Header location, redirection loses parameters,

2005-05-10 Thread Prathaban Mookiah
Are you trying to assign the value "value1" to var1 or are you trying to assign the value of the variable value1 to var1? Prathap -- Original Message --- From: "Olav Draageset" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Tue, 10 May 2005 00:16:33 +0200 Subject: [PHP]

Re: [PHP] While and echoing HTML

2005-05-09 Thread Prathaban Mookiah
I guess it is the missing semicolon. And you can write: echo "" as simply echo "$product_type" Prathap -- Original Message --- From: Mark Sargent <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Tue, 10 May 2005 13:23:51 +0900 Subject: [PHP] While and echoing HTML >

Re: [PHP] Reducing size of htm output

2005-05-09 Thread Prathaban Mookiah
--- From: Rory Browne <[EMAIL PROTECTED]> To: Prathaban Mookiah <[EMAIL PROTECTED]> Cc: Rasmus Lerdorf <[EMAIL PROTECTED]>, php-general@lists.php.net, [EMAIL PROTECTED] Sent: Mon, 9 May 2005 10:42:52 +0100 Subject: Re: [PHP] Reducing size of htm output > > But I re

Re: [PHP] Reducing size of htm output

2005-05-08 Thread Prathaban Mookiah
TED]> To: Prathaban Mookiah <[EMAIL PROTECTED]> Cc: Kirsten <[EMAIL PROTECTED]>, php-general@lists.php.net Sent: Fri, 06 May 2005 14:31:04 -0700 Subject: Re: [PHP] Reducing size of htm output > Prathaban Mookiah wrote: > > Is it true that ob_start("ob_gzh

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Prathaban Mookiah
Is it true that ob_start("ob_gzhandler") can cause problems on IE 5.5+? Since IE is on the client side, it shouldn't cause any problems to ob_start(), in that case any other PHP function. In my experience output buffering functions can be bizzaire at times. Especially if you are using it w

Re: [PHP] is this the correct syntax

2005-05-05 Thread Prathaban Mookiah
It should be "$id". Note that missing " Prathap -- Original Message --- From: "Ross" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thu, 5 May 2005 12:09:18 +0100 Subject: [PHP] is this the correct syntax > Am trying to do an update of a record... > > Is this the cor

Re: [PHP] insert not working

2005-05-05 Thread Prathaban Mookiah
Did you check for proper permissions in the user and db tables in the user database? Prathap -- Original Message --- From: "Ross" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thu, 5 May 2005 10:15:52 +0100 Subject: [PHP] insert not working > $query = "INSERT INTO she

Re: [PHP] select statement

2005-05-05 Thread Prathaban Mookiah
Maybe the query should be select user_balance FROM users WHERE user_id="$uname"; Prathap -- Original Message --- From: "Anasta" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Thu, 5 May 2005 16:10:35 +0800 Subject: [PHP] select statement > Why doesnt this work, it shows

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Prathaban Mookiah
Mark, Back to basics budy!! > 25 if ($myrow = mysql_fetch_array($result)); { should be > 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap -- Original Message --- From: Mark Sargent <[EMAIL PROTECTED]> To: php-general@lists.php.net

Re: [PHP] problem connecting php and mysql

2005-04-25 Thread Prathaban Mookiah
Hi, I had this same problem and I followed the the following instructions found in the online manual on installing PHP for windows: If you've run other versions of PHP in the past and are having trouble upgrading to PHP5, particularly in loading the dynamic link library 'php_

[PHP] Tesing Gzip files

2005-04-23 Thread Prathaban Mookiah
Hello, Is there a way to test if a .gz file is in a valid format. Functions like gzread, gzfile don't seem to care if the file is corrupt or not. gzeof also didn't work for me. I guess it is because it does not check for a valid .gz termination. Any ideas to go about doing this? Thanks in adv

Re: [PHP] Can I use $_REQUEST for file uploads?

2005-04-21 Thread Prathaban Mookiah
$_REQUEST should work fine with 4.3.10 IF $_FILES does not have any problems since both depend more or less on the same php.ini directives. Take a look at http://www.php.net/manual/en/reserved.variables.php#reserved.variables.files Cheers, Prathap -- Original Message --- From:

Re: [PHP] handling file upload (OT not exactly PHP)

2005-04-20 Thread Prathaban Mookiah
Did you try using the $_FILES superglobal? -- Original Message --- From: Saswat Praharaj <[EMAIL PROTECTED]> To: Sent: Wed, 20 Apr 2005 18:26:14 +0530 Subject: [PHP] handling file upload (OT not exactly PHP) > Hello , > > Need to do handle a file upload done via http POST. >

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Prathaban Mookiah
substr_count() should be more easy, but limited in functionality. Prathap -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache - IIS Migration

2005-04-19 Thread Prathaban Mookiah
Are there any external libraries that you used to compile PHP? Including support for certain functions may have to be done differently in Windows for e.g Cybercash. Else it shouldn't be a problem. You can even safely upgrade to PHP >= 5.0. Prathap -- Original Message --- From:

Re: [PHP] sql groups

2005-04-12 Thread Prathaban Mookiah
Try, http://forums.mysql.com/list.php?10 Prathap -- Original Message --- From: "William Stokes" <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Tue, 12 Apr 2005 10:51:44 +0300 Subject: [PHP] sql groups > Know any good sql discussion groups for mysql? > > Thanks > -Will

Re: [PHP] Is there any other place to start php module?

2005-04-11 Thread Prathaban Mookiah
Might be under /modules.d/ Prathap -- Original Message --- From: Teng Wang <[EMAIL PROTECTED]> To: php-general@lists.php.net Sent: Mon, 11 Apr 2005 20:57:58 -0400 Subject: [PHP] Is there any other place to start php module? > I can't find any line in httpd.conf to load libphp4.s

Re: [PHP] Split command problem

2005-04-11 Thread Prathaban Mookiah
I guess you are trying to create an array by the name 'name' and assign two elements to it by calling name($fname, $lname). Am I correct? I think it does not work that way. Try list($fname, $lname) = .. Then the variable $fname and $lname will contain the first and last names. list($fname, $

Re: [PHP] Viewing a specific item within a php web-page?

2005-04-10 Thread Prathaban Mookiah
mately you should consider databases. Cheers, Prathap -- Original Message --- From: "Carlos Palomino" <[EMAIL PROTECTED]> To: "Prathaban Mookiah" <[EMAIL PROTECTED]> Sent: Sun, 10 Apr 2005 06:09:53 -0400 Subject: Re: [PHP] Viewing a specific item

Re: [PHP] Viewing a specific item within a php web-page?

2005-04-10 Thread Prathaban Mookiah
I think you have totally got it wrong. You pass on the value to a php script in the form on http:// /script.php?variable=value. So to accomplish your need you may have to do something like call http:// /script.php?articleid=post_040905. Your program should be modified to maybe something lik

Re: [PHP] Re: Problem with ob_get_contents()

2005-04-10 Thread Prathaban Mookiah
t; closed. You maybe have PHP bug here, or the manual is wrong about > the possibility to retrieve the contents. But we can notice that > this also happens at the end of a script when there is no shutdown function. > > --- > Skrol29 > www.tinybutstrong.com > -

[PHP] Problem with ob_get_contents()

2005-04-09 Thread Prathaban Mookiah
Hello, I've posted a miniature version of my code here to explain my problem. This simply does not work the way it should. i.e ob_get_contents doen't return any string and the buffer just gets flushed by itself at termination. Though the PHP manual says it is not possible to retrieve the