Re: [PHP] Hi

2010-09-06 Thread kranthi
use some thing like http://uploadify.com


u can always check for the uploaded file extension/mime-type on the server side

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



Re: [PHP] Hi

2010-09-06 Thread chris h
You can check the extension of the uploaded file
http://www.php.net/manual/en/features.file-upload.post-method.php


But to be sure that it's truly a zip file you could actually open the file
with php's zip function.
http://php.net/manual/en/ref.zip.php


Chris.


On Mon, Sep 6, 2010 at 9:46 AM, Jordan Jovanov jovanovj...@gmail.comwrote:

 Hi All

 I need me a little help.
 I create scripte for upload file is work very good but the problem is next:
 I neet to upload only .zip file i need to disable some user to shoise to
 upload another file Extensions.

 Can somebody help me.

 Thanks a lot.

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




Re: [PHP] Hi

2010-09-06 Thread Richard Quadling
On 6 September 2010 14:46, Jordan Jovanov jovanovj...@gmail.com wrote:
 Hi All

 I need me a little help.
 I create scripte for upload file is work very good but the problem is next:
 I neet to upload only .zip file i need to disable some user to shoise to
 upload another file Extensions.

 Can somebody help me.

 Thanks a lot.

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



Using standard HTML ... no. There is nothing in the input type=file
element to instantly limit the file type. You can use JavaScript to
some degree (http://www.codestore.net/store.nsf/unid/DOMM-4Q8H9E for
example).

As far as PHP goes, one of the values returned to you is the
$_FILES['userfile']['type'] property.

If this matches the zip file mime type (application/x-zip but also
application/x-gzip and maybe multipart/x-gzip, multipart/x-zip), then
you have a better chance of knowing it is a zip file.
-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

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



Re: [PHP] Hi

2010-09-06 Thread a...@ashleysheridan.co.uk
I think you should not focus so much on the file extension, as that is mostly 
meaningless if someone wanted to attack your system.

Instead, you could wrap a call to the command line 'file' command, which gives 
mostly accurate information about a file. Basically it reads the first few 
bytes to see it is what it expected. There is a php wrapper for this, but I 
forget what its called just now.

If you do need to just grab a file extension though, you can do it with a call 
to pathinfo() with the 2nd argument of PATHINFO_EXTENSION.

Thanks,
Ash
http://www.ashleysheridan.co.uk

- Reply message -
From: Jordan Jovanov jovanovj...@gmail.com
Date: Mon, Sep 6, 2010 14:46
Subject: [PHP] Hi
To: php-general@lists.php.net
Cc: jovanovj...@gmail.com


Hi All

I need me a little help.
I create scripte for upload file is work very good but the problem is next:
I neet to upload only .zip file i need to disable some user to shoise to 
upload another file Extensions.

Can somebody help me.

Thanks a lot.

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



Re: [PHP] Hi

2010-09-06 Thread Richard Quadling
On 6 September 2010 15:04, a...@ashleysheridan.co.uk
a...@ashleysheridan.co.uk wrote:
 I think you should not focus so much on the file extension, as that is mostly 
 meaningless if someone wanted to attack your system.

 Instead, you could wrap a call to the command line 'file' command, which 
 gives mostly accurate information about a file. Basically it reads the first 
 few bytes to see it is what it expected. There is a php wrapper for this, but 
 I forget what its called just now.

 If you do need to just grab a file extension though, you can do it with a 
 call to pathinfo() with the 2nd argument of PATHINFO_EXTENSION.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk

 - Reply message -
 From: Jordan Jovanov jovanovj...@gmail.com
 Date: Mon, Sep 6, 2010 14:46
 Subject: [PHP] Hi
 To: php-general@lists.php.net
 Cc: jovanovj...@gmail.com


 Hi All

 I need me a little help.
 I create scripte for upload file is work very good but the problem is next:
 I neet to upload only .zip file i need to disable some user to shoise to
 upload another file Extensions.

 Can somebody help me.

 Thanks a lot.

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



How is the ['type'] arrived at within PHP. Is this supplied by the web
server? Or does PHP have to work it out before passing it to userland
code?

Either way, is it not accurate enough?

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

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



Re: [PHP] Hi

2010-09-06 Thread a...@ashleysheridan.co.uk
As far as I can remember It's supplied by the client user agent, hence the big 
issue with jpeg images uploaded by IE, as it uses a different type to all the 
other browsers.

Thanks,
Ash
http://www.ashleysheridan.co.uk

- Reply message -
From: Richard Quadling rquadl...@gmail.com
Date: Mon, Sep 6, 2010 16:13
Subject: [PHP] Hi
To: a...@ashleysheridan.co.uk a...@ashleysheridan.co.uk
Cc: Jordan Jovanov jovanovj...@gmail.com, php-general@lists.php.net


On 6 September 2010 15:04, a...@ashleysheridan.co.uk
a...@ashleysheridan.co.uk wrote:
 I think you should not focus so much on the file extension, as that is mostly 
 meaningless if someone wanted to attack your system.

 Instead, you could wrap a call to the command line 'file' command, which 
 gives mostly accurate information about a file. Basically it reads the first 
 few bytes to see it is what it expected. There is a php wrapper for this, but 
 I forget what its called just now.

 If you do need to just grab a file extension though, you can do it with a 
 call to pathinfo() with the 2nd argument of PATHINFO_EXTENSION.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk

 - Reply message -
 From: Jordan Jovanov jovanovj...@gmail.com
 Date: Mon, Sep 6, 2010 14:46
 Subject: [PHP] Hi
 To: php-general@lists.php.net
 Cc: jovanovj...@gmail.com


 Hi All

 I need me a little help.
 I create scripte for upload file is work very good but the problem is next:
 I neet to upload only .zip file i need to disable some user to shoise to
 upload another file Extensions.

 Can somebody help me.

 Thanks a lot.

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



How is the ['type'] arrived at within PHP. Is this supplied by the web
server? Or does PHP have to work it out before passing it to userland
code?

Either way, is it not accurate enough?

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY


Re: [PHP] Hi

2010-09-06 Thread chris h
On Mon, Sep 6, 2010 at 1:45 PM, chris h chris...@gmail.com wrote:

 Per PHPdocs on $_FILES['userfile']['type']...

 The mime type of the file, if the browser provided this information. An
 example would be image/gif. This mime type is however not checked on the
 PHP side and therefore don't take its value for granted.


 Personally I like to use the file right off-the-bat to ensure it's safe.
  So if it's an image do some kind of image manipulation function on it, if
 it's zip then use some zip functions on it (i.e. if you can read data from a
 zip file using a zip function then it's probably a real zip file).  It can
 be slow, but handling user uploaded files is so dangerous that I think it's
 typically the way to go.


 Chris.



Re: [PHP] Hi!! I Joined the PHP Mailing List

2009-03-09 Thread haliphax
On Mon, Mar 9, 2009 at 12:54 PM, Picu Priya iniad...@gmail.com wrote:
 Hello Everyone, I have just joined the PHP Community.. I hope, I will spend
 good time here.. I am already a PHP programmer, and Love to learn a lot of
 new php tricks while helping others, as best of my knowledge. :)

Hello, and welcome! Just a little FYI--the mailing list archives are
at http://marc.info/?l=php-general ... lots of useful information in
there, and you may find the solution to your problem before you even
need to ask a question!

Happy programming, and again, welcome to the list.


-- 
// Todd

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



Re: [PHP] Hi!! I Joined the PHP Mailing List

2009-03-09 Thread Picu Priya
Thank you all  for the warm welcome. I Love PHP :)

On 3/10/09, haliphax halip...@gmail.com wrote:
 On Mon, Mar 9, 2009 at 12:54 PM, Picu Priya iniad...@gmail.com wrote:
 Hello Everyone, I have just joined the PHP Community.. I hope, I will
 spend
 good time here.. I am already a PHP programmer, and Love to learn a lot of
 new php tricks while helping others, as best of my knowledge. :)

 Hello, and welcome! Just a little FYI--the mailing list archives are
 at http://marc.info/?l=php-general ... lots of useful information in
 there, and you may find the solution to your problem before you even
 need to ask a question!

 Happy programming, and again, welcome to the list.


 --
 // Todd

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




-- 
http://www.iniad.com
Not Just A Link Directory.

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



Re: [PHP] Hi,

2008-11-22 Thread Ashley Sheridan
On Sat, 2008-11-22 at 08:30 -0800, idan72 wrote:
 I would like to write code where the user  will input directory name.
 I want it to be able to browse to directory and choose it.
 
 With HTML if can only choose file.
 
 Can I do that in PHP ?
 
 Thanks
  
 -- 
 View this message in context: 
 http://www.nabble.com/Hi%2C-tp20637953p20637953.html
 Sent from the PHP - General mailing list archive at Nabble.com.
 
 
Yes, look at the PHP file functions, like readdir(), etc. Also, make
sure you consider the possible security problems with this approach.
Potentially, you could have people enter URLs like ../../ to access
directories two levels down, which is real bad.


Ash
www.ashleysheridan.co.uk


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



Re: [PHP] Hi,

2008-11-22 Thread Craige Leeder

idan72 wrote:

I would like to write code where the user  will input directory name.
I want it to be able to browse to directory and choose it.

With HTML if can only choose file.

Can I do that in PHP ?

Thanks
 
  
I have to say I have NO idea what you just said besides you want to 
build a file-system browser in PHP. It can be done very well in PHP, but 
what exactly are you going to do with it? Is it going to be for 
downloading files or something? What happens when you get all the way 
down the directory tree?


- Craige

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



Re: [PHP] Hi. I need your help here

2007-06-24 Thread Alan Milnes

Here are a couple of links that will help you:-

http://uk2.php.net/trim

http://www.catb.org/~esr/faqs/smart-questions.html

Alan

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



Re: [PHP] Hi

2007-04-23 Thread Zoltán Németh
2007. 04. 23, hétfő keltezéssel 22.09-kor Nathan Wallis ezt írta:
 Hi guys and girls,
 
  
 
 I have  question for you all. 
 
  
 
 I have developed a flash application which is a test for students.  For each
 test their is an accompanying excel spreadsheet that has information related
 to each question they have answered and whether they got it right or wrong.
 I am receiving whether the student got the question right or wrong in PHP
 from FLASH.  That part is complete.  The other part I have complete is PHP
 emailing the teacher with an attached excel spreadsheet renamed to the
 studentsname_results.xlsthe last part I want to complete is that of the
 students results being inputted into the correct column in the spreadsheet
 and then being attached to the email.
 
  
 
 I am guessing I would be best to not attach a physical file that resides on
 the server but build the data up inside PHP to resemble the file format I am
 trying to generate and attach that to my email.  
 
  
 
 Two questions.
 
  
 
 Can someone tell me the best format to be sending (i.e. the format that has
 the best support for PHP)  and also is this method dependent on the web
 server being windows or linux based.  I am no expert but from what I can
 gather I take it that COM object support is really just for windows based
 web servers.

