RE: [PHP] Converting to a string

2005-03-24 Thread Tyler Replogle
you could just use the time() or numbers of the date function
From: PartyPosters [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] Converting to a string
Date: Wed, 23 Mar 2005 20:43:30 -
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc10-f11.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Wed, 23 Mar 2005 12:46:08 -0800
Received: from ([216.92.131.4:3752] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5268)) with SMTPid 6E/E2-06694-265D1424 for 
[EMAIL PROTECTED]; Wed, 23 Mar 2005 15:45:22 -0500
Received: (qmail 40045 invoked by uid 1010); 23 Mar 2005 20:43:52 -
Received: (qmail 39914 invoked by uid 1010); 23 Mar 2005 20:43:41 -
X-Message-Info: JGTYoYF78jGnXCyUPttfpp6UKiZEgipk++L9rr4c6Ms=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 62.241.163.7 blaster.systems.pipex.net Linux 2.4/2.6
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
X-OriginalArrivalTime: 23 Mar 2005 20:46:08.0620 (UTC) 
FILETIME=[572A42C0:01C52FE9]

Hello guys,
i am using  date(l dS of F Y h:i:s A) and want to put the value in a 
database as a string,
How do I converting it to a string, this is what I have got so far:-
$v_ship_date = date(l dS of F Y h:i:s A);

Lots of thanks.
  - Original Message -
  From: PartyPosters
  To: php-general@lists.php.net
  Sent: Tuesday, March 22, 2005 10:01 PM
  Subject: Passing Arrays between pages
  Hello,
  Please can someone tell me how you pass arrays between PHP pages.
  I have tried something like this and have tried many variations of this 
but
  nothing working yet ;

  Page 1
  $testArray[0] =Apple;
  $testArray[1] =Banana;
  $testArray[2] =Peach;
  echo INPUT NAME = \kcompany[]\ TYPE = \hidden\ 
VALUE=\$testArray\;

  Page2
  echo $testArray[1];
  On different variations of this I keep on getting 'Array' when I to 
return the variable on the second page

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


[PHP] mysql query update two table in one?

2005-03-10 Thread Tyler Replogle
Can you update two tables in one mysql query
i've got these two queries
$db-query(update `dbn_members_counters` set views =(views +1) where id = 
'$this-id' );
$db-query(update `dbn_members` set lastaction  = $conf-site_time, page = 
'$this-page' where id = '$this-id' );
and i was wonder if i could get them into one because there are right next 
two each other and i'm trying to lower my query count.

From: K Karthik [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] php-help
Date: Thu, 10 Mar 2005 12:31:35 +0530
MIME-Version: 1.0
Received: from mc7-f40.hotmail.com ([65.54.253.47]) by IMC3-S26.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Wed, 9 Mar 2005 22:59:41 -0800
Received: from lists.php.net ([216.92.131.4]) by mc7-f40.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Wed, 9 Mar 2005 22:59:41 -0800
Received: from ([216.92.131.4:25901] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid E8/F4-53294-F40FF224 for 
[EMAIL PROTECTED]; Thu, 10 Mar 2005 01:59:30 -0500
Received: (qmail 17042 invoked by uid 1010); 10 Mar 2005 06:58:09 -
Received: (qmail 17024 invoked by uid 1010); 10 Mar 2005 06:58:09 -
X-Message-Info: JGTYoYF78jFevGptXBXjGwKBSvHljkD+bF1qvT/FEkQ=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) 
Gecko/20040913
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 10 Mar 2005 06:59:41.0597 (UTC) 
FILETIME=[BBA044D0:01C5253E]

sir,
i'll explain my problem.and if anyone could help me i'll be thankful.
i am displaying a content read from a file into a text area of a form.
when i make changes andretrieve back in the text area, i encounter a 
problem..
i.e., when i enter text=please enter
i have an outputas text= / please enter/
thanks,
kkarthik

--
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] getting mac id

2005-03-01 Thread Tyler Replogle
lol, its been hard not to, its happened a few times but now that hotmail is 
250 mb i'm fine.

From: anirudh dutt [EMAIL PROTECTED]
Reply-To: anirudh dutt [EMAIL PROTECTED]
To: Tyler Replogle [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] getting mac id
Date: Mon, 28 Feb 2005 07:27:22 +0530
MIME-Version: 1.0
Received: from wproxy.gmail.com ([64.233.184.196]) by mc11-f3.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Sun, 27 Feb 2005 17:57:23 -0800
Received: by wproxy.gmail.com with SMTP id 67so1905911wrifor 
[EMAIL PROTECTED]; Sun, 27 Feb 2005 17:57:22 -0800 (PST)
Received: by 10.54.46.8 with SMTP id t8mr90237wrt;Sun, 27 Feb 2005 
17:57:22 -0800 (PST)
Received: by 10.54.39.25 with HTTP; Sun, 27 Feb 2005 17:57:22 -0800 (PST)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; 
d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; 
   
b=FLz2QcENnR004ksGTQ5TYqJitN2OHEqT3Pld2OQVPZAS1n9xXTbLNgifiu04IN55tl0Riehw8fmLj1LRAmKondLO/kzJJGw96vlb7Amb8x1ApUmE4zCVh/UZwwLVVv2hk6ciBp9LFFRkEI3llXd8CNDwxMZuYTBlHyEsrlK9OoQ=
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 28 Feb 2005 01:57:23.0399 (UTC) 
FILETIME=[D8496570:01C51D38]

On Fri, 25 Feb 2005 15:52:02 -0800, Tyler Replogle [EMAIL PROTECTED] 
wrote:
 Hey,

 I've been on this mailing list for quite a while, but i think this is my
 first question. I'm not sure though.


congrats on managing not to exceed ur account limit ;-)
especially since u've been on this mailing list for quite a while
--
]#
Anirudh Dutt
...pilot of the storm who leaves no trace
like thoughts inside a dream
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] getting mac id

2005-02-27 Thread Tyler Replogle
Yeah i wasn't think. I've already ruled that out i guess i'll have to 
use java.

