Re: [PHP] mail() from addess problems

2004-09-07 Thread Josh Close
Thanks. -Josh On Tue, 07 Sep 2004 16:55:24 -0500, Greg Donald <[EMAIL PROTECTED]> wrote: > > > On Tue, 2004-09-07 at 16:52, Josh Close wrote: > > When I'm using mail() to send an email, the user is always > > > > From: "Apache" <[EMAIL PR

[PHP] mail() from addess problems

2004-09-07 Thread Josh Close
When I'm using mail() to send an email, the user is always From: "Apache" <[EMAIL PROTECTED]> How would I get this to change? I didn't see anything in php.ini or httpd.conf. I've found it's not possible to do a header rewrite with postfix either. -Josh -- PHP General Mailing List (http://www.p

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Josh Close
I'll do something similar to this. I don't want to have to turn short tags off :P -Josh On Wed, 1 Sep 2004 12:21:29 -0700, Michal Migurski <[EMAIL PROTECTED]> wrote: > > > > How do I get an xml tag to work with a php script? > > > > > > > > php is trying to parse that. > > ' ?> > > ugly, huh

Re: [PHP] xml tags interfere with php tags

2004-09-01 Thread Josh Close
u can do either by editing php.ini > > -Brent > > > > ----- Original Message - > From: "Josh Close" <[EMAIL PROTECTED]> > To: "PHP" <[EMAIL PROTECTED]> > Sent: Wednesday, September 01, 2004 1:08 PM > Subject: [PHP] xml tags

[PHP] xml tags interfere with php tags

2004-09-01 Thread Josh Close
How do I get an xml tag to work with a php script? php is trying to parse that. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [tcphp] alternating highlights

2004-08-03 Thread Josh Close
This is very simple actually That was very quick, but I hope it helps. -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] javascript type cast OT

2004-08-03 Thread Josh Close
On Tue, 3 Aug 2004 15:30:20 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > On Tuesday 03 August 2004 14:54, Alex Hogan offered up the following tid-bit > of information : > > However there is a difference between list courtesy and blatant > > aggression. I understand that there are going to be mo

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
On Tue, 03 Aug 2004 14:15:32 -0500, Alex Hogan <[EMAIL PROTECTED]> wrote: > > > All I have to say is, sorry I asked. > > OK.., now you're really making me want to take a poke at you. > > You posted off topic, knew it was off topic, you got spanked for it. > > Don't make things worse by whining.

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Ok. I write most my web apps in php. I rarely will use js for anything, but I needed it on this rare occasion. I didn't want to have to post to the same php page to get the results to change, so I though a little js would do the job. Being a php list, I thought that a few others would have run int

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Wow, no need to be an ass. I just wanted a little help and this list is usually pretty friendly and willing to help. but I guess not. On Wed, 4 Aug 2004 01:01:47 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Wednesday 04 August 2004 00:38, Josh Close wrote: > > Yes, but

Re: [PHP] javascript type cast

2004-08-03 Thread Josh Close
Yes, but most php users do some web programming and might have come across this before. -Josh On Tue, 3 Aug 2004 12:34:40 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > On Tuesday 03 August 2004 12:28, Josh Close wrote: > > P.S. I'm doing this in a php page... that&#

[PHP] Re: javascript type cast

2004-08-03 Thread Josh Close
...I found you can do var*1 to get it to type cast. Thanks. -Josh On Tue, 3 Aug 2004 11:28:16 -0500, Josh Close <[EMAIL PROTECTED]> wrote: > Is there any way to do a typecast in javascript? I know you can in > 2.0, but that won't work here. > > I have an input fi

[PHP] javascript type cast

2004-08-03 Thread Josh Close
Is there any way to do a typecast in javascript? I know you can in 2.0, but that won't work here. I have an input field and I need to add a number to it's value. var + 123 == 'var123' You would think that it would automatically typecast var to an int since it's being added to one, but it just c

[PHP] multiple checkboxes