yes, COM is only for windows.
I would use csv if you don't need fancy formatting and stuff like that,
just the data itself. csv can be built very easily as it is a simple
text file basically.

greets
Zoltán Németh

 
  
 
 Thanks and all the best,
 
  
 
 Nathan
 

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



Re: [PHP] Hi

2007-04-23 Thread Wolf

You can cheat...

If you have MySQL running on that server, write the results to a DB (so 
that lost emails/files/scores can be recovered) and then do a data pull 
from it at the end, making the file a csv file.


Or, just make your file a csv file and email it out...  There are a 
number of classes out there that will do this for you given DB 
connection/table information.


But I prefer the DB record when talking grades and such, but to each 
their own.


Wolf

Nathan Wallis wrote:

Hi guys and girls,

 

I have  question for you all. 

 


I have developed a flash application which is a test for students.  For each
test their is an accompanying excel spreadsheet that has information related
to each question they have answered and whether they got it right or wrong.
I am receiving whether the student got the question right or wrong in PHP
from FLASH.  That part is complete.  The other part I have complete is PHP
emailing the teacher with an attached excel spreadsheet renamed to the
studentsname_results.xlsthe last part I want to complete is that of the
students results being inputted into the correct column in the spreadsheet
and then being attached to the email.

 


I am guessing I would be best to not attach a physical file that resides on
the server but build the data up inside PHP to resemble the file format I am
trying to generate and attach that to my email.  

 


Two questions.

 


Can someone tell me the best format to be sending (i.e. the format that has
the best support for PHP)  and also is this method dependent on the web
server being windows or linux based.  I am no expert but from what I can
gather I take it that COM object support is really just for windows based
web servers.

 


Thanks and all the best,

 


Nathan




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



Re: [PHP] Hi

2007-04-23 Thread Sancar Saran
On Monday 23 April 2007 15:09, Nathan Wallis wrote:
 Hi guys and girls,



 I have  question for you all.



 I have developed a flash application which is a test for students.  For
 each test their is an accompanying excel spreadsheet that has information
 related to each question they have answered and whether they got it right
 or wrong. I am receiving whether the student got the question right or
 wrong in PHP from FLASH.  That part is complete.  The other part I have
 complete is PHP emailing the teacher with an attached excel spreadsheet
 renamed to the studentsname_results.xlsthe last part I want to complete
 is that of the students results being inputted into the correct column in
 the spreadsheet and then being attached to the email.



 I am guessing I would be best to not attach a physical file that resides on
 the server but build the data up inside PHP to resemble the file format I
 am trying to generate and attach that to my email.



 Two questions.



 Can someone tell me the best format to be sending (i.e. the format that has
 the best support for PHP)  and also is this method dependent on the web
 server being windows or linux based.  I am no expert but from what I can
 gather I take it that COM object support is really just for windows based
 web servers.



 Thanks and all the best,



 Nathan
Hi,
Very long time ago, I had same situation. My Solution was. Generate an excel 
in excell file with nececary Excel format. Save as html. Keep XML document 
structure,

generate a php file someting like
?php
$strReturn = your excell file content in html format;
?

find locations of data, add some .$value1., .$value2. etc in that 
locations with proper escape...

create php script which calculate everting and generate $value1, $value2 etc 
variables
then include that excel-php file...

then send $strReturn or echo.

Regards

Sancar

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



Re: [PHP] Hi!

2005-12-20 Thread Gustav Wiberg

Hi there!

View source-code of output. Maybe that could give you a clue! :-)

/G
http://www.varupiraten.se/

- Original Message - 
From: Nanu Kalmanovitz [EMAIL PROTECTED]

To: php-general@lists.php.net
Sent: Tuesday, December 20, 2005 8:10 PM
Subject: [PHP] Hi!



Hi!

Using a Win 2000 WS (work station), I'm trying to write the first PHP
page as shown at http://il2.php.net/manual/en/tutorial.firstpage.php.

The server is a Netware (Novell) 6.5 running Apache, PHP  MySQL all 3
on same server but different volumes. 



I created the file named hello.php by copying and pasting the following
text to notepad and put it in my web server root directory I:\HTDocs: 

Example 2-1. Our first PHP script: hello.phphtml: 
head

 titlePHP Test/title
/head
body
?php echo 'pHello World/p'; ?
/body
/html


When I am accessing the site with IE browser at the
http://www.kalmanovitz.co.il/hello.php URL address I can see a blank
page.
The other pages are shown correctly.

Any Idea how to fix it and continue with the tutorial?

TIA

Nanu












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



[PHP] Re: בעניין: Re: [PHP] Hi!

2005-12-20 Thread Mike Smith
On 12/20/05, Nanu Kalmanovitz [EMAIL PROTECTED] wrote:

 Thanks!

 Since I am a newbie with the Apache \ PHP \ MySQL, can u tell me what file
 and what shall I add\change in it?

 TIA

 Nanu

Google for install php netware
Try: http://developer.novell.com/ndk/whitepapers/namp.htm

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



RE: [PHP] Hi!

2005-12-20 Thread Erin Fortenberry
It does't look like PHP is setup in Apache.

You should have a line that looks something like this;

And some others that look like this;

AddType application/x-httpd-php .php
AddType application/x-httpd-php .inc
AddType application/x-httpd-php-source .phps


Check out your apache config file.

-Erin


 Hi!
 
 Using a Win 2000 WS (work station), I'm trying to write the first PHP
 page as shown at http://il2.php.net/manual/en/tutorial.firstpage.php.
 
 The server is a Netware (Novell) 6.5 running Apache, PHP  MySQL all 3
 on same server but different volumes. 
 
 
 I created the file named hello.php by copying and pasting the following
 text to notepad and put it in my web server root directory I:\HTDocs: 
 
 Example 2-1. Our first PHP script: hello.phphtml: 
 head
  titlePHP Test/title
 /head
 body
 ?php echo 'pHello World/p'; ?
 /body
 /html
 
 
 When I am accessing the site with IE browser at the
 http://www.kalmanovitz.co.il/hello.php URL address I can see a blank
 page.
 The other pages are shown correctly.
 
 Any Idea how to fix it and continue with the tutorial?
 
 TIA
 
 Nanu
 
 
 
 
 
 
 
 
 


-- 
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] Hi!

2005-12-20 Thread John Nichel

Nanu Kalmanovitz wrote:

Hi!
 
Using a Win 2000 WS (work station), I'm trying to write the first PHP

page as shown at http://il2.php.net/manual/en/tutorial.firstpage.php.
 
The server is a Netware (Novell) 6.5 running Apache, PHP  MySQL all 3
on same server but different volumes. 
 
 
I created the file named hello.php by copying and pasting the following
text to notepad and put it in my web server root directory I:\HTDocs: 
 
Example 2-1. Our first PHP script: hello.phphtml: 
 head

  titlePHP Test/title
 /head
 body
 ?php echo 'pHello World/p'; ?
/body
/html
 


When I am accessing the site with IE browser at the
http://www.kalmanovitz.co.il/hello.php URL address I can see a blank
page.
The other pages are shown correctly.
 
Any Idea how to fix it and continue with the tutorial?


You need to tell Apache how to handle PHP pages.  In your httpd.conf add 
this line :


AddType application/x-httpd-php .php

See here in the manual for further explanation :

http://us2.php.net/manual/en/install.windows.apache1.php

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] hi everyone

2005-12-03 Thread Unknown Unknown
Quiet? you GOTTA be kidding me, i got like 400 PHP email's here, I don't
have to time to read em all

On 12/1/05, Mehmet Fatih AKBULUT [EMAIL PROTECTED] wrote:

 hi.
 me is registered but till now have had no crucial questions to ask :p
 but soon will need professional help on php ldap functions :)
 then will ask for help from you masters :p
 Regards.
 Bye for now.




--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!


Re: [PHP] hi everyone

2005-12-01 Thread Mehmet Fatih AKBULUT
hi.
me is registered but till now have had no crucial questions to ask :p
but soon will need professional help on php ldap functions :)
then will ask for help from you masters :p
Regards.
Bye for now.


Re: [PHP] Hi ALL

2005-02-25 Thread Chris Shiflett
--- Jochem Maas [EMAIL PROTECTED] wrote:
 i have mailed the list 235 times since 12-1-05

Nice trick. :-)

 I'd put my money on Richard Lynch for all categories:
 
 1. total number of posts
 2. highest average no. of posts/week
 3. longest post
 4. total no. of words written
 5. highest average no. of words/post

Richard certainly contributes a lot, and I think he's in the top 10 (Curt
Zirzow actually compiled these statistics a while back), but no one comes
close to John Holmes.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming Soon http://httphandbook.org/

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



Re: [PHP] Hi ALL

2005-02-25 Thread Jason Barnett
Chris Shiflett wrote:
 --- Jochem Maas [EMAIL PROTECTED] wrote:
 

1. total number of posts
2. highest average no. of posts/week
3. longest post
4. total no. of words written
5. highest average no. of words/post
 
 
 Richard certainly contributes a lot, and I think he's in the top 10 (Curt
 Zirzow actually compiled these statistics a while back), but no one comes
 close to John Holmes.

With any luck Mr. Holmes record is going to get smashed by a small,
cute looking little parrot.  0:)

 
 Chris
 
 =
 Chris Shiflett - http://shiflett.org/
 
 PHP Security - O'Reilly HTTP Developer's Handbook - Sams
 Coming Soon http://httphandbook.org/


-- 
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHPsubmitform=Find+search+plugins


signature.asc
Description: OpenPGP digital signature


Re: [PHP] Hi ALL

2005-02-25 Thread Richard Lynch
Chris Shiflett wrote:
 --- Jochem Maas [EMAIL PROTECTED] wrote:
 i have mailed the list 235 times since 12-1-05

 Nice trick. :-)

 I'd put my money on Richard Lynch for all categories:

 1. total number of posts
 2. highest average no. of posts/week
 3. longest post
 4. total no. of words written
 5. highest average no. of words/post

 Richard certainly contributes a lot, and I think he's in the top 10 (Curt
 Zirzow actually compiled these statistics a while back), but no one comes
 close to John Holmes.

