[PHP] Suppressing warning messages in file uploading though HTTP

2003-09-18 Thread Binay
Hi everybody!

I am uploading html,text etc files though HTTP upload form method. In my php.ini file 
value of upload_max_filesize is 2 MB. Now if the file size exceeds 2 MB i get warning 
messages saying size of the file exceeds upload_max_filesize value . I want to know 
how i can suppress this warning message and is there any method to get the file size 
before uploading so as to alert the clients accordingly?

Please help me out

Thanks in advance

Binay


Re: [PHP] Suppressing warning messages in file uploading though HTTP

2003-09-18 Thread Binay
Hi Radhita!

Thanks for quick response.

- Original Message -
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 9:37 PM
Subject: Re: [PHP] Suppressing warning messages in file uploading though
HTTP


> Hi Binay,
>
> The only way you can get the file size before upload is to use a Java
> applet or activex.

Would you like to shade more light on how i can use java applet or activex i
mean bit coding/snippet as i am newbie .


If i am not mistaken you can remove the 'max size
> exceeded' warning only by recompiling php.
+
Which switch or options to use while recompiling php to suppress the warning
messages ?
+
>
> all the best
>
> ps: appreciate if you could switch off return reciepts on your mail
client.
>
> Binay wrote:
>
> >Hi everybody!
> >
> >I am uploading html,text etc files though HTTP upload form method. In my
php.ini file value of upload_max_filesize is 2 MB. Now if the file size
exceeds 2 MB i get warning messages saying size of the file exceeds
upload_max_filesize value . I want to know how i can suppress this warning
message and is there any method to get the file size before uploading so as
to alert the clients accordingly?
> >
> >Please help me out
> >
> >Thanks in advance
> >
> >Binay
> >
> >
> >
>
>
> --
> http://www.radinks.com/upload
> Drag and Drop File Uploader.
>

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



[PHP] Warning during File uploading

2003-09-18 Thread Binay
Hi everybody!

I am uploading html,text etc files though HTTP upload form method. In my php.ini file 
value of upload_max_filesize is 2 MB. Now if the file size exceeds 2 MB i get warning 
messages saying size of the file exceeds upload_max_filesize value . I want to know 
how i can suppress this warning message and is there any method to get the file size 
before uploading so as to alert the clients accordingly?

Please help me out

Thanks in advance

Binay


Re: [PHP] Warning during File uploading

2003-09-19 Thread Binay
Hi !
Sorry ... but yesterday couldn't get over it ...

Sorry for inconvinience  caused ..

Binay

- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:18 PM
Subject: Re: [PHP] Warning during File uploading


> On Friday 19 September 2003 12:47, Binay wrote:
>
> > I am uploading html,text etc files though HTTP upload form method. In my
> > php.ini file value of upload_max_filesize is 2 MB. Now if the file size
> > exceeds 2 MB i get warning messages saying size of the file exceeds
> > upload_max_filesize value . I want to know how i can suppress this
warning
> > message and is there any method to get the file size before uploading so
as
> > to alert the clients accordingly?
>
> You asked the same question yesterday?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> At times discretion should be thrown aside,
> and with the foolish we should play the fool.
> -- Menander
> */
>
> --
> 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 Editor - which to use?

2003-09-22 Thread Binay
Hi everybody!

