Re: [PHP] CPU Usage

2005-08-11 Thread kalinga
with php you can simply create your own system monitoring classes using php snmp functions. mrtg (http://mrtg.org) uses SNMP to manipulate system MIBs and OIDs to retreave device informations. happy PHP SNMP! ~viraj. On 8/12/05, Evert | Rooftop <[EMAIL PROTECTED]> wrote: > Hi All, > > Is ther

[PHP] Re: Is gethostbyaddr() slow?

2005-08-04 Thread kalinga
On 8/4/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote: > kalinga wrote: > > > if you are quering a external host, the bad network conditions may > > > >cause delay in results. > > > >if your server is connected to a heavily loaded hub/ cheap switch, or

[PHP] Re: Is gethostbyaddr() slow?

2005-08-04 Thread kalinga
i missed another keypoint.. if you are running unix/linux server, you need to have a properly setup resolv.conf or if you experience a slowness while you quering your own domains, check whether you DNS servers are providing "authoritative" answers to your domains. ~viraj. On 8/4/0

[PHP] Re: Is gethostbyaddr() slow?

2005-08-04 Thread kalinga
On 8/4/05, kalinga <[EMAIL PROTECTED]> wrote: > On 8/4/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote: > > I can say from personal experience that gethostbyaddr() and > > gethostbyname() can seem almost randomly slow, depending on machine, OS, > > software, wh

[PHP] Re: Is gethostbyaddr() slow?

2005-08-04 Thread kalinga
On 8/4/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote: > I can say from personal experience that gethostbyaddr() and > gethostbyname() can seem almost randomly slow, depending on machine, OS, > software, who knows. I'm not smart enough to figure out the reason why > it can vary so much on mac

[PHP] Re: Sessions Issue

2005-08-02 Thread kalinga
did you check the output of "phpinfo()"? if you did not made modifications or manual configurations, the session support should be on in defalt. ~viraj. On 8/1/05, Burhan Khalid <[EMAIL PROTECTED]> wrote: > > On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: > > > We built a box about 7 mo

Re: [PHP] adding ftp functionality into php

2005-07-21 Thread kalinga
On 7/21/05, Tom Cruickshank <[EMAIL PROTECTED]> wrote: > Hello, > My apologizes in advance if this is the wrong mailing list. > > I have a php module in apache which is missing ftp functionality > (--enable-ftp was not used as an argument on compile time). However, > recompiling php at this time d

Re: [PHP] Date function and MySQL

2005-07-20 Thread kalinga
> > > Hi all. > > > > > > I have the week number (for example, this is the 29th week of the > > > year and it begins on 7/17/05). Does anyone know how to obtain the > > > first (and maybe the last) date of the week if you only know the week > > > number of the year? Would it be better for me to obt

Re: [PHP] Date function and MySQL

2005-07-20 Thread kalinga
this seems pretty interesting, i'm tring to write a code in php to get those two outputs, but bit confused in counting weeks. could somebody clear me.. "what is the first *date* of the first week of year 2005?" is it "saturday jan 1st 2005" (assuming first week starts from jan 1 of any year) or i

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-18 Thread kalinga
i recently met samekind of problem, could you pls specify the OS, Apache, Php and MySQL vesrions you are using? vk On 7/18/05, Mark Rees <[EMAIL PROTECTED]> wrote: > "Linda H" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I added the following to the top of my script: > > > >

Re: [PHP] Re: session data not recorded

2005-07-18 Thread kalinga
have a look here.. http://www.php.net/session scroll down the page you will find some better session handling codings! vk. On 7/18/05, Mark Rees <[EMAIL PROTECTED]> wrote: > ""Alessandro Rosa"" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I have a problem to record sessi

Re: [PHP] Command-line php in debian/woody

2005-04-06 Thread kalinga
just download the php4-cli deb package and install it, i think this should work, and correct me if it's a stupid idea. and Sarge is ok for me, i'm running a production e-mail server for last 6 months with a heavy load on it, i'm using php4-cli on it for my 'home made' exim4 administration utility,

Re: [PHP] what are {} used for in php?

2005-04-06 Thread kalinga
http://www.wellho.net/question/H1_5.html and try google. vk. On Apr 6, 2005 2:55 PM, Jacques <[EMAIL PROTECTED]> wrote: > I have often seen php code included inside braces. What does this mean or > do? > > Jacques > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit

Re: [PHP] Data and time problem

2005-03-17 Thread kalinga
store the date as a 'unix timestamp', so you can easily compare the stored timestamp with the current timestamp, by doing a simple calculation you can get the duration in minutes without a headache. http://www.php.net/time vk. On Thu, 17 Mar 2005 14:32:48 +0200, [EMAIL PROTECTED] <[EMAIL PROTE

Re: [PHP] call a function within the same class

2005-01-07 Thread kalinga
great!, thanks for the detailed answer. vk. p.s. I hope following URL will be helpfull to php oop beginners.. http://www.zend.com/zend/tut/class-intro.php On Thu, 6 Jan 2005 08:57:48 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > kalinga wrote: > > Dear all, > &g

[PHP] call a function within the same class

2005-01-05 Thread kalinga
Dear all, I recently started PHP OOP and I'm bit confused about best and the most efficient methods when 'declaring a class' and 'calling function', could somebody explain me with following sample code, it would be great.. thanks.. class classLdap{ $rslt = $_POST['rslt']; functi

Re: [PHP] CMS

2004-12-28 Thread kalinga
typo3, it's a good one.. try it ;-) vk. On Tue, 28 Dec 2004 11:00:32 +0100, Javier Leyba <[EMAIL PROTECTED]> wrote: > > Hi > > I'm looking for a good CMS recommendation. > > I've seen comments in opencms and tested a few (Xaraya was good when I read > features but so slow at testing time) bu

[PHP] $HTTP_POST array

2004-12-23 Thread kalinga
Dear all, Is it possible to pass the entire $HTTP_POST array to a function of a class as a variable? without doing ... $new_classAccount = new classAccount; $msg = $new_classAccount->addAccount($HTTP_POST_VARS['accountName'],$HTTP_POST_VARS['firstName'],$HTTP_POST_VARS['lastName']); i

[PHP] Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-23 Thread Viraj Kalinga Abayarathna
can you send me the fread() part of your script? and what is the OS you are tring this? any how i like to share my coding which I did few weeksback for one of my Windows buddy. Vk. Ragnar wrote: > Hi Vk, > > I tried this beforehand, but to no avail. The documentation > also states that this

[PHP] Re: [PHP-WIN] [PHP-NIX] File upload

2004-04-22 Thread Viraj Kalinga Abayarathna
are you uploading the file through a HTML form? if so check the FORM for the following hidden input field... increace the above value (in bytes) to a bit more value than your maximum file size you are tring to upload. happy coding... Vk. Ragnar wrote: > Hi guys/gi

Re: [PHP] problem with INSERT query

2003-12-09 Thread Viraj Kalinga Abayarathna
VALUES (''irin'', ''788798878'', ''[EMAIL PROTECTED]'', ''no profile'') in above line, note the two quotes, in both side of each value.. this is the cause to your DB syntax error.. correct the above line as follows... ($tutor_name,$tutor_contact,$tutor_email,$tutor_profile)"; and try, but investi

Re: [PHP] problem with INSERT query

2003-12-09 Thread Viraj Kalinga Abayarathna
insert following... echo $sql; immediatly after the folowing code block.. $sql = "INSERT INTO tutor (tutor_name, tutor_contact,tutor_email,tutor_profile) VALUES ('$tutor_name', '$tutor_contact', '$tutor_email', '$tutor_profile')"; then execute the script, and check whether it sho

Re: [PHP] Re: goto label

2003-12-08 Thread Viraj Kalinga Abayarathna
if you are porting an old programme, try using "SWITCH", some time back i successfully ported a lengthy code in to PHP which had many "GOTO"s . Viraj note: also, i had to use some parameter passing mechanism. Justin Patrin wrote: Nitin wrote: Hi all, I was wondering, if there's any way to a

Re: [PHP] Linux Issues

2003-09-07 Thread Viraj Kalinga Abayarathna
Stephen, Try Debian Woody (3.0) with latest stable KDE desktop. You will be ammazed with the GUI, it's like a Dream.. very fancy , smooth and colourfull. regards Viraj Stephen Craton wrote: > > Well, I'm wanting one with a really nice GUI and great functionality. I'll > check into Debian and Sla

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Viraj Kalinga Abayarathna
Thank you Curt for the explanation. Viraj Curt Zirzow wrote: > > * Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > > > >header("Cache-control: private"); > > > > p.s. > > and also if there is any one wo knows what exactly this

[PHP] Re: web-mail problem

2003-09-03 Thread Viraj Kalinga Abayarathna
ls including the most recent one (one pair: details.txt and > >message4.txt). > > >Thank you very much in advance. > > >David > - Original Message - > From: "Viraj Kalinga Abayarathna" <[EMAIL PROTECTED]> > To: "Lingua2001" <[EMAI

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-03 Thread Viraj Kalinga Abayarathna
Hi hecchan, I don't have a crear idea on what your problem is, but i have read an article on phpfreak.com, it says to work the sessioned PHP scripts correctly with IE6 you have to insert.. header("Cache-control: private"); immediatly after starting the session. try this.

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Viraj Kalinga Abayarathna
Hi Nicole, You can not retrieve information stored in a cookie which set by one domain from some other domain. Try passing all the information you want with the image SRC tag. regards Viraj Nicole wrote: > > OK. Thanks. > > I have the hidden image code: > > http://thetrackingurl/?param1=val

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
you mean after "" ??? no you do not put. just think this way, if you want to diplay the HTML content just jump out by the php code by typing "?>" and back to PHP by " > You do realize that you don't need a semicolon right after correct? > > -Dan >

Re: [PHP] Backup Database

2003-09-02 Thread Viraj Kalinga Abayarathna
you can write a PHP script to backup the DB to a SQL file and run that script using crond at scheduled time or periodiacally as you define in cron regards viraj Shaun wrote: > > Hi, > > Is there a facility out there that I can use to automatically backup my > database to my local machine ev

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, rgd viraj Seth Willits wrote: > > On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: > > >> > >> > >> Lots of > >> > >> > > > > Awesome. Thanks for the quick repl

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, try to mingle PHP and HTML.. that means escape the PHP and jump to HTML when you want the HTML.. like this... happy coding Viraj Seth Willits wrote: > > I'd like to show a big chunk of

Re: [PHP] web-mail problem

2003-09-02 Thread Viraj Kalinga Abayarathna
David, first, this is a meassage you are getting from your mail server, not from PHP. according to my knowladge this is due to email address routing problem which the mail server experience when it tries to relay the mail. if you can send me the complete bounce mail message you recieve i'll tell y

Re: [PHP] undefined variable

2003-08-29 Thread Viraj Kalinga Abayarathna
did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote: > > You seem confused with POST & GET, instead of using _POST to retrieve > values from the form, you use $senders_name, and further down you set > $_POST["msg"], which will only be used i

Re: [PHP] How to get data from database with a click

2003-08-15 Thread Viraj Kalinga Abayarathna
try java scripts, there is a function called "onChange()", you can attach this with your combo box and can submit (SELF) the form upon the content change in combobox. I have done this long time back, i'll send you the coding if still i have that script in my archives. Viraj - Original Messag