There used to be a page on Zend.com that had a break-down summary of posts
per email.

Actually, in a couple cases, he merged emails when it was clearly the
same person posting from different addresses.

I think Stas wrote it, as I recall.

I can't find it now, though :-(

Rasmus Lerdorf was the clear winner at that time.
[shrug]

But, hey, I was gone for a long time, and who knows what tomorrow will
bring.

To a large degree, the number of posts isn't really the best measure
anyway -- I mean, I'm sure we all have our own opinions on who's the best
and who's full of it, and I doubt that sheer number of posts is the first
ruler we use for that... :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] Hi ALL

2005-02-25 Thread John Nichel
Chris Shiflett wrote:
--- Jochem Maas [EMAIL PROTECTED] wrote:
i have mailed the list 235 times since 12-1-05
snip
Richard certainly contributes a lot, and I think he's in the top 10 (Curt
Zirzow actually compiled these statistics a while back), but no one comes
close to John Holmes.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming Soon http://httphandbook.org/
Yeah, not so long ago, when the stats were mailed to the list monthly, I 
was averaging 65-70 posts a month, and John would always be more than 
double that.

I think he just liked to hear himself talk.  ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Hi ALL

2005-02-25 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED]
on Friday, February 25, 2005 9:43 AM said:

 Yeah, not so long ago, when the stats were mailed to the list
 monthly, I was averaging 65-70 posts a month, and John would always
 be more than double that.
 
 I think he just liked to hear himself talk.  ;)

You mean he writes all his emails with voice recognition?!



Chris.

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



Re: [PHP] Hi ALL

2005-02-23 Thread Jochem Maas
Rory Browne wrote:
How to use this list best:
Search the archives at lists.php.net for [NEWBIE GUIDE] It was written
by Jay Blanchard earlier this year I believe. Read it.
heh Rory, is this aimed at me or did you just reply to my mail for
convienience? I happen to know the NEWBIE GUIDE quiet intimately
(n'est pas Jay? :-)
Then read this: http://www.catb.org/~esr/faqs/smart-questions.html
Then try learning PHP from the PHP manual. If you come across a
problem, then explain the problem, AND WHAT STEPS YOU HAVE TAKEN TO
SOLVE THE PROBLEM YOURSELF BEFORE POSTING TO THE LIST.
Give a little back. After you've learn't a little, and you see someone
me again. well i have mailed the list 235 times since 12-1-05 (as far as my 
local
mail folders go atm) - granted not all are useful/valid answers,
- compared to your 7 posts. I feel that I have satisfied the 'little' in
'give a little back' even if you don't :-).
anyway its not a pissing content, besides if it was I'd put my money on
Richard Lynch for all categories:
1. total number of posts
2. highest average no. of posts/week
3. longest post
4. total no. of words written
5. highest average no. of words/post
:-)
else posting a question that you know the answer to an feel you can
explain well, then hit your email clients reply button.
If you want to fit in, and you want to be taken seriously, and most
importantly if you want to learn, then consider the above points.
again is this aimed at me? no biggy but really I don't want to fit
in all that bad
quote person=Groucho Marx
I wouldn't join any club that would have me as a member ;-)
/quote
...

On Tue, 22 Feb 2005 23:21:48 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
Bret Hughes wrote:
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:

hi all,
i m new to this group ...now i want to learn php.
right now? not in five minutes.
I was kidding!

i want all u r guidence  to utilise this group...
thanks in advance
dhanas

Dhanas,
do you have php installed ?
Dhana is very welcome to answer this question, and maybe give
some background as to his/her general skill level
**give us more input Dhana and maybe we can point you in the
right direction**
so come on Dhana - talk to us, tell us what your capable of
and what you would like to accomplish (be specific and start out
small if your a 'virgin programmer' ;-)
can you access http://php.net ? the best place to start
reading/learning

I would start by looking at and dare I say reading the manual at
php.net.  Then surf around for a beginners tutorial, and start coding.
I suspect the learning curve shape depends on whether you have any
previous programming experience or not.
hey! I was looking forward to being utilized. ;-)
my hope is that Dhana is not so stupid that he assumes that my bit of
humor was directly meant to make fun of his command of the english language.
I can find Dhanas use of words funny without requiring that I also
must mock him... besides the fact that I made the joke might be useful feedback
to Dhana with regard to bettering his English - Im sure he/she wishes to be 
able to
communicate as effectively as possible.
going back to your point about 'If you want to fit in': we are in the lower
echelons of hackerdom (for want of a better description). Fitting in entails
acting like a hacker.which means be f** resourceful, read, study, test,
experiment, don't _expect_ to be spoonfed knowledge/answers (heh you may get
lucky once in a while and get a visit from the BlueFairy but don't count on it).
we that was my daily dose of prescribed stress relief :-)

Bret
--
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] Hi ALL

2005-02-23 Thread Rory Browne
Jocham:
Uh???

First of all, no that was not intended at you. Dhanasekar asked a
question, and I answered it. I don't think the rest of your
message/attack is particularly relevent, with the above taken into
account.

I simply saw a question that I knew the answer to, and answered it as
best I could. It wasn't meant to talk down, or state obvious, but
rather to mention things, that people generally don't think of, or in
the case of the newbie guide/smart-question guide, just don't know.

If you are going to judge my 'giving a little back' then try to get
your facts straight. I think my 'giving back' greatly outweighs my
'taking' from this and any other tech forum that I've ever used. I'll
provide you with a sample if necessary.


On Wed, 23 Feb 2005 12:35:29 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
 Rory Browne wrote:
  How to use this list best:
 
  Search the archives at lists.php.net for [NEWBIE GUIDE] It was written
  by Jay Blanchard earlier this year I believe. Read it.
 
 heh Rory, is this aimed at me or did you just reply to my mail for
 convienience? I happen to know the NEWBIE GUIDE quiet intimately
 (n'est pas Jay? :-)
 
 
  Then read this: http://www.catb.org/~esr/faqs/smart-questions.html
 
  Then try learning PHP from the PHP manual. If you come across a
  problem, then explain the problem, AND WHAT STEPS YOU HAVE TAKEN TO
  SOLVE THE PROBLEM YOURSELF BEFORE POSTING TO THE LIST.
 
  Give a little back. After you've learn't a little, and you see someone
 
 me again. well i have mailed the list 235 times since 12-1-05 (as far as my 
 local
 mail folders go atm) - granted not all are useful/valid answers,
 - compared to your 7 posts. I feel that I have satisfied the 'little' in
 'give a little back' even if you don't :-).
 
 anyway its not a pissing content, besides if it was I'd put my money on
 Richard Lynch for all categories:
 
 1. total number of posts
 2. highest average no. of posts/week
 3. longest post
 4. total no. of words written
 5. highest average no. of words/post
 
 :-)
 
  else posting a question that you know the answer to an feel you can
  explain well, then hit your email clients reply button.
 
  If you want to fit in, and you want to be taken seriously, and most
  importantly if you want to learn, then consider the above points.
 
 again is this aimed at me? no biggy but really I don't want to fit
 in all that bad
 
 quote person=Groucho Marx
 I wouldn't join any club that would have me as a member ;-)
 /quote
 
 ...
 
 
 
 
  On Tue, 22 Feb 2005 23:21:48 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
 
 Bret Hughes wrote:
 
 On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
 
 
 hi all,
 i m new to this group ...now i want to learn php.
 
 right now? not in five minutes.
 
 I was kidding!
 
 
 
 i want all u r guidence  to utilise this group...
 thanks in advance
 dhanas
 
 Dhanas,
 
 do you have php installed ?
 
 Dhana is very welcome to answer this question, and maybe give
 some background as to his/her general skill level
 
 **give us more input Dhana and maybe we can point you in the
 right direction**
 
 so come on Dhana - talk to us, tell us what your capable of
 and what you would like to accomplish (be specific and start out
 small if your a 'virgin programmer' ;-)
 
 can you access http://php.net ? the best place to start
 reading/learning
 
 
 
 I would start by looking at and dare I say reading the manual at
 php.net.  Then surf around for a beginners tutorial, and start coding.
 
 I suspect the learning curve shape depends on whether you have any
 previous programming experience or not.
 
 hey! I was looking forward to being utilized. ;-)
 
 my hope is that Dhana is not so stupid that he assumes that my bit of
 humor was directly meant to make fun of his command of the english language.
 
 I can find Dhanas use of words funny without requiring that I also
 must mock him... besides the fact that I made the joke might be useful 
 feedback
 to Dhana with regard to bettering his English - Im sure he/she wishes to be 
 able to
 communicate as effectively as possible.
 
 going back to your point about 'If you want to fit in': we are in the lower
 echelons of hackerdom (for want of a better description). Fitting in entails
 acting like a hacker.which means be f** resourceful, read, study, 
 test,
 experiment, don't _expect_ to be spoonfed knowledge/answers (heh you may get
 lucky once in a while and get a visit from the BlueFairy but don't count on 
 it).
 
 we that was my daily dose of prescribed stress relief :-)
 
 
 
 Bret
 
 
 --
 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] Hi ALL

2005-02-23 Thread Jochem Maas
Rory Browne wrote:
Jocham:
Uh???
First of all, no that was not intended at you. Dhanasekar asked a
question, and I answered it. I don't think the rest of your
message/attack is particularly relevent, with the above taken into
no attack meant - please tell the russians its a false alarm :-)
I wasn't sure who you were talking to I asked because you actually
replied to my post not to the OP.
account.
I simply saw a question that I knew the answer to, and answered it as
best I could. It wasn't meant to talk down, or state obvious, but
rather to mention things, that people generally don't think of, or in
the case of the newbie guide/smart-question guide, just don't know.
which is actually quite difficult IMHO :-)
If you are going to judge my 'giving a little back' then try to get
your facts straight. I think my 'giving back' greatly outweighs my
'taking' from this and any other tech forum that I've ever used. I'll
provide you with a sample if necessary.
wasn't judging, sorry if that caught you the wrong way - I thought that 
maybe
the 'joke' about Richard winning the pissing content made that clear...
nevermind, water under the bridge etc
lets hope Dhana comes back with something we can get our teeth into :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Hi ALL

2005-02-23 Thread Rory Browne
Sorry didn't mean to accuse you of attacking. Just had a more hectic
day than usual, and maybe lost it a bit.

Anyway, this is rapidly getting off topic, so..