Please suggest me  a good PHP editor like ( Microsoft's Interdev for ASP) to write my 
php programs/scripts and get a visual feel.


Thanks 
Binay


[PHP] session not working in IE 5

2003-10-09 Thread Binay
Hi all !

My session is not working in IE 5+ but working well with IE 6+. Is there some problem 
with IE 5+.

Please let me know as this being continuous pain for me.

Thanks in advance

Binay


[PHP] Connecting to Linux server from windows

2003-10-13 Thread Binay
Hi all !

I have PHP (4.3.2) running on windows 2k. Now i want to connect to a Linux Server and 
execute some commands and get the results back to win2k server. How can i achiece 
this. 

Please help me out.


Thanks in advance

Binay 


[PHP] Max no of recipients in To field of mail function

2003-10-15 Thread Binay
Hi all!

i need to email out newsletter to say 1000 recipients. I want to know what is the 
maximum number of recipients i can specify in the 'To' field of mail function? Is 
there any restrictions on To field as in the number of charcters or something??

If you know a better way of sending the large number of mails (1000 or more) please 
let me know.

Thanks in advance

Binay


Re: [PHP] Max no of recipients in To field of mail function

2003-10-15 Thread Binay
Hi Nitin
Thanks for replying so fast

Don't you think that using loop for each recipient will put lot of
load/overhead on the server compare to putting all recepients in To field?

Binay

- Original Message -
From: "Nitin" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 4:41 PM
Subject: Re: [PHP] Max no of recipients in To field of mail function


>
> - Original Message -
> From: "Nitin" <[EMAIL PROTECTED]>
> To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, October 15, 2003 4:38 PM
> Subject: Re: [PHP] Max no of recipients in To field of mail function
>
>
> > why cant you use loop for that?
> >
>
> That will even allow you to bypass spam filters
> > Nitin
> >
> > - Original Message -
> > From: "Binay" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 15, 2003 4:27 PM
> > Subject: [PHP] Max no of recipients in To field of mail function
> >
> >
> > Hi all!
> >
> > i need to email out newsletter to say 1000 recipients. I want to know
what
> > is the maximum number of recipients i can specify in the 'To' field of
> mail
> > function? Is there any restrictions on To field as in the number of
> > charcters or something??
> >
> > If you know a better way of sending the large number of mails (1000 or
> more)
> > please let me know.
> >
> > Thanks in advance
> >
> > Binay
> >
> > --
> > 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Max no of recipients in To field of mail function

2003-10-15 Thread Binay
Thanks alottt...

Now i have got enough reasons to use loop in sending mails...

Thanks once again

binay

- Original Message -
From: "Nitin" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 5:22 PM
Subject: Re: [PHP] Max no of recipients in To field of mail function


> It'll definitely put some load on your server, but then it's the best way
> and loops are made for these purposes. Though, if all your e-mail
receivers
> dont mind seeing their name in a long list or they allow spam mails into
> their mail boxes, you can use these names directly into to field.
>
> Nitin
>
> - Original Message -
> From: "Binay" <[EMAIL PROTECTED]>
> To: "Nitin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, October 15, 2003 4:42 PM
> Subject: Re: [PHP] Max no of recipients in To field of mail function
>
>
> > Hi Nitin
> > Thanks for replying so fast
> >
> > Don't you think that using loop for each recipient will put lot of
> > load/overhead on the server compare to putting all recepients in To
field?
> >
> > Binay
> >
> > - Original Message -
> > From: "Nitin" <[EMAIL PROTECTED]>
> > To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 15, 2003 4:41 PM
> > Subject: Re: [PHP] Max no of recipients in To field of mail function
> >
> >
> > >
> > > - Original Message -
> > > From: "Nitin" <[EMAIL PROTECTED]>
> > > To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 15, 2003 4:38 PM
> > > Subject: Re: [PHP] Max no of recipients in To field of mail function
> > >
> > >
> > > > why cant you use loop for that?
> > > >
> > >
> > > That will even allow you to bypass spam filters
> > > > Nitin
> > > >
> > > > - Original Message -
> > > > From: "Binay" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, October 15, 2003 4:27 PM
> > > > Subject: [PHP] Max no of recipients in To field of mail function
> > > >
> > > >
> > > > Hi all!
> > > >
> > > > i need to email out newsletter to say 1000 recipients. I want to
know
> > what
> > > > is the maximum number of recipients i can specify in the 'To' field
of
> > > mail
> > > > function? Is there any restrictions on To field as in the number of
> > > > charcters or something??
> > > >
> > > > If you know a better way of sending the large number of mails (1000
or
> > > more)
> > > > please let me know.
> > > >
> > > > Thanks in advance
> > > >
> > > > Binay
> > > >
> > > > --
> > > > 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 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Max no of recipients in To field of mail function

2003-10-15 Thread Binay
Hi all!

i need to email out newsletter to say 1000 recipients. I want to know what is the 
maximum number of recipients i can specify in the 'To' field of mail function? Is 
there any restrictions on To field as in the number of charcters or something??

If you know a better way of sending the large number of mails (1000 or more) please 
let me know.

Thanks in advance

Binay


[PHP] Session not getting destroyed !

2003-10-17 Thread Binay
Hi all,

My session is not getting destroyed once i close the browser. Problem is only in IE 5 
as IE 6+ its getting destroyed. I don't know what is the problem. I looked at the 
session settings parameters in php.ini file but couldn't figure it out.

I am using php 4.2.3 
and session.cookie_lifetime is set to 0 also.

Please help me out.

Thanks in advance

Binay


Re: [PHP] Session not getting destroyed !

2003-10-17 Thread Binay
Yes its showing 0 only..

Its a weird kind of problem for me ..

- Original Message -
From: "David Otton" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 4:16 PM
Subject: Re: [PHP] Session not getting destroyed !


> On Fri, 17 Oct 2003 15:58:36 +0530, you wrote:
>
> >My session is not getting destroyed once i close the browser. Problem is
only in IE 5 as IE 6+ its getting destroyed. I don't know what is the
problem. I looked at the session settings parameters in php.ini file but
couldn't figure it out.
> >
> >I am using php 4.2.3
> >and session.cookie_lifetime is set to 0 also.
>
> Are you certain cookie_lifetime is set to 0?
>
> print_r (session_get_cookie_params ());

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



[PHP] Destroying session if not being used from past 10 mins.

2003-10-20 Thread Binay
Hi all,

How can I configure the session to get destroyed, if not being used from past 10 mins.

Thanks in advance
binay


Re: [PHP] Destroying session if not being used from past 10 mins.

2003-10-21 Thread Binay
Thanks alo...
Is it possible to increase the probability which is by default 1% to 99 %
and make sure that session are destroyed after 10 mins by setting
session.gc_maxlifetime to 600.

Binay
- Original Message -
From: "CPT John W. Holmes" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 5:08 PM
Subject: Re: [PHP] Destroying session if not being used from past 10 mins.


> From: "Binay" <[EMAIL PROTECTED]>
>
> > How can I configure the session to get destroyed,
> > if not being used from past 10 mins.
>
> If you're using the default session handler, the session files are cleaned
> up after not being used for 1440 seconds (by default), and the session is
> basically destroyed. You can adjust the session.gc_maxlifetime setting in
> php.ini to adjust the time.
>
> This time isn't exact, though. The cleanup process is based upon a
> probability that is 1% by default. That means the process has a 1% chance
of
> being started when there is a request to your site. So the files may be
> older than 1440 seconds and just waiting for the garbage collection
process
> to be initiated.
>
> If you need it to be exactly 10 minutes of inactivity, the best method is
to
> just store the time of the last request as a session variable and do the
> checking yourself upon each request. If the last request was more than 10
> minutes ago, then handle it accordingly.
>
> ---John Holmes...

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



Re: [PHP] Problem with SELECT statement and reference material wanted..

2003-10-23 Thread Binay
remove ' '(single quotes) around variable name..

cheers
binay
- Original Message -
From: "P M" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 23, 2003 5:27 PM
Subject: [PHP] Problem with SELECT statement and reference material wanted..


Hi all!

I'm having trouble retrieving a selection of my database contents. The
problem is when I search for entries that exactly match a search criteria,
see below:

(database connection established successfully here..)

  $result = mysql_query("select * from complete where authorf =
'$authorf'");

  if ( $r = mysql_fetch_array($result) )
  {
   echo "Found entries:";
   echo "";

   do
   {
print "";
print $r["authorf"];
print "";
print $r["authorl"];
print "";
print $r["title"];
print "";
   } while ($r = mysql_fetch_array($result));

   echo "";
   mysql_free_result($result);
  }

Now, I know for sure that there's nothing wrong with the code within the
do-loop, because if I change the SQL query to the following:

$result = mysql_query("select * from complete");

..I will get all entries from the database, nicely output to the page.

(QUESTION 1)
So what is wrong here? I've tried playing with the single quotation marks
(') as well as using the LIKE parameter with the SELECT statement, but
nothing turns out to work. See below for an example of the latter..

$result = mysql_query("select * from complete where authorf like
'$authorf%'");

This returns all table entries, just as the previous example. Perhaps there
is something about the '%' sign but I have no good reference available.. :-/

I also had an idea about the HTML form item names (such as text boxes) being
required to be named as the column names in the MySQL table, but that failed
miserably also (this is what I used in the examples below - substituting
form item names doesn't change anything..)

Now I'm sure that the error is a simple one, which tends to be make me even
more frustrated (I¨m practically bald now from tearing my tufts of hair all
night long :-) ). Thanks for any input here!

(QUESTION 2)
Also, another question relevant to PHP/SQL RDBMS's interfacing: Does anyoone
know where I can find thorough documents on PHP commands for this purpose?
Some texts which tangents database modelling and optimization would be
optimal, since I'm interested in those areas also!
Due to my current location in the Balkans with a crappy modem connection and
a bad selection of book stores I'd prefer online texts, but any tips are
welcome! Thanks in advance!

Video Populares et Optimates

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



Re: [PHP] Problem with SELECT statement and reference material wanted..

2003-10-23 Thread Binay
Sorry for my previous post ..
no need of removing ' '(single quotes)

echo you query and then run it on mysql and see u getting the desired
result..

Binay
- Original Message -
From: "P M" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 23, 2003 5:27 PM
Subject: [PHP] Problem with SELECT statement and reference material wanted..


Hi all!

I'm having trouble retrieving a selection of my database contents. The
problem is when I search for entries that exactly match a search criteria,
see below:

(database connection established successfully here..)

  $result = mysql_query("select * from complete where authorf =
'$authorf'");

  if ( $r = mysql_fetch_array($result) )
  {
   echo "Found entries:";
   echo "";

   do
   {
print "";
print $r["authorf"];
print "";
print $r["authorl"];
print "";
print $r["title"];
print "";
   } while ($r = mysql_fetch_array($result));

   echo "";
   mysql_free_result($result);
  }

Now, I know for sure that there's nothing wrong with the code within the
do-loop, because if I change the SQL query to the following:

$result = mysql_query("select * from complete");

..I will get all entries from the database, nicely output to the page.

(QUESTION 1)
So what is wrong here? I've tried playing with the single quotation marks
(') as well as using the LIKE parameter with the SELECT statement, but
nothing turns out to work. See below for an example of the latter..

$result = mysql_query("select * from complete where authorf like
'$authorf%'");

This returns all table entries, just as the previous example. Perhaps there
is something about the '%' sign but I have no good reference available.. :-/

I also had an idea about the HTML form item names (such as text boxes) being
required to be named as the column names in the MySQL table, but that failed
miserably also (this is what I used in the examples below - substituting
form item names doesn't change anything..)

Now I'm sure that the error is a simple one, which tends to be make me even
more frustrated (I¨m practically bald now from tearing my tufts of hair all
night long :-) ). Thanks for any input here!

(QUESTION 2)
Also, another question relevant to PHP/SQL RDBMS's interfacing: Does anyoone
know where I can find thorough documents on PHP commands for this purpose?
Some texts which tangents database modelling and optimization would be
optimal, since I'm interested in those areas also!
Due to my current location in the Balkans with a crappy modem connection and
a bad selection of book stores I'd prefer online texts, but any tips are
welcome! Thanks in advance!

Video Populares et Optimates

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



Re: [PHP] Post variables getting lost

2003-10-26 Thread Binay
Change 'new' to something else say 'new1' as new is an operator so that
might be causing the problem which in turn affecting the category also ..

Hope this helps
cheers
Binay

- Original Message -
From: "Joao Andrade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 10:30 AM
Subject: [PHP] Post variables getting lost


>
> Hey people,
>
> Something odd is happening :) I've this form on a page:
>
> 
>
> 
> 
>  Author
>  
> 
> 
>  New Category
>  
> 
> 
>  Category
>  
>$categorias = mysql_query("SELECT DISTINCT category FROM quotations");
>$lincat = mysql_fetch_row ($categorias);
>while ($lincat != false){   //loop through the records enquanto ha
linhas
>   $cat = $lincat[0];
>   echo "".$cat ; //and place it in the
select
>   $lincat = mysql_fetch_row ($categorias);# pega uma linha
>}
>
>?>
>
> 
> 
>  Quotation
>  
> 
> 
> 
> 
> 
> 
>
> And then I have in quotations-add:
>
>   echo $_POST['category'];
>   echo $_POST['new'];
>   echo $_POST['author_name'];
>
>   echo $_POST['quote'];
>
> And what I get ist:
>
> Notice: Undefined index: category in C:\Programme\Apache
> Group\Apache2\htdocs\basics\quotation-add.php on line 85
>
> Notice: Undefined index: new in C:\Programme\Apache
> Group\Apache2\htdocs\basics\quotation-add.php on line 86
> asdasdasdasd
>
> Where the 'author_name' and 'quote' POST variables are ok, why aren't
> 'new' and 'category' coming?
>
> Thanks again,
>
> Joao Penna Andrade
> Undergraduate, Mechanical Engineering
> UNICAMP, Brazil
>
> --
> 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] displaying numbers up to 2 places of decimal.

2003-11-10 Thread Binay
Hi all !

I want to display numbers(integer,float,double) up to 2 places of decimal i.e if 
number is interger say 10, then i want to display it like 10.00.

if the number is float say 10.12345 i want to display as 10.12 i.e up to 2 places of 
decimal.

Please help me out

Thanks in advance
Binay



[PHP] HTML email problem

2003-11-19 Thread Binay
Hi all,


I m sendig out HTML email, using mimemail class which encodes the whole message to be 
sent in base64 and Content-Transfer-Encoding: is also specified as base64 only.

Now one of my client is complaining that he is getting garbage in the email (shown 
below) after the sign up process in the site.

// **
his is a MIME encoded message.

--b159a63cb0da408dc58f11f5895832e92
Content-Type: text/html
Content-Transfer-Encoding: base64

PEhUTUw+DQoJCQkJCSAJPPEI+TE9HSU4gSU5GT1JNQVRJT04gPC9URD48L1RSPg0KCQkJCQkJPFRSP
jxURD48Zm9udCBmYWNlPWFyaWFsIHNpemU9Mj5Vc2VybmFtZSA6
IDwvVEQ+PFREPjxmb250IGZhY2U9YXJpYWwgc2l6ZT0yPmJpbmF5QG9saXZlaW50ZXJuZXQuY29t
PC9URD48L1RSPg0KCQkJCQkJPFRSPjxURD48Zm9udCBmYWNlPWFyaWFsIHNpemU9Mj5QYXNzd29y
ZCA6IDwvVEQ+PFREPjxmb250IGZhY2U9YXJpYWwgc2l6ZT0yPm9saXZlPC9URD48L1RSPg0KCQkJ
CQkJPC9UQUJMRT4NCgkJCQkJCTwvQk9EWT4NCgkJCQkJIDwvSFRNTD4=

--b159a63cb0da408dc58f11f5895832e92--

// ***

I figured out why this is happening as his(client's) email programme does not support 
base64 encoding hence could not able to decode the message.

I can't send the text email as it contains links and other html stuff..

Please suggest me what i can do? Is there any mail class which takes care of this 
problem?

Thanks in advance

Binay



[PHP] HTML email enconding

2003-11-24 Thread Binay
Hi all,

Is it necessary to encode the message using base64 or quoted-printable format while 
sending the HTML email. What if i don't encode the message i.e (no 
Content-Transfer-Encoding specified)? Does it impose some security vulnerabilities? 

Please helpe me out

Thanks in advance

Binay




Re: [PHP] HTML email enconding

2003-11-24 Thread Binay
Hi Eugene,
Thanks for quick reply

So does it mean that if i don't encode the message then no need of
specifying the Content-Transfer-Encoding??
And almost all mail client will interpret it correctly??

Binay

- Original Message -
From: "Eugene Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 3:02 PM
Subject: Re: [PHP] HTML email enconding


> On Mon, Nov 24, 2003 at 02:56:25PM +0530, Binay wrote:
> :
> : Is it necessary to encode the message using base64 or quoted-printable
> : format while sending the HTML email.
>
> Not always.  Sometimes you can get away with only:
>
> Content-Type: text/html; charset="ISO-8859-1"
> Content-Transfer-Encoding: 7bit
>
> : What if i don't encode the message i.e (no Content-Transfer-Encoding
> : specified)? Does it impose some security vulnerabilities?
>
> These headers just provide more information to the mail client so that
> it can properly handle and display the message.  Some mail clients may
> be more error-tolerant than others.  But really you don't want your
> messages to be handled and displayed incorrectly.  Just as your PHP code
> should generate HTML-compliant web pages, your code should also generate
> correctly format email messages.
>
> --
> 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] mysql_connect() : undefined function

2003-11-26 Thread Binay
Hi all!

Its really strange/weird problem for me.

it says:::


Fatal error: Call to undefined function: mysql_connect() in 
/home/abcde/dfdfdfd/incfiles/db.inc on line 24

till afternoon site was running fine  with all mysql connection .

but suddenly its showing that error 

i don know why this is coming  very surprised and tensed too

PHP 4.0.6

please help me out ...

Thanks in advance ..

Binay




Re: [PHP] mysql_connect() : undefined function

2003-11-26 Thread Binay
I just upload a simple file containing ...

mysql_connect("localhost","username","password")

thtst it ...
and its showing fatal error and same problem

Binay


- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:12 PM
Subject: RE: [PHP] mysql_connect() : undefined function 


> [snip]
> Fatal error: Call to undefined function: mysql_connect() in
> /home/abcde/dfdfdfd/incfiles/db.inc on line 24
> [/snip]
> 
> Strange indeed. Can you show the code?
> 
> -- 
> 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] mysql_connect() : undefined function

2003-11-26 Thread Binay
i tried mysql_pconnect() also ... but same problem..
- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:18 PM
Subject: RE: [PHP] mysql_connect() : undefined function 


> [snip]
> I just upload a simple file containing ...
> 
> mysql_connect("localhost","username","password")
> 
> thtst it ...
> [/snip]
> 
> Try mysql_pconnect("localhost","username","password");
> 
> -- 
> 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] mysql_connect() : undefined function

2003-11-26 Thread Binay

it says --without-mysql --

i don know .. how suddenly this can happen 

Binay

- Original Message -
From: "Sophie Mattoug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:16 PM
Subject: Re: [PHP] mysql_connect() : undefined function


> If you do phpinfo(), do you see in the section names "*Configure
> Command*" this directive: "--with-mysql=something" ? If not, you must
> re-compile PHP lwith MySQL support
>
> Binay wrote:
>
> >Hi all!
> >
> >Its really strange/weird problem for me.
> >
> >it says:::
> >
> >
> >Fatal error: Call to undefined function: mysql_connect() in
/home/abcde/dfdfdfd/incfiles/db.inc on line 24
> >
> >till afternoon site was running fine  with all mysql connection .
> >
> >but suddenly its showing that error 
> >
> >i don know why this is coming  very surprised and tensed too
> >
> >PHP 4.0.6
> >
> >please help me out ...
> >
> >Thanks in advance ..
> >
> >Binay
> >
> >
>
> --
> 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] mysql_connect() : undefined function

