RE: [PHP] Help with new config

2005-11-01 Thread Rob Agar
hi John You'll probably see whats up if you tell php to spit out error messages - set display_errors = 1 in php.ini hth Rob > -Original Message- > From: John Taylor-Johnston > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 1 November 2005 12:32 PM > To: PHP-General > Subject: [PHP] Help wi

RE: [PHP] if string contains

2005-09-29 Thread Rob Agar
hi John > Me thinks that was what I used. > http://ca.php.net/strstr > http://ca.php.net/stristr > http://ca.php.net/strpos > What's the difference? the ones ending 'pos' just return an integer position. The 'i' in these string manipulation functions generally means that the function is case-i

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [PHP] php search engine

2005-09-29 Thread Rob Agar
hi Ross > Any alternatives free or paid let me know.. http://www.isearchthenet.com/isearch/ is a good 'un, so long as you don't have thousands of pages. R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange behaviour overriding methods in 5.0.4

2005-09-28 Thread Rob Agar
hi Norbert, Have you tried print_r($_SESSION['view'])? I'm wondering if there's some problem recreating the class instance from the session data... Rob > -Original Message- > From: Norbert Wenzel [mailto:[EMAIL PROTECTED] > Sent: Thursday, 29 September 2005 2:58 AM > To: php-general@li

RE: [PHP] [OFF: object oriented question] OO discussion newsgroups?

2005-08-18 Thread Rob Agar
hi Alex, I don't know of any discussion group, but you may want to check out a book that's just got a very good review on slashdot... http://books.slashdot.org/article.pl?sid=05/08/16/0434205&from=rss Rob > -Original Message- > From: Alex Gemmell [mailto:[EMAIL PROTECTED] > Sent: Frida

RE: [PHP] IP & Geographical

2005-08-11 Thread Rob Agar
PEAR::Net_GeoIP is nice.. $geoip = Net_GeoIP::getInstance('/path/to/geoip.dat', Net_GeoIP::MEMORY_CACHE); $countryName = $geoip->lookupCountryName($ipAddress); http://pear.php.net/package/Net_GeoIP Rob > -Original Message- > From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] > Sent:

RE: [PHP] Date confusion

2005-07-27 Thread Rob Agar
hi Linda > I must admit I am surprised at the paucity of date and time > functions in PHP. You may want to check out the PEAR Date class: http://pear.php.net/package/Date Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-18 Thread Rob Agar
hi Daevid FWIW, I was trying to do the exact same thing a while back, and came to the conclusion that it wasn't possible. Rob > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 19 July 2005 11:28 AM > To: php-general@lists.php.net > Subject: [PHP] Is

[PHP] mime magic & MS word docs

2005-06-13 Thread Rob Agar
hi all, I was just wondering if anyone has had any success using mime_magic to guess the content type of MS Word documents..? The extension works for gif's & jpeg's, but mime_content_type() returns "text/plain" for Word and Excel docs. I'm using php 5.0.4 on Windows, and the mime.magic file tha

RE: [PHP] How to submit a form that has a file included ?

2005-06-06 Thread Rob Agar
hi Mario > And the tag, is it allright like it is ? you'll need to add this: enctype="multipart/form-data" Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Responses in my email.

2005-05-18 Thread Rob Agar
> From: Rory Browne > This is primarly a mailing list. Not a news group. The whole idea of a > mailing list is that you get every message mailed to you. uh, I think the OP is complaining about the emails that *don't* go via the list, because this list is set up so that hitting reply goes to the

RE: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Rob Agar
hi Mark > Unknown column 'peterspeters' in 'where clause' you're missing the quotes around (I guess) the password. you can kick yourself now :-p -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] editor that typesets the php code

2005-04-27 Thread Rob Agar
hi Dasmeet > From: Dasmeet Singh > I have just completed coding for a script... i want to take a > printout > of the code.. but the code is very hotch potch.. > > Is there any software to automatically set the code with proper > spacing/tabs extra..and possibly give colors to it too...?? Che

RE: [PHP] problem connecting php and mysql

2005-04-25 Thread Rob Agar
hi Rahot From: rahot man > I have windows server 2003, PHPv5.0.3, Mysql v4.1 and IIS 6 and i am > working in Macromedia Dreamweaver MX2004 > > i am unable to connect to the mysql server. but my php files > are running > fine and my mysql server is also running fine. > > i) i had changed the ph