On Wed, 23 Feb 2005 16:52:25 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
 Rory Browne wrote:
  Jocham:
  Uh???
 
  First of all, no that was not intended at you. Dhanasekar asked a
  question, and I answered it. I don't think the rest of your
  message/attack is particularly relevent, with the above taken into
 
 no attack meant - please tell the russians its a false alarm :-)
 I wasn't sure who you were talking to I asked because you actually
 replied to my post not to the OP.
 


  account.
 
  I simply saw a question that I knew the answer to, and answered it as
  best I could. It wasn't meant to talk down, or state obvious, but
  rather to mention things, that people generally don't think of, or in
  the case of the newbie guide/smart-question guide, just don't know.
 
 which is actually quite difficult IMHO :-)
 
 
  If you are going to judge my 'giving a little back' then try to get
  your facts straight. I think my 'giving back' greatly outweighs my
  'taking' from this and any other tech forum that I've ever used. I'll
  provide you with a sample if necessary.
 
 wasn't judging, sorry if that caught you the wrong way - I thought that maybe
 the 'joke' about Richard winning the pissing content made that clear...
 nevermind, water under the bridge etc
 
 lets hope Dhana comes back with something we can get our teeth into :-)
 


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



Re: [PHP] Hi ALL

2005-02-22 Thread Bret Hughes
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
 hi all,
 i m new to this group ...now i want to learn php.
 i want all u r guidence  to utilise this group...
 thanks in advance 
 dhanas


I would start by looking at and dare I say reading the manual at
php.net.  Then surf around for a beginners tutorial, and start coding.  

I suspect the learning curve shape depends on whether you have any
previous programming experience or not.

Bret

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



Re: [PHP] Hi ALL

2005-02-22 Thread Jochem Maas
Bret Hughes wrote:
On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
hi all,
i m new to this group ...now i want to learn php.
right now? not in five minutes.
i want all u r guidence  to utilise this group...
thanks in advance 
dhanas

Dhanas,
do you have php installed ?
can you access http://php.net ? the best place to start
reading/learning

I would start by looking at and dare I say reading the manual at
php.net.  Then surf around for a beginners tutorial, and start coding.  

I suspect the learning curve shape depends on whether you have any
previous programming experience or not.
hey! I was looking forward to being utilized. ;-)
Bret
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Hi ALL

2005-02-22 Thread Rory Browne
How to use this list best:

Search the archives at lists.php.net for [NEWBIE GUIDE] It was written
by Jay Blanchard earlier this year I believe. Read it.

Then read this: http://www.catb.org/~esr/faqs/smart-questions.html

Then try learning PHP from the PHP manual. If you come across a
problem, then explain the problem, AND WHAT STEPS YOU HAVE TAKEN TO
SOLVE THE PROBLEM YOURSELF BEFORE POSTING TO THE LIST.

Give a little back. After you've learn't a little, and you see someone
else posting a question that you know the answer to an feel you can
explain well, then hit your email clients reply button.

If you want to fit in, and you want to be taken seriously, and most
importantly if you want to learn, then consider the above points.



On Tue, 22 Feb 2005 23:21:48 +0100, Jochem Maas [EMAIL PROTECTED] wrote:
 Bret Hughes wrote:
  On Tue, 2005-02-22 at 05:27, Dhanasekar T wrote:
 
 hi all,
 i m new to this group ...now i want to learn php.
 
 right now? not in five minutes.
 
 i want all u r guidence  to utilise this group...
 thanks in advance
 dhanas
 
 Dhanas,
 
 do you have php installed ?
 can you access http://php.net ? the best place to start
 reading/learning
 
 
 
  I would start by looking at and dare I say reading the manual at
  php.net.  Then surf around for a beginners tutorial, and start coding.
 
  I suspect the learning curve shape depends on whether you have any
  previous programming experience or not.
 
 hey! I was looking forward to being utilized. ;-)
 
 
  Bret
 
 
 --
 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] hi all can you read me ?

2004-06-21 Thread Daniel Clark
Can read you now().

Hi all just wanna check if you can read me

Thx

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



Re: [PHP] hi all can you read me ?

2004-06-20 Thread Joel Kitching
I'm not quite sure, do you have something written on you?

On Mon, 21 Jun 2004 01:51:51 +0200, Pierre [EMAIL PROTECTED] wrote:
 
 Hi all just wanna check if you can read me
 
 Thx
 


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



Re: [PHP] hi all can you read me ?

2004-06-20 Thread Marek Kilimajer
Pierre wrote --- napísal::
Hi all just wanna check if you can read me
Thx
http://www.amazon.com/exec/obidos/tg/detail/-/0064432521/qid=1087779137
Well, I feel a little old to read you :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] hi all can you read me ?

2004-06-20 Thread Michael Lauzon
That's just to funny!

On Mon, 21 Jun 2004 02:55:58 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
 
 Pierre wrote --- napísal::
 
  Hi all just wanna check if you can read me
 
  Thx
 
 http://www.amazon.com/exec/obidos/tg/detail/-/0064432521/qid=1087779137
 
 Well, I feel a little old to read you :-)
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
Michael Lauzon, Founder
The Quill Society
http://www.quillsociety.org/
[EMAIL PROTECTED]

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



Re: [PHP] Hi

2003-07-23 Thread skate
the poker game is actually really weak anyway...

a pair of 6's shouldn't win anything...

- Original Message -
From: Rausch Alexandru [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 9:42 AM
Subject: [PHP] Hi


MYSQL problems problems.
I want to install an user login aplicationa on my site, but it is intarely
in FLASH. ( www.poker.club66.ro ).
What do u think?




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



Re: [PHP] Hi

2003-07-22 Thread CPT John W. Holmes
Quit spamming us. We don't want to visit your lousy poker site.

---John Holmes...

- Original Message - 
From: Rausch Alexandru [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 4:42 AM
Subject: [PHP] Hi


MYSQL problems problems.
I want to install an user login aplicationa on my site, but it is intarely
in FLASH. ( www.poker.club66.ro ).
What do u think?


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



Re: [PHP] Hi All i need help..

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, Beogradjanin claimed that:

|Hi All I want to install PHP under Suse 8.2. How can I do it?
|
|
|
|Thanks

Unless you have a custom install, probably the easiest way is to install
the rpms through YaST.

-- 
Registered Linux user #304026.
lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import
Key fingerprint = 52FC 20BD 025A 8C13 5FC6  68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.



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



RE: [PHP] Hi I get some problems while using eregi_replace

2003-06-09 Thread Boaz Yahav
Try these :

A function that parses a string and replaces http://whatever with a
link, and email addresses 
with a mailto link. This function was designed for the motd package. But
will work freely on its own. 
http://examples.weberdev.com/get_example.php3?count=1235


How to change all of the links in a string to be HTML links.
http://examples.weberdev.com/get_example.php3?count=1567



Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.




-Original Message-
From: winst0n [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 09, 2003 5:23 AM
To: php
Subject: [PHP] Hi I get some problems while using eregi_replace


Hi, so first of all, I'm sorry for my bad english.
I'll try to write as better as I can, but I think it will be readable ;)

So, this is 3 code unsing eregi_replace, but they dont work as well...

If some one can give me a help, it's will be great.

Many thx !

/ code /

/* transform [color=FF]colored text[/color] to font
color=FFcolored text/font */ $message = eregi_replace
([color=(.*)](.*)[/color],font
color='\\1'\\2/font,$message);

/* transform [url=xxx]link![/url] to a href=xxxlink!/a */ $message
= eregi_replace ([url=(.*)](.*)[/url],A HREF=\\\1\
TARGET=\blank\\\2/A,$message);

/* transform [b]big text[/b] to bbig text/b */
$message = eregi_replace
(.*([b]).*([/b]).*,\\1b\\2/b\\3,$message);


-- 
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] Hi I get some problems while using eregi_replace

2003-06-08 Thread poetbox
hi,php-generalwinst0n

 I'm from china,my English is not very good,too.
 Here's some example,perhaps it will help you a little.

 $post =str_replace([b],b,$post);
 $post =str_replace([/b],/b,$post);
 $post = eregi_replace(\\[hr=([^\\[]*)\\],hr width=\\1 align=left,$post);
 $post=eregi_replace(\\[swf\\](.+\.swf)\\[/swf\\],PARAM NAME=PLAY 
VALUE=TRUEPARAM NAME=LOOP VALUE=TRUEPARAM NAME=QUALITY VALUE=HIGHembed 
src=\\\1\ quality=high 
pluginspage=\http://www.macromedia.com/shockwave/download/indexcgi?P1_Prod_Version=ShockwaveFlash\;
 type=\application/x-shockwave-flash\
width=\580\ height=\400\/embed   a href=\\\1\ target=_blanknbsp 
/a,$post);






poetbox
[EMAIL PROTECTED]
2003-06-09




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



Re: [PHP] Hi!!

2002-12-16 Thread Chris Shiflett
--- Tomas Lopez [EMAIL PROTECTED] wrote:
 can someone tell me where can i enroll in a 
 good proyect o someone to help..

I would recommend finding an open source project to
contribute to. You can find many projects that are
currently seeking help here:

http://sourceforge.net/people/

Chris

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




Re: [PHP] hi

2002-06-11 Thread Liam MacKenzie

Err, that's not going to unsubscribe you mate...

Follow the directions at the bottom of the email.



- Original Message - 
From: Bjorn Abt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 12, 2002 12:07 AM
Subject: [PHP] hi


 unsubscribe
 




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




Re: [PHP] Hi all Help :D

2002-06-01 Thread Anthony

I have sorted the problem, thanks for all the support


Adam Voigt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Try reversing the filelocations in your ftp_put, like
 if you have remotelocation and mylocation, switch
 them to say mylocation then remotelocation. Just
 a thought.

 Adam Voigt
 [EMAIL PROTECTED]

 On Thu, 2002-05-30 at 22:26, Anthony wrote:
  Hi all, this is my first post on the php news groups, and im sure it
wont be
  my last so I will first introduce my self, because im sure there are
some
  regualar posters ;)
 
  My name is Anthony.. Im 14 years old and live in england, anything else
you
  want to know ask :)
 
  Im working on a FTP uploader in php, but not for my own site, I want to
  offer it was a service to so over people can upload to there sites using
my
  FTP script... but when you put the destonation (once they have
connected) to
  / it trys to upload to a path in my site.. can any one explain why this
is
  and how to correct it, It would be aprechiated a lot, thanks
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 




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




Re: [PHP] Hi all Help :D

2002-05-30 Thread Ed Gorski

hehI laugh but it's not past the realm of what people do...

JHFor all we know, the problem is because you actually wrote the program 
in Pascal, but thought it was PHP because you renamed your computer to PHP 
and you are trying to load the code up in MS Word on Windows 3.11.


ed
At 02:47 PM 5/30/2002 -0400, 1LT John W. Holmes wrote:
Two things you should learn:

1. Use a informative Subject. Give a description of the problem instead of 
Hi and Help...

2. We can't help you if you don't give us code and error messages. For all 
we know, the problem is because you actually wrote the program in Pascal, 
but thought it was PHP because you renamed your computer to PHP and you 
are trying to load the code up in MS Word on Windows 3.11.

---John Holmes...

Anthony [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Hi all, this is my first post on the php news groups, and im sure it 
 wont be
  my last so I will first introduce my self, because im sure there are some
  regualar posters ;)
 
  My name is Anthony.. Im 14 years old and live in england, anything else you
  want to know ask :)
 
  Im working on a FTP uploader in php, but not for my own site, I want to
  offer it was a service to so over people can upload to there sites using my
  FTP script... but when you put the destonation (once they have 
 connected) to
  / it trys to upload to a path in my site.. can any one explain why this is
  and how to correct it, It would be aprechiated a lot, thanks
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 


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