2003-11-26 Thread Binay
it says --without-mysql --

i don know .. how suddenly this can happen 

Binay

- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 7:23 PM
Subject: RE: [PHP] mysql_connect() : undefined function 


> [snip]
> i tried mysql_pconnect() also ... but same problem..
> [/snip]
> 
> As the others have suggested, what does it say when you run phpinfo() ?
> Is this server under your control?
> 
> -- 
> 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] Mysql backup

2003-11-28 Thread Binay
Hi all !

I know this is more of mysql issue than PHP but then i always get my problem solved 
here.. and hope the same this time also ...

I have two systems.
one with mysql-version: 3.23.37
other with mysql-version: 3.23.58

now i want to take the backup of 3.23.37 data and copy to 3.23.58 ...

i know i can take backup using mysqldump command ... and then copy using mysql 
commands

but as mysql create folder for each database . 
is it possible to copy the particular folder(database) to 3.23.58 and then running it 
smoothly ...

Any body got any idea ???

Please help me out..

Thanks in advance 

Binay


Re: [PHP] Mysql backup

2003-11-28 Thread Binay
Hi Rory,

- Original Message -
From: "Rory McKinley" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, November 28, 2003 7:30 PM
Subject: Re: [PHP] Mysql backup


> Binay
>
> If the tables for both versions are MYISAM the steps are as follows:
>
> 1. Stop mysql on both systems.
> 2. Copy the contents of the 3.23.37 data folder to the 3.23.58 data folder
using your

1) Does the format in which 3.23.37 stores data in data folder differ with
format that 3.23.58 uses?? I mean is it compatible with 3.23.58

2) What will happen to the index file ... will it automatically be activated
once u copy the folder and start the mysql service??

3) And most important have you tried it before ?? I mean are you sure its
gonna work.. cuz i have to do in my production server ... so lil cautious...
--
> OS tools (cp, file management tools, Windows explorer etc)
> 3. Start mysql on both systems.
>
> HTH
>
> Rory
>
> On 28 Nov 2003 at 17:17, Binay wrote:
>
> > Hi all !
> >
> > I know this is more of mysql issue than PHP but then i always get my
problem
> solved here.. and hope the same this time also ...
> >
> > I have two systems.
> > one with mysql-version: 3.23.37
> > other with mysql-version: 3.23.58
> >
> > now i want to take the backup of 3.23.37 data and copy to 3.23.58 ...
> >
> > i know i can take backup using mysqldump command ... and then copy
using
> mysql commands
> >
> > but as mysql create folder for each database .
> > is it possible to copy the particular folder(database) to 3.23.58 and
then running it
> smoothly ...
> >
> > Any body got any idea ???
> >
> > Please help me out..
> >
> > Thanks in advance
> >
> > Binay
> >
>
>
> Rory McKinley
> Nebula Solutions
> +27 82 857 2391
> [EMAIL PROTECTED]
> "There are 10 kinds of people in this world,
> those who understand binary and those who don't" (Unknown)
>
> --
> 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] File upload issue

2003-11-29 Thread Binay
Hi all,

In my php.ini file, file_uploads value is set to OFF. Hence stopping HTTP_UPLOAD 
functionlaity. 

But in my script i am turning it On using ini_set("file_uploads","1") but still it 
doesn't upload the file.

I don have access to modify the php.ini file hence trying to play with script only.

Though manual says u can't set the value of file_uploads in the script, but its 
getting set (looked in phpinfo()).

Why this is happening ... and if it is getting set why HTTP_UPLOAD doesn't work.

Thanks in advance

Binay


Re: [PHP] File upload issue

2003-11-29 Thread Binay

- Original Message -
From: "Bronislav Klucka" <[EMAIL PROTECTED]>
To: "PHP Konference" <[EMAIL PROTECTED]>; "Binay"
<[EMAIL PROTECTED]>
Sent: Saturday, November 29, 2003 1:08 PM
Subject: RE: [PHP] File upload issue


> Are u working in safe mode?

safe_mode is OFF

>What does the ini_set function return? did u try
> ini_get then to see what is current value?
>

returns 1.

>
> Brona
>
> > Hi all,
> >
> > In my php.ini file, file_uploads value is set to OFF. Hence
> > stopping HTTP_UPLOAD functionlaity.
> >
> > But in my script i am turning it On using
> > ini_set("file_uploads","1") but still it doesn't upload the file.
> >
> > I don have access to modify the php.ini file hence trying to play
> > with script only.
> >
> > Though manual says u can't set the value of file_uploads in the
> > script, but its getting set (looked in phpinfo()).
> >
> > Why this is happening ... and if it is getting set why
> > HTTP_UPLOAD doesn't work.
> >
> > Thanks in advance
> >
> > Binay
> >

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



[PHP] SID problem

2003-12-04 Thread Binay
Hi everybody,

I m trying to disable/off  "session.use_trans_sid".
I don have access to php.ini file... hence trying to unset in the php scripts and 
.htaccess file .

While this works in php script i.e 
ini_set("session.use_trans_sid","0");

but in .htaccess it seems it doesn't
i.e php_flag session.use_trans_sid off ... This doesn't work..

My .htaccess file contain only above statement and nothing else ... 

I can not go for ini_set as it needs to be done in all the file ... so .htaccess is 
the right solution for me .
but it doesn't work in .htaccess ... 

What may be the possible reason/causes??

Please help me ..

PHP 4.2.2

Thanks in advance

Binay


Re: [PHP] SID problem

2003-12-04 Thread Binay
I have one more question.

Is it necessary to call ini_set before session_start()??
or any where in the scope of the script?
- Original Message -
From: "Wouter van Vliet" <[EMAIL PROTECTED]>
To: "'Binay'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 3:28 PM
Subject: RE: [PHP] SID problem


> On donderdag 4 december 2003 10:53 Binay told the butterflies:
> > Yes AllowOverride is set to None 
> >
> > But then i can not change it as i don have access .. wht
> > other method/solution i can look except ini_set then ??
> >
> > - Original Message -
> > From: "Wouter van Vliet" <[EMAIL PROTECTED]>
> > To: "'Binay'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Thursday, December 04, 2003 3:08 PM
> > Subject: RE: [PHP] SID problem
> >
> >
> > > On donderdag 4 december 2003 10:36 Binay told the butterflies:
> > > > Hi everybody,
> > > >
> > > > I m trying to disable/off  "session.use_trans_sid".
> > > > I don have access to php.ini file... hence trying to unset in the
> > > > php scripts and .htaccess file .
> > > >
> > > > While this works in php script i.e
> > > > ini_set("session.use_trans_sid","0");
> > > >
> > > > but in .htaccess it seems it doesn't i.e php_flag
> > > > session.use_trans_sid off ... This doesn't work..
> > > >
> > > > My .htaccess file contain only above statement and nothing else
> > > > ...
> > > >
> > > > I can not go for ini_set as it needs to be done in all the file
> > > > ... so .htaccess is the right solution for me .
> > > > but it doesn't work in .htaccess ...
> > > >
> > > > What may be the possible reason/causes??
> > > >
> > > > Please help me ..
> > > >
> > > > PHP 4.2.2
> > > >
> > > > Thanks in advance
> > > >
> > > > Binay
> > >
> > > Reason is possibly/most likely that "AllowOverride" is disabled on
> > > the server.
>
> I'm sorry, but there are no other options. You can, though, ask your
hosting
> provider to change the setting in the "httpd.conf" file for you. Or else
I'd
> advice you to create one file to include in all other files, which sets
> global options.
>
> < global.inc.php >
>  ini_set('session.use_trans_sid", '0');
>
> // I've got my database connection settings and some other
> // global calls also in this file.
> ?>
>
> < any-other-file.php >
>  include('global.inc.php');
>
> (.. the rest of your code ..)
> ?>
>
>

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



Re: [PHP] SID problem

2003-12-04 Thread Binay
Yes AllowOverride is set to None 

But then i can not change it as i don have access .. wht other
method/solution i can look except ini_set then ??

- Original Message -
From: "Wouter van Vliet" <[EMAIL PROTECTED]>
To: "'Binay'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 3:08 PM
Subject: RE: [PHP] SID problem


> On donderdag 4 december 2003 10:36 Binay told the butterflies:
> > Hi everybody,
> >
> > I m trying to disable/off  "session.use_trans_sid".
> > I don have access to php.ini file... hence trying to unset in
> > the php scripts and .htaccess file .
> >
> > While this works in php script i.e
> > ini_set("session.use_trans_sid","0");
> >
> > but in .htaccess it seems it doesn't
> > i.e php_flag session.use_trans_sid off ... This doesn't work..
> >
> > My .htaccess file contain only above statement and nothing else ...
> >
> > I can not go for ini_set as it needs to be done in all the
> > file ... so .htaccess is the right solution for me .
> > but it doesn't work in .htaccess ...
> >
> > What may be the possible reason/causes??
> >
> > Please help me ..
> >
> > PHP 4.2.2
> >
> > Thanks in advance
> >
> > Binay
>
> Reason is possibly/most likely that "AllowOverride" is disabled on the
> server.
>
>

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



Re: [PHP] multiple select option alternative to field_name[]

2003-12-28 Thread Binay
Hi Terence

Assign ids to multiple select field and then use id attribute of select tag
in JavaScript to access (copy,del etc.) instead of using the name attribute.

Hope this helps.

Cheers
Binay
- Original Message -
From: "Terence" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 29, 2003 11:46 AM
Subject: [PHP] multiple select option alternative to field_name[]


> Dear All,
>
> The only way I know to retrieve all the values from a multiple select
field
> is to use
> the square brackets after the field name ie. user_id[]
>
> The problem however is that when I use a javascript function to transfer
the
> items
> from multiple_select_list1 to multiple_select_list2, I cannot use the
square
> brackets
> in a field name, as this obviously conflicts with something in the script.
>
> So I am wondering if there's any other way in PHP to get the items, or do
I
> have
> to find an alternative way in javascript? If anyone has ideas it would be
> great.
>
> Thanks
> Terence
>
>
>
> my code:
>
>  (This works)
>
>echo " class='inputstyle'>\n";
>
>  (document.images) copySelected(this.form.select1,this.form.select2)\">
>  (document.images) copySelected(this.form.select2,this.form.select1)\">
>  (document.images) copyAll(this.form.select1,this.form.select2)\">
>  (document.images) copyAll(this.form.select2,this.form.select1)\">
>
> 
>
> (This is the problem - notice the square brackets behind select2)
>
>  echo " class='inputstyle'>\n";
>
>  (document.images) copySelected(this.form.select1,this.form.select2[])\">
>  (document.images) copySelected(this.form.select2[],this.form.select1)\">
>  (document.images) copyAll(this.form.select1,this.form.select2[])\">
>  (document.images) copyAll(this.form.select2[],this.form.select1)\">
>
> 
>
>
> Javascript:
>
> echo "<!--\n";
>  echo "function deleteOption(object,index) {\n";
> echo "object.options[index] = null;\n";
>  echo "}\n";
>
>  echo "function addOption(object,text,value) {\n";
>  echo "var defaultSelected = true;\n";
>  echo "var selected = true;\n";
>  echo "var optionName = new Option(text, value, defaultSelected,
> selected)\n";
>  echo "object.options[object.length] = optionName;\n";
>  echo "}\n";
>
>  echo "function copySelected(fromObject,toObject) {\n";
>  echo "for (var i=0, l=fromObject.options.length;i<l;i++) {\n";
>  echo "if (fromObject.options[i].selected)\n";
>  echo
>
"addOption(toObject,fromObject.options[i].text,fromObject.options[i].value);
> \n";
>  echo "}\n";
>  echo "for (var i=fromObject.options.length-1;i>-1;i--) {\n";
>  echo "if (fromObject.options[i].selected)\n";
>  echo "deleteOption(fromObject,i);\n";
>  echo "}\n";
>  echo "}\n";
>
>  echo "function copyAll(fromObject,toObject) {\n";
>  echo "for (var i=0, l=fromObject.options.length;i<l;i++) {\n";
>  echo
>
"addOption(toObject,fromObject.options[i].text,fromObject.options[i].value);
> \n";
>  echo "}\n";
>  echo "for (var i=fromObject.options.length-1;i>-1;i--) {\n";
>  echo "deleteOption(fromObject,i);\n";
>  echo "}\n";
>  echo "}\n";
>  echo "//-->\n";
>
> --
> 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] need a little help all