From: M. Sokolewicz [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: Re: [PHP] getting mac id
Date: Sun, 27 Feb 2005 09:29:41 +0100
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc4-f19.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Sun, 27 Feb 2005 00:31:17 -0800
Received: from ([216.92.131.4:7256] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid A6/B7-43672-82581224 for 
[EMAIL PROTECTED]; Sun, 27 Feb 2005 03:30:38 -0500
Received: (qmail 24721 invoked by uid 1010); 27 Feb 2005 08:29:32 -
Received: (qmail 24706 invoked by uid 1010); 27 Feb 2005 08:29:32 -
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) 
Gecko/20050106
X-Accept-Language: en-us, en
References: [EMAIL PROTECTED] 
[EMAIL PROTECTED]
X-Posted-By: 62.131.2.67
X-OriginalArrivalTime: 27 Feb 2005 08:31:18.0398 (UTC) 
FILETIME=[B56E49E0:01C51CA6]

javascript has pretty strict permissions when run via the browser itself, 
so I would say no. Unless you instruct your user to run the Javascript via 
the system itself... but you can't expect that from a simple user.

Besides that, a user can choose to turn off JavaScript, or even make it run 
some new JavaScript code specific to that site, with a click of a button in 
most modern browsers, and giving the user the ability to completely spoof a 
part of your control system is never a good idea ;)

