[PHP] i have a problem inserting blob data larger than 1 mb

2006-06-05 Thread sunaram patir

hi list,
  i am facing a problem inserting binary data into a blob field.this is my
/etc/my.cnf file.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
connect_timeout=60

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


please help me. and this is what i get after running the comand mysql --help

...
...
...
Possible variables for option --set-variable (-O) are:
connect_timeout   current value: 0
max_allowed_packetcurrent value: 16777216
net_buffer_length current value: 16384
select_limit  current value: 1000
max_join_size current value: 100


i guess there is some problem with connect_timeout.


Re: [PHP] problem with Mail function

2006-02-05 Thread sunaram patir
Dude,
Do not use $to = "$email"; instead $to=$email;
But i didn't even know what is your problem!
On 2/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> This may be a bit to obvious, but I miss little stuff all the time.
>
> You wouldn't happen to have the if(mail(...)) in some form of loop would
> you?
>
> or perhaps $to is getting assigned the e-mail address like
> "[EMAIL PROTECTED] [EMAIL PROTECTED]" can you check the value of $email
> before you assign it?
>
>
>
> ~Drew
> www.drewpydraws.com
>
>
> - Original Message -
> From: "Tariq Dalvi" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, February 05, 2006 6:55 PM
> Subject: [PHP] problem with Mail function
>
>
> > Hello everyone,
> >
> > I m using php mail function it dose everyting fine besides it prints
> > message twise in the email body can someone please have a look
> > what i m doing wrong the code is as follows :
> >
> > $to = "$email";
> > $subject = "someting goes here \n\n";
> > $headers = "From: [EMAIL PROTECTED]" .
> > "X-Mailer: Mailserver at somewhere.com\n" .
> > "Date: $date\n" .
> > "MIME-Version: 1.0\n" .
> > "Content-Type: text/plain; charset=ISO-8859-1\n" ;
> >
> > message << > ...
> > ...
> > .
> > .
> > ...
> > EOF;
> >
> >   if (mail($to,$subject,$message,$headers)){
> >
> > $say = "E Mail sent successfully to $email. ";
> >}
> > else{
> >
> > $say = "\n\nOhoho! Sending failed Please inform to Webmaster. ";
> >
> > }
> >
> > I shall highly appreciate any help
> >
> > Thanks
> > Tariq
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >
> > --
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.375 / Virus Database: 267.15.2/251 - Release Date: 2/4/2006
> >
> >
>
> --
> 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] put method

2006-01-24 Thread sunaram patir
i think i would be clearer with this code i have written to do that but in vain.


";
echo "Send this file: "
echo "";
echo "";

}

?>

Parse error: parse error, unexpected T_ECHO, expecting ',' or ';' in
/home/zenrays/public_html/test2/putMethod.php on line "something"
 something= the line number for 'echo "";'

On 1/24/06, Jay Paulson <[EMAIL PROTECTED]> wrote:
> http://us3.php.net/features.file-upload
>
>
> On 1/24/06 11:46 AM, "sunaram patir" <[EMAIL PROTECTED]> wrote:
>
> > could anyone please tell me how to use put method to upload file to a
> > remote server? 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] put method

2006-01-24 Thread sunaram patir
could anyone please tell me how to use put method to upload file to a
remote server? thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Email Form

2006-01-20 Thread sunaram patir
i have en experience of getting blocked by yahoo when i didn't use the
extra headers

On 1/20/06, Weber Sites LTD <[EMAIL PROTECTED]> wrote:
> Hi Richard,
>
> I'm trying to understand why this is good from a SPAM point of view.
> I'm guessing that anyone can just add this when sending his own spam no?
>
> berber
>
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 19, 2006 11:37 PM
> To: Weber Sites LTD
> Cc: 'Thomas Bonham'; php-general@lists.php.net
> Subject: RE: [PHP] Email Form
>
> On Thu, January 19, 2006 3:25 pm, Weber Sites LTD wrote:
> > Check out :
> >
> > http://www.weberdev.com/get_example-336.html
> >
> > http://www.weberdev.com/get_example-1557.html
> >
> > In general you need to add the From header :
> >
> > Mail($To,$subject,$body,"From:[EMAIL PROTECTED]");
>
> In the ideal world, you also will want to upgrade and use the FIFTH
> (optional) argument to http://php.net/mail and provide a Return-path:
> header that matches your From: line with "[EMAIL PROTECTED]"
>
> Otherwise, you lose points in spam filters, and some recipients will
> probably not ever see the email.
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
> --
> 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] Re: HAPPY NEW YEAR!!

