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
I think the error is fairly self explanatory here - you can't pass the parameter by reference. Globalising the $$class var will retain scope. Danny. - Original Message - From: Tularis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 14, 2002 9:29 PM Subject: Re: [PHP] OOP

[PHP] embedding pdf files in website

2002-10-25 Thread danny
reading the pdf documents). I Don't like my visitors to scroll down i rather like to use buttons previous and next How do you do such a thing in php, or wher can i find some info? (i have no solution in html) Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] John W. Holmes : User aborting a download and counting the filesize

2002-10-24 Thread Danny Roelofs
I will give it a try and let you know what the results where..

[PHP] navigatie doesn't work in this script

2002-09-29 Thread danny
I made a MySQL database with a dictionary in it. Above there is a form in wich you can specify some parameters. The problem is that the navigation doesn't work well. I always get the first 5 results. Can somebody help me out? There are about 56 records in the database. The (not quite) working

Re: [PHP] navigatie doesn't work in this script

2002-09-29 Thread danny
with that in there. ---John Holmes... -Original Message- From: danny [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 29, 2002 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] navigatie doesn't work in this script I made a MySQL database with a dictionary in it. Above there is a form in wich

Re: [PHP] navigatie doesn't work in this script

2002-09-29 Thread danny
is passed in the URL, then you should use that. ---John Holmes... -Original Message- From: danny [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 29, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] navigatie doesn't work in this script In production this database

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
the advantages are, you'll probably be better off with Apache 1.3.26 anyway. Danny. - Original Message - From: pierre.samson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 20, 2002 4:00 PM Subject: Re: [PHP] Why isn't there much info on apache2? Any particular reason

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 ## $temp=thisisatry

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] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread danny
want to hear the sound. echo table width=\90%\ border=1trtd; echo Nederlands/tdtdOostends/tdtdUitleg/td/tr; while ($row=mysql_fetch_array($result)) { echo trtd; echo $row[woord_nl]. /tdtd . $row[woord_ost]. /tdtd . $row[betekenis_nl]. /tdtd . $row[geluid]; echo /td/tr; } Danny Rodolfo Gonzalez

[PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread danny
thanks it works fine! :-))) Danny [EMAIL PROTECTED] schreef in berichtnieuws [EMAIL PROTECTED] hi, I already posted this message but the time on my computer was wrong (26/07 so i post it again). I am new on MySQL and PHP. I'm making a on-line dictionary. I use PHP and a MySQL Database

[PHP] How do i add sound + pictures in a MySQL Database and how do i consult it via PHP

2002-08-09 Thread danny
hi, I am new on MySQL en PHP. I'm making a on-line dictionary. I use PHP and a MySQL Database. Now I want to add audio-streaming (MP3) and pictures (JPG) to the database. Can sombody help me out? The database is working well (only text). Danny -- PHP General Mailing List (http://www.php.net

[PHP] Pictures and sound in MySQL and access via PHP