2003-12-29 Thread Binay


- Original Message -
From: "Richard Davey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 29, 2003 4:52 AM
Subject: Re: [PHP] need a little help all


> Hello,
>
> Wednesday, December 17, 2003, 11:50:52 AM, you wrote:
>
> wmc> Here is what i have i call 2 cookies in the top of my script, now i
need to
> wmc> call another when another script is called but it keeps givin me the
error
> wmc> headers already sent,
> wmc> now ive seen this done in other scripts but wont work for me so
please help
> wmc> me is it in my php.ini or is it just not possible and imagened seeing
it
> wmc> somwhere else. Thanks all.
>
> You can access the value of cookies anywhere in your script,
> regardless if the headers have been sent or not. However you cannot
> SET a cookie once the headers have gone for use in the same page
> session. This isn't a PHP setting, it's just not possible.
-
Output buffering might be hlepful.
read the php documentation abt output buffering.
-

>
> --
> Best regards,
>  Richardmailto:[EMAIL PROTECTED]
>
> --
> 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] curl tutorial

2003-12-29 Thread Binay
Hi everybody ,

can any body point me the direction where i can find curl tutorials. I was going 
through the curl concept from php manual but couldn't quench my thirst as this section 
is not very clear. I also searched in the archive but couldn't find any.

if any of u know the resource point(curl tutorial) plz let me know.

Thanks
Binay


[PHP] writing Excel files through PHP

2004-01-10 Thread Binay

Hi all,

I m generating an Excel file though PHP by sending the appropriate header and then 
using HTML  tags to write data in different cells. Below is my code snippet.

It has got 1 problems:

1. Image doesn't come/showup in Excel sheet.




  
 
 







?>

now after saving the Excel file it displays all alphanumeric data correctly but images 
do not show up. i think Img tag is not supported by Excel application. 

So my question is how can i display the images in Excel using PHP? plz help me out 

Thanks in advance

Binay 




Re: [PHP] writing Excel files through PHP

2004-01-11 Thread Binay
Hi Marek,

Thanks for replying ..I have got few questions based on ur suggestions.. plz
find it embedded in your reply.

Thanks
Binay
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 10, 2004 6:52 PM
Subject: Re: [PHP] writing Excel files through PHP


> Use full uri. But the user needs to be online while viewing the xls file.
>
> Other option is to create web archive. It's a mime encoded file, save an
> excel file with an embeded image and you will see what it is.
+
How to create web archvie which will be mime encoded file and then saving as
excel file .. plz direct me to the resources where i can find more
information about it  .. or tell me how can i proceed to it.
Thanks
+


>
> Binay wrote:
> > Hi all,
> >
> > I m generating an Excel file though PHP by sending the appropriate
header and then using HTML  tags to write data in different cells. Below
is my code snippet.
> >
> > It has got 1 problems:
> >
> > 1. Image doesn't come/showup in Excel sheet.
> >
> >  >
> > header("Content-type: application/vnd.ms-excel");
> > header("Content-disposition: attachment; filename=pareto_combined.xls");
> > ?>
> >
> > 
> >  
> > 
> > 
> >
> >  > $dateF=$_REQUEST['dateF'];
> >
> > $dateT=$_REQUEST['dateT'];
> >
> > $agentID=$_REQUEST['agentID'];
> > 
> > 
> > 
> > 
> > 
> >
> > ?>
> >
> > now after saving the Excel file it displays all alphanumeric data
correctly but images do not show up. i think Img tag is not supported by
Excel application.
> >
> > So my question is how can i display the images in Excel using PHP? plz
help me out
> >
> > Thanks in advance
> >
> > Binay
> >
> >
> >

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



[PHP] Pdfs getting corrupted during upload

2004-01-17 Thread Binay
Hi all,

I m undergoing a very weird kind of file uploading problem. I m trying to upload an 
image file and a pdf file using HTTP Upload form. Now my client is complaining that 
pdf file is getting corrupted during uploading as they do not open once uploaded. But 
when i try to upload(using WinXp home, I.E 6+) from my end every thing works perfectly 
... so its very surprising for me. 

Initially when client complained (using WinXp home editon , I.E 6+) , i thought it is 
some browser issue and hence instructed them to upload pdf using Win2K machine. But 
they are facing the same problem there also. I don know wht to do..

Any of u guys faced this sort of problem plz tell me where exactly is the problem? Why 
the pdf files are getting corrupted? is there some thing hidden which is causing the 
corruption?

Thanks in advance

Binay


Re: [PHP] HTML tags inside PHP??

2004-01-17 Thread Binay
echo ' ..';

cheers
Binay
- Original Message -
From: "SASSINC Internet Solutions - Arabic Department"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 3:31 PM
Subject: [PHP] HTML tags inside PHP??


> Hi all!
>
> How is everything?
>
> I'm want to insert some HTML tags inside the PHP page to echo them.. And
then I will use "MARKER" to import them by VB program..
>
> So now how to insert HTML tags to PHP?
>
> Waiting your replies..
>
> Thanks alot for advance
>

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



Re: [PHP] Re: Pdfs getting corrupted during upload

2004-01-18 Thread Binay
Yes we are using the same server.
PHP - 4.3.2

I m very confused why this is happening with them(client)??
Binay
- Original Message -
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 17, 2004 7:35 PM
Subject: [PHP] Re: Pdfs getting corrupted during upload


> You didn't specify whether you and your client are using the same
> server. If not, make sure you have the same gpc slashing settings on
> both servers.
>
> Bogdan
>
> Binay wrote:
> > Hi all,
> >
> > I m undergoing a very weird kind of file uploading problem. I m trying
to upload an image file and a pdf file using HTTP Upload form. Now my client
is complaining that pdf file is getting corrupted during uploading as they
do not open once uploaded. But when i try to upload(using WinXp home, I.E
6+) from my end every thing works perfectly ... so its very surprising for
me.
> >
> > Initially when client complained (using WinXp home editon , I.E 6+) , i
thought it is some browser issue and hence instructed them to upload pdf
using Win2K machine. But they are facing the same problem there also. I don
know wht to do..
> >
> > Any of u guys faced this sort of problem plz tell me where exactly is
the problem? Why the pdf files are getting corrupted? is there some thing
hidden which is causing the corruption?
> >
> > Thanks in advance
> >
> > Binay
> >
>
> --
> 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] Problems with $_POST

2004-01-21 Thread Binay
Hi

What is the primary key in your tble? Using tht primary key check for duplicate 
entry... Theres no way u can change the posted data ... so even if u reset 
$_POST['submit']  after the insert operation is done, next time u refresh it will be 
set and hence will duplicate...so check for duplicate entries urself only based on 
primary key or unique values in ur table.

Hope this helps

Cheers
Binay

U wrote..
<
I have a FORM for entering data into a DB.