Re: [PHP] Hi all Help :D

2002-05-30 Thread Adam Voigt

Try reversing the filelocations in your ftp_put, like
if you have remotelocation and mylocation, switch
them to say mylocation then remotelocation. Just
a thought.

Adam Voigt
[EMAIL PROTECTED]

On Thu, 2002-05-30 at 22:26, Anthony wrote:
 Hi all, this is my first post on the php news groups, and im sure it wont be
 my last so I will first introduce my self, because im sure there are some
 regualar posters ;)
 
 My name is Anthony.. Im 14 years old and live in england, anything else you
 want to know ask :)
 
 Im working on a FTP uploader in php, but not for my own site, I want to
 offer it was a service to so over people can upload to there sites using my
 FTP script... but when you put the destonation (once they have connected) to
 / it trys to upload to a path in my site.. can any one explain why this is
 and how to correct it, It would be aprechiated a lot, thanks
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




Re: [PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread Scott St. John

? echo phpinfo(); ?


On Mon, 1 Apr 2002, vins wrote:

 Happy Happy Easter.
 and to all you peeps out there who don't celebrate this day.
 Hope you enjoyed your day.
 
 And just too keep the cool
 How do i run that script that give all the information about php ?
 Someone told me the you type PHPINFO();
 but it sometimes doesn't work
 
 Cheerz
 Spammer Vins
 
 
 
 

-- 



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




RE: [PHP] Hi to you anti-spammers HAHA

2002-04-01 Thread Vlad Kulchitski

Phpinfo(); works all the time, unless you went ahead and reprogrammed php yourself :)

Hello to AFRIKA from SOVIETS!   CCCP rules!


-Original Message-
From: vins [mailto:[EMAIL PROTECTED]] 
Sent: 1 êâ³òíÿ 2002 ð. 15:43
To: [EMAIL PROTECTED]
Subject: [PHP] Hi to you anti-spammers HAHA

Happy Happy Easter.
and to all you peeps out there who don't celebrate this day.
Hope you enjoyed your day.

And just too keep the cool
How do i run that script that give all the information about php ?
Someone told me the you type PHPINFO();
but it sometimes doesn't work

Cheerz
Spammer Vins



-- 
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] Hi!

2002-03-22 Thread Rick Emery

 How is possible to click on an image and run a php function?
A href=./thescript.phpIMG src=image.jpg/A

 Also how is possible to pass some php vars to javascript vars?
Can't do it directly.  JavaScript is client-side.  PHP is server-side.  As
you execute a PHP script, it will create the values for the JavaScript
source that PHP is creating.

-Original Message-
From: savaidis [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 1:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Hi!


Hi all!

I'm quite new to PHP so I have two questions:

How is possible to click on an image and run a php function?

Also how is possible to pass some php vars to javascript vars?


Makis
Thessaloniki
Greece

-- 
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] Hi! Is there any equivalent function with header?

2002-03-19 Thread Jason Wong

On Tuesday 19 March 2002 22:20, Balaji Ankem wrote:
 Hi friend,
   Is there any equivalent statement to header (Location:
 user.php);
   Because I am getting problem with that line in fresh browser
 context.


The correct usage is:

header (Location: http://www.domain.com/user.php;);


ie you need the full URL.

   How to see the php error log? And how to display an error
 messages in php?

Read the chapter on Error Handling




-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
A man without a woman is like a statue without pigeons.
*/

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




RE: [PHP] Hi! Is there any equivalent function with header?

2002-03-19 Thread Balaji Ankem

Thanks for the reply!!!
I want equivalent statement to  header (Location:
http://www.domain.com/user.php;);

Because I am getting the problem saying php.exe has generated errors
and will be closed by windows. You need to restart the program. An error
log is being created And no error is logged in error log.

Thanks in advance
Balaji

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 19, 2002 7:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Hi! Is there any equivalent function with header?


On Tuesday 19 March 2002 22:20, Balaji Ankem wrote:
 Hi friend,
   Is there any equivalent statement to header (Location:
user.php);
   Because I am getting problem with that line in fresh browser
 context.


The correct usage is:

header (Location: http://www.domain.com/user.php;);


ie you need the full URL.

   How to see the php error log? And how to display an error
messages in 
 php?

Read the chapter on Error Handling




-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
A man without a woman is like a statue without pigeons.
*/

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



**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



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


Re: [PHP] Hi! Is there any equivalent function with header?

2002-03-19 Thread Joe Webster

I wouldn't say you NEED a full url, it should handle relative URL's as well.
I don't know if it's part of the specification, but it will work.
As far as your problem I hope that line break isn't in the string and it's
just there because of the email.

-Joe

Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 On Tuesday 19 March 2002 22:20, Balaji Ankem wrote:
  Hi friend,
  Is there any equivalent statement to header (Location:
  user.php);
  Because I am getting problem with that line in fresh browser
  context.


 The correct usage is:

 header (Location: http://www.domain.com/user.php;);


 ie you need the full URL.

  How to see the php error log? And how to display an error
  messages in php?

 Read the chapter on Error Handling




 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk

 /*
 A man without a woman is like a statue without pigeons.
 */



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




RE: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Jon Haworth

 Unixtimestamp from Mysql :1016679600 
 Unixtimestamp from PHP   :953699601 
 y this much difference?

A PHP timestamp is the number of seconds since 1st Jan 1970

A MySQL UNIX_TIMESTAMP is the date in MMDDHHMMSS format.

Cheers
Jon

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




Re: [PHP] Hi what is the prob with this small file?

2002-03-14 Thread Jason Wong

On Thursday 14 March 2002 17:38, Balaji Ankem wrote:

[snip]

   $sql1=select UNIX_TIMESTAMP('start_date')
 startdate,UNIX_TIMESTAMP('end_date') enddate  from request where
 req_status='Approved';

Did you try entering this query ($sql1) into mysql at the command line to 
ensure that it's valid and returns some results?


 I am getting values printed is 0.

 Actually UNIX_TIMESTAMP(2001:03:21 10:45:00) means what?
 What it returns?

UNIX_TIMESTAMP returns the number of seconds between the unix epoch 
(1970-01-01 00:00:00) and the date.


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
A certain amount of opposition is a help, not a hindrance. Kites rise
against the wind, not with it.
*/

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




Re: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Rasmus Lerdorf

UNIX_TIMESTAMP(2002-03-21 08:30:00) and
mktime(2002,03,21,08,30,00) equal or not?

Careful, 08 != 8

A leading 0 indicates an octal number in PHP.

Also, you have the arguments to mktime() completely messed up.  It is
hour, minute, second, month, day, year.  2002 is a strange-looking hour.

-Rasmus


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




Re: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Jason Wong

On Thursday 14 March 2002 18:03, Balaji Ankem wrote:
 Hi,
UNIX_TIMESTAMP(2002-03-21 08:30:00) and
mktime(2002,03,21,08,30,00) equal or not?

   But both are same timestamp..but returning values are
 different.y?

  Unixtimestamp from Mysql :1016679600
  Unixtimestamp from PHP   :953699601

   y this much difference?

The arguments you're giving to mktime are in the wrong order.

mktime (hour, minute, second, month, day, year [, is_dst]);


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
186,282 miles per second:
It isn't just a good idea, it's the law!
*/

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




Re: [PHP] Hi what is diff. Between mktime() and UNIX_TIMESTAMP()

2002-03-14 Thread Jason Wong

On Thursday 14 March 2002 18:11, Jon Haworth wrote:
  Unixtimestamp from Mysql :1016679600
  Unixtimestamp from PHP   :953699601
  y this much difference?

 A PHP timestamp is the number of seconds since 1st Jan 1970

To be pedantic, in PHP it is time()

 A MySQL UNIX_TIMESTAMP is the date in MMDDHHMMSS format.

Not correct. In MySQL UNIX_TIMESTAMP also returns the number of seconds since 
the unix epoch.

Thus:

php   -- time();
mysql -- select UNIX_TIMESTAMP();

should both return the same value;


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
In the next world, you're on your own.
*/

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




RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Ford, Mike [LSS]

 -Original Message-
 From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
 Sent: 14 March 2002 11:51
 
 Hi friend,
   I need some help on this logic...
 
 
 1. I have some range (A to B) which is fixed and A,B are very large
 numbers.(AB)
 
 2. I have X to Y and I want to check this range should not 
 match with A
 to B.
 
   How can I check this?

If I understand you correctly, this should do it:

if (($X$A  $Y$A) || ($X$B  $Y$B)):
   // range X-Y is totally outside range A-B
else:
   // range X-Y overlaps A-B partially or totally
endif;

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning  Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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




RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén

First of all, take that 'I want to know when you received my e-mail'
-thingie away. It's anoying.

But to the solution:

if ((x  A || x  B)  (y  A || x  B))
{
do something..
}


Niklas


-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
Sent: 14. maaliskuuta 2002 13:51
To: Php-General
Subject: [PHP] Hi some logic help is required!



Hi friend,
I need some help on this logic...


1. I have some range (A to B) which is fixed and A,B are very large
numbers.(AB)

2. I have X to Y and I want to check this range should not match with A
to B.

How can I check this?


Ex:

1)  A=4   B=8

Totally 4 cases will come!!

X=2 Y=5
X=5 Y=6
X=2 Y=9
X=6 Y=9

In all the above cases that logic should return false.

How can I solve this?? Don't use for loop!(Because those are
very large numbers (chrores))

And logic should be simple and cute!


Cheers
Balaji



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




RE: [PHP] Hi some logic help is required!!!!!

2002-03-14 Thread Niklas Lampén

Last X should be Y.


Niklas


-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]] 
Sent: 14. maaliskuuta 2002 14:05
To: Php-General
Subject: RE: [PHP] Hi some logic help is required!


