RE: [PHP] Custom Open Tags

2004-12-01 Thread Gryffyn, Trevor
I think there's a way to redefine what tag PHP uses, but I think it globally resets it. I don't think you can say "use and also use ". I think that setting is in PHP.INI somewhere. It might be easier to change your "to be executed later" php tags to something else and before it's sent to it's f

RE: [PHP] Text Parser

2004-12-02 Thread Gryffyn, Trevor
That should do it. The only weird bit is adding the single quotes to the beginning and end of the final string. You could also do a str_replace() And of course you can do regex stuff, but I'm not good at that so I'll leave an example to someone else if they care to give one. Just rem

RE: [PHP] Re: Browsing while downloading?

2004-12-02 Thread Gryffyn, Trevor
Yeah, this isn't a PHP specific problem, BUT, in the off chance that PHP could solve the problem (using a different method of sending to the browser, etc) then it becomes PHP relevant... So everyone give the guy a break on the relevance issue. If there were two ways of doing something and you onl

RE: [PHP] Free for commercial use?

2004-12-02 Thread Gryffyn, Trevor
Taken from http://www.php.net/license/: Note: the following questions and answers only apply to version 2.01 and 2.02 of the PHP license. Ignore for version 3.0. Q. What does the PHP license mean then, in simple words? A. (Note: This answer should in no way be taken to replace the PHP license,

RE: [PHP] Days remaining? (years, months, days, hours, minutes, seconds..etc)

2004-12-02 Thread Gryffyn, Trevor
I don't know of a built-in function, but you're welcome to use my daydiff script below. It actually gives you year, month, day, hour, minute, second.. Not just days. But modify it as you desire. -TG 31536000,"Months"=>2592000,"Days"=>86400,"Hours"=>3600,"M inutes"=>60); # How many seconds betw

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Gryffyn, Trevor
If it's a un*x system and you have permissions to connect to the SMTP server, you could use the VRFY command to check to see if their email address exists or not maybe: Example of Verifying a User Name Either S: VRFY Smith R: 250 Fred Smith <[

RE: [PHP] Page that checks if a user exists on a remote system

2004-12-02 Thread Gryffyn, Trevor
ts on a > remote system > > > On Thursday 02 December 2004 23:32, Gryffyn, Trevor wrote: > > If it's a un*x system and you have permissions to connect > to the SMTP > > server, you could use the VRFY command to check to see if > their email > > address exists o

RE: [PHP] Date Manipulation

2004-12-02 Thread Gryffyn, Trevor
In addition to Matthew's response... Strtotime() and mktime() both return a serial date. That's the "1101945775" number you got. To get this back to a mmdd format that you seem to be trying to do with mktime(), you want to use date() as Matthew suggested. Again, I think examples help more t

<    1   2