[PHP] MySQL query time

2002-06-26 Thread Bharath Bhushan lohray

Is there a way to find the time that mySQL took to perform a query.
like the one shown when you perform it on the console mode(0.09 sec or
so)



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




[PHP] mysql Query time

2002-06-26 Thread Bharath Bhushan lohray

Is there a way to find the time that mySQL took to perform a query.
like the one shown when you perform it on the console mode(0.09 sec or
so)



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




[PHP] Re: Weird error!!

2002-06-26 Thread Bharath Bhushan lohray

Bad file descriptor

is generally when there is a fault with the disk...

try on some other server...



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




[PHP] Re: Authentication Question

2002-01-16 Thread Bharath Bhushan Lohray

Create another table with info of accounts.

Auth_table
username(varchar)
password(varchar)
acno(int)

accounts_info_table
acno(int)
info1
info2()

Pass a query
==
select * from accounts_info_table where acno==$abc
==
here $abc is the info you extract from the fauth_table during the login
process.

Hope this is what you wanted to know
I am intrested in your problem.
Please correspond.

Bharath Bhushan Lohray

bharath_b_lohray (at) yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Authentication Question

2002-01-16 Thread Bharath Bhushan Lohray

Create another table with info of accounts.

Auth_table
username(varchar)
password(varchar)
acno(int)

accounts_info_table
acno(int)
info1
info2()

Pass a query
==
select * from accounts_info_table where acno==$abc
==
here $abc is the info you extract from the fauth_table during the login
process.

Hope this is what you wanted to know
I am intrested in your problem.
Please correspond.

Bharath Bhushan Lohray

bharath_b_lohray (at) yahoo.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: HTTP REFERER

2002-02-19 Thread Bharath Bhushan lohray

$HTTP_REFERER

The address of the page (if any) which referred the browser to the current
page. This is set by the user's browser; not all browsers will set this.

-from the php documentation




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




[PHP] Re: problem with mail()/html/outlook

2002-02-19 Thread Bharath Bhushan lohray

A program I had written to send notification to recievers when a greeting
card was sent to them..
=
Ind-e-glow Greetings.Dear
Friend!\nYou have an e greeting waiting for you at http://www.bh-loh-inc.f2s.com.com/\";>http://www.ind-e-glow.com/
sent by $sender. To view you need to 1) logon at
http://www.ind-e-glow.com/2)Click on the view Card.3) Enter
the below mentioned Card ID and the email address in the page that is
displayed nextCard ID :: $Card_ID\n This email ID
::$receiver\nhttp://www.bh-loh-inc.f2s.com/template/disp.php?id=$Card_ID&es=$recei
ver\">Or you may view it directly by clicking here.\nCount on
our best compliments.This is a mechine
generated message. You may Contact us at mailto:[EMAIL PROTECTED]\";>[EMAIL PROTECTED]
";

mail("$receiver","Greetings from Ind-e-glow.com",$msg,"From: Ind-e-Glow
Greetings <[EMAIL PROTECTED]>\nX-Sender:
<[EMAIL PROTECTED]>\nX-Priority: 1\nReply-To: \"$sender\"
<$sender>\nContent-Type: text/html; charset=iso-8859-1\n");

?>

This had worked without problems..

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to send an html email via a php script, but I'm running into a
> rather bizarre problem.  I can get it to send the email just fine, but
when it
> is read on windows Outlook (macintosh outlook express are unaffected)
clients,
> it strips two characters after any '=' signs, so it plays havoc on the
html it
> tries to send:
>
> 
>   
>
> becomes:
> 
>   
> I've read up on this as much as I can and it works for every other client
other
> than MS Outlook under Windows.  Unfortuantely, that's a rather large
percentage
> of people that are going to get a foo'd message of mine.  I know that
there are
> certain mime characters like '=2D' that mean certain things, could it be
that
> i'm not sending the right header and Outlook is interpreting a differnt
mime
> type, therefore munching lines as it parses them?
>
> Any help would be appreciated,
> Ryan C. Creasey
> Network Engineer
> p11creative



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




[PHP] Binary Header

2001-12-07 Thread Bharath Bhushan Lohray

I would like to know which header is sent when files are downloaded. I have
constructed a script which sends binary to the client when he clicks the
download button (Helpful on servers that do not permit storage of .zip
files) but the binary is displayed on the browser window. Are there any
special headers

-Bharath Bhushan Lohray



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Getting started - what do I need?

2001-12-08 Thread Bharath Bhushan Lohray

Fellows who suggested php triad were right!! It is a good option to
downloading PHP, MySQL and Apache!!

Php Comprhensive docs..
www.php.net/download-docs.php

Php tutorials by v s babu-- http://vsbabu.org/tutorials/php/
(you can download it --very good)


"Indera" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I have never used php or mysql before and want to know what tools I should
use so that I can start
> learning php and mysql. I would like to build basic things like a login
page and forms that append
> the data to a database. I went to the bookstore and think the book PHP
fast and easy web development
> is something that I could handle. I've read through some of the posts on
this news group and
> realized that there are tools that I can use as front ends for these
packages. I went to mysql.com
> and php.net and it seems that i can download both of these packages to my
computer for free. Any
> help would be greatly appreciated.
>
> Thanks
> Indera
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Variable Swap?

2001-12-11 Thread Bharath Bhushan Lohray

Is there a way of swapping the values of two variables without involving a
third variable.

something similar to the SWAP(A$,B$) of BASIC

I have a big variable(array) and I want to keep my script's memory
requirements as low as possible.

-Bharath Bhushan Lohray



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Online editor that edits all pages

2001-12-15 Thread Bharath Bhushan Lohray

IT IS NOT POSSIBLE!!!

Php does not permit editing of files on the file system of a remote host. If
you want to edit your php scripts on some free host...then place a dirty
code editor on that system...It may be slow but it is the only solution...

It MIGHT be possible to use the fopen() command and make an editor like
that(your imagination) but you need to set the CHMOD of the files each time
you edit itBut it is a BAD ideaIt is going to be slow..You may get
several errors

If it works...make it a public domain for the advantages of others..




"R. Lindeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 sorry fo.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: spliti[SOLUTION]

2001-12-22 Thread Bharath Bhushan Lohray



Tested and works