First of all, take that 'I want to know when you received my e-mail'
-thingie away. It's anoying.

But to the solution:

if ((x  A || x  B)  (y  A || x  B))
{
do something..
}


Niklas


-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
Sent: 14. maaliskuuta 2002 13:51
To: Php-General
Subject: [PHP] Hi some logic help is required!



Hi friend,
I need some help on this logic...


1. I have some range (A to B) which is fixed and A,B are very large
numbers.(AB)

2. I have X to Y and I want to check this range should not match with A
to B.

How can I check this?


Ex:

1)  A=4   B=8

Totally 4 cases will come!!

X=2 Y=5
X=5 Y=6
X=2 Y=9
X=6 Y=9

In all the above cases that logic should return false.

How can I solve this?? Don't use for loop!(Because those are
very large numbers (chrores))

And logic should be simple and cute!


Cheers
Balaji



-- 
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] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Niklas Lampén

Do you want to do this in mySQL or PHP?


Niklas

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
Sent: 12. maaliskuuta 2002 12:30
To: 'Php-General'
Subject: [PHP] Hi How to convert the time from mysql(DATETIME) table to
the format DD/MM/ HH:MM AM or PM in PHP?


Hi,
I have stored the date and time in mysql table with DATETIME
type.

I want to change it in to DD/MM/ HH:MM AM or PM.

How can I do this?

Thanks in advance
Balaji



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




RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Balaji Ankem

Thankyou for reply!!

I want to do it in PHP.

Thanks in advance
Balaji

-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 4:04 PM
To: Php-General
Subject: RE: [PHP] Hi How to convert the time from mysql(DATETIME) table
to the format DD/MM/ HH:MM AM or PM in PHP?


Do you want to do this in mySQL or PHP?


Niklas

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
Sent: 12. maaliskuuta 2002 12:30
To: 'Php-General'
Subject: [PHP] Hi How to convert the time from mysql(DATETIME) table to
the format DD/MM/ HH:MM AM or PM in PHP?


Hi,
I have stored the date and time in mysql table with DATETIME
type.

I want to change it in to DD/MM/ HH:MM AM or PM.

How can I do this?

Thanks in advance
Balaji



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



**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



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


Re: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Jason Wong


 Hi,
   I have stored the date and time in mysql table with DATETIME
 type.

   I want to change it in to DD/MM/ HH:MM AM or PM.

   How can I do this?

When you select the 'datetime' field from mysql use UNIX_TIMESTAMP().

Then in PHP use strftime() to format the 'datetime' field to your liking.



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Happiness isn't something you experience; it's something you remember.
-- Oscar Levant
*/

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




RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Niklas Lampén

You have to parse your dates in anyway you like best to pieces, then use
mktime() and then date() function. :)


Niklas

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
Sent: 12. maaliskuuta 2002 12:35
To: [EMAIL PROTECTED]; 'Php-General'
Subject: RE: [PHP] Hi How to convert the time from mysql(DATETIME) table
to the format DD/MM/ HH:MM AM or PM in PHP?


Thankyou for reply!!

I want to do it in PHP.

Thanks in advance
Balaji

-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 4:04 PM
To: Php-General
Subject: RE: [PHP] Hi How to convert the time from mysql(DATETIME) table
to the format DD/MM/ HH:MM AM or PM in PHP?


Do you want to do this in mySQL or PHP?


Niklas

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]] 
Sent: 12. maaliskuuta 2002 12:30
To: 'Php-General'
Subject: [PHP] Hi How to convert the time from mysql(DATETIME) table to
the format DD/MM/ HH:MM AM or PM in PHP?


Hi,
I have stored the date and time in mysql table with DATETIME
type.

I want to change it in to DD/MM/ HH:MM AM or PM.

How can I do this?

Thanks in advance
Balaji



-- 
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] Hi How to convert the mysql(DATETIME) time to the format DD/MM/YYYY HH:MM AM or PM using PHP?

2002-03-12 Thread Balaji Ankem


Hi friend,
I never ued strftime function. I am confusing with the syntax.

My problem is like this:

I have the DATETIME in the variable $row-fromdate as -MM-DD
HH:MM:SS.


Is it possible to convert it to DD/MM/ HH:MM AM or PM using
strftime() function?


//Is below code is correct

$time=strftime([%a%b%C%d%I%p],$row-fromdate);

echo '$time';

Thanks in advance.
Balaji



-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 4:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Hi How to convert the time from mysql(DATETIME) table
to the format DD/MM/ HH:MM AM or PM in PHP?



 Hi,
   I have stored the date and time in mysql table with DATETIME
type.

   I want to change it in to DD/MM/ HH:MM AM or PM.

   How can I do this?

When you select the 'datetime' field from mysql use UNIX_TIMESTAMP().

Then in PHP use strftime() to format the 'datetime' field to your
liking.



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Happiness isn't something you experience; it's something you remember.
-- Oscar Levant
*/

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



**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



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


Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker

On Tue, 12 Mar 2002, Balaji Ankem wrote:

http://www.php.net/manual/en/function.strtotime.php

you can compare the results with   =, etc...

 Hi,
   I would like to compare the two dates (including time stamp)
 using php.
   Is it possible?
 
   Any help would be apprciable.
 
 Thanks in advance
 Balaji
 
 

-- 
Jan Rademaker [EMAIL PROTECTED]
http://www.ottobak.com



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




RE: [PHP] Hi How to compare two dates using PHP which are from mysql database?

2002-03-12 Thread Balaji Ankem

Hi Jan,
I want to compare the DTAETIME1,DATETIME2 which are from mysql
table and want to compare in PHP.
But strtotime takes only one argument and it checks whether it
is valid or not.

Balaji