I use:
...
...
if ($_POST['submit'] == 'Register') {
...
code for INSERT into DB.

This works OK, but if I REFRESH the page, it  duplicates the "dataset" in
the table.

How can I reset  $_POST['submit']  so it don't make this happen?

Rgds
Reidar Solberg
>

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



[PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-23 Thread Binay
Hi

Does any one have idea about the compatibility of Turck MMcache with PHP 4.3.8. It was 
working well with 4.3.3 and ever since i have upgraded to 4.3.8 it stopped. I 
recompiled Turck MMcache for new version of PHP also but no luck.

Can somebody help me out.

Thanks in advance
Binay

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-23 Thread Binay
Hi

I don't need everything i.e encoder, optimizer, accelerator etc. What i need
is Loader which can decode the encoded files .

I followed the instruction for installing the Turck loader but its not
working on 4.3.8 . It was working on 4.3.3.

I don know where m i doing wrong .

Please help me out.

Thanks
Binay
- Original Message -
From: "raditha dissanayake" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 6:41 AM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility


> Binay wrote:
>
> >Hi
> >
> >Does any one have idea about the compatibility of Turck MMcache with PHP
4.3.8. It was working well with 4.3.3 and ever since i have upgraded to
4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP also but
no luck.
> >
> >
> >
> They work together. Make sure the mmcache.so goes to the right location.
> I will bet that make install didn't copy it
>
>
> --
> Raditha Dissanayake.
> 
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress bar.
>
> --
> 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 as CGI or Module

2004-09-23 Thread Binay
Hi

How to check whether PHP is installed as CGI or Apache module?

Thanks
Binay

Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Binay
So how to check whether php is installled as Apache module or CGI  mode?

Thanks
- Original Message -
From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 12:30 PM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility


> It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does
not
> work as cgi though - as page states)
>
> lp,
> Bostjan
>
>
> On Friday 24 of September 2004 08:29, Binay wrote:
> > Hi
> >
> > I don't need everything i.e encoder, optimizer, accelerator etc. What i
> > need is Loader which can decode the encoded files .
> >
> > I followed the instruction for installing the Turck loader but its not
> > working on 4.3.8 . It was working on 4.3.3.
> >
> > I don know where m i doing wrong .
> >
> > Please help me out.
> >
> > Thanks
> > Binay
> > - Original Message -
> > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, September 24, 2004 6:41 AM
> > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> >
> > > Binay wrote:
> > > >Hi
> > > >
> > > >Does any one have idea about the compatibility of Turck MMcache with
PHP
> >
> > 4.3.8. It was working well with 4.3.3 and ever since i have upgraded to
> > 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP also
> > but no luck.
> >
> > > They work together. Make sure the mmcache.so goes to the right
location.
> > > I will bet that make install didn't copy it
> > >
> > >
> > > --
> > > Raditha Dissanayake.
> >
> 
> > > http://www.radinks.com/sftp/ |
http://www.raditha.com/megaupload
> > > Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> > > Graphical User Inteface. Just 128 KB | with progress bar.
> > >
> > > --
> > > 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP as CGI or Module

2004-09-24 Thread Binay
Hi,

I knew that Turck does not work in CGI mode. But didn't find it worth
checking cuz earlier it was working and my administrator said he only
upgraded the php and did nothing. So i presumed that PHP is still running as
apache module only.

But when after lotttsss of hair pulling couldn't make turck run with 4.3.8 ,
finally decided to check type (mode) of PHP installation. I m sorry for
convience caused.

Thanks
Binay

- Original Message -
From: "raditha dissanayake" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 1:40 PM
Subject: Re: [PHP] PHP as CGI or Module


> Binay wrote:
>
> >Hi
> >
> >How to check whether PHP is installed as CGI or Apache module?
> >
> >Thanks
> >Binay
> >
> >
> I assume this is a spin of from your thread on turck mmcache. I am
> pretty sure you have not read the mmcache docs or searched for  google
> on this. Because there are countless articles on installing turck.  To
> cut a long story short you should compile php with --disbable-cgi to use
> turck.  Please google next time before posting.
>
>
>
> --
> Raditha Dissanayake.
> 
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress bar.
>
> --
> 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] PHP 4.3.8 and Turck MMCache compatibility

2004-09-24 Thread Binay
correct

It show Server API CGI.

So does it mean PHP is installed as CGI and not the apache module?

Thanks
Binay
- Original Message -
From: "Bostjan Skufca @ domenca.si" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 1:21 PM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility


> Look at phpinfo() output.
>
> Search for
> Server API Apache 2.0 Handler
>
> or
> Server API Apache 2.0 Filter
>
> or something about apachehook(s)
> All above means it is installed as module
>
> If you find something refering to CGI then it is installed as CGI (and not
> $_SERVER, Apache environment and loaded modules)
>
> lp,
> B
>
> On Friday 24 of September 2004 09:01, Binay wrote:
> > So how to check whether php is installled as Apache module or CGI  mode?
> >
> > Thanks
> > - Original Message -
> > From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, September 24, 2004 12:30 PM
> > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> >
> > > It works on php 4.3.8 and 4.3.9 fine (as server module it does, it
does
> >
> > not
> >
> > > work as cgi though - as page states)
> > >
> > > lp,
> > > Bostjan
> > >
> > > On Friday 24 of September 2004 08:29, Binay wrote:
> > > > Hi
> > > >
> > > > I don't need everything i.e encoder, optimizer, accelerator etc.
What i
> > > > need is Loader which can decode the encoded files .
> > > >
> > > > I followed the instruction for installing the Turck loader but its
not
> > > > working on 4.3.8 . It was working on 4.3.3.
> > > >
> > > > I don know where m i doing wrong .
> > > >
> > > > Please help me out.
> > > >
> > > > Thanks
> > > > Binay
> > > > - Original Message -
> > > > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > > > Cc: <[EMAIL PROTECTED]>
> > > > Sent: Friday, September 24, 2004 6:41 AM
> > > > Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> > > >
> > > > > Binay wrote:
> > > > > >Hi
> > > > > >
> > > > > >Does any one have idea about the compatibility of Turck MMcache
with
> >
> > PHP
> >
> > > > 4.3.8. It was working well with 4.3.3 and ever since i have upgraded
to
> > > > 4.3.8 it stopped. I recompiled Turck MMcache for new version of PHP
> > > > also but no luck.
> > > >
> > > > > They work together. Make sure the mmcache.so goes to the right
> >
> > location.
> >
> > > > > I will bet that make install didn't copy it
> > > > >
> > > > >
> > > > > --
> > > > > Raditha Dissanayake.
> > >
> >
> 
> > >
> > > > > http://www.radinks.com/sftp/ |
> >
> > http://www.raditha.com/megaupload
> >
> > > > > Lean and mean Secure FTP applet with | Mega Upload - PHP file
> > > > > uploader Graphical User Inteface. Just 128 KB | with progress bar.
> > > > >
> > > > > --
> > > > > 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 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] Send a page using mail()

2004-06-28 Thread Binay
For sending html emails there are various classes which has got lottt of
functionalities including attachment also.
one of such class can be found at
http://phpmailer.sourceforge.net/

regards
binay


> I've read the manual for the mail function and extensively searched
google,
> but I can't work out how I can email an html page (actually a php page).
>
> I want to query a DB and the email the displayed table to the user.
> Any help most appreciated.
>
> Tom
>
> --
> 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] Image Problem

2004-06-28 Thread Binay
probably the table in which ur storing the images will be having its primary
key set to auto_increment.

If tht is the case then when u delete banner(s) then corresponding id(s)
match won't be found.

i.e say table is having 4 records with ids as follows

id =1
id=2
id=3
id=4

so random number generated would lie between 1 to 4.

now say u delete record with id=2. if this happens then no of  records will
be 3 and hence random number can be 2 for which theres no record in
database. and hence a broken image.




- Original Message -
From: "Monil Chheda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 28, 2004 1:24 AM
Subject: [PHP] Image Problem