2006-01-01 Thread sunaram patir
happy new year from me too!
On 1/1/06, Julio B. <[EMAIL PROTECTED]> wrote:
> Feliz año nuevo.
>
> Saludos,
>
> Julio Barroso
>
> ""Jesús Alain Rodríguez Santos"" <[EMAIL PROTECTED]> escribió en el
> mensaje news:[EMAIL PROTECTED]
> Happy New Year for all.
> I weish you the best in this new 2006.
> Regards. Alain
> --
> Este mensaje ha sido analizado por MailScanner
> en busca de virus y otros contenidos peligrosos,
> y se considera que está limpio.
>
> --
> 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] what is the problem with this query?

2005-12-30 Thread sunaram patir
thanks. i have resolved the problem by replacing 'read' with 'read_it'.
On 12/30/05, Michael Gross <[EMAIL PROTECTED]> wrote:
> "read" is a reserved word in mysql
> (http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html). You have
> to double-quote reserved words:
>
> mysql_query("SELECT * FROM mailbox WHERE \"read\"=''");
>
> Graham Cossey wrote:
> > On 12/29/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> >> [snip]
> >> could you please tell me what is the problem with this query
> >> mysql_query("SELECT * FROM mailbox WHERE read=''");
> >>
> >>   i always get this warning:
> >>   Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> >> result resource in index.php on line 24
> >> [/snip]
> >>
> >> THere is no apparent problem with the query, but there is a problem with
> >> mysql_num_rows(). Can you show us he code there?
> >>
> > I would hazard a guess that mysql_num_rows() is not being passed the
> > correct query result handle as a parameter.
> >
> > ie: $result = mysql_query(...);
> > $rows = mysql_num_rows($result);
> >
> > --
> > Graham
> >
>
> --
> 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] what is the problem with this query?

2005-12-29 Thread sunaram patir
hi there,
could you please tell me what is the problem with this query
mysql_query("SELECT * FROM mailbox WHERE read=''");

  i always get this warning:
  Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in index.php on line 24

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mysql select statement in php having three conditions

2005-12-16 Thread sunaram patir
hi,
  can someone tell me how to do this:
  i have to retrive data from a mysql table let's sayTABLE . i have to
check that the rows i retrive meet this condition:
field1='$variable',field2 is false and field3 is also false. as you
can see field2 and field3 are bool type. field1 is varchar. i did this
query "SELECT * FROM TABLE WHERE field1='$variable' AND field2='0' AND
field3='0'"; another one tried is "SELECT * FROM TABLE WHERE
field1='$variable' AND field2=false AND field3=false"; But none was a
success. it didn't matter whether i used '0' or 0 and false or
'false'.
  thanks in advance.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] unset and sessions

2005-12-12 Thread sunaram patir
http://in.php.net/unset
On 12/12/05, Eternity Records Webmaster <[EMAIL PROTECTED]> wrote:
> I use php 5.0.5 and was wondering when I use $_SESSION would unset() work
> the best for getting rid of the values in that 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] paid help wanted for session management

2005-12-08 Thread sunaram patir
hi guys,
anyone will like to help me out from some problem in dealing with
sessions in internet explorer for some $10-$30? please send me private
mail. no reply to this mailing list please. and sorry guys for sending
this mail on the list. i couldn't help myself! i am damn frustrated!
 regards,
sunaram

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php session in ie

2005-11-15 Thread sunaram patir
On 11/14/05, Ford, Mike <[EMAIL PROTECTED]> wrote:
> On 11 November 2005 18:47, sunaram patir wrote:
>
> > array(1) { ["PHPSESSID"]=>  string(32)
> > "337a44c0d6c9ed3cf4ba4e97d707589e" } is returned by firefox on calling
> > var_dump($_COOKIE). NULL in ie.
>
> If the very same piece of PHP produces different results in different 
> browsers, this *MUST* be due to differences between the browsers.  It could 
> be due to settings in the browsers, or it might simply be a bug in one or the 
> other -- but it can NOT NOT NOT be down to PHP.  (Well, except inasmuch as 
> you might be able to make reasonable adjustments in your PHP to allow for the 
> difference. ;)
>
> Cheers!
>
> Mike
>
"Fuck you bill gates! Fuck your ie!" bye!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php session in ie

2005-11-12 Thread sunaram patir
On 11/12/05, adriano ghezzi <[EMAIL PROTECTED]> wrote:
> to be redirected to login must have at least one of (
> if(!isset($_SESSION['student_username']) &&
> !isset($_SESSION['student_password'])) )
>
> not set, which one (or both) fail under i.e. ???
>
> hth
>
if both of them aren't set, the user is redirected. but it doesnot
relate to not working in ie or i don't understand what u are meaning.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php session in ie