-Original Message-
From: Jan Rademaker [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 6:40 PM
To: Balaji Ankem
Cc: Php-General
Subject: Re: [PHP] Hi How to compare two dates using PHP which are from
mysql database?


On Tue, 12 Mar 2002, Balaji Ankem wrote:

http://www.php.net/manual/en/function.strtotime.php

you can compare the results with   =, etc...

 Hi,
   I would like to compare the two dates (including time stamp)
using 
 php.
   Is it possible?
 
   Any help would be apprciable.
 
 Thanks in advance
 Balaji
 
 

-- 
Jan Rademaker [EMAIL PROTECTED]
http://www.ottobak.com




**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



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


Re: [PHP] Hi How to compare two dates using PHP which are from mysql database?

2002-03-12 Thread Jason Lotito

Why not compare them in the SQL Query itself?

Jason Lotito
www.newbienetwork.net

- Original Message -
From: Balaji Ankem [EMAIL PROTECTED]
To: 'Jan Rademaker' [EMAIL PROTECTED]
Cc: Php-General [EMAIL PROTECTED]
Sent: Tuesday, March 12, 2002 8:37 AM
Subject: RE: [PHP] Hi How to compare two dates using PHP which are from
mysql database?


 Hi Jan,
 I want to compare the DTAETIME1,DATETIME2 which are from mysql
 table and want to compare in PHP.
 But strtotime takes only one argument and it checks whether it
 is valid or not.

 Balaji

 -Original Message-
 From: Jan Rademaker [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 12, 2002 6:40 PM
 To: Balaji Ankem
 Cc: Php-General
 Subject: Re: [PHP] Hi How to compare two dates using PHP which are from
 mysql database?


 On Tue, 12 Mar 2002, Balaji Ankem wrote:

 http://www.php.net/manual/en/function.strtotime.php

 you can compare the results with   =, etc...

  Hi,
  I would like to compare the two dates (including time stamp)
 using
  php.
  Is it possible?
 
  Any help would be apprciable.
 
  Thanks in advance
  Balaji
 
 

 --
 Jan Rademaker [EMAIL PROTECTED]
 http://www.ottobak.com









 --
 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] Hi How to convert the mysql(DATETIME) time to the format DD/MM/YYYY HH:MM AM or PM using PHP?

2002-03-12 Thread Jason Wong

On Tuesday 12 March 2002 19:43, Balaji Ankem wrote:
 Hi friend,
   I never ued strftime function. I am confusing with the syntax.

   My problem is like this:

   I have the DATETIME in the variable $row-fromdate as -MM-DD
 HH:MM:SS.


   Is it possible to convert it to DD/MM/ HH:MM AM or PM using
 strftime() function?


   //Is below code is correct

   $time=strftime([%a%b%C%d%I%p],$row-fromdate);

   echo '$time';

strftime() requires a unix-timestamp as an input.

In your db query do:

 SELECT UNIX_TIMESTAMP(fromdate) AS from_date FROM table;

Then:

 $time=strftime(some format, $row-from_date);


hth
-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
If you are honest because honesty is the best policy, your honesty is corrupt.
*/

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




RE: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker

On Tue, 12 Mar 2002, Balaji Ankem wrote:

 Hi Jan,
   I want to compare the DTAETIME1,DATETIME2 which are from mysql
 table and want to compare in PHP.
   But strtotime takes only one argument and it checks whether it
 is valid or not.

True, after you've fetched a record with, e.g. $row =
mysql_fetch_row($result) use

if (strtotime($row[DATETIME1])  strtotime($row[DATETIME2])) {
...
}

or whatever you desire...

 
 Balaji
 
 -Original Message-
 From: Jan Rademaker [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, March 12, 2002 6:40 PM
 To: Balaji Ankem
 Cc: Php-General
 Subject: Re: [PHP] Hi How to compare two dates using PHP which are from
 mysql database?
 
 
 On Tue, 12 Mar 2002, Balaji Ankem wrote:
 
 http://www.php.net/manual/en/function.strtotime.php
 
 you can compare the results with   =, etc...
 
  Hi,
  I would like to compare the two dates (including time stamp)
 using 
  php.
  Is it possible?
  
  Any help would be apprciable.
  
  Thanks in advance
  Balaji
  
  
 
 

-- 
Jan Rademaker [EMAIL PROTECTED]
http://www.ottobak.com



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




Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker

On Tue, 12 Mar 2002, Jason Lotito wrote:

 Why not compare them in the SQL Query itself?
 

That could work just as well, depending in what you want to do with the
data.

-- 
Jan Rademaker [EMAIL PROTECTED]
http://www.ottobak.com



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




RE: [PHP] Hi can we write a form inside td element of a table?

2002-03-12 Thread Rick Emery

TRTDINPUT type=text name=mytext/TR


-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 12:12 AM
To: Php-General
Subject: [PHP] Hi can we write a form inside td element of a table?


Hi,
can we give a form element as td inside table element?

Thanks in advance
Balaji


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




Re: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Faisal Abdullah

Try
date(d/m/Y h:m A);


On Tuesday 12 March 2002 18:29, Balaji Ankem wrote:
 Hi,
   I have stored the date and time in mysql table with DATETIME
 type.

   I want to change it in to DD/MM/ HH:MM AM or PM.

   How can I do this?

 Thanks in advance
 Balaji

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




RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Balaji Ankem

Hi,
I already have the date in mysql (DATETIME)format in variable
called $start_date.
I would like to convert that in to the form DD/MM/ HH:MM AM
or PM.

Thanks in advance.

-Balaji
-Original Message-
From: Faisal Abdullah [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 7:04 AM
To: Balaji Ankem; 'Php-General'
Subject: Re: [PHP] Hi How to convert the time from mysql(DATETIME) table
to the format DD/MM/ HH:MM AM or PM in PHP?


Try
date(d/m/Y h:m A);


On Tuesday 12 March 2002 18:29, Balaji Ankem wrote:
 Hi,
   I have stored the date and time in mysql table with DATETIME
type.

   I want to change it in to DD/MM/ HH:MM AM or PM.

   How can I do this?

 Thanks in advance
 Balaji

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



**Disclaimer
  


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 



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


Re: [PHP] Hi problem with selected value!!

2002-03-11 Thread Edward van Bilderbeek - Bean IT

guess that should be:

alert(document.babai.bongu.selectedIndex);

Greets,

Edward

- Original Message -
From: Balaji Ankem [EMAIL PROTECTED]
To: Php-General [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 11:23 AM
Subject: [PHP] Hi problem with selected value!!


 Hi friend,
   could u plz. Tell me how to display the slected option value in alert
 box?

 Code I wrote is like this.. But I am getting NULL.. Any help would be
 appreciable..

 =
 html


 head


 script language=Javascript

 function check()
 {
 var a;
 alert(document.babai.bongu.value); // Is it correct??
 return true;
 }

 /script


 /head


 body
 form name=babai

 select name=bongu
 option value=/optiuon
 option value=1212/optiuon
 option value=1313/optiuon

 /select
 input type=submit value=check onclick=check();
 /form
 /body
 /html
 

 Thanks in advance
 Balaji








 --
 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] Hi

2002-02-28 Thread S.Murali Krishna


Hi dharma
Better go about PHP manual ( since I started with that ). 
when you finish that, you would have some idea on where to go further.

On Thu, 28 Feb 2002, dharmavatar wrote:

 Hi everybody,
 I am new in this group,so could any one tell me how to start learn PHP?
 I had install PHP in IIS so where is good place to start.
 Thanks in advance.
 Regards
 Dharmavatar
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] Hi

2002-02-28 Thread Simon Willison

dharmavatar wrote:

Hi everybody,
I am new in this group,so could any one tell me how to start learn PHP?
I had install PHP in IIS so where is good place to start
Thanks in advance
Regards
Dharmavatar

wwwdevshedcom has some excellent beginners tutorials in their PHP 
section (the PHP 101 series) Also check out this post I made on a web 
forum a while ago, it has a large number of beginners resources listed:

http://wwwsitepointforumscom/showthreadphp?s=threadid=18699


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] Hi

2002-02-28 Thread Andy

http://www.phpbuilder.com is an excellent site. Features articles and
tutorials!

Good luck

Andy




Simon Willison [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED];
 dharmavatar wrote:

 Hi everybody,
 I am new in this group,so could any one tell me how to start learn PHP?
 I had install PHP in IIS so where is good place to start.
 Thanks in advance.
 Regards
 Dharmavatar
 
 www.devshed.com has some excellent beginners tutorials in their PHP
 section (the PHP 101 series). Also check out this post I made on a web
 forum a while ago, it has a large number of beginners resources listed:

 http://www.sitepointforums.com/showthread.php?s=threadid=18699




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




Re: [PHP] Hi - newbie questions...

2002-01-31 Thread Miles Thompson

You've got an interesting mix of PHP and HTML questions, and some reading 
will be required.

At 01:56 AM 1/31/2002 +0100, Pafo wrote:
1st
How to start a cookie/how to delete a cookie and how to change/retrive
information from it

Search Netscape's site for something like developer cookie. They 
originated the cookie spec. There are probably other sites out there which 
have tutorials on cookies.

Once you have that read and comprehended, then check the PHP manual on how 
cookies are set, starting with the set_cookie() function.


2nd
How to start a session/how to delete a session and how to change/retrive
information from it

http://www.php.net/manual/en/ref.session.php
and there are a couple of articles out there on the net on how to use 
sessions which are a little more conversational.

3rd
does php have application like asp??

Well, PHP is essentially an application like asp in that it parses a script 
which normally has a .php extension and either executes commands embedded 
within it or echoes HTML. The output from a PHP script is straight HTML.

Other than that, you had better re-phrase the question.

4th
sessions, can they be accessed from an asp script and the other way round?

No, they cannot. They are specific to PHP.


regards
pafo


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




Re: [PHP] Hi - newbie questions...

2002-01-31 Thread Miles Thompson

At 02:14 PM 1/31/2002 -0500, Michael Kimsal wrote:
snip
4th
sessions, can they be accessed from an asp script and the other way round?

No, they cannot. They are specific to PHP.


not directly, but an ASP script on the same domain should be able to read 
the cookie storing the session ID, then pull the info out from a database 
(if you're using a db backed to store the session info).

Short answer is no - probably for the questioner's needs, but it's 
possible it can be done in some unique situations.

Yes Michael, I didn't think differently enough about the nature of 
temporary, or session only, cookies. Of course, an ASP script should be 
able to sort through all the cookies for the same domain and dig out which 
one stores the session vars.

Cheers - Miles


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




RE: [PHP] hi

2001-09-10 Thread Seb Frost

Fixed:

?php

echo a href=\show_source('source.php')\view
source/abr/br/;

?

- seb

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 10:25
To: [EMAIL PROTECTED]
Subject: [PHP] hi


Hi, what z wrong in this code??




?php

echo a href=\?php show_source('source.php')?\view
source/abr/br/;

 ?



I am getting the following error

Forbidden
You don't have permission to access / on this server.

---
-

Apache/1.3.20 Server at ankem.wipro.com Port 80


How to rectify this thing??

Thanks in advance
Regards
-Balaji




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


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




RE: [PHP] hi

2001-09-10 Thread Lawrence . Sheed

It still won't work though.
(unless show_source is javascript, which I doubt)

You can't embed php in html like that.  HTML is for client side, and they
aren't running php in their browser.  Browsers generally support javascript
or vbscript ECMA style scripting on client side.

If you wanted to show the source for something you can't write a one line a
href, you'll have to make it some code.

eg.

sourceme.php

?php
show_source('source.php');
?


myhtml.html

a href=sourceme.phpView Source/abr/br/


-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]]
Sent: September 10, 2001 5:30 PM
To: Balaji Ankem; [EMAIL PROTECTED]
Subject: RE: [PHP] hi


Fixed:

?php

echo a href=\show_source('source.php')\view
source/abr/br/;

?

- seb

-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 10:25
To: [EMAIL PROTECTED]
Subject: [PHP] hi


Hi, what z wrong in this code??




?php

echo a href=\?php show_source('source.php')?\view
source/abr/br/;

 ?



I am getting the following error

Forbidden
You don't have permission to access / on this server.

---
-

Apache/1.3.20 Server at ankem.wipro.com Port 80


How to rectify this thing??

Thanks in advance
Regards
-Balaji




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


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




Re: [PHP] hi

2001-09-10 Thread Ing. Lalka Peter

and what about this one?

?echo a href=.show_source('source.php').view source/abr;?


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, September 10, 2001 12:19 PM
Subject: RE: [PHP] hi


 It still won't work though.
 (unless show_source is javascript, which I doubt)

 You can't embed php in html like that.  HTML is for client side, and they
 aren't running php in their browser.  Browsers generally support
javascript
 or vbscript ECMA style scripting on client side.

 If you wanted to show the source for something you can't write a one line
a
 href, you'll have to make it some code.

 eg.

 sourceme.php

 ?php
 show_source('source.php');
 ?


 myhtml.html

 a href=sourceme.phpView Source/abr/br/


 -Original Message-
 From: Seb Frost [mailto:[EMAIL PROTECTED]]
 Sent: September 10, 2001 5:30 PM
 To: Balaji Ankem; [EMAIL PROTECTED]
 Subject: RE: [PHP] hi


 Fixed:

 ?php

 echo a href=\show_source('source.php')\view
 source/abr/br/;

 ?

 - seb

 -Original Message-
 From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
 Sent: 10 September 2001 10:25
 To: [EMAIL PROTECTED]
 Subject: [PHP] hi


 Hi, what z wrong in this code??


 

 ?php

 echo a href=\?php show_source('source.php')?\view
 source/abr/br/;

  ?

 

 I am getting the following error

 Forbidden
 You don't have permission to access / on this server.

 --
-
 -

 Apache/1.3.20 Server at ankem.wipro.com Port 80


 How to rectify this thing??

 Thanks in advance
 Regards
 -Balaji




 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


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




RE: [PHP] hi

2001-09-10 Thread Seb Frost

Well you can't just have a link to this function.  Make a page like so:

showsource.php
**
?php

$file=source.php;

show_source($file);

?

yourfile.php
**

?php

echo a href=\showsource.php\view source/a;

?



- seb


-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2001 10:25
To: [EMAIL PROTECTED]
Subject: [PHP] hi


Hi, what z wrong in this code??




?php

echo a href=\?php show_source('source.php')?\view
source/abr/br/;

 ?



I am getting the following error

Forbidden
You don't have permission to access / on this server.

---
-

Apache/1.3.20 Server at ankem.wipro.com Port 80


How to rectify this thing??

Thanks in advance
Regards
-Balaji




---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


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




Re: [PHP] hi

2001-09-01 Thread Hugh Danaher

It sounds like you want to set the select box to something wider than the
product names so that it always comes out the same width.  There is likely
some elegant way to do this, but a quick fix would be to fill one of the
option cells with a line of unprintable characters;.  You could make it
the first option cell, the one usually blank, or put it last behind your
products.  The code would look something like:

print option nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; ...;   // use as
many nbsp;'s as needed.

Hope this helps.
Hugh