- tul
Tyler Replogle wrote:
do you think i could get it with javascript?
From: M. Sokolewicz [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: Re: [PHP] getting mac id
Date: Sat, 26 Feb 2005 21:15:47 +0100
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by MC6-F37.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Sat, 26 Feb 2005 12:16:54 -0800
Received: from ([216.92.131.4:25405] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 58/43-51537-B19D0224 for 
[EMAIL PROTECTED]; Sat, 26 Feb 2005 15:16:27 -0500
Received: (qmail 13001 invoked by uid 1010); 26 Feb 2005 20:15:39 -
Received: (qmail 12988 invoked by uid 1010); 26 Feb 2005 20:15:39 -
X-Message-Info: JGTYoYF78jH290JDSHtK0Hwmz4NODmcj7i2AMiICo2M=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) 
Gecko/20050106
X-Accept-Language: en-us, en
References: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
X-Posted-By: 62.131.2.67
X-OriginalArrivalTime: 26 Feb 2005 20:16:54.0784 (UTC) 
FILETIME=[1D786000:01C51C40]

you can't get the mac-address from a remote (client) computer via PHP 
because PHP is server-sided (server). The mac-address isn't part of any 
sort of standard header the browser sends, thus the server will never see 
it. And if the server can't see it, then PHP can't see it either. The 
only way to get it would be to run a local script which would pick it up, 
and send it over. This however would require something like a JAVA applet 
/ application. The mac address is usually hidden away quite well so 
people can't get it and start pretending to be someone else. Although the 
idea is good, it most likely will not be possible (relativly easily)

- tul
Lancer Emotion 16 wrote:
But think that not everbody has a computer in his house,especially in
3rd world countries. Here in Peru and in another countries from
Sudamerica,lot of people play this mmorpgs,like Knigths Online,WoW or
Mu,in lan houses. If you ban the pc, none of the users who will play
at this computer will be able to do it.
On Fri, 25 Feb 2005 15:52:02 -0800, Tyler Replogle [EMAIL PROTECTED] 
wrote:

Hey,
I've been on this mailing list for quite a while, but i think this is 
my
first question. I'm not sure though.

Well here goes.
I'm working at this site that has an MMORPG, a big online game, and we 
have
this ban script. it bans the ip for the user and the user acount for an
amount of time. This doesn't seem to be doing its job because people 
just
change there ip and make a new user.

I know there isn't any full way to ban some one from a site, but i've 
been
think and getting the mac id of a computer would work

Re: [PHP] getting mac id

2005-02-26 Thread Tyler Replogle
Yeah i thought of that but banning the ip iwon't do any better.
From: Lancer Emotion 16 [EMAIL PROTECTED]
Reply-To: Lancer Emotion 16 [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: Re: [PHP] getting mac id
Date: Sat, 26 Feb 2005 12:59:15 -0500
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc9-f30.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Sat, 26 Feb 2005 09:59:51 -0800
Received: from ([216.92.131.4:29512] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 0D/DF-51537-519B0224 for 
[EMAIL PROTECTED]; Sat, 26 Feb 2005 12:59:49 -0500
Received: (qmail 90336 invoked by uid 1010); 26 Feb 2005 17:59:18 -
Received: (qmail 90322 invoked by uid 1010); 26 Feb 2005 17:59:18 -
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 64.233.170.204 rproxy.gmail.com Linux 2.4/2.6
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; 
d=gmail.com;h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references;b=AUwTxkptdTLMJHMTyly+ctuG3HxXmWK2T+FcbF8tKR+YarWJMth7kEmgiVMwtGIdPGcCMU/Yc7kNGX4rtRjd0PO7dHMYmUmb8lpeshQ9+eI+ACF77+Uw4Ju+m44hEkRvkpP5tQAod4I48Jk5Heq50U10n4Wz4XDd500vwCasYtk=
References: 
[EMAIL PROTECTED][EMAIL PROTECTED]
X-OriginalArrivalTime: 26 Feb 2005 18:00:04.0786 (UTC) 
FILETIME=[FFEE1920:01C51C2C]

But think that not everbody has a computer in his house,especially in
3rd world countries. Here in Peru and in another countries from
Sudamerica,lot of people play this mmorpgs,like Knigths Online,WoW or
Mu,in lan houses. If you ban the pc, none of the users who will play
at this computer will be able to do it.
On Fri, 25 Feb 2005 15:52:02 -0800, Tyler Replogle [EMAIL PROTECTED] 
wrote:
 Hey,

 I've been on this mailing list for quite a while, but i think this is my
 first question. I'm not sure though.

 Well here goes.

 I'm working at this site that has an MMORPG, a big online game, and we 
have
 this ban script. it bans the ip for the user and the user acount for an
 amount of time. This doesn't seem to be doing its job because people 
just
 change there ip and make a new user.

 I know there isn't any full way to ban some one from a site, but i've 
been
 think and getting the mac id of a computer would work a lot better then 
ip.
 I'm not sure how to get teh mac id of a computer though. If any of you 
know
 how to can you please tell me. It doesn't just have to be with use php 
we
 own the server can we can installl other apps, but many others are on 
the
 server anyways.

 So how do i get the mac id of a user that is going on to my server?

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



--
lancer emotion 16
--
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] getting mac id

2005-02-26 Thread Tyler Replogle
do you think i could get it with javascript?
From: M. Sokolewicz [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: Re: [PHP] getting mac id
Date: Sat, 26 Feb 2005 21:15:47 +0100
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by MC6-F37.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Sat, 26 Feb 2005 12:16:54 -0800
Received: from ([216.92.131.4:25405] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 58/43-51537-B19D0224 for 
[EMAIL PROTECTED]; Sat, 26 Feb 2005 15:16:27 -0500
Received: (qmail 13001 invoked by uid 1010); 26 Feb 2005 20:15:39 -
Received: (qmail 12988 invoked by uid 1010); 26 Feb 2005 20:15:39 -
X-Message-Info: JGTYoYF78jH290JDSHtK0Hwmz4NODmcj7i2AMiICo2M=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) 
Gecko/20050106
X-Accept-Language: en-us, en
References: 
[EMAIL PROTECTED]	[EMAIL PROTECTED] 
[EMAIL PROTECTED]
X-Posted-By: 62.131.2.67
X-OriginalArrivalTime: 26 Feb 2005 20:16:54.0784 (UTC) 
FILETIME=[1D786000:01C51C40]

you can't get the mac-address from a remote (client) computer via PHP 
because PHP is server-sided (server). The mac-address isn't part of any 
sort of standard header the browser sends, thus the server will never see 
it. And if the server can't see it, then PHP can't see it either. The only 
way to get it would be to run a local script which would pick it up, and 
send it over. This however would require something like a JAVA applet / 
application. The mac address is usually hidden away quite well so people 
can't get it and start pretending to be someone else. Although the idea is 
good, it most likely will not be possible (relativly easily)

- tul
Lancer Emotion 16 wrote:
But think that not everbody has a computer in his house,especially in
3rd world countries. Here in Peru and in another countries from
Sudamerica,lot of people play this mmorpgs,like Knigths Online,WoW or
Mu,in lan houses. If you ban the pc, none of the users who will play
at this computer will be able to do it.
On Fri, 25 Feb 2005 15:52:02 -0800, Tyler Replogle [EMAIL PROTECTED] 
wrote:

Hey,
I've been on this mailing list for quite a while, but i think this is my
first question. I'm not sure though.
Well here goes.
I'm working at this site that has an MMORPG, a big online game, and we 
have
this ban script. it bans the ip for the user and the user acount for an
amount of time. This doesn't seem to be doing its job because people just
change there ip and make a new user.

I know there isn't any full way to ban some one from a site, but i've 
been
think and getting the mac id of a computer would work a lot better then 
ip.
I'm not sure how to get teh mac id of a computer though. If any of you 
know
how to can you please tell me. It doesn't just have to be with use php we
own the server can we can installl other apps, but many others are on the
server anyways.

So how do i get the mac id of a user that is going on to my server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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


RE: [PHP] FTP info in a variable

2005-02-25 Thread Tyler Replogle
Yes i think you can but i really won't do that. It does depend on the server 
and php verison that is installed on the server.

From: Steve Buehler [EMAIL PROTECTED]
To: PHP php-general@lists.php.net
Subject: [PHP] FTP info in a variable
Date: Thu, 24 Feb 2005 11:19:25 -0600
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by MC8-F29.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 08:56:50 -0800
Received: from ([216.92.131.4:22676] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 39/05-51537-DC85F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 11:56:46 -0500
Received: (qmail 50993 invoked by uid 1010); 25 Feb 2005 16:21:52 -
Received: (qmail 20808 invoked by uid 1010); 25 Feb 2005 15:49:59 -
X-Message-Info: 6sSXyD95QpUypKMHi+vQyQhgpFDWBX43dtyZ3S9x9rA=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 66.163.170.83 smtp813.mail.sc5.yahoo.com  X-Mailer: 
QUALCOMM Windows Eudora Version 6.2.1.2
X-OriginalArrivalTime: 25 Feb 2005 16:56:50.0514 (UTC) 
FILETIME=[FFF46320:01C51B5A]

	I have to write a little program that pulls information from a database, 
formats it into csv format for importing into excel and ftps it to another 
server.  I have everything worked out except for the ftping.  I have read 
through http://us4.php.net/manual/en/ref.ftp.php and I know I can get the 
data from the database, save it to a file and ftp it.  Does anybody know if 
I can skip the step of saving it to a file and ftp/stream it directly to a 
filename on another server?

Thanks
Steve
--
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] HOWTO read PHP source code into a textarea

2005-02-25 Thread Tyler Replogle
Try php.net for flat file date basing. It should tell you how to read a line 
and write to a new line.

From: Tim Burgan [EMAIL PROTECTED]
To: [php] PHP General List php-general@lists.php.net
Subject: [PHP] HOWTO read PHP source code into a textarea
Date: Fri, 25 Feb 2005 10:26:36 +1030
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc10-f12.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 09:20:40 -0800
Received: from ([216.92.131.4:17572] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid D9/58-51537-46E5F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 12:20:37 -0500
Received: (qmail 56201 invoked by uid 1010); 25 Feb 2005 16:23:57 -
Received: (qmail 29434 invoked by uid 1010); 25 Feb 2005 15:51:19 -
X-Message-Info: 6sSXyD95QpV9yk8eof5sDoBjj7rfuQB3oBBEJSBDxio=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 66.102.135.69 mx69a.mysite4now.com Windows 2000 SP4, XP 
SP1
X-SmartMax-AuthUser: [EMAIL PROTECTED]
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 25 Feb 2005 17:20:40.0742 (UTC) 
FILETIME=[546FDC60:01C51B5E]

Hello,
I have a file 'nav.php', whose source code I want to load into the textarea 
on page 'aaa.php', so the source can be edited and changed.

Is there a resource that I can read to help me do this?
Thanks
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Hash Issues

2005-02-25 Thread Tyler Replogle
Try doing the hash code after the password is posted
From: Erbacher Karl [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] Hash Issues
Date: Thu, 24 Feb 2005 08:26:35 -0800
Received: from lists.php.net ([216.92.131.4]) by mc5-f20.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 09:30:44 -0800
Received: from ([216.92.131.4:11652] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 8D/AB-51537-5C06F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 12:30:45 -0500
Received: (qmail 66774 invoked by uid 1010); 25 Feb 2005 16:28:10 -
Received: (qmail 48782 invoked by uid 1010); 25 Feb 2005 15:54:21 -
X-Message-Info: 6sSXyD95QpWP6+shjfuSKTd7f5bTEYxLS2AOsK0Gtko=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Lines: 22
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-Posted-By: 68.234.190.142
X-OriginalArrivalTime: 25 Feb 2005 17:30:45.0014 (UTC) 
FILETIME=[BC9C7360:01C51B5F]

Hello,
I'm trying to hash passwords before saving them to a mySQL database but I 
am
having a problem. I created three seperate sample users with three 
different
passwords (password1, password2, password3).  When I go back to look at the
table info in the database, it has saved the exact same hash value for all
three users.  Any ideas why this might be happening?

The script is very straight forward.
The form that collects the data:
input type='password' name='password'
$pass=bin2hex(mhash(MHASH_SHA1, $password));
input type='hidden' name='pass' value='$pass'
The file that verifies the data and stores it to the database:
$pass=$_POST['pass'];
INSERT INTO table (username, password) VALUES ('$logname', 
'$pass');

Thanks,
Cat
--
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] list down

2005-02-25 Thread Tyler Replogle
I think it didn't because i wasn't getting an emails for a while last night. 
I wanted one too becuase i didn't have the email to start a new message.

From: Kris [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] list down
Date: Thu, 24 Feb 2005 15:04:31 -0600
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc10-f14.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 09:04:52 -0800
Received: from ([216.92.131.4:18799] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 13/69-51537-6096F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 13:05:58 -0500
Received: (qmail 92239 invoked by uid 1010); 25 Feb 2005 16:38:08 -
Received: (qmail 94944 invoked by uid 1010); 25 Feb 2005 15:59:00 -
X-Message-Info: JGTYoYF78jH/nHL12+6B+afltd+ugzie6PM4BHsyhVg=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 65.24.5.135 ms-smtp-01-smtplb.ohiordc.rr.com NetCache 
Data OnTap 5.x
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031205 
Thunderbird/0.4
X-Accept-Language: en-us, en
X-Virus-Scanned: Symantec AntiVirus Scan Engine
X-OriginalArrivalTime: 25 Feb 2005 17:04:52.0078 (UTC) 
FILETIME=[1EFD38E0:01C51B5C]

sent an email to the list earlier.. never received a copy.. its like the 
list went down around 8AM CST?

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 2/22/05
--
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] List gone quiet?

2005-02-25 Thread Tyler Replogle
Yeah same here. I think it went down.
From: Lester Caine [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] List gone quiet?
Date: Fri, 25 Feb 2005 11:13:50 +
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc9-f30.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 11:05:44 -0800
Received: from ([216.92.131.4:4641] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 08/9C-51537-6077F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 14:05:42 -0500
Received: (qmail 60156 invoked by uid 1010); 25 Feb 2005 17:04:47 -
Received: (qmail 10446 invoked by uid 1010); 25 Feb 2005 16:13:18 -
X-Message-Info: 6sSXyD95QpXynrcVtRJuLWY8uUBJBJyjnCsL5m3ygVM=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) 
Gecko/20040803
X-Accept-Language: en, en-us
X-Posted-By: 81.138.11.136
X-OriginalArrivalTime: 25 Feb 2005 19:05:44.0362 (UTC) 
FILETIME=[01AFF0A0:01C51B6D]

Nothing on list over night?
--
Lester Caine
-
L.S.Caine Electronic Services
--
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] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread Tyler Replogle
Hey
Most of your question can be asnwer by this one i hope.
I don't know how to make it so a would only work, but i know how to make 
it i could work.
You could change the ,  in only a tags to [ ] before you take the html 
tags out then after you could change the [,] to , in only [a] tags or 
you could just use so forum code here is some that i have made.
forum code///
function replace_output($str){
$search   = array([b], [/b], [i], [/i], [u], [/u], [br], 
[li], [/li], [q],[/q],[center],[/center]);
   $replace  = array(b, /b, i, /i, u, /u, br, 
li, [/li],$q1,$q2,center,/center);
   $str = str_replace($search, $replace, $str);
   $str = eregi_replace(\\[img\\]([^\\[]*)\\[/img\\],img 
src=\\\1\,checkImgURL($str));
   $str = eregi_replace(\\[aim\\]([^\\[]*)\\[/aim\\],a 
href=\aim:goim?screenname=\\1\\\1/a,$str);
   $str = eregi_replace(\\[email\\]([^\\[]*)\\[/email\\],a 
href=\mailto:\\1\;\\1/a,$str);
   $str = eregi_replace(\\[url\\]([^\\[]*)\\[/url\\],a href=\\\1\ 
target=_blank\\1/a,checkURL($str));
   $str = eregi_replace(\\[url=([^\\[]*)\\]([^\\[]*)\\[/url\\],a 
href=\\\1\ target=_blank\\2/a,checkURL($str));
   $str = eregi_replace(\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\],font 
color=\\\1\\\2/font,$str);
   $str = eregi_replace(\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\],font 
size=\\\1\\\2/font,$str);
   $str = $str./b/a/i/u;
return $str;
}
//checkImgURL
function checkImgURL($url){
 if(strstr($url, www)  !strstr($url, http://;)){
		$url = str_replace(www.,http://www.,$url);
	} elseif((!strstr($url, www)  !strstr($url, http://;)) || strstr($url, 
[img)){
		$url_array = explode( , $url);
		$ii = count($url_array);
		for($i = 0; $i  $ii; $i++){
			if(strstr($url_array[$i], [img])  !strstr($url_array[$i], 
[img]http)){
$url_array[$i] = str_replace([img],[img]http://,$url_array[$i]);
			}
		}
		$url = implode( , $url_array);
	}
	return $url;
}
/checkURL/
function checkURL($url){
 if(strstr($url, www)  !strstr($url, http://;)){
		$url = str_replace(www.,http://www.,$url);
	} elseif((!strstr($url, www)  !strstr($url, http://;)) || strstr($url, 
[url)){
		$url_array = explode( , $url);
		$ii = count($url_array);
		for($i = 0; $i  $ii; $i++){
			if(strstr($url_array[$i], [url])  !strstr($url_array[$i], 
[url]http)){
$url_array[$i] = str_replace([url],[url]http://,$url_array[$i]);
			} elseif(strstr($url_array[$i], [url=)  !strstr($url_array[$i], 
[url=http)){
$url_array[$i] = str_replace([url=,[url=http://,$url_array[$i]);
			}
		}
		$url = implode( , $url_array);
	}
	return $url;
}
///done/

I hope that helps you
From: Dave [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] [NEWBIE] How to allow for a href tags but no others?
Date: Fri, 25 Feb 2005 17:36:31 +0900
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc2-f42.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 10:52:06 -0800
Received: from ([216.92.131.4:28767] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid 35/B7-51537-4D37F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 13:52:05 -0500
Received: (qmail 45356 invoked by uid 1010); 25 Feb 2005 16:58:14 -
Received: (qmail 86348 invoked by uid 1010); 25 Feb 2005 16:10:18 -
X-Message-Info: JGTYoYF78jH7VGsHZ31QAA+JEDZdsFRzO2tR5TxXPwo=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 210.188.175.72 mta3p.point.ne.jp Solaris 2.5-7
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 25 Feb 2005 18:52:06.0653 (UTC) 
FILETIME=[1A4B72D0:01C51B6B]

PHP General,
   1. The Situation:
   I have a forum in which users can enter text which is then displayed on 
my web site. I want to be able to allow them to insert their own a href 
tags to provide links. The text is stored in a MySQL database.

   2. The Problem:
   My understanding is that if the input of HTML tags or other coding 
elements is left unrestricted, then the potential is there for users to 
cause damage either maliciously or by accident by inserting scripts or 
MySQL commands. Although the users who have access to the text input forms 
have to pass a username and password check first, I would still rather be 
safe than sorry. Mostly I am concerned about people unfamiliar with HTML 
inserting incorrect code which may break the page design.

   3. The Question:
   Can I set up a PHP script which will strictly only allow instances of 
a href=??? and /a and absolutely nothing else? I would like the 
default behavior to be that if any other tag element, or use of  or  
be simply deleted from the text before 

RE: [PHP] What's up with the list?

2005-02-25 Thread Tyler Replogle
So many people have said this, but i think its fix.
From: John Nichel [EMAIL PROTECTED]
To: PHP Mailing Lists php-general@lists.php.net
Subject: [PHP] What's up with the list?
Date: Fri, 25 Feb 2005 09:11:34 -0500
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc4-f38.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Fri, 25 Feb 2005 11:19:03 -0800
Received: from ([216.92.131.4:3626] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5124)) with SMTPid C8/A0-51537-42A7F124 for 
[EMAIL PROTECTED]; Fri, 25 Feb 2005 14:19:00 -0500
Received: (qmail 71754 invoked by uid 1010); 25 Feb 2005 17:09:56 -
Received: (qmail 28961 invoked by uid 1010); 25 Feb 2005 16:15:56 -
X-Message-Info: 6sSXyD95QpWkzSNc9/Tf5uB29F4Z8qKHffTnWnJjgh4=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 69.20.124.142 unknown Linux 2.4/2.6
User-Agent: Mozilla Thunderbird 1.0 (X11/20041206)
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 25 Feb 2005 19:19:03.0314 (UTC) 
FILETIME=[DDE65720:01C51B6E]

Haven't gotten anything from the list since yesterday...is it me, or is it 
the list.  Fix it Jay!!! ;)

--
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] getting mac id

2005-02-25 Thread Tyler Replogle
Hey,
I've been on this mailing list for quite a while, but i think this is my 
first question. I'm not sure though.

Well here goes.
I'm working at this site that has an MMORPG, a big online game, and we have 
this ban script. it bans the ip for the user and the user acount for an 
amount of time. This doesn't seem to be doing its job because people just 
change there ip and make a new user.

I know there isn't any full way to ban some one from a site, but i've been 
think and getting the mac id of a computer would work a lot better then ip. 
I'm not sure how to get teh mac id of a computer though. If any of you know 
how to can you please tell me. It doesn't just have to be with use php we 
own the server can we can installl other apps, but many others are on the 
server anyways.

So how do i get the mac id of a user that is going on to my server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] [php] -help me

2005-02-18 Thread Tyler Replogle
$str_array = explode(/, /home/karthik/welcome.php/view.php);
// $str_array[4] shoud be view.php
From: K Karthik [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] [php] -help me
Date: Fri, 18 Feb 2005 11:20:29 +0530
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800
Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com 
(ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for 
[EMAIL PROTECTED]; Fri, 18 Feb 2005 00:49:59 -0500
Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 -
Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 -
X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) 
Gecko/20040913
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) 
FILETIME=[AEF42BA0:01C5157D]

i have got string as /home/karthik/welcome.php/view.php
i just need view.php how shall i remove rest of the string.
please do help me.i am new to php.
-thanks,
karthik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Tyler Replogle
have you tride using chop() ?
# begin code
$year_split = date(Y);
$chars = chop($year_split);
$chars[0] // = 2
$chars[1] // = 0
$chars[2] // = 0
$chars[3]  //= 4
# end code
I hope that will help
From: Louie Miranda [EMAIL PROTECTED]
Reply-To: Louie Miranda [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] help me split chars w/o spaces by 2... like: 2004
Date: Thu, 9 Dec 2004 09:55:57 +0800
MIME-Version: 1.0
Received: from pb1.pair.com ([216.92.131.4]) by mc6-f24.hotmail.com with 
Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Dec 2004 17:56:52 -0800
Received: (qmail 21242 invoked by uid 1010); 9 Dec 2004 01:56:02 -
Received: (qmail 21150 invoked by uid 1010); 9 Dec 2004 01:56:01 -
X-Message-Info: 6sSXyD95QpUKIecQn+Z/xIP21pcg8LTu
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; 
d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; 
   
b=gp2OcpYqK7wZkSMBhO5OvxdTzhTOQdM1+n9ZtLJ4lmsKWFpVRb9Y2kyjNIrRIX/rvXeFfwCVGh7LT6kub0DMmCGdeRiLKeCjJkxK4fWxSrP2D+FexciD2lT8ASKD7TNYC3YGIZLZbk5UEJIq9Yx2TkbIdgNd/Op3+iEviy1scI4=
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 09 Dec 2004 01:56:53.0406 (UTC) 
FILETIME=[5AF313E0:01C4DD92]

Help me split chars w/o spaces by 2... like: 2004
How can i make it?
first: 20
second: 04
Im working on this..
# begin code
$year_split = date(Y);
$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
# end code
But it splits the whole 2004 string..
Array
(
[0] = 2
[1] = 0
[2] = 0
[3] = 4
)
--
Louie Miranda
http://www.axishift.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] Coding productivity benchmarks?

2004-06-07 Thread Tyler Replogle
hey,
I just did all of that and it took me 1 hour and 35 mins, but I edited the 
code that i had already made from site before. It didn't take my anywhere 
near 4 hours, but there is no way i could do it in 40 mins.



From: Derrick fogle [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED]
Subject: [PHP] Coding productivity benchmarks?
Date: Mon, 7 Jun 2004 09:51:20 -0500

I've been searching around for productivity benchmarks for PHP programming. 
The only references I can find for it are in for-pay publications.

I've ended up becoming a PHP developer more out of happenstance than 
anything. I've been doing it for a couple of years now, but... I don't 
really know how 'good' I am at it. The place I work has always had 
extremely unreasonable expectations for worker productivity, and I'm trying 
to fight that.

I've recently been called into another job interview, and part of the 
interview is a coding assignment. Some of the documentation suggests that 
this assignment should take about 40 minutes.  A rough overview of the 
'assignment' - a simple Document Management System - is:
 * new user registration and existing user login
 * admin-level user management
 * document upload and download
 * review and suggestion
 * a conditional matrix of 5 document conditions vs 3 user levels
 * 6 input forms
 * 2 listing layouts with fix sorting
 * conditional access to changing document conditions based on user levels

It took me about 4 hours to completely satisfy and debug the assignment 
specs with an OK interface. This was with plenty of code copy/modification 
from other web apps I've done before, or other online resources. I ended up 
spending nearly 4 more hours futzing around with the interface to get 
something really nice.

So, am I just a pretender? Are there people out there that can really bust 
out a basic DMS in 40 minutes?

If anyone does have some basic PHP programmer productivity benchmarks, or 
knows where I can get ahold of them, I'd sure appreciate it. This issue of 
productivity expectations has really gotten under my skin, and I need to 
know whether or not I should be doing this for a living.

Thanks,
-Derrick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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


RE: [PHP] Problem with PHP + WML + Post method

2004-06-03 Thread Tyler Replogle
hey,
don't you need a page thats after that and will check the info, if you have 
it will help use see what your problem with the $_POST[] is.



From: Shelby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP]  Problem with PHP + WML + Post method
Date: Fri, 4 Jun 2004 11:46:10 +0800
Hi,
I'm having problem with the Post method in my PHP + WML file.
Note that I have No problem with the Get method.
When I click Login,
The Error:
Malformed server response
I'm using Win2k + PHP436 for testing.
And I have set the MIME type in the IIS:
.wml
application/x-httpd-php
=
index.php
=
?
header(Content-type: text/vnd.wap.wml);
echo ?xml version=\1.0\?;
echo !DOCTYPE wml PUBLIC \-//WAPFORUM//DTD WML 1.1//EN\
.  \http://www.wapforum.org/DTD/wml_1.1.xml\;;
?
wml
card id=card1 title=Home
p
User ID: input name=myuserid size=15 value=/br/
Password: input type=password name=mypwd size=15 value=/br/
do type=accept name=next label=Login
go href=index.php method=post
postfield name=myuserid2 value=$myuserid/
/go
/do
/p
/card
/wml

Is there anything I miss out?
By the way, when I test with Win2003 server + PHP436, there is no problem.
Does the problem lie with the Win2k server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/

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


Re: [PHP] Spammers

2004-06-01 Thread Tyler Replogle
yeah same thing for me, but i don't really care, its no reason to start 
hacker the server.


From: Steve Douville [EMAIL PROTECTED]
Reply-To: Steve Douville [EMAIL PROTECTED]
To: Php-General-Help [EMAIL PROTECTED]
Subject: Re: [PHP] Spammers
Date: Tue, 1 Jun 2004 11:57:33 -0400
Those messages are only broadcast if you happen to send a message to the
board cause people have autoresponders set. Given that there are only two
and now one bad address returning a message, I find it fairly easy to just
hit the delete button three times. I don't think this qualifies as spam.
So, as I hit the send button, I know I'll have 3 messages to delete in a 
few
seconds. No big deal...
- Original Message -
From: The Digital E [EMAIL PROTECTED]
To: Php-General-Help [EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 11:50 AM
Subject: [PHP] Spammers

 Hey everyone, don't know about you, but I'm sick of spam and so I've
 reported the spammers to their ISP ipowerweb.com
 I've sent them the headers and traceroute results and their abuse team
 is investigating, it would be more powerful if a bunch of people
 complained about it, so if you have a minute and are sick of the
 garbage from suisse bank and information desk, send a quick email to
 the ISP. They should be shut down.

 Last resort
 If this doesn't work, I have a few buddies that would love to try out
 their DOS attack skills, but I'd rather deal with it legally.

 --
 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
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/

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


Re: [PHP] How to check for a $_GET without throwing a Notice?

2004-05-26 Thread Tyler Replogle
aslo you could change it to something else like this
$_GET['id'] = $id;
if (!$id) {
// whatever you want to happen put here
}
From: Daniel Clark [EMAIL PROTECTED]
Reply-To: Daniel Clark [EMAIL PROTECTED]
To: Brian Dunning [EMAIL PROTECTED],[EMAIL PROTECTED] 
[EMAIL PROTECTED]
Subject: Re: [PHP] How to check for a $_GET without throwing a Notice?
Date: Wed, 26 May 2004 10:59:20 -0700

if (isset( $_GET['id']))
How do I check for the presence of an optional $_GET param without
throwing a Notice: Undefined index when the param is not present?

Tried all three of these, they all produce the Notice when the param is
not passed:

if ($_GET['id'])
if ($_GET['id'] != )
if (isset $_GET['id'])

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


_
MSN Toolbar provides one-click access to Hotmail from any Web page – FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/

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


RE: [PHP] Possible Work in the Los Angeles Area...

2004-05-26 Thread Tyler Replogle
hey,
I'm not going to call you, but we can talk over the net with email. I also 
have msn ([EMAIL PROTECTED]) and aim (catim2005). That goes for anyone that 
want to talk. O and if see my buddy icon on aim don't be scared.

From: Domains4Days [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Possible Work in the Los Angeles Area...
Date: Wed, 26 May 2004 12:14:32 -0700
Hello,
I hope it's OK that I put this email on this list I have some possible
Web design work in the Los Angeles Area... regarding PHPMySQL.
If anyone wants to:
Can you call me ASAP to discuss the particulars?
Thanks,
Dave B.
Ph. 818 763-9988 - Cel: 818 314-8900
--
Thanks - RevDave
[EMAIL PROTECTED]
[db-lists]
Check out some great Domain Names at:
http://www.domains4days.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/

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


RE: [PHP] Re: clearing new pages

2004-05-26 Thread Tyler Replogle
hey, you could use some jave script there
a.php:
echo 'hello';
echoscript language=\Javascript\ window.location = 
'http://www.yourwebsite.com/b.php';



From: Rick Fletcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: clearing new pages
Date: Wed, 26 May 2004 12:52:55 -0700
  Hi,
   a file called a.php prints hello to the browser then calls
  b.php which prints goodbye to the browser.
  the output looks like this:
 
  hello
  goodbye
 
  how do I clear the screen so the end results looks like this:

 a.php:

 echo 'hello';
 header('location: b.php'); exit;
That actually wouldn't work, because once there's output (echo) you can't
send a header.
--Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Learn to simplify your finances and your life in Streamline Your Life from 
MSN Money. http://special.msn.com/money/0405streamline.armx

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


RE: [PHP] require_once('') relative path problem

2004-04-22 Thread Tyler Replogle
hey,
i didn't quite get when you ment by that but have you tried using 
$DOCUMENT_ROOT before your path, that might help it will be something like 
this
require_once('$DOCUMENT_ROOT/test/db.php');
$DOCUMENT_ROOT  goes to your first folder that shows up online (where your 
index page is)


From: Sheeraz fazal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] require_once('') relative path problem
Date: Thu, 22 Apr 2004 14:34:23 -0600
Hi,
I have problem in undertanding the 
require_once/require/include/include_once
functionality. Php files in my project are located in different folders.
Some folders have common files for other files. And file layout is like 
this

/*
File: a.php
*/
require_once('../test/db.php');
...
/*
File: db.php
*/
require_once('../globals/global.php');
...
when i include a.php in another file i get error for global.php file that
path could not be found. And if i correct the path in db.php then someother
file which is using db.php will get error. So, can someone elaborate that
how relative path works in require_once. what is the starting directory for
require_once function which is using relative path.
Or

Is there any way that i can included some constant which include the
absolute path from which all relative paths can be determined?
Comments welcome.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Lose those love handles! MSN Fitness shows you two moves to slim your waist. 
http://fitness.msn.com/articles/feeds/article.aspx?dept=exercisearticle=et_pv_030104_lovehandles

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


Re: [PHP] very large and long if statement

2004-04-08 Thread Tyler Replogle
yeah well they are really close but i add a ) on line 3





From: Andy B [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] very large and long if statement
Date: Thu, 8 Apr 2004 02:03:38 -0400
i dont see any difference in the one you wrote and the one i wrote...they
seem to be exactly the same??
- Original Message -
From: Tyler Replogle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 9:43 PM
Subject: RE: [PHP] very large and long if statement
 hey,
 i don't know how to make it smaller but should it be
 if
 (!empty($_SESSION['add']['type'])
  !empty($_SESSION['add']['start_date'])
  !empty($_SESSION['add']['end_date'])
  !empty($_SESSION['add']['name'])
  !empty($_SESSION['add']['county'])
  !empty($_SESSION['add']['discription'])
  !empty($_SESSION['add']['StartingDay'])
  !empty($_SESSION['add']['StartingMonth'])
  !empty($_SESSION['add']['StartingYear'])
  !empty($_SESSION['add']['EndingDay']})
  !empty($_SESSION['add']['EndingMonth'])
  !empty($_SESSION['add']['EndingYear']))
 {//run the insert query}
 else
 {//show error since one or more fields above are blank}

 ?
 From: Andy B [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] very large and long if statement
 Date: Wed, 7 Apr 2004 18:47:02 -0400
 
 I have this very large and long if statement:
 if
   (!empty($_SESSION['add']['type'])
!empty($_SESSION['add']['start_date']
!empty($_SESSION['add']['end_date'])
!empty($_SESSION['add']['name'])
!empty($_SESSION['add']['county'])
!empty($_SESSION['add']['discription'])
!empty($_SESSION['add']['StartingDay'])
!empty($_SESSION['add']['StartingMonth'])
!empty($_SESSION['add']['StartingYear'])
!empty($_SESSION['add']['EndingDay']})
!empty($_SESSION['add']['EndingMonth'])
!empty($_SESSION['add']['EndingYear']))
   {//run the insert query}
 else
   {//show error since one or more fields above are blank}
 was wondering if there was really any way to condense that down to
 something
 any better? all fields in the form that those came from are required...
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

 _
 Watch LIVE baseball games on your computer with MLB.TV, included with 
MSN
 Premium!

http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Check out MSN PC Safety  Security to help ensure your PC is protected and 
safe. http://specials.msn.com/msn/security.asp

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


RE: [PHP] very large and long if statement

2004-04-07 Thread Tyler Replogle
hey,
i don't know how to make it smaller but should it be
if
(!empty($_SESSION['add']['type'])
 !empty($_SESSION['add']['start_date'])
 !empty($_SESSION['add']['end_date'])
 !empty($_SESSION['add']['name'])
 !empty($_SESSION['add']['county'])
 !empty($_SESSION['add']['discription'])
 !empty($_SESSION['add']['StartingDay'])
 !empty($_SESSION['add']['StartingMonth'])
 !empty($_SESSION['add']['StartingYear'])
 !empty($_SESSION['add']['EndingDay']})
 !empty($_SESSION['add']['EndingMonth'])
 !empty($_SESSION['add']['EndingYear']))
{//run the insert query}
else
{//show error since one or more fields above are blank}
?
From: Andy B [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] very large and long if statement
Date: Wed, 7 Apr 2004 18:47:02 -0400
I have this very large and long if statement:
if
 (!empty($_SESSION['add']['type'])
  !empty($_SESSION['add']['start_date']
  !empty($_SESSION['add']['end_date'])
  !empty($_SESSION['add']['name'])
  !empty($_SESSION['add']['county'])
  !empty($_SESSION['add']['discription'])
  !empty($_SESSION['add']['StartingDay'])
  !empty($_SESSION['add']['StartingMonth'])
  !empty($_SESSION['add']['StartingYear'])
  !empty($_SESSION['add']['EndingDay']})
  !empty($_SESSION['add']['EndingMonth'])
  !empty($_SESSION['add']['EndingYear']))
 {//run the insert query}
else
 {//show error since one or more fields above are blank}
was wondering if there was really any way to condense that down to 
something
any better? all fields in the form that those came from are required...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/

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


RE: [PHP] Cookies

2004-04-07 Thread Tyler Replogle
yes i do but here is a really good tutorial on it
http://www.phpfreaks.com/tutorials/120/0.php



From: Wykis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Cookies
Date: Fri, 2 Apr 2004 16:52:23 +0100
Does Any One Knows How To Set And Get Cookies?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Persistent heartburn? Check out Digestive Health  Wellness for information 
and advice. http://gerd.msn.com/default.asp

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


RE: [PHP] can I get at screen size ?

2004-04-06 Thread Tyler Replogle
hey,
yes it would take 2 steps i made a script like this before so i know, i 
stpent much time looking for it, but php doesn't get info like that because 
it is running on the server and not the computer or viewer's computer




From: E.H.Terwiel [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] can I get at screen size ?
Date: Mon, 05 Apr 2004 16:20:03 +0200
I want to write a Server Side PHP program that generates a HTML page
client side.
How would I get at the clients' screen size, before serving the
generated page ?
Would it be a two-step process: first let the client execute a piece
of JavaScript to generate Height and Width, and then send those values
to the PHP server (FORM, PUT) ?
Or can it be done in only one PHP program ?
frgr
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Limited-time offer: Fast, reliable MSN 9 Dial-up Internet access FREE for 2 
months! 
http://join.msn.com/?page=dept/dialuppgmarket=en-usST=1/go/onm00200361ave/direct/01/

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


RE: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Tyler Replogle
hey, i think the reason you get no reply is becauase no one knows why it 
happens




From: Ben Ramsey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp
Date: Tue, 06 Apr 2004 14:27:08 -0400
I've asked about PHP Access Violation errors before (this very same error, 
as a matter of fact), and every time I ask, I get no response. It's been 24 
hours, and no one on php-general, pear-general, or #php and #pear in 
Freenode IRC has responded to this particular post.

Do I smell bad?

Please forgive me for refreshing my own post to the list, but this is an 
important question, and it is time-sensitive.  Any help or pointers would 
be greatly appreciated, as I cannot get around this issue at all.

Thanks,
Ben
Ben Ramsey wrote:

I'm getting the following error when using the Mail_smtp package from 
PEAR:

PHP has encountered an Access Violation at 0177A8B4

It does not occur everytime I use it, but even when send() returns true, 
e-mail messages are not being sent.  However, it all worked fine a week 
ago when I was testing it, and I don't think anything has changed to my 
installation of PHP.

I'm using PHP 5RC1 on a Windows Server 2003.  The localhost has no 
built-in mail functionality, so I cannot use mail().  I must use Mail_smtp 
to log in to the mail server.  I also have Net_SMTP and Net_Socket 
installed, and, like I said, when I first dropped in my code, all was 
working fine.

My code is, as follows:

code
require_once 'Mail/smtp.php';
$smtp_settings = array(
'host' = 'localhost',
'port' = '25',
'auth' = 'LOGIN',
'username' = 'username',
'password' = 'password'
);
$to = [EMAIL PROTECTED];
$msg = Line 1\nLine 2\nLine 3;
$headers = array(
'Subject'  = My Subject,
'From' = [EMAIL PROTECTED],
'Date' = date('r'),
'Content-Type' = 'text/plain',
'X-Mailer' = PHP/ . phpversion()
);
$mail = new Mail_smtp($smtp_settings);

if ($mail-send($to, $headers, $msg)) {
echo h2Sent successfully/h2;
} else {
echo h2Not sent/h2;
}
/code
If I don't get the access violation error, I get the message Sent 
successfully.  Yet, I don't receive any messages.

In the code for Mail_smtp (in Mail/smtp.php), I have added the following 
line just under the function declaration line for the send() method:

echo test;

When the access violation occurs, I get this line:

PHP has encountered an Access Violation at 0177A8B4test

 From this, it appears to me that the access violation is not occurring 
when the class tries to send mail, but sometime earlier than that. 
However, I do not know much more about these Access Violoations, other 
than PHP is trying to access memory that it doesn't have permission to 
access.  I couldn't find anything at bugs.php.net or through Google that 
helped much with this problem.

Any help would be greatly appreciated.  I am on a tight deadline, so any 
help ASAP would be even more greatly appreciated.  ;-)

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Tax headache? MSN Money provides relief with tax tips, tools, IRS forms and 
more! http://moneycentral.msn.com/tax/workshop/welcome.asp

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


RE: [PHP] Not exactly PHP....

2004-04-06 Thread Tyler Replogle
hey, what kind of news group are you talking about. Like a news script where 
people can post news? and would you like it in mysql or text files?


From: Shimi [EMAIL PROTECTED]
Reply-To: Shimi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Not exactly PHP
Date: Tue, 6 Apr 2004 21:29:49 +0200
can anyone email me explaining me how to crate my own news group? for
free...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Persistent heartburn? Check out Digestive Health  Wellness for information 
and advice. http://gerd.msn.com/default.asp

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


RE: [PHP] Pulling Certain Data

2004-04-06 Thread Tyler Replogle
hey,
trying putting at where in your SELECT * FROM $main_tbl so it looks like 
this
SELECT * FROM $main_tbl where whatever = somthing
you can also make a limit in SELECT * FROM $main_tbl just like this
SELECT * FROM $main_tbl LIMIT 4



From: Jason T. Davidson [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Pulling Certain Data
Date: Tue, 6 Apr 2004 14:40:38 -0500
Community-



I am a first time databaser and am having trouble pulling information from 
a
database to display on a site.  Not every entry is supposed to show up on
the web page, but does so.  I have tried IF statements without any help.
Here is what I have so far:



?

$r1=SELECT * FROM $main_tbl;

$rsql=mysql_query($r1,$db);

?



body text=#66 link=#66 vlink=#66 alink=#66

table width=600

  tr

td

  font size=5ZMP Rosters/fontfont size=5 - font
size=2a
href=http://www.vatusa.org/html/modules.php?op=modloadname=PN_Contentfile
=indexreq=visitartid=26VATUSA listing/a/font/font/td
  /tr

/table

br/br

table width=600

  tr

td

  font size=5Active Controllers/font/td

  /tr

/table

table width=600

tr bgcolor=#99

td width=180div align=centerfont
size=3strongCONTROLLER/strong/font/div/td
td width=60div align=centerfont
size=3strongCID/strong/font/div/td
td width=100div align=centerfont
size=3strongRATING/strong/font/div/td
td width=130div align=centerfont
size=3strongPOSITION/strong/font/div/td
td width=130div align=centerfont
size=3strongDATE JOINED/strong/font/div/td
/tr

?

while ($a_row=mysql_fetch_array($rsql))

{

?

tr bgcolor=#CC

td width=180 align=leftfont size=2? 
echo
$a_row[LNAME], $a_row[FNAME];?/font/td

td width=60 align=centerfont size=2? 
echo
$a_row[CID];?/font/td

td width=100 align=centerfont size=2?
echo $a_row[RATING];?/font/td
td width=130 align=centerfont size=2?
echo $a_row[POSITION];?/font/td
td width=130 align=centerfont size=2?
echo $a_row[JDATE];?/font/td
/tr

?}

?

/table

/body







I would like to only show people who are active within our roster and 
within
the database I have identified those people by putting a A, I or L
depending on their status with our organization.  I guess I am looking for 
a
way for the code to see how that person is labeled and then put them in the
proper roster.



www.zmpartcc.com/roster/roster.php



--

Jason T. Davidson



_
Check out MSN PC Safety  Security to help ensure your PC is protected and 
safe. http://specials.msn.com/msn/security.asp

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