Re: [PHP-WIN] i need help

2004-05-18 Thread Peter 'iridium' Waller
Jordi Canals wrote: Student wrote: I want to trim the following text [i:abcdef] Hi, You can do: $data = '[i:something]'; $array_data = explode(':',$data); and you will have: '[i' in $array_data[0] 'something]' in $array_data[1] If i understod corretly, you want to get only something, so you need $

RE: [PHP-WIN] Disclaimers

2004-05-18 Thread George Pitcher
Anders, Just send me your credit card details and I'll comply with your newest disclaimer :^) George > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] > Sent: 18 May 2004 3:01 pm > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Disclaimers > > > Even thou I mi

Re: [PHP-WIN] Disclaimers

2004-05-18 Thread Svensson, B.A.T. (HKG)
Even thou I might agree with Tony, his full opinion in this matter may not necessarily be shared with me. I did not intended to ask them not include these disclaimer, I just wanted to protect my own rights of privacy. :) I do know that some employees are forced by the company board to add such dis

RE: [PHP-WIN] PHP 5 try catch block

2004-05-18 Thread Vincent Jansen
I use something like the example here http://www.php.net/manual/en/ref.errorfunc.php Vincent -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] i need help

2004-05-18 Thread Cory D. Wiles
Assuming you are doing just one string at a time: $regex = "/(\[i:)(\w+)(\])/i"; preg_match($regex, $str, $matches); print $str;//original string print substr($matches[2], 1, 3);//trimmed string ?> Gryffyn, Trevor wrote: If the format is consistantly the same, try this: $somedata = "[i:aslkdfj]";

[PHP-WIN] Disclaimers

2004-05-18 Thread George Pitcher
Whilst I agree with the sentiments of Tony and B.A.T., some of us must as a condition of using their employers' email facilities, add company disclaimers to their messages. As long as they don't start to appear at the top of messages, I will continue to ignore them. George in Oxford > -Origi

RE: [PHP-WIN] Date Format in MySQL

2004-05-18 Thread Tony Devlin
Disclaimers are not legally binding in email, so I have no idea why people feel the need to include them. The reason why disclaimers are not legally binding in email is because the recipient has no way to read the disclaimer and reject the email prior to reading the message, it would be like forci

RE: [PHP-WIN] i need help

2004-05-18 Thread Gryffyn, Trevor
If the format is consistantly the same, try this: $somedata = "[i:aslkdfj]"; $insidedata = substr($somedata,3,strlen($somedata)-4); -TG > -Original Message- > From: Student [mailto:[EMAIL PROTECTED] > Sent: Monday, May 17, 2004 11:42 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subje

Re: [PHP-WIN] How do you do....

2004-05-18 Thread Cory D. Wiles
There are a few ways of doing it. The way that I always append it is by doing the following: Link to page Daniel Anderson wrote: Hi, 1: can anyone tell me how to do a session ID in the URL? so you could have something

RE: [PHP-WIN] PHP 5 try catch block

2004-05-18 Thread Charles P. Killmer
Thanks. Is there any way to catch fatal errors, and have the script do something else more gracefull. Like maybe log the error and redirect or something. Charles -Original Message- From: Vincent Jansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 18, 2004 3:03 AM To: Charles P. Killme

Re: [PHP-WIN] Date Format in MySQL

2004-05-18 Thread Svensson, B.A.T. (HKG)
DISCLAIMER: By sending any electronically information to Mr. B.A.T. Svensson' mailbox the sender agrees that, regardless content, attachments, intended recipient, disclaimers, human error, stupidity, plain ignorance or any other legal claims or matter, that B.A.T. Svensson is to be consider the exc

[PHP-WIN] Date Format in MySQL

2004-05-18 Thread Steven Sher
Slightly off php topic I would like to know if I can change the default date format on MySQL server either for the entire server or for a particular database, as apposed to formatting the date every time I input data or retrieve it out the database. Thanks Steven ~ Techtron Computers & Electro

[PHP-WIN] How do you do....

2004-05-18 Thread Daniel Anderson
Hi,   1: can anyone tell me how to do a session ID in the URL?   so you could have something like:   www.someserver.com/figures.php?what=about&sid=123d8asf87yf9013987rfr   How do I get it to do that sort of thing?   2: Can you change the font face in the Create Image thingy, so instead

Re: [PHP-WIN] Photo gallery with description

2004-05-18 Thread Marcus Haase
http://pss.pryde.de/ Thats mine, might wanna have a look at it. Marcus Trevor Gryffyn wrote: I'm doing my own and plan to keep developing it. I feel the same way, those other scripts are really neat but they do WAY too much for what I want. The script that powers the link below is one file, no dat

[PHP-WIN] php performance on IIS 6

2004-05-18 Thread Mike Booth
I was having a performance problem when running any php pages on IIS 6, the problem was that the page would load in the browser extremely slow, running a simple loop would take ages to output anything. I didn't get into testing much to find out where the speed issues are exactly but I found a fix f

Re: [PHP-WIN] i need help

2004-05-18 Thread Jordi Canals
Student wrote: I want to trim the following text [i:abcdef] but the inside text is different at time eg abcdef, bcdefg, etc etc how can i trim [i:(some text here)] so that i can replace them with nothing. eg these are to be trimmed. [i:abcdef] [i:bcdefg] [i:xyzab] [i:priftds] how can i trim them..

RE: [PHP-WIN] PHP 5 try catch block

2004-05-18 Thread Vincent Jansen
You can only catch exceptions. will allways result in fatal error results in "all ok" though. Vincent -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php