- Original Message -
From: Balaji Ankem [EMAIL PROTECTED]
To: Renze Munnik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 11:40 AM
Subject: [PHP] hi


 Hi, Renze,


 I have one doubt in HTML. I should not ask this in this group. I don't
have
 any alternative. Please consider this.

 How to increase the length of the select box. It is comming width as very
 less.
 I would like to increase that width.

 see the following code..

 BODY background=imacbg1.gif ONLOAD=document.issue.inv_name.focus()

 form name=issue
 div align=center
 center
 h2ISSUE/h2
 input type=hidden name=issued_by value=?php echo $emp_name; ?/
 h2Issuing by ?php echo $emp_name; ? /h2
 table border=0 width=100%
 tr
   th width=50% align=right

   p align=rightbfont size=2 face=ArialEquipment
 Namenbsp;/font/b/th
   td width=5%/td

 td width=50% align=left
 select name=inv_name
   script language=php
   $query = SELECT distinct inv_name FROM inventory ORDER BY
 inv_name ;
   $result = mysql_query($query);
 if(mysql_num_rows($result))
 {
   // we have at least one equipment, so show all equipments as
 options in select form

   print(option value=\\select/option);
   while($row = mysql_fetch_row($result))
   {
  print(option value=\$row[0]\$row[0]/option);
   }
 }
 else
 {
   print(option value=\\No equipment added yet/option);
 }
 /script
   /select
  /td
   /tr
 tr
   th width=50% align=right

   p align=rightbfont size=2 face=ArialEquipment
 Typenbsp;/font/b/th
   td width=5%/td

 td width=50%
 select name=inv_type 
   script language=php
   $query = SELECT distinct inv_type FROM inventory ORDER BY
 inv_type;
   $result = mysql_query($query);
 if(mysql_num_rows($result))
 {
   // we have at least one equipment, so show all equipments as
 options in select form
   print(option value=\\select/option);
   while($row = mysql_fetch_row($result))
   {
  print(option value=\$row[0]\$row[0]/option);
   }
 }
 else
 {
   print(option value=\\No equipment added yet/option);

  }
   file://closing the mysql connection
 mysql_close($connection);
 // Get current time and date
$today = date(Y:m:d H:i:s);
  /script
/select
  /td
   /tr
 trtd width=50% align=rightbfont size=2 face=ArialEquipment
 Tagnbsp;/font/b/tdtd width=5%/tdtd width=40% input
 type=text name=inv_tag size=20 value=/td/tr
 trtd width=50% align=rightbfont size=2 face=ArialIssued
 Tonbsp;/font/b/tdtd width=5%/tdtd width=40% input
 type=text name=issued_to size=20 value=/td/tr
 trtd width=50% align=rightbfont size=2 face=ArialIssue
 Datenbsp;/font/b/tdtd width=5%/tdtd width=40% input
 type=text name=issue_date size=20 value=?php echo
 $today;?/td/tr
 tr
   td width=50% align=right
   p align=left
   /td
   td width=5%
   /td
   td width=50%
   p align=left input type=button Value=SUBMIT
 OnClick=check();/td
 /tr
 /table
 /center
 /div
 /form
 /BODY


 Thanks and regards
 -Balaji









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




Re: [PHP] Hi! PHP SQL!

2001-07-25 Thread David Robley

On Thu, 26 Jul 2001 09:47, Dana Holt wrote:
 Hello everyone,

 I am very new to PHP (only 2 days now!), and I am having a problem with
 MySQL.

 This is probably simple.

 Ok, I insert a new row into a database that has an AUTO_INCREMENT key
 defined.

 How to get the value of the AUTO_INCREMENT field of the row I just
 inserted? My database doesn't have any other columns that are
 guaranteed to be 100% unique. I need this value to create a file with
 data related to the row.

 Thanks in advance for any help!

mysql_insert_id is the function you want. Have a read through the mysql 
section of the docs to see what other goodies are available. I suspect 
mysql_error will be one you may find useful :-)

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   A camel is a horse planned by committee.

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




Re: [PHP] hi, highlight_string.

2001-05-22 Thread Michel 'ZioBudda' Morelli

On Mon, 21 May 2001, Alexander Wagner wrote:

Michel 'ZioBudda' Morelli wrote:
 Hi, I want to save into a variable ($tmp) the value of
 highlight_string command. Any one? or any similar function?

Have a look at PHP 4's output buffering functions. You can use them to
safe the output instead of displaying it.

no, not work.

e.g.:

?
ob_start();

$f = fopen(one_file.php,r);
$f2 = fread($f,4);
fclose($f);

$pippo = highlight_string($f2);
echo quabr;
echo $pippo;
echo quabr;
?

tnx however

-- 
Attenzione, il file o directory non è utilizzabile perchè il
disco o floppy è entrato in un ciclo rindondante.
( Messaggio reale su Windows NT4 Server )
--
Michel ZioBudda Morelli   [EMAIL PROTECTED]

ICQ UIN: 58351764   PR of Linux in Italy
http://www.ziobudda.net http://www.linuxlab.it


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




Re: [PHP] hi, highlight_string.

2001-05-21 Thread Alexander Wagner

Michel 'ZioBudda' Morelli wrote:
 Hi, I want to save into a variable ($tmp) the value of
 highlight_string command. Any one? or any similar function?

Have a look at PHP 4's output buffering functions. You can use them to 
safe the output instead of displaying it.

regards
Wagner

-- 
Some guy hit my fender, and I told him, 'Be fruitful and multiply,' 
but not in those words.
 - Woody Allen

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




RE: [PHP] Hi!

2001-05-11 Thread Johan Vikerskog (ECS)

Hi Ben.
I need the URL for two pages back to be saved as a variable.
I am going to format the adress for two pages back and redirect the user to the 
formatted URL.

Sounds weird but i really nead it.

-Original Message-
From: Ben Cairns [mailto:[EMAIL PROTECTED]]
Sent: den 11 maj 2001 10:10
To: Johan Vikerskog (ECS); php-general
Subject: RE: [PHP] Hi!


You can so this with JavaScript:

A HREF = history.go(-2)Go back Two Pages/A


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK..

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




RE: [PHP] Hi!

2001-05-11 Thread Tom Carter

If you know what page(s) are being used to load the end page then on these
pages you could pass the $HTTP_REFERER value from the middle page to the
end one and use that in the redirect

Tom Carter
Web Architect
roundcorners ltd.

On Fri, 11 May 2001, Johan Vikerskog (ECS) wrote:

 Hi Ben.
 I need the URL for two pages back to be saved as a variable.
 I am going to format the adress for two pages back and redirect the user to the 
formatted URL.

 Sounds weird but i really nead it.

 -Original Message-
 From: Ben Cairns [mailto:[EMAIL PROTECTED]]
 Sent: den 11 maj 2001 10:10
 To: Johan Vikerskog (ECS); php-general
 Subject: RE: [PHP] Hi!


 You can so this with JavaScript:

 A HREF = history.go(-2)Go back Two Pages/A


 -- Ben Cairns - Head Of Technical Operations
 intasept.COM
 Tel: 01332 365333
 Fax: 01332 346010
 E-Mail: [EMAIL PROTECTED]
 Web: http://www.intasept.com

 MAKING sense of
 the INFORMATION
 TECHNOLOGY age
 @ WORK..

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




Re: [PHP] HI

2001-05-04 Thread Hrishi

Jorge Amaya wrote:

 I am new user of php, I have installed apache 1.3.x, php3 and mysql, but
 I have a problem, My navigator doesn't recognize the files of php3, that
 is to say it doesn't work me php in the navigator, I have configured
 such and like says the manual in php.ini and also in the directives of
 Apache

are you browsing the filesystem (file://C|/..) or through apache 
(http://localhost/;) ?

remember that you can add hosts/aliases using the file c:\windows\hosts

cheers,
Hrishi

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




Re: [PHP] HI

2001-05-03 Thread Geir Eivind Mork

On Thursday 03 May 2001 09:55, Jorge Amaya wrote:

  I am new user of php, I have installed apache 1.3.x, php3 and mysql, but
  I have a problem, My navigator doesn't recognize the files of php3, that

why install php3, not php4 ? 

  is to say it doesn't work me php in the navigator, I have configured
  such and like says the manual in php.ini and also in the directives of

make sure the httpd.conf / apache.conf have the following datas

LoadModule php4_modulelibexec/libphp4.so  
 
or one with php3 pointing to a existing resource.

DirectoryIndex index.php index.html 

or .php3, .phtml etc

and 
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps

or for php4

AddType application/x-httpd-php .php 
AddType application/x-httpd-php-source .phps  
  
now the apache help files might be needed to fully understand what this does 
in case you wonders.

-- 
 php developer / CoreTrek AS| The skater, Barbara Ann Scott Is so
 Sandnes / Rogaland / Norway| fuckingly winsome a snot,  That when
 web: http://www.moijk.net/ | posed on her toes  She elaborately shows

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




Re: [PHP] HI

2001-05-02 Thread Jorge Amaya



Jorge Amaya wrote:

 Hello All
 
 I am new user of php, I have installed apache 1.3.x, php3 and mysql, 
 but I have a problem, My navigator doesn't recognize the files of 
 php3, that is to say it doesn't work me php in the navigator, I have 
 configured such and like says the manual in php.ini and also in the 
 directives of Apache 
 that I will be making bad  

Forget to tell them that work on windows 98 OS.

 
 thank you for their help
 
 
 
 
 


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




Re: [PHP] HI

2001-05-02 Thread todd kennedy

you need to tell apache that .php3 or .php or whatever extension you're
using is a web file.

this is done in the httpd.conf file.

Jorge Amaya wrote:

 Jorge Amaya wrote:

  Hello All
 
  I am new user of php, I have installed apache 1.3.x, php3 and mysql,
  but I have a problem, My navigator doesn't recognize the files of
  php3, that is to say it doesn't work me php in the navigator, I have
  configured such and like says the manual in php.ini and also in the
  directives of Apache
  that I will be making bad

 Forget to tell them that work on windows 98 OS.

 
  thank you for their help
 
 
 
 
 

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




RE: [PHP] Hi, new guy here!

2001-02-10 Thread PHPBeginner.com

Welcome on Board, Brian!


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-Original Message-
From: Brian Potter Web Design [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 7:51 AM
To: Php
Subject: [PHP] Hi, new guy here!


Hello! My name is Brian Potter and I just finished the PHP Fast and Easy Web
Development book. A friend of mine suggested I subscribe to this list. I am
eager to interact with all of you! I do a webpage for my youth group as well
as various professional web pages. I appreciate all of your help in advance!

-BRiAN


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