[PHP] I need answers for the questions

2003-11-18 Thread Arivazhagi Govindarajan
   PHP Questions

1. Explain about session management and cookies ? In PHP how we can maintain 
a session

2. What is HTTP tunneling

3. How to enable PHP in Apache server manually?

4. When we upload a file using INPUT tag of the type FILE what are global 
variables become available for use in PHP

5. Explain SQL injections ? How we can avoid this

6. Write a small script to connect a MYSQL server in PHP

7. Given a class B network with subnet mask of 255.255.248.0 and a packet 
addressed to 130.40.32.16 whatis subnet address

8. Using single Apache server can we host multiple sites . If yes how can we 
do this if no why it is not possible

9. what is search engine optimization ? In HTML using which tag we can 
attain this?

10. Write a function in PHP script to check whether string is a valid email 
id or not?

_
Garfield on your mobile. Download now. http://server1.msn.co.in/sp03/gprs/ 
How cool can life get?

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


Re: [PHP] I need answers for the questions

2003-11-18 Thread Henrik Hudson
On Tuesday 18 November 2003 01:12,
Arivazhagi Govindarajan [EMAIL PROTECTED] sent a missive stating:

 PHP Questions

 1. Explain about session management and cookies ? In PHP how we can
 maintain a session

http://us3.php.net/session

 3. How to enable PHP in Apache server manually?

http://us3.php.net/manual/en/installation.php


 4. When we upload a file using INPUT tag of the type FILE what are global
 variables become available for use in PHP

http://us2.php.net/features.file-upload

 5. Explain SQL injections ? How we can avoid this

See various web docs. Try Google or PHP site. PLenty of info.

 6. Write a small script to connect a MYSQL server in PHP

http://us2.php.net/function.mysql-connect

 8. Using single Apache server can we host multiple sites . If yes how can
 we do this if no why it is not possible

Yes. 
http://httpd.apache.org/docs/   or   http://httpd.apache.org/docs-2.0/


 10. Write a function in PHP script to check whether string is a valid email
 id or not?

Lookup email and regular expression checking. About 10 examples are here as 
well:
http://us2.php.net/ereg



Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]