> Hi,
>
> I store images in DB properly... no issues using the
> following code
>
> 
> // store.php3 - by Florian Dittmer <[EMAIL PROTECTED]>
> // Example php script to demonstrate the storing of
> binary files into
> // an sql database. More information can be found at
> http://www.phpbuilder.com/
> ?>
>
> 
> Store binary data into SQL
> Database
> 
>
>  // code that will be executed if the form has been
> submitted:
>
> if ($submit) {
>
> // Include constants for database connectivity
> include("constants.php");
>
> // The Database server connection function
> $connection =
> mysql_connect("$host","$db_user","$db_pass") or
> die("Couldn't connect to the MySql Database Server");
>
> // Database selection from the DB server
> $db = mysql_select_db("$db_name",$connection) or
> die("Couldn't select the required Database.");
>
> $data = addslashes(fread(fopen($banner_image,
> "r"), filesize($banner_image)));
>
> $result = MYSQL_QUERY("INSERT INTO banner_details
> (text,banner_image,filename,filesize,filetype) ".
> "VALUES
>
('$banner_description','$data','$form_data_name','$form_data_size','$form_da
ta_type')")
> or die("Couldnt insert banner in the Db");
>
> echo "Banner uploaded";
>
> $id= mysql_insert_id();
> print "This file has the following Database ID:
> $id";
>
> } else {
>
> // else show the form to submit new data:
> ?>
>
> 
> Banner Text:
>  size="40">
>  value="100">
> Image to upload/store in database:
> 
>  value="submit">
> 
>
>
> 
> }
>
> ?>
>
> 
> 
>
> 
>
> I use the foll file to reterieve it...
>
>  /*
> Aim: To fetch random image and its corresponding
> text from the database.
>
> Working: Generate a random number within the range of
> 1 and number of rows present in the DB and then fetch
> the appropriate ROW ID.
>
> Includes: constants.php for DB connectivity
>
> */
> // Include constants for database connectivity
> include("constants.php");
>
> // The Database server connection function
> $connection =
> mysql_connect("$host","$db_user","$db_pass") or
> die("Couldn't connect to the MySql Database Server");
>
> // Database selection from the DB server
> $db = mysql_select_db("$db_name",$connection) or
> die("Couldn't select the required Database.");
>
> /*
> Fetching the number of rows in the DB table
> */
>
> // Reteriving the data from the banners table in the
> DB
> $sql = "SELECT *" .
> "FROM banner_details";
>
> // Executing the Sql select statement
> $result = mysql_query($sql, $connection) or
> die("Couldn't Execute the query.");
>
> // Getting the number of rows affected by the query
> $rows = mysql_num_rows($result);
>
> print("Rows in DB: $rows\n");
>
> /*
> Generating a Random number between 1 and the NUMBER OF
> ROWS returned from the DB Table
> */
>
> // Seeding the random number generator...
> // this thing is usually used to SET an initial value
> for the random number to be generated.
> mt_srand(doubleval(microtime()) * 1);
>
> // The random number is generated...
> $random_number = mt_rand(1, $rows);
>
> print("The random number generated is
> $random_number");
> echo "";
>
> /*
> Fetching the actual data from the DB Table
> */
> $query = "select banner_image, text, filetype from
> banner_details where id=$random_number";
>
> $result = mysql_query($query, $connection) or
> die("Couldn't Execute the query.");
>
> $data = @MYSQL_RESULT($result,0,"banner_image");
> $text = @MYSQL_RESULT($result,0,"text");
> $type = @MYSQL_RESULT($result,0,"filetype");
>
> echo "The banner is ";
>
> Header("Content-type: $type");
>
> echo $data;
>
>
> echo "The assocaited text is : $text";
>
>
> ?>
>
> --
>
> And this for calling it...
>
> 
> echo "";
>
> ?>
>
> I get an Img with a cross (broken)...
>
> Whats the error?
>
> Am i missing something?
>
> Pls help
>
> -Monil
>
> =
> Best Regards,
> Monil Chheda(INDIA)
> http://domains.eliteral.com
> ===
> ===
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail - You care about security. So do we.
> http://promotions.yahoo.com/new_mail
>
> --
> 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 uns

Re: [PHP] Session file in /tmp

2004-06-28 Thread Binay
If i m getting ur problem correctly then u want to restrict the same user
logging from different machines concurrently. If tht being the case the
snippet u mentioned below alone won't solve the problem . you have maintain
a flag in the database which will be on when the user logs in and off when
he/she logs out.


> Code:
>
> session_cache_expire(0);
> session_cache_limiter('private');
> session_start();
>
> I use this at the beginning of my script that processes data objects for
my
> users.  The users use multiple machines and login to the web site.  This
> prevents the cached information from one user popping up when another user
> logs in.  Will this contribute to the solution for my main problem:
>
> When a user exits a window without logging out they have to wait until the
> cookie expires or the session file in /tmp is deleted before they can get
> back in.  This is the code that executes at login:
>
> session_cache_expire(0);
> session_cache_limiter('private');
> setcookie("cookie","",0,"/","iffinet.com",1);
> session_start();
>
> I was hoping this would cause the session file in /tmp to be deleted but
it
> doesn¹t work.  I also tried unset($_SESSION[Oid¹]) this doesn¹t work
either.
> Anyone have any ideas as to how I can resolve this?
>
> Thanks for your help!
>
> /Tim
>
> --
> 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] sql statement help needed

2004-06-30 Thread Binay

- Original Message - 
From: "Chris W. Parker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 01, 2004 3:33 AM
Subject: [PHP] sql statement help needed


> hello,
> 
> i've had to change some of my tables to accomodate some greater
> flexibility in the application that uses it and because of this i need
> to go through and update all the records. i've done one table by hand
> and it had about 100 records and took about 20 minutes. but this next
> table has about 550 records and i really don't feel like doing this all
> by hand. i'm using MySQL Control Center to do this editing so i'd like
> to know if there's a single SQL statement i could use to update all the
> rows.
> 
> here is a simple representation:
> 
> products: (pay no attention to the poor choice in column names. this is
> a retrofitting and will be fixed in later versions.)
> +--+---+
> | id   | sequential_id |
> +--+---+
> | PRDX-41  | 1 |
> | ABCX-01  | 2 |
> | FF00-11  | 3 |
> \/\/\/\/\/\/\/\/
> | ETC0-99  |   500 |
> +--+---+
> 
> the 'prod_sequential_id' column was added later to the
> products_categories table.
> 
> products_categories:
> +-+-+++
> | id  | prod_id | prod_sequential_id | cat_id |
> +-+-+++
> |   1 | PRDX-41 |  0 | 41 |
> |   2 | PRDX-41 |  0 | 15 |
> |   3 | ABCX-01 |  0 | 13 |
> |   4 | FF00-11 |  0 | 89 |
> \/\/\/\/\/\/\/\/
> | 610 | ETC0-99 |  0 | 41 |
> +-+-+++
> 
> so... as you can see, prod_sequential_id has all 0's in its column. it
> should contain the value of products.sequential_id WHERE
> products_categories.prod_id = products.id.
> 
> the problem is that i'm not sure how to do this all in one statement (or
> if it's even possible):
> 
> (i know the following does not work, but it's basically the logic i
> think i need.)
> 
> UPDATE products_categories AS pc, products AS p
> SET pc.prod_sequential_id = p.id
> WHERE pc.prod_id = p.id;

why can't you do like this.
UPDATE products_categories set prod_sequential_id = prod_id 

in one go.

Thanks
Binay



> 
> 
> thanks for your help.
> chris.
> 
> -- 
> 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] suexec in php

2004-06-30 Thread Binay
you can execute system commands from within PHP using either system() ,
(Bexec() or passthru().
(B
(BLook at these functions and m sure will solve ur problem.
(B
(Bthanks
(BBinay
(B
(B- Original Message -
(BFrom: "Syed Ghouse" <[EMAIL PROTECTED]>
(BTo: "php mailinglists" <[EMAIL PROTECTED]>
(BSent: Wednesday, June 30, 2004 6:15 PM
(BSubject: [PHP] suexec in php
(B
(B
(BHi All
(B
(BIs there any suexec function in php to create a unix user
(B
(Bor there is any function to create user dynamically from php code
(B
(BThanks in advance
(B
(BRegards
(Bsyed
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calling Web Service in PHP

2004-01-28 Thread Binay
Hi all

I need to call a web service from some other server to my php script. How can i do it 
? please help me out.

Thanks in advance

Binay


[PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Binay
Hi all,

I am planning to use Turck MMcache in my production environment and hence searching in 
the archives for its response and efficiency. It seems people who've used it are quite 
happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer 
supported by the person who originally developed it. I don know the fact/reality and 
in dilemma whether to use it in my production server or not?? What do u guys suggest?

Thanks
Binay


[PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Binay
Hi all,

I am planning to use Turck MMcache in my production environment and hence searching in 
the archives for its response and efficiency. It seems people who've used it are quite 
happy but suddenly I saw a post saying Turck MMcache is dead i.e its no longer 
supported by the person who originally developed it. I don know the fact/reality and 
in dilemma whether to use it in my production server or not?? What do u guys suggest?

Thanks
Binay


Re: [PHP] Turck MMcache - still continuing or dead?

2004-01-30 Thread Binay
Thanks

So u mean i can go ahead with MMcache?? or do u find other (prefferably
free) alternative to this..

Binay
- Original Message -
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
To: "Binay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 31, 2004 11:24 AM
Subject: Re: [PHP] Turck MMcache - still continuing or dead?


> Hi,
>
> This topic has also been discussed in the past. Open source projects
> never die. When the original developer moves away what generally happens
> is that someone else takes his place.
>
>
> Binay wrote:
>
> >Hi all,
> >
> >I am planning to use Turck MMcache in my production environment and hence
searching in the archives for its response and efficiency. It seems people
who've used it are quite happy but suddenly I saw a post saying Turck
MMcache is dead i.e its no longer supported by the person who originally
developed it. I don know the fact/reality and in dilemma whether to use it
in my production server or not?? What do u guys suggest?
> >
> >Thanks
> >Binay
> >
> >
> >
>
>
> --
> Raditha Dissanayake.
> 
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 150 KB | with progress bar.
>
>

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



Re: [PHP] Turck MMcache - still continuing or dead?

2004-01-31 Thread Binay
Hi Adrian

I looked at the discussion goin on located at sourceforge. But then i m
still not able to make up my mind whether to use it or not in my production
server. What do u suggest? Is there any problem with the current version of
MMcache? Please suggest me.

Thanks
Binay
- Original Message -
From: "Adrian Teasdale" <[EMAIL PROTECTED]>
To: "'Raditha Dissanayake'" <[EMAIL PROTECTED]>; "'Binay'"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 31, 2004 12:36 PM
Subject: RE: [PHP] Turck MMcache - still continuing or dead?


> That's not strictly true. Open source projects do sometimes die if
> nobody steps up to bat when the original developer decides not to
> continue it - SourceForge has many projects like this.  In this
> particular instance mmCache is not dead (yet). The original developer
> has moved to work with Zend and is no longer able to work on mmCache.
> If you read the forums located here:
> http://sourceforge.net/forum/?group_id=69426 you will see that there is
> much discussion on this topic. At this moment it looks like some people
> have said they will help with the continuing development, so there is
> hope for it yet.  It is a fantastic cache and deserves to continue.
>
> Ade
>
> > -Original Message-
> > From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
> > Sent: 31 January 2004 05:54
> > To: Binay
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Turck MMcache - still continuing or dead?
> >
> >
> > Hi,
> >
> > This topic has also been discussed in the past. Open source projects
> > never die. When the original developer moves away what
> > generally happens
> > is that someone else takes his place.
> >
> >
> > Binay wrote:
> >
> > >Hi all,
> > >
> > >I am planning to use Turck MMcache in my production environment and
> > >hence searching in the archives for its response and efficiency. It
> > >seems people who've used it are quite happy but suddenly I
> > saw a post
> > >saying Turck MMcache is dead i.e its no longer supported by
> > the person
> > >who originally developed it. I don know the fact/reality and
> > in dilemma
> > >whether to use it in my production server or not?? What do u guys
> > >suggest?
> > >
> > >Thanks
> > >Binay
> > >
> > >
> > >
> >
> >
> > --
> > Raditha Dissanayake.
> > --
> > --
> > http://www.radinks.com/sftp/ |
> > http://www.raditha.com/megaupload
> > Lean and mean Secure FTP
> > applet with | Mega Upload - PHP file uploader Graphical User
> > Inteface. Just 150 KB | with progress bar.
> >
> > --
> > 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] Turck MMcache - still continuing or dead?

2004-01-31 Thread Binay
Thanks alottt

Finally have decided to go with MMcache only.

Thanks all for clearing my doubts  once again

Binay
- Original Message -
From: "Adrian Teasdale" <[EMAIL PROTECTED]>
To: "'Binay'" <[EMAIL PROTECTED]>; "'Raditha Dissanayake'"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 31, 2004 2:20 PM
Subject: RE: [PHP] Turck MMcache - still continuing or dead?


>
> > Hi Adrian
> >
> > I looked at the discussion goin on located at sourceforge.
> > But then i m still not able to make up my mind whether to use
> > it or not in my production server. What do u suggest? Is
> > there any problem with the current version of MMcache? Please
> > suggest me.
> >
> > Thanks
> > Binay
>
> As far as I can tell there are no problems using it (at the moment) on a
> production server. We use it on ours with great benefits. The issue is
> whether the project continues and the best way to ensure it does, is
> ultimately to get involved - this is an open source project after all!
> :)
>
> Ade

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



[PHP] recursive direcotry listing

2004-02-04 Thread Binay
Hi all,

is there function which scans a particual directory recurisly and stores the content 
in array or other way? Listing of files should be in alphabetical way and directories 
should come on top.

Thanks

Binay


[PHP] Turck MMcache installtion

2004-02-05 Thread Binay
Hi all,

I m using Turck MMcache for php source encoding. Now the server where i will deploy 
those file need to have turck loader installed on it. And the procedure given in the 
site requires  compiling the source and then including the TurckLoader.so extension in 
php.ini file .

Now is it possible not to compile the turck source on client's server and simply 
include the extension TurckLoader.so(which i'll provide them) in php.ini i.e bypassing 
the compile face.

Please let me know .. as this is very urgent and client is not a techy person.


Thanks

Binay


Re: [PHP] PHP REDIRECT

2004-02-15 Thread Binay
use sleep(no of seconds)..

Cheers
Binay
- Original Message -
From: "ajay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 9:54 AM
Subject: [PHP] PHP REDIRECT


> hi!
>
> i'd like to redirect a person to another page but after a certain time
interval
> has elapsed. this is because i have a generic error displaying page and i
would
> like the person to go to this page, stay there for like 10 seconds and
then be
> redirected to the index page.
>
> i was using header("url") to redirect the user.
> but how do i get that to happen after a certain time interval.
>
> thanks
>
> regards
>
> --
> ajay
> ---
> Who Dares Wins
>
> -
> This mail sent through IMP: www-mail.usyd.edu.au
>
> --
> 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] error : session_start

2004-02-15 Thread Binay
set the session.save_path directive in php.ini file..
By default this is set to /tmp but as u working on win mchine please create
a session directory and specify the corresponding path to aforesaid
directive.

Cheers
Binay
- Original Message -
From: "ajay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 9:57 AM
Subject: [PHP] error : session_start


> hi!
>
> i have a login page that after validating the login and passwords does
something
> like
> // initiate a session
> session_start();
>
> // register some session variables
> session_register("SESSION");
>
> // including the username
> session_register("SESSION_UNAME");
> $SESSION_UNAME = $login;
>
> // redirect to protected page
> header("Location:manager.php");
>
> when i try to run this at home with my apache 1.3.27 i get the following
errors:
>
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d, O_RDWR) failed: No such
file or
> directory (2) in c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php on line 16
>
> Warning: session_start() [function.session-start]: Cannot send session
cookie -
> headers already sent by (output started at c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php:16) in c:\program
files\apache
> group\apache\htdocs\usydbasketball\login.php on line 16
>
> Warning: session_start() [function.session-start]: Cannot send session
cache
> limiter - headers already sent (output started at c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php:16) in c:\program
files\apache
> group\apache\htdocs\usydbasketball\login.php on line 16
>
> Warning: Cannot modify header information - headers already sent by
(output
> started at c:\program files\apache
> group\apache\htdocs\usydbasketball\login.php:16) in c:\program
files\apache
> group\apache\htdocs\usydbasketball\login.php on line 26
>
> Warning: Unknown(): Your script possibly relies on a session side-effect
which
> existed until PHP 4.2.3. Please be advised that the session extension does
not
> consider global variables as a source of data, unless register_globals is
> enabled. You can disable this functionality and this warning by setting
> session.bug_compat_42 or session.bug_compat_warn to off, respectively. in
> Unknown on line 0
>
> Warning: Unknown(): open(/tmp\sess_d6abb1b84993ac7bca6eb7eb8f06481d,
O_RDWR)
> failed: No such file or directory (2) in Unknown on line 0
>
> Warning: Unknown(): Failed to write session data (files). Please verify
that the
> current setting of session.save_path is correct (/tmp) in Unknown on line
0
>
>
> can someone please help
>
> thanks
>
> regards
>
> --
> ajay
> ---
> Who Dares Wins
>
> -
> This mail sent through IMP: www-mail.usyd.edu.au
>
> --
> 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] fonts

2004-02-18 Thread Binay
Hi
I think u need to embed particular font into ur pages and save ur self from
the hassle of auto downloading of the font in case the users don have(that
font).

http://www.tijs.org/embed/

Read above article which will more clarify the scenario.

Thanks

Binay

- Original Message -
From: "Jake McHenry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 6:26 AM
Subject: [PHP] fonts


is there a way I can have a special font on a page, and if the viewer
doesn't have that font, have it auto downloaded and installed?

Thanks,
Jake

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



Re: [PHP] How to detect session expiry

2004-02-18 Thread Binay
This question has been answered several times ... so search the archive ...

Binay
- Original Message - 
From: "Radek Zajkowski (Mac)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 3:25 AM
Subject: [PHP] How to detect session expiry


> How do I tell if session has expired?
> 
> It would help me with providing the user with a comment such as: "your
> session has expired please login in again"
> 
> Thanks
> 
> R>
> 
> -- 
> 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] Is it posible to embed scripts from other server?

2004-02-18 Thread Binay
$fp =fopen("http://www.anotherserver.com/script.php","r";);

then read the required information using fread or fgets functions.

hope tht helps

Binay

- Original Message -
From: "The PHP Newbie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 3:26 AM
Subject: [PHP] Is it posible to embed scripts from other server?


> HI there!
>
> Hope someone can help me with this: Is it posible to run a PHP script from
a different server than the one requesting the script.?
>
> I would like to know if u can do this with php, just like the Server
Includes in CGI and if u have an example of how to do it.
>
> I have a script in lets say www.myserverrightnow.com and this script needs
to call the info from a script from  www.anotherserver.com, is there a way
to stablish a connection between?
>
> Thanks for ur help!
>
>
> Regards,
>
> Luis Soriano.
>
>
> -
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.

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



[PHP] Credit Card validation

2004-03-01 Thread Binay
Hi,

I need to validate credit cards on my web site. So i m looking for information as in 
what all i need to do / have to implement the card validation .

I m running ..

Php 4.3.3
Apache 1.3.29
Red Hat Linux 9.0

Any advices are most welcome...

Thanks in advance 

Binay


[PHP] XML to PDF

2006-01-02 Thread Binay
Hi ALL

My applications requires converting XML file to PDF using PHP. Some surfing on 
the net revealed that it has to be first transformed to XSLT and then XSL:FO 
and finally to PDF . But i have no idea as where to start from. Confused and 
need directions or references to tutorials / resources which can shade lights 
on the inputs required. 

Thanks in advance.

Binay

[PHP] popping up download dialog box

2003-07-18 Thread Binay Agarwal
Hi every body !

I am writing a script which  pops up download dialog box on click of a Link. 

Headers i m sending out for downloading jpegs are:

header("Cache-control: private");
header("Content-Type: image/jpeg");
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=$fname");
header("Content-Transfer-Encoding: binary");
readfile($fname);

All these work well in MSIE 5.0+ and Netscape 4.7+ . But on Mac I.E its not popping up 
the dialog box rather it opens up the jpg file in the browser window. I don know where 
am i doing wrong. Please suggest me . I cracked my mind for hours but in vain. So 
please help me out.

Thanks in advance

Binay


Re: [PHP] popping up download dialog box

2003-07-18 Thread Binay Agarwal
Hi jason

Thanks for the quick suggestion. I tried removing the first content-type
header but still the problem reamains. I don know why??
Please let me know is there other way i can do the same?



Thanks
Binay

- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 18, 2003 4:00 PM
Subject: Re: [PHP] popping up download dialog box


> On Friday 18 July 2003 06:34, Binay Agarwal wrote:
> > Hi every body !
> >
> > I am writing a script which  pops up download dialog box on click of a
> > Link.
> >
> > Headers i m sending out for downloading jpegs are:
> >
> > header("Cache-control: private");
> > header("Content-Type: image/jpeg");
> > header("Content-Type: application/octet-stream");
> > header("Content-Length: $size");
> > header("Content-Disposition: attachment; filename=$fname");
> > header("Content-Transfer-Encoding: binary");
> > readfile($fname);
> >
> > All these work well in MSIE 5.0+ and Netscape 4.7+ . But on Mac I.E its
not
> > popping up the dialog box rather it opens up the jpg file in the browser
> > window. I don know where am i doing wrong. Please suggest me . I cracked
my
> > mind for hours but in vain. So please help me out.
>
> Having two Content-Type: headers is probably confusing the poor Macs. You
> don't want the first one anyway so remove it.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> When the speaker and he to whom he is speaks do not understand, that is
> metaphysics.
> -- Voltaire
> */
>
>
> --
> 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] help with explode.....

2003-07-24 Thread Binay Agarwal

> Okay... this probably isn't that hard to do... but I am just not sure to
> do it... so i will ask you guys... i amsure someone is going to have a
> one liner for me here!
>
> I am making a survey/poll builder everything is dynamic... there is an
> admin section where the user can make the new survey.. and set certain
> surveys as active but this where I am coming into some
> difficulties the program builds the form dynamically... all radio
> buttons... when the user submits the form i need to disect each form
> answer and then dump it into MySQL... So I need to know if I can do
> something like use the 'explode()' function no this... and assign them
> to variables... I need to draw out the radio button id and what they
> answered...

I really don know whether i got ur question or not. Probably ur questions is
abt fetching the radio buttons id and their corresponding values, when a
form is submitted .
Well if u have large number of radio buttons then give some common name to
all of them.
like radbut1, radbut2, radbut3 and so on

so u know anything starting from "radbut" is your radio button ..

now use $HTTP_POST_VARS or GET_VARS depending upon ur form method to
retrieve the variables/values pairs.
i.e
while(list($key,$value) = each($HTTP_POST_VARS))
{
if (eregi("radbut",$key)) // radio button
// Carry out operations u want

}




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



[PHP] Which templates to use??

2003-07-26 Thread Binay Agarwal
Hi all!

As a php developer i need to know how can i separate my "business logic tier" 
with "presentation". I mean wht all different kinds of php Templates are available and 
which one to go for better efficiency and speed? Where can i find the resources. 
Please help me out.

Thanks in advance

Binay


[PHP] FTP accounts

2003-08-04 Thread Binay Agarwal
Hi everybody!

can any body suggest me the good resources/snippet for creating and managing FTP 
accounts. 
My configuration includes:
Redhat : 7.0
Php - 4.0.6
Apache web server

Any help would be highly appreciated.

Thanks in advance

Binay


[PHP] Web tools for FTP accounts management

2003-08-04 Thread Binay Agarwal
Hi everybody!

can any body suggest me the good resources/snippet for creating and managing FTP 
accounts through web interface using PHP.

My configuration includes:
Redhat : 7.0
wu-ftpd (FTP Server)
Php - 4.0.6
Apache web server

Any help would be highly appreciated.

Thanks in advance

Binay



[PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Binay Agarwal
Hi everybody

One basic question but still couldn't find the answer.

Is php Interpreted language or Compiled Language like C or C++.

Thanks in advance

Binay




Re: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Binay Agarwal
Thanks jay for quick response

I'll tell you what really forced me to go in the matter of interpreted or
Compiled language.

In the heart of PHP 4+  is Zend Engine which compiles (often says) the php
code into some intermediate code called opcode and then Zend executor
executes them converting these opcodes to machine language. right??

If it is so why PHP is an Interpreted Language.

I have couple of more queries also.

1)Where to get information/resourse for PHP-GTK to be able to use it in the
application.
2) What are other options of compiling PHP.

Binay


- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Binay Agarwal" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 14, 2003 5:39 PM
Subject: RE: [PHP] PHP - Interpreted or Compiled Language


> [snip]
> Is php Interpreted language or Compiled Language like C or C++.
> [/snip]
>
> PHP is an interpreted language in most applications. However, the
> PHP-GTK is available and there are other options for compiling PHP.
>
>



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



[PHP] better understanding of ereg_replace and other functions

2003-08-16 Thread Binay Agarwal
Hi everybody,

Lot of places in manual i came across using "ereg_replace" or "ereg" is very resource 
intensive and hence its better to use "preg_replace" or "str_replace" or "strpos" if 
they do the jobs.

Now i am very curious to look at the source code (implementation) of these function so 
as to be able to decide the right choice for me. Can any one of you tell me where to 
find the source code of these functions. Do they require special privileges ??

Please help me out


Binay


[PHP] session.cookie_path problem

2003-08-18 Thread Binay Agarwal
Hi everybody

I am having problem with session.cookie_path. 
By deafult path is "/".

But what i think it should be client side path.. right?? In case client is win2k where 
does this cookie get saved.Any idea?

Binay


Re: [PHP] 2 questions

2003-08-23 Thread Binay Agarwal

- Original Message -
From: "Thomas Hochstetter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 5:33 PM
Subject: [PHP] 2 questions


> Hi guys.
>
> I have two questions for you today:
>
> 1. Weired login problem
> I am developinig a site for a conference where i have a login page for
> members. This page is called index.php and includes different types of
modules,
> according to the type of user logged on. The problem is now following:
> i have a login function hidden in a class, this function registers a bunch
> of variables. After the user has submited the details, index.php (which
calls
> the session_start()) calls the login function. Then i check whether a
session
> variable is present ($_SESSION['name']). If yes, we include the members
> area, otherwise we include the login table again. Now: on my test server
> (XP/Apache/php4.3.2) all is well. However, on the real server
(Linux/Apache/php4.0.x)
> it just includes the login table anyway, even if the login was successful.
I
> then have to click on the menu link again to include the member script.
> Why is that?

Check your register_globals setting in both ur test server and real server
and let me know.

>
> 2. Save a large amount of text to a file
> On the same page i have some type of cms going. The admin users can change
> txt files which relate to text on some of the general pages. I have now
found
> that it is only transmits a certain amount of text via GET to the function
> that writs to the files. Is there a restriction on passing text via url?
If yes
> (which will be the case), how could i do this otherwise?

Use POST instead of GET method... POST method allows u to even extend the
size of data being posted.

Hope this helps...

>
> Thanks so long...
>
> Thomas
> P.S: this list still rocks
>
> --
> COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> --
> 1. GMX TopMail - Platz 1 und Testsieger!
> 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
> 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
e-Post
>
>
> --
> 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] Random selection

2003-08-23 Thread Binay Agarwal
Hi

You can use "select distinct names from table_name order by rand() limit 3".
Hope this helps and let me know.

cheers
Binay


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 6:36 PM
Subject: [PHP] Random selection


> Hi,
>
> Can you help me with this one??
>
> In my mysql db i have a colum called names;
>
> In names their are:
>
> Frank
> Frank
> Bob
> Alice
> Bob
> Alice
> Jim
> Alice
> Frank
>
> I want to make a random selection (max 3 value's for example).. Only it
may not produce two times the same name. For example;
>
> This is the output:
>
> Frank, Jim, alice
>
> Wrong output
>
> Frank, Frank, Jim
>
> Please help!
>
> Thanks,
>
> Frank
>
>
>






> --
> 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] 2 questions

2003-08-25 Thread Binay Agarwal


- Original Message -
From: "Thomas Hochstetter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 24, 2003 12:54 AM
Subject: RE: [PHP] 2 questions


> The register globals is on with the live server, and off at home (my
version
> is 4.3.2, the other is 4.1.2). does that matter?
yes, it does matter .. Show me the snippet where u regestering/getting the
session variables if possible.

> Thanks for the other tip, shall try that ...
>
> Thomas
>
> - Original Message -
> From: "Thomas Hochstetter" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, August 23, 2003 5:33 PM
> Subject: [PHP] 2 questions
>
>
> > Hi guys.
> >
> > I have two questions for you today:
> >
> > 1. Weired login problem
> > I am developinig a site for a conference where i have a login page for
> > members. This page is called index.php and includes different types of
> modules,
> > according to the type of user logged on. The problem is now following:
> > i have a login function hidden in a class, this function registers a
bunch
> > of variables. After the user has submited the details, index.php (which
> calls
> > the session_start()) calls the login function. Then i check whether a
> session
> > variable is present ($_SESSION['name']). If yes, we include the members
> > area, otherwise we include the login table again. Now: on my test server
> > (XP/Apache/php4.3.2) all is well. However, on the real server
> (Linux/Apache/php4.0.x)
> > it just includes the login table anyway, even if the login was
successful.
> I
> > then have to click on the menu link again to include the member script.
> > Why is that?
>
> Check your register_globals setting in both ur test server and real server
> and let me know.
>
> >
> > 2. Save a large amount of text to a file
> > On the same page i have some type of cms going. The admin users can
change
> > txt files which relate to text on some of the general pages. I have now
> found
> > that it is only transmits a certain amount of text via GET to the
function
> > that writs to the files. Is there a restriction on passing text via url?
> If yes
> > (which will be the case), how could i do this otherwise?
>
> Use POST instead of GET method... POST method allows u to even extend the
> size of data being posted.
>
> Hope this helps...
>
> >
> > Thanks so long...
> >
> > Thomas
> > P.S: this list still rocks
> >
> > --
> > COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> > --
> > 1. GMX TopMail - Platz 1 und Testsieger!
> > 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
> > 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
> e-Post
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
> --
> 1. GMX TopMail - Platz 1 und Testsieger!
> 2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
> 3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.
e-Post
>
> --
> 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] Cookie saving path on Clinet

2003-08-25 Thread Binay Agarwal
Hi Everybody

I know this is vague but couldn't find the answer.

Where (i mean system path) cookies are saved on Client's machine.

I though it is in windows/temp or temporaray internet files (in win 2000) but it 
wasn't there.

Please tell me.

Thanks
Binay


[PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

2003-08-27 Thread Binay Agarwal
Hi everybody

I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After 
that i have to allow my client to modify and put them back in jpeg/tiff files.

I want to know whether php has got built-in support in terms of libraries to achieve 
the goal or i will have to load some external modules/software to do the same. In case 
external which all modules/software to refer?

Please let me know.

Thanks

Binay




[PHP] Extracting EXIF/IPTC info from jpeg and tiff files

2003-08-27 Thread Binay Agarwal
Hi everybody

I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After 
that i have to allow my client to modify and put them back in jpeg/tiff files.

I want to know whether php has got built-in support in terms of libraries to achieve 
the goal or i will have to load some external modules/software to do the same. In case 
external which all modules/software to refer?

Please let me know.

Thanks

Binay




Re: [PHP] converting date into database date format(newbie)

2003-08-29 Thread Binay Agarwal
Hi!

U can convert "8-Aug-03" into mysql date which requires -mm-dd format as
below.



Hope this helps and let me know.

Cheers

Binay

- Original Message -
From: "Anil Garg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 11:01 AM
Subject: [PHP] converting date into database date format(newbie)


> Hi,
>
> I am a newbie to php.
>
> I am reading date in the format "08-Aug-03" from a text file. While
writing
> this date into the myqsl database's date column it shows '00-00-'.
> Is there a function or some other way to convert "08-Aug-03" type of dates
> in to format which is acceptable by date field of the mysql database.
>
> Thanks and regards
> Anil.
>
> --
> 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] server/browser dependancies?

2003-08-29 Thread Binay Agarwal
Hi!

Use 
 
instead of Find
and so

Hope this helps ..

Cheers
Binay


- Original Message -
From: "VB" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 11:36 AM
Subject: [PHP] server/browser dependancies?


> Hi,
>
> I am trying to come up with a form with more then one submit button, and
> am seeing some unexplainable results. Here is a small complete page to
> illustrate it:
>
>  cut here ===
> 
>  if (  $HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST"  ) {
> echo "action is " . $_POST["action"] . "\n";
> } else {
> ?>
> 
> 
> 
> Save
> 
> Find
> 
> 
> 
> 
> ===cut here==
> so, here are two buttons, one called Save and another one called Find.
> The idea is that $_POST["action"] will be set to the value of the button
> pressed. I tried it with php 4.3.0 and 4.3.2.
>
> The thing is that Mozilla 1.0.1 on Linux does behave this way:
> "action is Save" shows after hitting the 'Save' button, "action is Find"
> showa if the 'Find' button is pressed.
>
> IE of different versions though show only "action is Find", no matter
> what button I press!
>
> How is this at all possible - does the server's PHP code behave
> differently depensding on the client's browser type - I find it so hard
> to believe...
>
> Any ideas/suggestions on how to have browser invariant multiple submit
> buttons would be highly appreciated.
>
> --
> 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] problem with a mysql query with data from a form

2003-08-29 Thread Binay Agarwal

- Original Message -
From: "Vincent Fievet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 11:55 AM
Subject: [PHP] problem with a mysql query with data from a form



-Message d'origine-
De : Vincent Fievet
Envoyé : mercredi 27 août 2003 10:44
À : '[EMAIL PROTECTED]'
Objet : problem with a mysql query with data from a form


hi,

i am a newbie to php and mysql, i run the easyphp kit ( php 4.2.0, Mysql
3.23.49 and phpmyadmin 2.2.6 )

i would like to use a select * from mytable where my variable like
'%$mystring%'
where $mystring come from a form



   '%Mike %
Communication Impliquant :
 
  
PC
   echo
  ...
  H10 Tango
   
  
 
1
...
10
  
  
 
  

so ,after choosing "PC" in the form,  in show.php i do a

$sql="SELECT * FROM journal WHERE a like '% $det%' OR de like '%$det%' order
by dateheure desc";
++
should be

$sql="SELECT * FROM journal WHERE a like '$det %' OR de like '$det %' order
by dateheure desc";
No need of prefixing $det with %
(blank space after $det.)

echo $sql;
and what i get is :

SELECT * FROM journal WHERE a like '%PC %' OR de like '%PC %' order by
dateheure desc
( note the blank space at the end of PC )
whitch doesnt get any record since the word i am looking is "PC" and not "PC
"
i used a "like" because the request should be used to find record with "PC
1" "PC" "PC 9" "PC12" ...

any ideas ?

Thanx

Vincent Fievet

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



[PHP] Tracking Bandwidth usage....

2003-09-01 Thread Binay Agarwal
Hi All,

I need to track the bandwidth usage of the different sites hosted on a server. How can 
i achieve this using PHP,Apache,mysql under Linux environment.

Please suggest me as it is urgently needed by client.

Thanks 

Binay


RE: [PHP] session variables

2003-09-01 Thread Binay Agarwal
Check out session.cookie_lifetime .. 
if lifetime =0 then session should disappear once you close the browser else it will 
stay the time specified in lifetime options.

Hope this helps and let me know.

Binay

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> I am having a weird problem, when I close all my browser windows and restart
> my application, the session variable which I set comes back suddenly, but
> only when I call a certain class .
> As far as I know the session variables should disappear when I close the
> browser.  Why would they suddenly come back?
> thank you



[PHP] PKCS#5 padding

2005-12-09 Thread Binay\(Local\)
Hi All

Has anybody got the working code to apply the PKCS#5 padding to the text for 
encryption. Please let me know as it seems PHP inbuilt functions do not support 
this padding at all. Been worried about from past 2 days. Help me out.

Thanks
Binay

[PHP] PKCS#5 padding

2005-12-09 Thread Binay\(Local\)
Hi All

Has anybody got the working code to apply the PKCS#5 padding to the text for 
encryption. Please let me know as it seems PHP inbuilt functions do not support 
this padding at all. Been worried about from past 2 days. Help me out.

Thanks
Binay

Re: [PHP] forwarding from virtual email account to real email account

2006-01-25 Thread Binay\(Local\)

Hi

I think i've been misunderstood here. I meant whether this is achievable
using PHP or not? I  know and can be done very easily on server with either
control panel or manual intervene but its integration with PHP is my main
concern. I hope you understand what i mean.


Thanks,
Binay
- Original Message - 
From: "Jochem Maas" <[EMAIL PROTECTED]>

To: "Binay" <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, January 25, 2006 6:48 PM
Subject: Re: [PHP] forwarding from virtual email account to real email 
account




Binay wrote:

Hi All,


Is it possible that we create a virtual email account(no physical 
existence) e.g [EMAIL PROTECTED] which will be associated with a real email 
account e.g. [EMAIL PROTECTED] so that if any body sends the email to 
virtual email account [EMAIL PROTECTED] will be automatically forwarded to 
the real email account [EMAIL PROTECTED] Is it achievable using PHP ? 
Please throw some light as this becoming a major requirement of my 
client.


how is it possible that you can list the following solutions/skills on
your website and not know what an email alias is???

Web Application Development
Website Design & Development
Web Hosting
Search Engine Ranking Services
Content Management Solution
e-Commerce Solutions
B2B & B2C Portal Development
Intranet & Extranet Solutions
Document Management System
e-CRM Solutions
Supply Chain Management
Sales Force Automation
Workflow Management Solutions



Thanks in adance,
Binay





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