[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... input type=hidden name=MAX_FILE_SIZE value=2097152 increace the above value (in bytes) to a bit more value than your maximum file size you are tring to upload.

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 show

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

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

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 header line means, please post a brief decription. thanks

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: img

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.

[PHP] Re: web-mail problem

2003-09-03 Thread Viraj Kalinga Abayarathna
. David - Original Message - From: Viraj Kalinga Abayarathna [EMAIL PROTECTED] To: Lingua2001 [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 3:42 AM Subject: Re: [PHP] web-mail problem David, first, this is a meassage you are getting from your mail server

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

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... ?php if (!$var) { ?lots of html ?php ; } else { ? lots of html

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, ?php if ($thisVar) { if ($myVar) { lots; of; php; } else { // End of PHP content ? lots of html

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 every

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
tags, correct? -Dan On Tue, 2003-09-02 at 04:59, Viraj Kalinga Abayarathna wrote: Seth, try to mingle PHP and HTML.. that means escape the PHP and jump to HTML when you want the HTML.. like this... ?php if (!$var) { ?lots

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 in the

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 Message