`If there's anything more important than my ego
around, I want it caught and shot now.' 
--Hitchhikers Guide to the Galaxy

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



Re: [PHP] I need answers for the questions

2003-11-18 Thread John Nichel
Arivazhagi Govindarajan wrote:
   PHP Questions

1. Explain about session management and cookies ? In PHP how we can 
maintain a session

2. What is HTTP tunneling

3. How to enable PHP in Apache server manually?

4. When we upload a file using INPUT tag of the type FILE what are 
global variables become available for use in PHP

5. Explain SQL injections ? How we can avoid this

6. Write a small script to connect a MYSQL server in PHP

7. Given a class B network with subnet mask of 255.255.248.0 and a 
packet addressed to 130.40.32.16 whatis subnet address

8. Using single Apache server can we host multiple sites . If yes how 
can we do this if no why it is not possible

9. what is search engine optimization ? In HTML using which tag we can 
attain this?

10. Write a function in PHP script to check whether string is a valid 
email id or not?
Anything else?  Do you need your car washed too?

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] I need answers for the questions

2003-11-18 Thread Wouter van Vliet
 -Oorspronkelijk bericht-
 Van: John Nichel [mailto:[EMAIL PROTECTED]

 Arivazhagi Govindarajan wrote:
 PHP Questions
 
  1. Explain about session management and cookies ? In PHP how we can
  maintain a session

While writing PHP code you put your body in risk of getting work related
problems. Manage your PHP Code Writing sessions so that you do not spend
too much time behind your screen. Read about PHP in a book too sometimes, or
print several pages of the online PHP reference manual.

 
  2. What is HTTP tunneling
HTTP is a new brand of car. Drive one through a tunnel and you are HTTP
Tunneling

 
  3. How to enable PHP in Apache server manually?
Ramble your server box several times.

 
  4. When we upload a file using INPUT tag of the type FILE what are
  global variables become available for use in PHP
None, since any self respecting PHP Scripter has register_globals set to
Off

 
  5. Explain SQL injections ? How we can avoid this
A new method exposed by the US and Iraqi government for proteting their
citizens for eachothers weapons of mass desctruction. Expanded to: Single
Query Lineup

 
  9. what is search engine optimization ? In HTML using which tag we can
  attain this?
It's mostly about asking the right questions to Jeeves.com. Make sure you
don't ask him HTML specific questions, since he tends to give you false
answers on that

Here you have it .. I've given you most of the answers, you should be able
to figure the rest out on your own. Make sure to post your grade on the list
to. Especially mail it to me at [EMAIL PROTECTED] cuz I'm rather interested
in how good you did with my answers.

Wouter

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



RE: [PHP] I need answers for the questions

2003-11-18 Thread chris . neale
Ha ha. This looks like your homework. At school some people used to pay
money for other people to do their homework for them (which may have
inspired 'sub-contracting' and consultancy).

Minimal research will get you the answers. RTFM, look on Google, buy a book,
try it for yourself, use your initiative.

C


-Original Message-
From: Arivazhagi Govindarajan [mailto:[EMAIL PROTECTED]
Sent: 18 November 2003 07:12
To: [EMAIL PROTECTED]
Subject: [PHP] I need answers for the questions


PHP Questions

1. Explain about session management and cookies ? In PHP how we can maintain

a session

2. What is HTTP tunneling

3. How to enable PHP in Apache server manually?

4. When we upload a file using INPUT tag of the type FILE what are global 
variables become available for use in PHP

5. Explain SQL injections ? How we can avoid this

6. Write a small script to connect a MYSQL server in PHP

7. Given a class B network with subnet mask of 255.255.248.0 and a packet 
addressed to 130.40.32.16 whatis subnet address

8. Using single Apache server can we host multiple sites . If yes how can we

do this if no why it is not possible

9. what is search engine optimization ? In HTML using which tag we can 
attain this?

10. Write a function in PHP script to check whether string is a valid email 
id or not?

_
Garfield on your mobile. Download now. http://server1.msn.co.in/sp03/gprs/ 
How cool can life get?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
 
If you are not the intended recipient of this e-mail, please preserve the
confidentiality of it and advise the sender immediately of any error in
transmission. Any disclosure, copying, distribution or action taken, or
omitted to be taken, by an unauthorised recipient in reliance upon the
contents of this e-mail is prohibited. Somerfield cannot accept liability
for any damage which you may sustain as a result of software viruses so
please carry out your own virus checks before opening an attachment. In
replying to this e-mail you are granting the right for that reply to be
forwarded to any other individual within the business and also to be read by
others. Any views expressed by an individual within this message do not
necessarily reflect the views of Somerfield.  Somerfield reserves the right
to intercept, monitor and record communications for lawful business
purposes.

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



Re: [PHP] I need answers for the questions

2003-11-18 Thread David T-G
Wouter, et al --

...and then Wouter van Vliet said...
% 
%  -Oorspronkelijk bericht-
%  Van: John Nichel [mailto:[EMAIL PROTECTED]
% 
%  Arivazhagi Govindarajan wrote:
%  PHP Questions
%  
%   1. Explain about session management and cookies ? In PHP how we can
%   maintain a session
% 
% While writing PHP code you put your body in risk of getting work related
% problems. Manage your PHP Code Writing sessions so that you do not spend
% too much time behind your screen. Read about PHP in a book too sometimes, or
% print several pages of the online PHP reference manual.
[snip]

ROFLMAO

*sniff*  Thanks!


HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] I need answers for the questions

2003-11-18 Thread Ryan Thompson
On Tuesday 18 November 2003 02:12, Arivazhagi Govindarajan wrote:
 PHP Questions

 1. Explain about session management and cookies ? In PHP how we can
 maintain a session

 2. What is HTTP tunneling

 3. How to enable PHP in Apache server manually?

 4. When we upload a file using INPUT tag of the type FILE what are global
 variables become available for use in PHP

 5. Explain SQL injections ? How we can avoid this

 6. Write a small script to connect a MYSQL server in PHP

 7. Given a class B network with subnet mask of 255.255.248.0 and a packet
 addressed to 130.40.32.16 whatis subnet address

 8. Using single Apache server can we host multiple sites . If yes how can
 we do this if no why it is not possible

 9. what is search engine optimization ? In HTML using which tag we can
 attain this?

 10. Write a function in PHP script to check whether string is a valid email
 id or not?

 _
 Garfield on your mobile. Download now. http://server1.msn.co.in/sp03/gprs/
 How cool can life get?

What you can't find at php.net/manual/en you can find on google. But I have a 
question for you. Correct me if I'm wrong but isn't a subnet mask of 
255.255.248.0 invalid??? I thought it had to be 255's and 0's.

This seems like laziness..
-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

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



Re: [PHP] I need answers for the questions

2003-11-18 Thread Greg Donald
On Tue, 18 Nov 2003, Ryan Thompson wrote:

What you can't find at php.net/manual/en you can find on google. But I have a 
question for you. Correct me if I'm wrong but isn't a subnet mask of 
255.255.248.0 invalid??? I thought it had to be 255's and 0's.

Umm..  no.  For a given network, say 10.0.0.0, a subnet mask of 
255.255.248.0 yields the following range of possible node addresses: 
10.0.0.1 to 10.0.7.254.

This seems like laziness..

Or homework.


-- 
Greg Donald
http://destiney.com

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



Re: [PHP] I need answers for the questions

2003-11-18 Thread RT
On Tue, 2003-11-18 at 23:55, Greg Donald wrote:
 On Tue, 18 Nov 2003, Ryan Thompson wrote:
 
 What you can't find at php.net/manual/en you can find on google. But I have a 
 question for you. Correct me if I'm wrong but isn't a subnet mask of 
 255.255.248.0 invalid??? I thought it had to be 255's and 0's.
 
 Umm..  no.  For a given network, say 10.0.0.0, a subnet mask of 
 255.255.248.0 yields the following range of possible node addresses: 
 10.0.0.1 to 10.0.7.254.
 
 This seems like laziness..
 
 Or homework.
 
 
 -- 
 Greg Donald
 http://destiney.com
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

Thanks for that clarification. That might actually solve some problems
at work. I didn't know that. Learn something new every day :)

Homework or otherwise. Back when I was in school I had to look it up
myself. I didn't use mailing lists, newsgroups, etc. for easy answers:)
-- 
I have a photographic memory. I just forgot the film --Unknown
=
Ryan Thompson
[EMAIL PROTECTED]
http://osgw.sourceforge.net

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