2002-08-09 Thread danny
. Can sombody help me out with a little example-code? The database is working well (only text). Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
What does the input string contain? What does the output look like? It might be a problem with php4.0.4 (I'm using 4.2.2) - why such an old version? Danny. - Original Message - From: Phil Ewington [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Saturday, August 03, 2002 6:23

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

Re: [PHP] web services and PHP

2002-08-01 Thread Danny Shepherd
closed doors atm. Danny. - Original Message - From: Bob Lockie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 01, 2002 4:09 PM Subject: Re: [PHP] web services and PHP A'la ASP WebServices perhaps? Bob Lockie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

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

[PHP] attachements in mail()

2002-08-01 Thread Danny wall
I've looked, and can not find out how you send attachments using the mail() function. I find it difficult to believe that this was left out, so obviously I'm missing something right in front of my face. So my question is, how do you send attachments using the mail() fucntion? -Danny You

Re: [PHP] Re: attachements in mail()

2002-08-01 Thread Danny wall
Ah ... well that's good. I thought I was just being an idiot. Thanks for the resources, a couple of the classes will do the job nicely. -Danny From: Philip Hallstrom [EMAIL PROTECTED] To: Danny wall [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: [PHP] Re: attachements in mail() Date: Thu

Re: [PHP] Readdir

2002-08-01 Thread Danny wall
?php if ($handle = opendir('/my/directory')) { echo Directory handle: $handle\n; echo Files:\n; while (false !== ($file = readdir($handle))) { echo $file\n; } Everything is good, you just to make a slight addition to your echo. echo a href=\$file\$file/aP -Danny

Re: [PHP] Re: attachements in mail()

2002-08-01 Thread Danny wall
This thing's pretty cool! Thanks! -Danny From: Manuel Lemos [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Re: attachements in mail() Date: Thu, 01 Aug 2002 17:43:04 -0300 Hello, On 08/01/2002 03:14 PM, Danny Wall wrote: I've looked, and can not find out

Re: [PHP] Disabling Browser BACK button

2002-07-31 Thread Danny Shepherd
for the length of their session (or until $_SESSION['formIsFilled'] is unset) HTH Danny. - Original Message - From: Chris Boget [EMAIL PROTECTED] To: Dan Vande More [EMAIL PROTECTED]; Petre [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 6:53 PM Subject: Re: [PHP

[PHP] Sessions - Informed Opinions

2002-07-30 Thread Danny Shepherd
everything. Thanks a lot people, Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
totally against the GPL license and totally for Apache/BSD and LGPL licenses. HTH Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
: The passwords can be encrypted in the database. The system is difficult to abuse. Passwords are never sent out over email. User gets to choose own password. Well it works for me anyway :) HTH Danny. - Original Message - From: Monty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 29

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 wrote

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
running) If I were running a full scale production server I might think differently and run with Apache 1.3.26 but I'm not, just a pro-development server. HTH Danny. - Original Message - From: Johan Holst Nielsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 8:10 AM

Re: [PHP] ???? etc

2002-07-10 Thread Danny Shepherd
lists - he can't post now, even if he wanted too! Danny. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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
']}brClose the window then return and the cookie should be gone; } ? HTH Danny. - Original Message - From: vins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 3:34 PM Subject: [PHP] Re: cookies Nope thats not they way If you don't specify a expire date

Re: [PHP] question varibles and url

2002-07-10 Thread Danny Shepherd
with a spell checker btw :-) HTH Danny. - Original Message - From: @cid To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 10:24 PM Subject: [PHP] question varibles and url on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set

Re: [PHP] header()

2002-07-09 Thread Danny Shepherd
']; $_SERVER['HTTP_USER_AGENT']='Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705)'; echo $_SERVER['HTTP_USER_AGENT']; HTH Danny - Original Message - From: Taylor York [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 09, 2002 4:54 PM Subject: [PHP] header() I'm

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
='2002070716'; $timeDiff=unixTime($time2)-unixTime($time1); echo The two times are $timeDiff seconds apart; ? There's bound to be a way to do this much more neatly using a regexp but this was quick to write and it works :) HTH Danny. - Original Message - From: vins [EMAIL PROTECTED

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'; $timeDiff

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

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

[PHP] md5 php vs. md5 perl

2002-06-16 Thread Danny Kruitbosch
functions. Thanks! Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] translate perl unpack to php equivalent

2002-06-16 Thread Danny Kruitbosch
Hi, How would I translate this perl unpack statement to the php equiv. my ($salt, $xor) = unpack('a2 a*', $something) Thanks! Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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: http://www.php.net

Re: [PHP] Compare 2 resultsets of db-query

2002-06-12 Thread Danny Kruitbosch
Analysis Solutions wrote: Hey Danny: On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote: Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1 Query2: SELECT FIELD1, COUNT(FIELD2) AS SUB from TABLE WHERE FIELD2=1 GROUP BY FIELD1 Now I want to print

