RE: [PHP] Problem connecting to POP3 accounts

2003-04-03 Thread Danny Shepherd
Try: $strMailServer = {domain.co.uk:110/pop3}INBOX; As per the manual. HTH Danny. -Original Message- From: Alec Wallis [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 18:35 To: [EMAIL PROTECTED] Hi I am currently experiencing some problems connecting to POP3 accounts using imap_open.

RE: [PHP] Constants and Here Document Interpolation

2003-03-01 Thread Danny Shepherd
Hello, It doesn't look like it - a note in the constants manual entry reads: PHP has no way of recognizing the constant from any other string of characters within the heredoc block Danny. -Original Message- From: Daniel R. Hansen [mailto:[EMAIL PROTECTED] Sent: 01 March 2003 15:57 To:

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Danny Shepherd
Hi, Well it's hardly rocket science - a flick through the manual and I came up with : $name=ucwords(strtolower($name)); HTH Danny. - Original Message - From: Geoff Caplan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:31 AM Subject: [PHP] Capitalising

Re: [PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Danny Shepherd
I'd say an even simpler workaround would be to add '[EMAIL PROTECTED]' as the fifth parameter to the mail function - just as in example 3 of the docs. Danny. - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 3:43 PM

Re: [PHP] What's the scoop on PHP 5?

2003-02-13 Thread Danny Shepherd
The latest cvs snapshots for PHP4.3.x and PHP5.0.x can be found at http://snaps.php.net Danny. - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 8:50 PM Subject: [PHP] What's the scoop on PHP 5? Anyone know what the

Re: [PHP] Attaining NTLM information from IE browsers.

2003-02-08 Thread Danny Shepherd
There is actually an NTLM Auth module available for Apache. (http://modntlm.sourceforge.net/). If you really need to do it though PHP I'd suggest running a packet sniffer to see what headers IIS sends and what to expect back from IE. HTH Danny Shepherd. - Original Message - From

Re: [PHP] PHP Framework

2003-02-03 Thread Danny Shepherd
Well, Yahoo! have moved/are moving to Smarty and they get a few million views a day. The killer part with smarty is that it converts the Smarty tags, in your template, to real PHP code - that's what makes it so fast. It's also very easy to extend. Danny. - Original Message - From: John

[PHP] Re: [SOAP] Re: soap post and http 1.1 100 continue

2003-01-25 Thread Danny Shepherd
- Original Message - From: Dominik Wittenbeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 25, 2003 3:28 PM Subject: [SOAP] Re: soap post and http 1.1 100 continue Yep, know that one, Why it does happen: although the HTTP 1.1 spec states that a HTTP 100 SHOULD NOT

Re: [PHP] Script under Windows OK, under Linux, not...

2003-01-25 Thread Danny Shepherd
Why are you opening the file in append mode? As the manual says: a+' - Open for reading and writing; place the file pointer at the end of the file. Try using 'r+' instead or rewind the file pointer before reading. Danny. - Original Message - From: Daniel Page [EMAIL PROTECTED] To:

Re: [PHP] Random Row...

2003-01-16 Thread Danny Shepherd
Don't make life difficult for yourself :) SELECT * FROM myTable ORDER BY RAND() LIMIT 0,1 HTH Danny. - Original Message - From: Brian McGarvie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 9:37 AM Subject: [PHP] Random Row... $sql = select count(*)

Re: [PHP] Getting a dynamic IP address

2003-01-16 Thread Danny Shepherd
$_SERVER['SERVER_ADDR'] gives the address of the server running the php script $_SERVER['REMOTE_ADDR'] gives the client address or the proxy address. (be careful here, storing a proxy's IP is next to useless) $_SERVER[' HTTP_X_FORWARDED_FOR'] gives the client address if they're behind a proxy (if

Re: [PHP] Question about $_GET

2003-01-15 Thread Danny Shepherd
Try $query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = {$_GET['id']}; HTH Danny. - Original Message - From: Frank Keessen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 15, 2003 10:50 AM Subject: [PHP] Question about $_GET Hi All, Can you please

Re: [PHP] HTTP_ACCEPT - Reliabilty?

2003-01-14 Thread Danny Shepherd
Hi, No, I wouldn't rely on it at all, I couldn't find a browser that *does* have that mime-type in it's header! - Here's what IE6 sends : Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */* Accept-Language: en-gb Accept-Encoding: gzip, deflate Flash, along with

Re: [PHP] php5 cvs

2003-01-11 Thread Danny Shepherd
It includes the latest CVS build of ZendEngine 2.0 - AFAIK it hasn't even reached beta status yet, so don't even think about using it for production work. That said, I didn't have any problems building it and it seems pretty stable. A list of changes and features can be found at

Re: [PHP] Is this possible with php?

2003-01-10 Thread Danny Shepherd
Hi, Where did he say he wanted to use Word to edit PHP files? AFAICT the idea was to automatically upload Word files, presumably to make them available on an Intranet for download etc. As for uploading a file automatically - PHP isn't going to do it. An app which can map a virtual drive in

Re: [PHP] money

2003-01-09 Thread Danny Shepherd
http://www.php.net/manual/en/function.number-format.php - Original Message - From: Wilbert Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 09, 2003 10:44 AM Subject: [PHP] money Hi all, I'm busy making a swebstore. I have troubles with the format of money. I

Re: [PHP] Apache 2 and PHP 4.2.3.

2002-11-16 Thread Danny Shepherd
In short - looks as if your version of Apache 2 is out of date. You're using a version from 28th June, the PHP dll was built against a version from 3rd September. Danny. - Original Message - From: Horst Gassner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 16, 2002

Re: [PHP] Re: GD 1.5

2002-11-16 Thread Danny Shepherd
Actually, GD2 can be compiled (after a patch) to read/write GIFs with LZW compression (the LZW algorithm is the root of the legal iffyness), but (AFAIK) you're only legally allowed to enable it if you live outside the US Canada. AFAIK only FreeBSD's ports system does this atm. - Original

Re: [PHP] OOP-related question

2002-11-14 Thread Danny Shepherd
Hello, Adding the following as the first line of overall-load() should solve your problem. global $$class; HTH, Danny. - Original Message - From: Tularis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 8:18 PM Subject: [PHP] OOP-related question Hey, I

Re: [PHP] OOP-related question

2002-11-14 Thread Danny Shepherd
; $$class = new $class; $this-loaded[$class] = 1; $$class-setup(); // Run constructor if(!is_object($$class)){ return false; } return true; } } Danny Shepherd wrote: Hello, Adding the following as the first line of overall-load() should solve your problem. global $$class; HTH

Re: [PHP] Elliptic curve cryptology

2002-09-22 Thread Danny Shepherd
http://www.amazon.com/exec/obidos/ASIN/1884777694/102-5129419-0804910 - Original Message - From: EjdeR [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 22, 2002 11:12 AM Subject: [PHP] Elliptic curve cryptology i cant find any example about Elliptic curve cryptology..

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Danny Shepherd
Apache 2 isn't officially supported yet. If you get the latest version of both then you shouldn't hit to many hurdles but you should know that you'll get no official support and it isn't recommended for production environments. If you need Apache2 then you'll know why - if you don't know what

Re: [PHP] In version 4.2.1 ereg_replace break Apache

2002-08-12 Thread Danny Shepherd
Have you tried it on a non debug build? Danny - Original Message - From: Marcello Lupo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 12, 2002 8:14 PM Subject: [PHP] In version 4.2.1 ereg_replace break Apache ## A simple function to remove consonant ##

Re: [PHP] dates greater than 2002-01-18 create error

2002-08-12 Thread Danny Shepherd
It's a fairly well known problem now but I'm sure we'll all be using (at least) 64bit integers for storing this sort of stuff by 2038. FYI, the current 32bit signed int allows for around 68years - a 64bit signed int will give us a few billion years :) Danny. - Original Message - From:

Re: [PHP] Whois...

2002-08-12 Thread Danny Shepherd
http://phpbuilder.com/snippet/download.php?type=snippetid=1086 - This one works pretty well - checks most domain (everything except .tv and such) HTH Danny. - Original Message - From: David Freeman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 12, 2002 11:32 PM Subject:

Re: [PHP] Include php code as variable

2002-08-03 Thread Danny Shepherd
http://www.php.net/eval - Original Message - From: Alawi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 11:41 AM Subject: [PHP] Include php code as variable How can I Include my php code code as variable and excute it ? -- PHP General Mailing List

Re: [PHP] string questions

2002-08-03 Thread Danny Shepherd
Try, list($test)=explode(' ',$address); HTH Danny - Original Message - From: webmaster [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 5:35 PM Subject: [PHP] string questions I know there has to be an easy way to do this, but I just can't find the answer.

Re: [PHP] what is equivalent to Response.End ?

2002-08-03 Thread Danny Shepherd
http://php.net/die http://php.net/exit Both will stop your code. Dead. Danny. - Original Message - From: Ing. Rajesh Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 3:50 PM Subject: [PHP] what is equivalent to Response.End ? Hi everybody Can someone

Re: [PHP] RegEx (back referencing)

2002-08-03 Thread Danny Shepherd
try \\1 - Original Message - From: Phil Ewington [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 5:03 PM Subject: [PHP] RegEx (back referencing) Hi, I am am writing a function to color code and indent JavaScript source using regular expressions

Re: [PHP] RegEx (back referencing)

2002-08-03 Thread Danny Shepherd
- not perfect, but a start. Danny. - Original Message - From: Phil Ewington [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 5:52 PM Subject: RE: [PHP] RegEx (back referencing) \\1 outputs nothing at all wrapped in font tags and closing tags \ wrapped

Re: [PHP] RegEx (back referencing)

2002-08-03 Thread Danny Shepherd
PM Subject: RE: [PHP] RegEx (back referencing) Danny, It still doesn't work, could this be a problem in 4.0.4pl1 ?? -Original Message- From: Danny Shepherd [mailto:[EMAIL PROTECTED]] Sent: 03 August 2002 18:11 To: [EMAIL PROTECTED]; PHP-General Subject: Re: [PHP] RegEx

Re: [PHP] RegEx (back referencing)

2002-08-03 Thread Danny Shepherd
Ok, a very slightly modified version of your first attempt should work then $fcontent = eregi_replace((/?)(scr[^]*), «font color=maroon»\\0«/font», $fcontent); Note the \\0 instead of \\1 HTH Danny. - Original Message - From: Phil Ewington [EMAIL PROTECTED] To: Danny Shepherd [EMAIL

Re: [PHP] Re: Protect PHP coding

2002-08-03 Thread Danny Shepherd
So, go write JSP for someone then and stop bugging us. - Original Message - From: Acer [EMAIL PROTECTED] To: Scott [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 10:48 PM Subject: RE: [PHP] Re: Protect PHP coding Scott wrote: You're kidding, right? When was

Re: [PHP] PHP Hosting

2002-08-02 Thread Danny Shepherd
Take a look at this directive : http://www.php.net/manual/en/configuration.php#ini.open-basedir Danny. - Original Message - From: Matt Babineau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 02, 2002 2:04 PM Subject: [PHP] PHP Hosting If any PHP hosts are out there I

Re: [PHP] Form asking to refresh when I hit the back button

2002-08-01 Thread Danny Shepherd
This is generally caused by using POST as the form's methods. Try using GET instead. Danny. - Original Message - From: DonPro [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 3:57 PM Subject: [PHP] Form asking to refresh when I hit the back button Not

Re: [PHP] web services and PHP

2002-08-01 Thread Danny Shepherd
I think he means XML WebServices (probably using SOAP) It's not too difficult, there are a few SOAP classes for PHP now, simply send your SOAP encoded request to the server, via HTTP, and decode the SOAP response that you get back. There's also a SOAP module for PHP (alpha release atm) at

Re: [PHP] mcrypt

2002-08-01 Thread Danny Shepherd
Just base64 encode the mcrypt output if the non printable chars bother you, though I don't really see what the problem is, unless you're pushing the output to a web page. Danny. - Original Message - From: Randy Johnson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 01,

Re: [PHP] Problem with ?xml .... inside the PHP code, due to ?

2002-08-01 Thread Danny Shepherd
Try: ?php $XML = .?xml version='1.0' encoding='UTF-8'?ProductApple/Product; echo $XML; ? HTH Danny. - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 5:03 PM Subject: [PHP] Problem with ?xml inside the PHP code, due

Re: [PHP] mcrypt

2002-08-01 Thread Danny Shepherd
Try setting the database field type to 'BLOB' Danny. - Original Message - From: Randy Johnson [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 4:51 PM Subject: Re: [PHP] mcrypt I found that the some of the high ascii

Re: [PHP] Disabling Browser BACK button

2002-07-31 Thread Danny Shepherd
On processing page (I.e the form's action page - where the stuff is entered into the db) set another session var so that your app knows that the form has been submitted, data entered etc. The actual form page should have some extra logic at the top which checks for this extra session var,

[PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
Hello All, So, I've been using my own implementation of session handling which is mainly storing the userinfo in a cookie (an array, serialised and signed) but I'm starting to come around to the idea of storing this info on the server and just passing a session key about - but I have a couple of

Re: [PHP] apache and php

2002-07-30 Thread Danny Shepherd
For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2 The developer systems, I'd go for (indeed have gone for) Apache 2.0.39 + PHP4.2.2 HTH Danny. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:01 AM Subject: [PHP]

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
Comments inline - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: PHP-General [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:24 AM Subject: Re: [PHP] Sessions - Informed Opinions Assuming that sessions are stored

Re: [PHP] apache and php

2002-07-30 Thread Danny Shepherd
- Original Message - From: [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:30 AM Subject: Re: [PHP] apache and php Danny Shepherd wrote: For release systems, the recommended setup is Apache 1.3.26 + PHP4.2.2

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
- Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Cc: PHP-General [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 11:52 AM Subject: Re: [PHP] Sessions - Informed Opinions 3 How can I get a count of currently active (I.e non expired

[PHP] Serialised Data DBs

2002-07-30 Thread Danny Shepherd
Hi, Is it necessary to perform addslashes() on serialised data before inserting it into a database? Thanks, Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Serialised Data DBs

2002-07-30 Thread Danny Shepherd
- Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED]; PHP-General [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 8:18 PM Subject: Re: [PHP] Serialised Data DBs Yes, it'd be really smart to. If any of the data in the serialized string

Re: [PHP] Trouble Making 4.2.2

2002-07-30 Thread Danny Shepherd
I think your actual error is much further up - the sapi appears because you're building PHP as an Apache module. The actual error will have a (kind of) English description - post that along with your config options and a more detailed description of your setup and maybe we can help. Danny.

Re: [PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
- Original Message - From: Tech Support [EMAIL PROTECTED] To: Danny Shepherd [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 6:44 PM Subject: Re: [PHP] Sessions - Informed Opinions If you're on a shared system it's very easy for other users on your machine to read session data. All

Re: [PHP] Re: Public Scripts in a commercial product

2002-07-30 Thread Danny Shepherd
- Original Message - From: David Freeman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 30, 2002 6:09 AM Subject: RE: [PHP] Re: Public Scripts in a commercial product Yes, I am afraid that regarding GPL I have to agree with Microsoft when they say it is a cancer.

Re: [PHP] Array variable in Javascript PHP

2002-07-29 Thread Danny Shepherd
Try using: input type=checkbox id=list1 name=list1[] value=Education onclick=addList() Education input type=checkbox id=list1 name=list1[] value=Profession onclick=addList() Profession That's what I used when doing something pretty similar to you. HTH Danny. - Original Message -

Re: [PHP] Re: PostgreSQL

2002-07-29 Thread Danny Shepherd
Checkout this FAQ - http://www.ejip.net/faq/postgresql_win_setup_faq.jsp HTH Danny. - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Richard Lynch [EMAIL PROTECTED]; Hadi [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 29, 2002 2:24 PM Subject: Re: [PHP]

Re: [PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Danny Shepherd
Ok, here's how I do it: 1. User clicks the lost password page: 2. Email is sent to user's registered email address. Email contains a url to the newpassword page and has a validation code. This validation code is also stored in the userinfo table (it's the MD5 of current date + time + random

Re: [PHP] FreeBSD 4.6 / PHP 4.2.2 / Apache 2.0.39 install trouble

2002-07-25 Thread Danny Shepherd
Try building apache2 and modphp4 using the FreeBSD ports system - that's how I compiled and it works fine here. HTH Danny. Apache2.0.39/PHP4.2.2/FreeBSD4.6 - Original Message - From: Chad Day [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 25, 2002 5:38 PM Subject: [PHP]

Re: [PHP] Re: Binary Files :: They Keep Adding Blocks

2002-07-18 Thread Danny Shepherd
Try using just '\n' not '\r\n' as notepad doesn't understand carriage returns, hence the funny little square. - Original Message - From: Vincent Kruger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 18, 2002 9:11 AM Subject: Re: [PHP] Re: Binary Files :: They Keep Adding

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Danny Shepherd
I agree - nothing beats a good portfolio. Danny. - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Martin Clifford [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 6:55 PM Subject: Re: [PHP] Of Jobs and Certs On Wed, 17 Jul 2002, Martin Clifford

Re: [PHP] GIF Manipulation

2002-07-16 Thread Danny Shepherd
GD2 does have a compile time option which will re-enable support for writing GIFs. AFAIK you're only legally allowed to enable it if you live outside of the US/Canada. HTH Danny. - Original Message - From: Jason Reid [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Nick Oostveen [EMAIL

Re: [PHP] mcrypt

2002-07-16 Thread Danny Shepherd
ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/ - Original Message - From: Peter [EMAIL PROTECTED] To: php_gen [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 1:16 AM Subject: [PHP] mcrypt Howdy all.. does any one know of another place i can download a win32 ver of mcrypt other than

Re: [PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Danny Shepherd
You need to compile with GD2 if you want to use any of the 2.* functions in PHP - phpinfo will say 'GD 2.0 or higher' HTH Danny. - Original Message - From: Kevin Waterson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 11, 2002 1:49 PM Subject: [PHP] PHP 4.3.0-dev and gd

Re: [PHP] PHP and Apache2?

2002-07-10 Thread Danny Shepherd
Who knows when they'll officially state that PHP runs on Apache2 - I've been running it for a while now without much trouble (4.2.1 + 2.0.36/2.0.39) - the only problem that I've really seen (though not been affected by) is that multiple cookies seem to break - only the last cookie is set

Re: [PHP] ???? etc

2002-07-10 Thread Danny Shepherd
- Original Message - From: Mark Gallagher [EMAIL PROTECTED] To: Ben Ramsey [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 10:14 AM Subject: Re: [PHP] ??ØØ The list really can be a

Re: [PHP] Now a Question for all you ARRAY Junkies

2002-07-10 Thread Danny Shepherd
just sort($Lang); A question: wouldn't it have been quicker to knock out a couple of test files to see which is the right way? HTH Danny. - Original Message - From: vins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 1:36 PM Subject: [PHP] Now a Question for

Re: [PHP] Dos Paths

2002-07-10 Thread Danny Shepherd
The problem with this method is assuming the ~1 part. What if I have: 'My Directory'- MYDIRE~1 'My DirectoryForPics' - MYDIRE~2 Now if your path has 'My DirectoryForPics' it's going to translate that into MYDIRE~1 which won't work. HTH Danny. - Original Message - From:

Re: [PHP] cookies

2002-07-10 Thread Danny Shepherd
To set a session cookie (one that is deleted when the browser window is closed) set a cookie without any expire date/time. To delete a cookie set a cookie of the same name with an expire date in the past. HTH Danny. - Original Message - From: Alexander Ross [EMAIL PROTECTED] To:

Re: [PHP] Dos Paths

2002-07-10 Thread Danny Shepherd
Ah, that'll teach me to actually read the post next time, not just the code :) Danny. - Original Message - From: Michael Sims [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 2:02 PM Subject: Re: [PHP] Dos Paths On Wed, 10 Jul 2002 13:56:39 +0100, you wrote:

Re: [PHP] Re: cookies

2002-07-10 Thread Danny Shepherd
No, I just tested it myself - if you set a cookie with no expire date it exists until the browser window is closed. My code: ?php if (!isset($_COOKIE['TestCookie'])) { setcookie (TestCookie, FUD); echo Just Set a cookie - reload the page; } else { echo Cookie is :

Re: [PHP] question varibles and url

2002-07-10 Thread Danny Shepherd
What version of PHP are you using? Have you got register_globals on? If they're off you'll need to get the $sort variable by using $HTTP_GET_VARS['sort'] (or $_GET['sort'] if you're using PHP4.1.0 or later) You attachched the wrong file (html output instead of PHP source) You really could do

Re: [PHP] header()

2002-07-09 Thread Danny Shepherd
header() simply sends response headers - I.e adds/replaces server headers - it has no effect on request headers sent by the client. If, for some reason, you want to alter the user-agent you've received from the client (for testing maybe?) you can do this: echo $_SERVER['HTTP_USER_AGENT'];

Re: [PHP] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ

2002-07-09 Thread Danny Shepherd
If read the earlier posts you'll find that this is the guy who was to thick to unsubscribe himself this morning - he obviously still hasn't got it so he's trying to get a lifetime ban. So sad, so filtered :) Danny. - Original Message - From: Rodolfo Gonzalez [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] STARTTLS with IMAP?

2002-07-09 Thread Danny Shepherd
Not sure - but i've heard that this works: $mbox = imap_open ({localhost:995/pop3/tls/novalidate-cert}, user_id, password); So maybe it does, no promises though :) HTH Danny. - Original Message - From: Alexander Skwar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09,

Re: [PHP] Time to Calculate Time

2002-07-08 Thread Danny Shepherd
Try this: ?php function unixTime($time) { $year=substr($time,0,4); $month=substr($time,4,2); $day=substr($time,6,2); $hour=substr($time,8,2); $min=substr($time,10,2); $sec=substr($time,12,2); return strtotime($year/$month/$day $hour:$min:$sec); } $time1='2002070714';

Re: [PHP] Time to Calculate Time

2002-07-08 Thread Danny Shepherd
You just knew there was a regexp version on the way, didn't you :) Danny. ?php function unixTime($time) { $time=preg_replace('/(.{4})(.{2})(.{2})(.{2})(.{2})(.{2})/','\\1/\\2/\\3 \\4:\\5:\\6',$time); return strtotime($time); } $time1='2002070714'; $time2='2002070716';

Re: [PHP] Button can't see form!

2002-07-04 Thread Danny Shepherd
Actually, it's Netscape'sCrap, if you get specific :) Java's a totally different kettle of crap. Danny. - Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Thursday, July 04, 2002 4:05 PM Subject: Re: [PHP] Button can't see form! And

Re: [PHP] Problem with Apache2/PHP4.2.1

2002-06-27 Thread Danny Shepherd
Try actually looking in the Apache2 manual - http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo HTH Danny. - Original Message - From: Simon Grabowski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, June 23, 2002 3:08 PM Subject: [PHP] Problem with Apache2/PHP4.2.1

Re: [PHP] PHP and OOP

2002-06-27 Thread Danny Shepherd
This article's been around for ages. I OO design wherever I think it'll make the code more portable and extendable later on. From what I've seen, the slow down is negligible rather than considerable. But you write how you want to write and I'll write how I want to write. HTH Danny. -

Re: [PHP] imap support breaking...

2002-06-21 Thread Danny Shepherd
I got that error once - turned out that I'd forgotten to compile the IMAP lib with SSL support. Try recompiling your IMAP libs and then recompiling everything else. Danny. FreeBSD 4.5/Apache 1.3.26/PHP4.2.1 - Original Message - From: Rick Kukiela [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] printf()

2002-06-15 Thread Danny Shepherd
On Sunday 16 June 2002 12:46 am, Gerard Samuel wrote: Im trying to make a dynamic printf(). By that I mean - function this($foo, $bar) { if (strlen($bar) == '0') { print($foo); } else { printf($foo, $bar); } } Now it works if there is one

Re: [PHP] printf()

2002-06-15 Thread Danny Shepherd
On Sunday 16 June 2002 1:13 am, Gerard Samuel wrote: check to see if $bar is an array and feed the array to vprintf() Wow, didn't even know that one existed! Might come in handy though :) Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OO Question

2002-06-10 Thread Danny Shepherd
Yes, you can do that and yes that's how you do it :) Danny. - Original Message - From: Jay [EMAIL PROTECTED] To: Php-General (E-mail) [EMAIL PROTECTED] Sent: Monday, June 10, 2002 5:17 PM Subject: [PHP] OO Question I was wondering can I create a new Object inside of a different

Re: [PHP] ForceType hack with Apache 2?

2002-06-10 Thread Danny Shepherd
I ran into this problem too - but there is a conf directive to handle it now (even on FreeBSD, which I use) - http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo Danny - Original Message - From: a.h.s.boy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 7:14

Re: [PHP] Gettext and PHP4.2.0?

2002-05-17 Thread Danny Shepherd
My guess is that it's something to do with the =shared. In your phpinfo() output, there should be a table about half way down which says GetText Support enabled When I compiled (bsd so it may be different for you) I used --with-gettext=/usr/local/ the gettext binary is in /usr/local/bin and

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Danny Shepherd
No, that's not a problem either! snip from manual Before ob_gzhandler() actually sends compressed data, it determines what type of content encoding the browser will accept (gzip, deflate or none at all) and will return it's output accordingly. All browsers are supported since it's up to the

Re: [PHP] DOMXML in 4.2.0 problems

2002-05-15 Thread Danny Shepherd
Well it works just fine for me :) PHP 4.2.0 / Apache 2.0.36 / FreeBSD 4.5 DOM/XML enabled libxml Version 2.4.21 HTML Support enabled XPath Support enabled XPointer Support enabled As you can see, I'm using a later version of libxml than you are - maybe that's the problem. I am also forced to

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Danny Shepherd
Modem compression will only affect data between the modem and the ISP. A point you don't appear to have considered is that by compressing at the server a host can significantly reduce outgoing bandwidth (i.e. the stuff they pay for) - the less you use, the less you pay. Compressing pages is very

Re: [PHP] Tellwhich browser

2002-05-15 Thread Danny Shepherd
$_SERVER['HTTP_USER_AGENT'] That's the variable which holds the browser's user agent string (browser name, version, platform etc); You may also find this helpful http://www.php.net/manual/en/function.get-browser.php HTH Danny. - Original Message - From: Diana Castillo [EMAIL

Re: [PHP] Re: Getting PHP on FreeBSD to talk to MSSQL Server 7...

2002-05-15 Thread Danny Shepherd
In my expierence you'll have much greater chance of sucess if you compile with --with-sybase-ct :) I just used --with-sybase-ct=/usr/local - I didn't bother with --with-mssql or --with-sybase Paticulars: FreeBSD 4.5 PHP 4.2.0 FreeTDS 0.53 Of course, using this methods means you also have to

Re: [PHP] phpmysqladmin ? still viable?

2002-05-15 Thread Danny Shepherd
I think you're looking for phpMyAdmin and yes, it's very viable and PHP4 compatible. http://www.phpwizard.net/projects/phpMyAdmin/ HTH Danny. - Original Message - From: Erik Gilchrist [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 1:15 AM Subject: [PHP]

Re: [PHP] Apache2

2002-05-13 Thread Danny Shepherd
Hi, Yes, I have both 1.3.24 and 2.0.36 installed - both with the PHP4.2.0 mod compiled. You simply compile and install both servers and the compile modphp for each server (i.e. once with --with-apxs and once with --apxs2) abd that's all there is to it. I'm running FreeBSD 4.5 btw, but I don't

Re: [PHP] httpS connection with FILE

2002-05-10 Thread Danny Shepherd
It will be really cool when we can do that (in PHP4.3) but until then you'll have to make do with cURL (http://www.php.net/manual/en/ref.curl.php) HTH Danny. - Original Message - From: Bert Buckley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 12:07 AM Subject:

Re: [PHP] Question for you guys on best tools for a job

2002-04-29 Thread Danny Shepherd
Hi, Well you could take care of the backend of the system using PHP and feed the output to a flash application, which updates every so often by re-requesting the PHP page (this page is merely returning variables to flash). Of course, if you know java then you'd probably want to take that

Re: [PHP] need urgent session help, since new php version broke my code

2002-04-22 Thread Danny Shepherd
Well, since you fail to mention which versions of PHP you were using before and after the upgrade it's a little difficult to diagnose your problem. You should really have checked the change log (http://www.php.net/ChangeLog-4.php) before upgrading anyway (a lot changed in the 4.0.x - 4.1.x

Re: [PHP] Database and files

2002-04-22 Thread Danny Shepherd
- Original Message - From: David Russell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 22, 2002 11:19 AM Subject: [PHP] Database and files I have a database. It receives from my users files - which could be word documents, Adobe PDF files, text docs, anything... I store

Re: [PHP] Database and files

2002-04-22 Thread Danny Shepherd
- Original Message - From: Richard Archer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 22, 2002 11:40 AM Subject: Re: [PHP] Database and files At 11:25 AM +0100 22/4/02, Danny Shepherd wrote: If you get multiple requests for files, expect the db to fall over very

Re: [PHP] Daemon starting

2002-04-22 Thread Danny Shepherd
Not played with them myself but you might want to take a look at the system() and shell_exec() functions. HTH Danny. - Original Message - From: Gilles Nedostoupof [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 22, 2002 12:28 PM Subject: [PHP] Daemon starting Hi all,

Re: [PHP] Pb with socket_set_timeout()

2002-04-22 Thread Danny Shepherd
I don't think the windwos version of PHP supports sockets. use fsockopen instead. (http://uk.php.net/manual/en/function.fsockopen.php) HTH Danny. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 22, 2002 1:59 PM Subject: [PHP] Pb with

Re: [PHP] eregi() problem

2002-04-21 Thread Danny Shepherd
Try: if (!eregi('^[a-z_\-]{0,}$', $_POST['vpis_ime'])) echo wrong char; That'll sort it for everything except [ and ], which I can't find any way of checking for :-( Anyone else have any ideas? HTH anyway. Danny. - Original Message - From: Gregor Jaksa [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Discarded extension on file download

2002-04-19 Thread Danny Shepherd
Hi, I recently had this problem and, after hours of hair pulling, found that it seems to work best if you send the words Content-Type and Content-Disposition in **lower case**. Not sure why it has to be like that but it was the only way I found. HTH, Danny. - Original Message - From:

Re: [PHP] Date function

2002-04-19 Thread Danny Shepherd
MySQL (I assume that's the database you're inserting into) requires dates to be sent in -MM-DD format. You appear to be sending a unix timestamp. Try: date(Y-m-d,time()) // Sends a MySQL style date. or even: $SQL = INSERT INTO orders (Customer_Id, Order_Date) VALUES($CustID,NOW()); //

Re: [PHP] .inc over .php

2002-04-19 Thread Danny Shepherd
A third way could be to append .php onto those files too, giving .inc.php, .class.php etc. Danny. There are two ways to counter this: 1) have the .inc files in a directory outside the scope of the webserver directory. 2) set the webserver to treat .inc files as php files. -- PHP

Re: [PHP] Determine the difference between two dates

2002-04-19 Thread Danny Shepherd
Firstly, I assume you mean Y-m-j H:i:s for the date format. To get the difference between 2 time strings : ?php // orginal time strings $firstTime=2002-04-19 13:49:00; $lastTime=2002-04-19 14:00:00; // convert to unix timestamps $firstTime=strtotime($firstTime);

  1   2   >