2004-08-02 Thread Josh Close
Very simple question. When making multiple checkboxes, you put the name the same for a few to group them together So they are grouped but then submitting them I only get the last value check. How would I get all the boxes check when "grouping" them by using the same name for all c

Re: [PHP] freeTDS

2004-07-27 Thread Josh Close
Well, they're going to have to install php with mssql support also ./configure --with-mssql --with-freetds there are examples in the freetds.conf file of what you need to do. Basically just telling it where to connect. -Josh On Tue, 27 Jul 2004 16:49:37 -0400, John Nichel <[EMAIL PROTECTED]> w

Re: [PHP] Re: how to use session?

2004-07-21 Thread Josh Close
you have to have the session_start before ANY output, including , so do this On Thu, 22 Jul 2004 00:56:44 +0800, Sheawh <[EMAIL PROTECTED]> wrote: > even Example: page1.php > I got the same result, > and what if i set session auto start ?? > is that means it starts a new session when access

Re: [PHP] Re: Book Required

2004-07-17 Thread Josh Close
Here's a php5 book, and there's a few others. http://www.oreilly.com/catalog/learnphp5/index.html On Sat, 17 Jul 2004 19:28:37 +0100, Lester Caine <[EMAIL PROTECTED]> wrote: > Tularis wrote: > > > Programming PHP by O`Reilly :) > > Write-up says it STILL uses MySQL as it's database material ;(

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
That sounds about right. It pretty much described the behavior between the two versions. Thanks for the info. On Tue, 13 Jul 2004 18:44:06 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: > Curt Zirzow wrote: > > * Thus wrote Josh Close: > >> if($var) > >> > &

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
That sounds about right. It pretty much described the behavior between the two versions. Thanks for the info. On Tue, 13 Jul 2004 18:44:06 -0500, Michael Sims <[EMAIL PROTECTED]> wrote: > Curt Zirzow wrote: > > * Thus wrote Josh Close: > >> if($var) > >> > &

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I'm positive that it will always be set, 'cause I set it. It's just going the comparison. if($var) used to work for if($var != 0) or if($var != "0") but that doesn't seem to work since I upgrade. So I'm just going to do if((int)$var) from now on, 'cause that should always work. I'll typecast

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I think I'll just have to typecast everything, that should always work then. On Tue, 13 Jul 2004 15:47:40 -0400, Adam Bregenzer <[EMAIL PROTECTED]> wrote: > On Tue, 2004-07-13 at 15:35, Josh Close wrote: > > The problem is, if 0 gets changed to "0" somewhere t

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
intless 'cause it doesn't matter. I just want to know if the value != 0. The problem is, if 0 gets changed to "0" somewhere throughout. That's why I've always used if($var) because it's usually not cared what the type is, but it seems to now. On Tue, 13 Jul 2004

[PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I've noticed that in the last release of php 4.3.7 (or 5.0.0), that when checking the value of a variable has changed. ex: if($var){ /* do something */ } doesn't work anymore. I've had to change code to if($var > 0) but the problem is, what if $var was converted to $var = "0" instead of $var =

[PHP] warning: function registration failed

2004-07-12 Thread Josh Close
I installed php-5.0.0 and I get these error when doing "php -v" PHP Warning: Function registration failed - duplicate name - mssql_connect in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - mssql_pconnect in Unknown on line 0 PHP Warning: Function registration fai

Re: [PHP] Malicious SQL

2004-07-07 Thread Josh Close
It may escape a quote, but injections would still be possible in other ways. It gets passed in as \' but then used normally as ' when it's the the variable. -Josh On Wed, 7 Jul 2004 10:31:17 -0700, Brian Dunning <[EMAIL PROTECTED]> wrote: > I have a question about this. Here is from the document

Re: [PHP] post without

2004-07-07 Thread Josh Close
/www.dailymedication.com - Everything you didn't know you needed > until you went there and said to yourself, "What did I do before I visited > DailyMedication.com?" and another part of you answered, "It does not matter. > You are here now." > > >From: Jo

[PHP] post without

2004-07-07 Thread Josh Close
How can I post data without having it submitted from within a form? With get I can just add it to the url. Is there a php function for this? -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen newbie question

2004-07-06 Thread Josh Close
Can you post your code so we can see what might be going on? -Josh On Mon, 5 Jul 2004 13:06:58 -0400, Joe Carey <[EMAIL PROTECTED]> wrote: > I'm trying to read a text file from one server from another. When I read > from server A to B it works fine and I get the text output that I'm looking > f

Re: [PHP] regular expression

2004-07-02 Thread Josh Close
First of all, you might want to put more than one % probably like %%% Reason is, asp users <% %> like php uses . Just a precaution. You almost had the regex right. /%[a-z]+%/i Thans means, starts with a %, can match a-z, at least once (the + part) but as many times (greedy), then another %

[PHP] Re: regex problem

2004-07-01 Thread Josh Close
Thanks, that's exactly what I was looking for. -Josh On Thu, 01 Jul 2004 15:17:41 -0700, Lars Torben Wilson <[EMAIL PROTECTED]> wrote: > > Josh Close wrote: > > > I'm trying to get a simple regex to work. Here is the test script I have. > > > > #!

Re: [PHP] regex problem

2004-07-01 Thread Josh Close
Why is it taking the char before the [^\r] also? -Josh On Thu, 1 Jul 2004 15:17:04 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > > On Thu, 1 Jul 2004 16:41:50 -0500, Josh Close <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get a simple regex to w

[PHP] regex problem

2004-07-01 Thread Josh Close
I'm trying to get a simple regex to work. Here is the test script I have. #!/usr/bin/php -q This outputs hell\r\nworl\r\n so it's removing the char before the \n also. I just want it to replace a lone \n with \r\n -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

RE: [PHP] socket_set_block undefined

2004-06-25 Thread Josh Close
Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 3:21 PM > To: Josh Close > Subject: RE: [PHP] socket_set_block undefined > > > > That sounds about right :) After sending my first > reply I realized it was the most likel

RE: [PHP] socket_set_block undefined

2004-06-25 Thread Josh Close
also, i know socket_set_option() used to be socket_setopt(), that's why i ask -Josh > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 2:11 PM > To: Josh Close > Cc: PHP (E-mail) > Subject: Re: [PHP] soc

RE: [PHP] socket_set_block undefined

2004-06-25 Thread Josh Close
t_set_block() -Josh > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 2:11 PM > To: Josh Close > Cc: PHP (E-mail) > Subject: Re: [PHP] socket_set_block undefined > > > > > I'm trying to use socket

[PHP] socket_set_block undefined

2004-06-25 Thread Josh Close
I'm trying to use socket_set_block and php.net says (php4 >= 4.2, php5). I'm using version 4.3.1 but I get this error Fatal error: Call to undefined function: socket_set_block() in . Any idea why this is? Has the name changed or been something else? socket_set_nonblock() work fine. -Josh

RE: [PHP] mail sent but not received?!

2004-06-25 Thread Josh Close
Your message could have bounced or been rejected for some other reason, in which case you wouldn't have recieved it, but it'll look like it's sent fine. -Josh > -Original Message- > From: Bing Du [mailto:[EMAIL PROTECTED] > Sent: Friday, June 25, 2004 11:08 AM > To: [EMAIL PROTECTED] >

RE: [PHP] socket_bind

2004-06-25 Thread Josh Close
ss then 1024 need superuser permission > to bind. And because Apache typically runs as nobody you > don't have permission, so either run apache as root (DANGER!) > or choose a socket above 1024. > > -Brad > > - Original Message - > From: Josh Close <[EMAIL P

[PHP] socket_bind

2004-06-25 Thread Josh Close
I'm trying to do socket_bind() and it works fine from the command line as root, but when I try to use it through apache I get this error Warning: socket_bind() unable to bind address [13]: Permission denied in .. Is there a way to have this run through apache? -Josh -- PHP General Mailing