2005-11-12 Thread sunaram patir
On 11/12/05, James Benson <[EMAIL PROTECTED]> wrote:
>
>
> sunaram patir wrote:
> > Hi, i am having problem with internet explorer. i am working on
> > $_SESSION['myurl']=$_SERVER['PHP_SELF'];
> > if(!isset($_SESSION['student_username']) &&
> > !isset($_SESSION['student_password']))
> >  header("Location: login.php");
> > ?>
>
>
> You should use an absolute path for the header redirection,
>
> header("Location: http://example.com/login.php";);
>
thanks, but it doesn't still solve the problem.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
On 11/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Fri, November 11, 2005 12:06 pm, sunaram patir wrote:
> >> > session_start();
> >   session_cache_limiter('private_no_expire');
> >  session_set_cookie_params(0,"/","schools.zenrays.com");
> >  when i call var_dump($_COOKIE), it returns null. i can't make out
> > what's happening!
>
> Is $_COOKIE NULL in the browsers that work, or just in IE?
>
>
>
> Perhaps consider using trans_sid in php.ini to embed the Session ID in
> the URL instead of a Cookie.
>
Please look at http://schools.zenrays.com/phpinfo.php . trans_sid is on.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
array(1) { ["PHPSESSID"]=>  string(32)
"337a44c0d6c9ed3cf4ba4e97d707589e" } is returned by firefox on calling
var_dump($_COOKIE). NULL in ie.

On 11/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Fri, November 11, 2005 12:06 pm, sunaram patir wrote:
> >> > session_start();
> >   session_cache_limiter('private_no_expire');
> >  session_set_cookie_params(0,"/","schools.zenrays.com");
> >  when i call var_dump($_COOKIE), it returns null. i can't make out
> > what's happening!
>
> Is $_COOKIE NULL in the browsers that work, or just in IE?
>
> If it's only in IE, then is IE configured to not accept Cookies from
> your site, or perhaps never from 3rd-party sites, or perhaps Security
> settings are preventing the Cookies from being accepted...
>
> You can't force the User to accept your Cookies.
>
> Perhaps consider using trans_sid in php.ini to embed the Session ID in
> the URL instead of a Cookie.
>
> --
> Like Music?
> http://l-i-e.com/artists.htm
>
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
>
> instead of bouncing the user's agent back and forth
>
> > session_cache_limiter('private_no_expire');
> > session_set_cookie_params(0,"/","schools.zenrays.com");
> > session_start();
>
> ... will probably not match this one here.
>
> You've set the Cookie Parameters here to very specific values.
>
> You should do that consitently on every session_start() to make sure
> your site's cookies are always operating under the same conditions.
 i included the tfollowing two lines to my starting script on each
page, but still not working
  session_cache_limiter('private_no_expire');
 session_set_cookie_params(0,"/","schools.zenrays.com");
 when i call var_dump($_COOKIE), it returns null. i can't make out
what's happening!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php session in ie

2005-11-11 Thread sunaram patir
i will for sure. thanks.
On 11/11/05, M <[EMAIL PROTECTED]> wrote:
> Stephen Leaf wrote:
> > For security.. *never* store the password in a cookie..
>
> OP stores the password in session
>
> --
> 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 session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a
project on building a website where i need to keep track of the users
i.e. i use a login system in there in short. with the following code i
check whether the user is logged in or not.


if the user is not logged in, it redirects to the login page login.php
as is shown in the above code. now the user is allowed to log in
through the following code:


http://schools.zenrays.com".$_SESSION['myurl']);
   else
  header("Location: http://schools.zenrays.com/students";);

 }

 it works fine in firefox and msn explorer. in internet explorer, when
i visit to a
link in any page it asks for the login details again. could anyone
please help me out?!
   regards,
  sunaram

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a
project on building a website where i need to keep track of the users
i.e. i use a login system in there in short. with the following code i
check whether the user is logged in or not.


if the user is not logged in, it redirects to the login page login.php
as is shown in the above code. now the user is allowed to log in
through the following code:


http://schools.zenrays.com".$_SESSION['myurl']);
else
   header("Location: http://schools.zenrays.com/students";);

  }


}
?>


User Authentication



LoginID:

Password:










then the user is redirected back to the page he visited. it workd fine
in firefox and msn explorer. in internet explorer, when i visit to a
link in any page it asks for the login details again. could anyone
please help me out?!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php session in ie

2005-11-11 Thread sunaram patir
Hi, i am having problem with internet explorer. i am working on a
project on building a website where i need to keep track of the users
i.e. i use a login system in there in short. with the following code i
check whether the user is logged in or not.


if the user is not logged in, it redirects to the login page login.php
as is shown in the above code. now the user is allowed to log in
through the following code:


http://schools.zenrays.com".$_SESSION['myurl']);
 else
header("Location: http://schools.zenrays.com/students";);

   }


}
?>


User Authentication



LoginID:

Password:










then the user is redirected back to the page he visited. it workd fine
in firefox and msn explorer. in internet explorer, when i visit to a
link in any page it asks for the login details again. could anyone
please help me out?!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php