Re: [PHP] Compare 2 resultsets of db-query

2002-06-12 Thread Danny Kruitbosch
Analysis Solutions wrote: On Wed, Jun 12, 2002 at 04:54:30PM +0200, Danny Kruitbosch wrote: Analysis Solutions wrote: Hey Danny: On Mon, Jun 10, 2002 at 10:09:12PM +0200, Danny Kruitbosch wrote: Query1: SELECT FIELD1, COUNT(FIELD2) AS TOTAL from TABLE GROUP BY FIELD1 Query2: SELECT

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

[PHP] Compare 2 resultsets of db-query

2002-06-10 Thread Danny Kruitbosch
of FIELD1, TOTAL and SUB. Query 1 returns more rows as query 2. Field1 is the same in both queries so I should be able to 'link' the results of both queries together. How do I do this?? Thanks! Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Gettext and PHP4.2.0?

2002-05-17 Thread Danny Shepherd
and the lib is in /usr/local/lib - find out where gettext is on your setup and adjust the config option accordingly. HTH Danny. - Original Message - From: Bram van Leur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 6:38 PM Subject: [PHP] Gettext and PHP4.2.0? Hi

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Danny Shepherd
to the browser to send the correct header saying that it accepts compressed web pages. /snip from manual HTH Danny. - Original Message - From: Sqlcoders.com Programming Dept [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 1:25 PM Subject: Re: [PHP] Cool PHP Tricks/Features

Re: [PHP] DOMXML in 4.2.0 problems

2002-05-15 Thread Danny Shepherd
to use the old functions - maybe the new names only apply in PHP 4.3.0+? If you need any more info: http://phpinfo.kyboshed.dyndns.org http://tests.kyboshed.dyndns.org/domtest.php http://tests.kyboshed.dyndns.org/domtest-source.php HTH Danny. - Original Message - From: Thalis

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Danny Shepherd
lightweight on a cpu and i'd advise enabling compression by default, only disabling it if there is a noticable decrease in server performance. Processing power is probably cheaper today than bandwidth is. HTH. Danny. - Original Message - From: George Whiffen [EMAIL PROTECTED] To: [EMAIL

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
to use the sybase commands not the mssql commands but they're pretty much identical in function - just the names that are different. HTH Danny. - Original Message - From: Michael Kimsal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 11, 2002 2:08 AM Subject: [PHP] Re: Getting PHP

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
see how how situation would require anything different. HTH Danny. - Original Message - From: Frank Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 7:17 PM Subject: [PHP] Apache2 All, I've gotten some very good answers from the knowledgable

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
. Aside from Java and Flash you could still achieve a similar effect using the meta refresh tag - updating the page every 60 seconds or so. HTH Danny. - Original Message - From: Michael Champagne [EMAIL PROTECTED] To: PHP General Mailing List [EMAIL PROTECTED] Sent: Monday, April 29

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

2002-04-22 Thread Danny Shepherd
releases - including some variable names) HTH Danny. - Original Message - From: nospam [EMAIL PROTECTED] To: 'Php-General [EMAIL PROTECTED] Sent: Monday, April 22, 2002 11:02 AM Subject: [PHP] need urgent session help, since new php version broke my code Hi all all the links in my page

Re: [PHP] Database and files

2002-04-22 Thread Danny Shepherd
(content-disposition: attachment; filename=\$displayName\); echo $data; One thing - note that that the header names and the actual mimetype are in lower case. Got weird results with anything different. HTH Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

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
()); // uses MySQL's builtin date function to store the current date. HTH, Danny. - Original Message - From: Alia Mikati [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 19, 2002 10:28 AM Subject: [PHP] Date function Hello I have the following SQL and I wanna insert the current date

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
); // perform subtraction to get the difference (in seconds) between times $timeDiff=$lastTime-$firstTime; //echo out the difference printf (Difference is %d seconds,$timeDiff); ? HTH Danny. - Original Message - From: Ron Allen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday

<    1   2   3   >