RE: [PHP] Abstract Legacy question

2005-04-20 Thread Rob Agar
Andy Pieters wrote: > This is kinda hard to say in words, so I'll give a little example > > Class A > function x > calls function guid > function y > function z > function guid > Class B extends A > function y >calls function x > function guid > > So what I'm wondering is when

RE: [PHP] script

2005-04-19 Thread Rob Agar
here's the clue to the other half of the puzzle: you can do this kind of thing in php if (whatever) { include 'something.php'; } else { include 'something else.php'; } hth, Rob > -Original Message- > From: Stephen Johnson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 2

RE: [PHP] Date class

2005-04-19 Thread Rob Agar
Matthias wrote: > Have you looked at the PEAR Date class? > > http://pear.php.net/package/Date PEAR Date is good - I use it a lot - but watch out for this bug if you're running on Windows http://pear.php.net/bugs/bug.php?id=2344 basically, there's some getenv/putenv trickery in the Date_Timezone

RE: [PHP] PHP 4 to PHP 5 Migration shortcut

2005-04-14 Thread Rob Agar
> ...and trying to re-assign $this inside a class. which is perverse and shouldn't have been allowed in the first place =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP 4 to PHP 5 Migration shortcut

2005-04-14 Thread Rob Agar
> From: Rasmus Lerdorf > Chances are pretty good that you won't have to change > anything. Step 1 > would be to simply try running your existing code under PHP5 and see > what breaks. Unless you have complicated OO code or you are > using the > domxml extension, you likely won't need to c

[PHP] booking

2005-03-31 Thread Rob Agar
hey up all, anyone have a snippet for generating a unique booking reference string, say 6-10 characters long? The kind of thing you get when you book a flight or whatnot online. it's friday afternoon and I'm too dim to figure one out myself :-/ Rob Agar Web Site Consultant Wild

RE: [PHP] access violation

2005-03-28 Thread Rob Agar
Thursday, 24 March 2005 12:19 AM > To: Rob Agar > Subject: Re: [PHP] access violation > > > Hello Rob, > > Tuesday, March 22, 2005, 4:14:55 PM, you wrote: > R> That's interesting - it also started happening for me after > R> installing PHP 5.0.3. But I h

RE: [PHP] access violation

2005-03-22 Thread Rob Agar
hi Leif Glad to know I'm not the only one ;) > The only system stuff we have in common is the OS. The > webserver is Sambar, and PHP is 5.0.3. It didn't start having > this issue till I updated the PHP to 5.0.3, so I'm going to > reinstall it at some point to see if that helps any. That's int

[PHP] access violation

2005-03-21 Thread Rob Agar
m32\msvcrt.dll 77C35FEC C:\WINDOWS\system32\msvcrt.dll 10047D4E c:\php4\php4ts.dll or sometimes: 77C46137 C:\WINDOWS\system32\msvcrt.dll 100CA6AE c:\php4\php4ts.dll 60002E50 c:\php4\php4apache.dll 6000186F c:\php4\php4apache.dll dll base addresses: 0x6000 php4apache.dll 0x1000 php4

RE: [PHP] showing the decimal places

2005-03-16 Thread Rob Agar
on you want is called sprintf (s for string, f for format) summat like this: echo sprintf('%0.2f', $number); hth, Rob Agar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odd error

2005-03-14 Thread Rob Agar
hey all just got this error: Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM' The line that caused it was this: $db =& null; (yes I know it's wrong, it's a typo/brain spasm) I'm just curious - what language IS that? finnish? Rob Agar Web Site Consultant