[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
se of php's VARIANT() type and now to call functions that use it. Thank you VERY much!! Regards, Richard. -Original Message- From: Harald Radi [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:41 AM To: 'Richard Quadling' Cc: [EMAIL PROTECTED]; [EMAIL PR

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
ly want to supply What and Name, Which and Count are not valid for bookmarks. Is there a true NULL type I can send? Richard. P.S. Thanks for the OLEView pointer. -Original Message- From: Harald Radi [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:14 PM To: 'Richard Qu

[PHP] Virtual Host document directory.

2001-05-23 Thread Richard Quadling
son is that the script needs to see if certain files exist so that the resultant HTML shows the correct info. Some of them are in both sites, some files are only in 1 or 2 sites, but they always have the same name. I assume there is a variable somewhere? Ideas/suggestions please. Thanks in ad

[PHP] Virtual Hosts document root directory.

2001-05-23 Thread Richard Quadling
son is that the script needs to see if certain files exist so that the resultant HTML shows the correct info. Some of them are in both sites, some files are only in 1 or 2 sites, but they always have the same name. I assume there is a variable somewhere? Ideas/suggestions please. Thanks in ad

[PHP] Can PHP determine if the STDOUT to a CLI script is being redirected?

2009-04-22 Thread Richard Quadling
being filtered or redirected to a file. Regards, Richard Quadling. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Can PHP determine if the STDOUT to a CLI script is being redirected?

2009-04-22 Thread Richard Quadling
2009/4/22 Per Jessen : > Richard Quadling wrote: > >> Hi. >> >> Is there a simple way for a CLI based PHP script to determine if its >> output is being redirected to a file or piped through a filter (find, >> sort, etc.) >> >> I'm using ANSI es

Re: [PHP] Unable to send mail from PHP to AT&T e-mail address

2009-04-22 Thread Richard Quadling
google.com Pinging google.com [74.125.45.100] with 32 bytes of data: Reply from 74.125.45.100: bytes=32 time=104ms TTL=239 Reply from 74.125.45.100: bytes=32 time=103ms TTL=239 Reply from 74.125.45.100: bytes=32 time=105ms TTL=239 Reply from 74.125.45.100: bytes=32 time=104ms TTL=239 Ping statis

Re: [PHP] Regex not working with ":"

2009-04-22 Thread Richard Quadling
RE cannot match the start and the end of a line with ^ and $ # Because of this, the code snippet below will not work as you intended, if at all. $contents = mb_ereg_replace('^(.*)this is the test: replace(.*)$', '\1\2', $contents, 'UTF-8'); The warnings above come f

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread Richard Quadling
exit points can be a little problematic. I suppose if you are the only developer then create a style and stick with it. Don't be afraid of refactoring your code if you feel that a different style is easier to work with. If you work in a team, then once the team has determined its style, sti

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread Richard Quadling
ng argues about how machine is coded nowadays. > > >> Anyway, I don't need that statement anymore as I found the error of my >> ways and have corrected it. And behold, the light came forth and it >> worked. :-) >> > > Regards > > Lenin > > www.twit

Re: [PHP] Boolean Parameter to 3 Options?

2009-04-30 Thread Richard Quadling
true/false. >>  Don't mix and match.  1 == true and 2 == true. >> >> function doFooBar($doFoo = false) >> { >>   if($doFoo === 2) { >>        //something >>   } >>   elseif($doFoo === true) { >>        //something true >> Â

Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/5/7 Richard Quadling : > 2009/4/30 Olivier Lalonde : >> Hi all, >> >> Since I can't do $this = new Class(); within my class (it gives an >> error), I was looking for ways to get the same result by other means. >> >> I am actually working on

Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
o have a parameter that > enables/disables chaining. > $dorm->getBook('id', true); // chain (you now have to add ->load() at > the end of the chain) > $dorm->getBook('id', false); // dont chain, this returns a Book instance > > The point of all this is to keep t

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Richard Quadling
se combinations have stopped the  "PHP Deprecated: ..." messages. > > System info: Mac OS/X 10.5.7 Client version, PHP 5.3.0 running as a CGI > under Apache 2.2.11 and as a CLI. Please let me know if there's any other > info that might help. > > php_info() reports e

Re: [PHP] PHP Manual in PDF format

2009-07-07 Thread Richard Quadling
hd -f pdf -t phppdf -d .manual.xml Now open the newly created "pdf" folder :) If you'd like a big fat one PDF file then use "phpbigpdf" rather then "phppdf" The PDF version will be available soon. Ish. Maybe. Hopefully. -- - Richard Quadling Zend Certif

Re: [PHP] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Richard Quadling
? > > thanks for your advices. > Considering that in the main PHP scripts are readonly, I would have thought the normal file and disk caching of the OS would suffice. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 &quo

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread Richard Quadling
ays returns false. > > var_dump (file_get_contents ('http://www.google.com/')); > > bool(false) > > I've checked php.ini, and the obvious seems okay: > >        allow_url_fopen => On => On > > Any ideas? > > ...Rene If you enable all errors, anyt

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread Richard Quadling
>>>>> >>>> http://us2.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen >>>> >>>> >>> >>> "I've checked php.ini" >>> Right, must remember not to reply to stuff till I'm awake. :-D >&

Re: [PHP] Upload dir

2009-12-11 Thread Richard Quadling
s your code is now looking in B. But, as I said earlier, you can't use your code to change upload_tmp_dir. It can only be done at the system level (php.ini or httpd.conf). See [1] and [2]. Regards, Richard Quadling. [1] http://docs.php.net/manual/en/ini.core.php#ini.sect.file-uploads [2] http

Re: [PHP] Upload dir

2009-12-12 Thread Richard Quadling
2009/12/11 Ashley Sheridan > > On Fri, 2009-12-11 at 15:44 +, Richard Quadling wrote: > > 2009/12/11 kranthi : > > How can i change the temporary upload directory? > > var_dump(ini_get('upload_tmp_dir'));      gives me (and that is set in > > php.ini)

Re: [PHP] Best ajax library

2009-12-12 Thread Richard Quadling
equate. Though the 'X' is often easier to work with if it is J as in JSON. Prototype can return JS objects from an AJAX call. PHP support for JSON is fine in this regard (though I would make sure you set JSON_FORCE_OBJECT for json_encode() to make sure empty arrays are returned as objects rat

Re: [PHP] Re: ErrorException and set_exception_handler()

2009-12-14 Thread Richard Quadling
by zero E_WARNING. About to divide by zero without a safety net. A PHP error has been generated. It will be turned into an exception. Exception : PHP Error : Division by zero (E_WARNING) in Z:\test_error.php at Line 44 output- The whole issue is that you are using the (and I can

Fwd: [PHP] Re: ErrorException and set_exception_handler()

2009-12-15 Thread Richard Quadling
-- Forwarded message -- From: Randall Girard Date: 2009/12/14 Subject: RE: [PHP] Re: ErrorException and set_exception_handler() To: rquadl...@googlemail.com I understood exactly what was going on in the code! (I'm no fool when it comes to this) I just thought (logically) that if

Re: [PHP] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
http://gibberish.co.il > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Surely "Johnny Moronic" would have been a better example? -- - Richard Quadling "Standing on the shoulders of some ve

Re: [PHP] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
; http://gibberish.co.il > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I would optimize this though. ($item->getServiceId() || $item->getId()) Unless you REALLY need to call $item->getServiceId() twice.

Re: [PHP] can't retrieve more than 1 record at the time still

2009-12-15 Thread Richard Quadling
>                $_SESSION['numberCand'] = $_SESSION['numberCand'] + 1; > >                $stmt = NULL; /* release the connection */ > >                  /*if not done with stack, redirect to self to get next*/ >                if (!empty($_SESSION['DOC

Re: [PHP] PHP + ODBC

2009-12-15 Thread Richard Quadling
> Description... > Driver... > > I could have sworn I tried that, but who knows > > Thank you! > ~Philip > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > You can use a DNS-string too ... odb

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-15 Thread Richard Quadling
fault_context); Now, you may not see this in your code, but may be in a script which is loaded via auto_prepend_file. I would also suggest running something like WireShark at the same time as your script. See if there is ANY traffic over the wire. Do the cURL and file_get_contents() code g

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-16 Thread Richard Quadling
2009/12/16 René Fournier : > On 2009-12-15, at 11:55 PM, Richard Quadling wrote: > > Do you have a default stream context defined for the http stream? > > Nope. > > A _LONG_ time ago, when I was using a firewall with NTLM > authentication (which PHP doesn't deal

Re: [PHP] A strange question about mysql_close()

2009-12-17 Thread Richard Quadling
I don't know how an assignment operation for the $db1 can close the $db2. > Could someone help me. > I'll appreciate your help. > When you xxx_connect() with the same parameters, internally, you are sharing the connection. It seems that killing one of the references kills all th

Re: [PHP] A strange question about mysql_close()

2009-12-17 Thread Richard Quadling
2009/12/17 Richard Quadling : > 2009/12/17 唐家兴 : >> I want to ask a strange question. >> >> As we know, if we connect a mysql database in the same host twice with the >> same username, we won't get two new link, but two handle to only one link. >> Then, if

Re: [PHP] PHP to answer HEAD requests

2009-12-18 Thread Richard Quadling
umented as ... "Which request method was used to access the page; i.e. 'GET', 'HEAD', 'POST', 'PUT'. Note: PHP script is terminated after sending headers (it means after producing any output without output buffering) if the request method was HEAD.&qu

Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']

2009-12-23 Thread Richard Quadling
viour? > > On production: PHP 5.2.10 and on testing: PHP 5.2.8 and 5.3.0 > > Thanks in advance. > > > 2 functions to get to grips with: 1 - is_uploaded_file() 2 - move_uploaded_file() Example from http://php.net/is_uploaded_file -- - Richard Quadling "Standing

Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']

2009-12-23 Thread Richard Quadling
2009/12/23 Andrei Iarus : > Of course: also tried the is_uploaded_file, exactly like in the manual. And > it fails :( > > --- On Wed, 12/23/09, Richard Quadling wrote: > > From: Richard Quadling > Subject: Re: [PHP] File upload directive: $_FILES['filename'

Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name']

2009-12-26 Thread Richard Quadling
2009/12/23 Andrei Iarus > > Found the problem: I use Zend Framework, and after using a procedre, it is > automatically moved. :( Thanks very much, I thought it was a problem with > PHP, but from now on, it is a Zend Framework problem. Thanks again. > > --- On Wed, 12/23/09

Re: [PHP] Instll php on Window 2003 64Bit questions

2010-01-04 Thread Richard Quadling
Rewrite module which is freely available via the Web Platform Installer or via http://learn.iis.net/page.aspx/460/using-url-rewrite-module -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2010-01-04 Thread Richard Quadling
development. And probably for the non-developer interviewers who want to see if the dweeb sat in front of them knows his (reading from script) "Active Record" from his (reading from script again) "Active Record" (No, sorry, just said that, ...) "MVC" (wasn't tha

Re: [PHP] Luhn (modulo 10) check digit calculator

2010-01-05 Thread Richard Quadling
x27;Invalid'), PHP_EOL; echo 'The check digit for 4992739871 is ', luhn_checkdigit('4992739871'), PHP_EOL; ?> outputs ... 49927398716 is Valid The check digit for 4992739871 is 6 -- - Richard Quadling "Standing on the shoulders of some very clever giants!"

Re: [PHP] Luhn (modulo 10) check digit calculator

2010-01-05 Thread Richard Quadling
2010/1/5 Richard Quadling : > 2010/1/5 Angus Mann : >> Hi all. Perhaps a lazy request, but does anybody have some cut-n-paste code >> to calculate a Luhn check-digit? >> >> It's a check-digit often added to the end of things like credit card or >> account

Re: [PHP] Re: splitting a string

2010-01-05 Thread Richard Quadling
; > > I just though. How would all these methods fare when given a file like > archive.tar.gz, where the .tar.gz is the full extension, not just > the .gz? > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > > outputs ... Original : archve.tar.gz

Re: [PHP] Re: splitting a string

2010-01-05 Thread Richard Quadling
ved this e-mail in error, you should > notify the sender immediately and delete this email. Any unauthorised > disclosure of the information contained in this e-mail is strictly > prohibited.  Any views or opinions presented are solely those of the author > and do not necessarily rep

[PHP] Using PHPDocumentor to document the magic functions.

2010-01-12 Thread Richard Quadling
creating a WSDL file for SOAP and have __get() and __call(), then you would want to document each entry but without the code duplication. What is the best approach? Regards, Richard Quadling. -- - Richard Quadling "Standing on the shoulders of some very clever giants!"

Re: [PHP] Using PHPDocumentor to document the magic functions.

2010-01-12 Thread Richard Quadling
2010/1/12 Jochem Maas : > Op 1/12/10 12:46 PM, Richard Quadling schreef: >> Hi. >> >> To implement public readonly properties you can use getX(), getY(), >> getZ() methods (which then access the private vars) or you can use >> __get($var) to consolidate/simplify

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-15 Thread Richard Quadling
can do that with standard PHP. getmxrr() is your friend here. You provide it with the domain of the recipient and you get back the SMTP server(s) associated with that domain. Now, you can send the message to THEIR smtp server ... ini_set('SMTP', ); where is one of the servers

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-18 Thread Richard Quadling
e being used? 2 - At a command prompt, change directory to your PHP installation and type ... php -m See if you have any errors being reported. If the INI file is in an unusual location, then use ... php -c -m instead; e.g. php -c D:\PHP\INI\php-cli.ini -m php -c C:\windows\php-isapi.ini -m etc

Re: [PHP] Notices flooding logs with fastcgi

2010-01-18 Thread Richard Quadling
rong though. > > But even fixing the whole of xt:commerce code to be notice free (which would > be rediculously much work) doesn't solve the problem. Whenever anyone is > installing something new on his website lying on this server, I'm gonna have > the same problem again. I ca

[PHP] Casting objects.

2010-01-18 Thread Richard Quadling
then iterate the array and populate a new structuresRemovalReason. Or an I missing a trick. I'm pretty sure I am. Regards, Richard Quadling. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certi

[PHP] Re: Casting objects.

2010-01-19 Thread Richard Quadling
lection. I realise I need to hold some of the data in strings where the data is not a string (datetimes for example). So, using a docblock with a customtag and this seems to be working just fine. Extended ReflectionClass and ReflectionProperty. Thanks, Richard. -- - Richard Quadling "Sta

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-19 Thread Richard Quadling
2010/1/19 : > 引述 Richard Quadling : > >> 1 - Can you confirm that the ini file you are editing is the one that >> is reported in phpinfo() as the file being used? > > Yes, BUT there is no MSSQL info of it... > >> 2 - At a command prompt, change directory to y

Re: [PHP] 64 bit date in 32 bit php ??

2010-01-19 Thread Richard Quadling
en to the excellent PHP|Architect Summer Web cast from last year by Derick Rethans [1] & [2]. Regards, Richard. [1] http://phparch.com/webcasts [2] http://mtadata.s3.amazonaws.com/webcasts/20090828-date-time.wmv -- - Richard Quadling "Standing on the shoulders of some very clever giants!&q

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-19 Thread Richard Quadling
DNS entry. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP General Mailing List

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-19 Thread Richard Quadling
2010/1/19 Edward S.P. Leong : > Richard Quadling wrote: > >>But having said all of that, the php_mssql.dll uses a very old library >>which may give you issues. >> >>For the time being, using ODBC (php_odbc is built in for PHP on >>Windows) is a much safer solut

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-20 Thread Richard Quadling
2010/1/20 Edward S.P. Leong : > Richard Quadling wrote: > > 2010/1/19 Edward S.P. Leong : > > > Richard Quadling wrote: > > > > But having said all of that, the php_mssql.dll uses a very old library > which may give you issues. > > For the time being, usin

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-20 Thread Richard Quadling
2010/1/20 Richard Quadling : > 2010/1/20 Edward S.P. Leong : >> Richard Quadling wrote: >> >> 2010/1/19 Edward S.P. Leong : >> >> >> Richard Quadling wrote: >> >> >> >> But having said all of that, the php_mssql.dll uses a very old

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-20 Thread Richard Quadling
2010/1/20 Edward S.P. Leong : > Richard Quadling wrote: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en > > > Sorry, > > Would you mind to tell me which for connecting MS-SQL 2000 and PHP ? > > T

Re: [PHP] 64 Bit IIS 6 ( 32 Bit mode ) + 32Bit php connect with MS-SQL Server

2010-01-20 Thread Richard Quadling
2010/1/20 Edward S.P. Leong : > Richard Quadling wrote: > > 2010/1/20 Edward S.P. Leong : > > > Richard Quadling wrote: > > http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en > > > Sorry, > > Wou

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Richard Quadling
have to consider that whilst PHP provides all the fancy clever OOP facilities, it is written in C, not C++. So, as you say, if you know your stuff ... -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zen

Re: [PHP] could use some suggestions to speed this short piece of code up

2010-01-21 Thread Richard Quadling
g List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Also take a watch of the php|Architect webcast Jun 26Matthew Turland New SPL Features in PHP 5.3. This covered the ArrayObject and ArrayAccess class/interface. When dealing with a LOT of data, this interfa

[PHP] Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
gards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOP

Re: [PHP] Re: Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
to exist. Not what they are. Just like if I say there must be a method X() in the interface, I don't define what it does. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.expe

Re: [PHP] Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
_SWITCH_NOTES; >      } > } > The killswitch is something I want to tag to a class (KILL_SWITCH_SET) The class itself will have to be documented as to why it has been killed off (KILLED_ON and KILL_SWITCH_NOTES). -- - Richard Quadling "Standing on the shoulders of some

Re: [PHP] Re: Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
   } > } > > Cheers > Pete Ford And of course, "Fatal error: Interfaces may not include member variables". -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-e

Re: [PHP] Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
s returned for failure with no differentiation for a False value. Grrr. Thanks to you all for the discussion. Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.e

Re: [PHP] Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
le > after all) but it doesn't make it the correct value (imagine the problems > with volume calculations!) > > Constants are so called for a good reason! And in the class that I want to enforce the presence of the constant, it will be constant. I just want to enforce the presen

Re: [PHP] Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
2010/1/22 Jochem Maas : > defined() Sits. Ponders. Find's gun. Shoots self! -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.

Re: [PHP] Re: Enforce a constant in a class.

2010-01-25 Thread Richard Quadling
2010/1/25 Pete Ford : > Richard Quadling wrote: >> >> 2010/1/22 Pete Ford : >>> >>> IMHO, a constant is not the correct beastie in this case - if you want it >>> to >>> be different depending on the implementation then it ain't a con

[PHP] Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-25 Thread Richard Quadling
his even a bug in the Zend_Soap_AutoDiscover class? Regards, Richard Quadling. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend

[PHP] Re: Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-26 Thread Richard Quadling
2010/1/25 Nathan Rixham : > Richard Quadling wrote: >> Hi. >> >> I'm in the process of building a web service which incorporates the >> ability for the server to inform the client that a particular call has >> been superseded by another. >> >>

Re: [PHP] Re: Enforce a constant in a class.

2010-01-26 Thread Richard Quadling
2010/1/25 Colin Guthrie : > 'Twas brillig, and Richard Quadling at 22/01/10 11:33 did gyre and gimble: >> Hello, >> >> One of the aspects of an interface is to enforce a public view of a >> class (as I see it). >> >> Within PHP, interfaces are allowed t

[PHP] Re: Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-27 Thread Richard Quadling
2010/1/25 Richard Quadling : > Hi. > > I'm in the process of building a web service which incorporates the > ability for the server to inform the client that a particular call has > been superseded by another. > > So, cut down (I've removed all the other details

Re: [PHP] Multiple Class Inheritance

2010-01-27 Thread Richard Quadling
and >> more particularly, the complex inheritance like I describe here. >> >> Thanks, >> Ash >> http://www.ashleysheridan.co.uk >> >> >> > The Decorator pattern is an option here too I would guess. -- - Richard Quadling "Standing

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Richard Quadling
bscribe, visit: http://www.php.net/unsub.php > > for ($i = 0, $j = count($a) ; $i < $j ; ++$i) { } is a very common way to handle that. Of course... foreach(range(0, count($a)) as $i) { } is an alternative. You can see the effect of the counting if you replace ... count($a) with .

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Richard Quadling
2010/1/27 Richard Quadling : > 2010/1/27 Michael A. Peters : >> Paul M Foster wrote: >>> >>> "... should be obvious - but are often overlooked - points within coding >>> practice that can cause the programmer to develop bad habits and bad >>> co

Re: [PHP] Reports generator

2010-01-28 Thread Richard Quadling
via PHP support of COM. I then output the reports to MS Word, MS Excel, HTML or PDF - depending upon the report/requirement/etc. Due to the interface provided by Crystal, you can create an entire report programmatically. It is a LOT of work, but it can be done. -- - Richard Quadling &quo

Re: [PHP] Appalling Dreamweaver performance

2010-01-31 Thread Richard Quadling
ink of an eye -- literally a > fraction of a > second. > > > * http://www.briandunning.com/sample-data/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > And the moral of the story is "Be happy that

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
), ) ); // Though we said system wide, some extensions need a little coaxing. libxml_set_streams_context($r_default_context); So, set the proxy tcp address appropriately, put this code in a global include file (maybe via the auto_prepend_file= ini file setting)

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
On 4 February 2010 14:19, kranthi wrote: > fsockopen What type of socket are you opening? -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnEx

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
On 4 February 2010 14:38, Richard Quadling wrote: > On 4 February 2010 14:19, kranthi wrote: >> fsockopen > > What type of socket are you opening? > > -- > - > Richard Quadling > "Standing on the shoulders of some very clever giants!" > EE : ht

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
ing ISA server with NTLM authentication. Now, the gateway for my machine is the ISA server, so all requests go through there automatically and we use AD for authentication. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-excha

Re: [PHP] HTML & plain text in Outlook 2007

2010-02-05 Thread Richard Quadling
- header, footer, body. Great! So, the HTML I ended up with REALLY looks like something from when I was first learning HTML (I just worked it out as being 13 years ago!). So, yes. The code is horribly old fashioned. But it works. -- - Richard Quadling "Standing on the shoulders of some very clever gi

Re: [PHP] Simple code obfuscation

2010-02-08 Thread Richard Quadling
one suggest > something that goes one better? > > - Brian > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > For simple obfuscation, then maybe making a PHAR app may be of use here. http://docs.php.ne

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard Quadling
port(); > > > Regards! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I have extended the standard exception class to send me an email whenever an exception occurs. I treat all errors on the live system as

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard Quadling
ou REALLY quickly fixed the problem! Oh. BTW. Thanks for RMail (previously known as htmlmimemail5 if anyone else is interested). -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Richard Quadling
nn.com > Application and Templating Framework for PHP > > > Real developers don't have errors in their code; they're undocumented > features ;) > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > So, no documentation AND bugs!!! Gee. I really wouldn't w

Re: [PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Richard Quadling
in advance. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > According to http://docs.php.net/manual/en/wrappers.php.php, it looks like you should be using ... $filename = 'php://temp'; That's it. T

Re: [PHP] create archive file in memory with zipArchive class

2010-02-10 Thread Richard Quadling
On 9 February 2010 16:47, Ryan Sun wrote: > thanks, Richard, maybe you are right, the actual file name is not my job > I changed it to 'php://temp' but its still the same, nothing has been > changed... > > On Tue, Feb 9, 2010 at 11:13 AM, Richard Quadling > wrote:

Re: [PHP] RE: SOAP connect error

2010-02-10 Thread Richard Quadling
t fine. It is just when I try to use the PHP SOAP > client to access the webservice that I am getting the issue. > > > Thank you > > Eric H. Lommatsch > Programmer > 360 Business > 2087 South Grant Street > Denver, CO 80210 > Tel 303-777-8939 Ext 23 > Fax 888-282

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:25, wrote: > On Tue, 9 Feb 2010 16:09:05 +, rquadl...@googlemail.com (Richard > Quadling) wrote: > >>On 9 February 2010 14:20, Ashley Sheridan wrote: >>> >>> On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote: >>> >&g

Re: [PHP] PHP Manual problems

2010-02-10 Thread Richard Quadling
ke it up to get the deal. Dark ages indeed! -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.co

Re: [PHP] Simple code obfuscation

2010-02-10 Thread Richard Quadling
On 10 February 2010 14:33, דניאל דנון wrote: > Sent from my mobile device > > Use ROT26 for best security I can't read a word of that! -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_24

Re: [PHP] problems with permissions or getting access to a file

2010-02-10 Thread Richard Quadling
); > 53         echo " "; > 54         }//end of if statment > 55 > 56 > 57 #       else { > 58 #               print " None Found "; > 59 #       } > 60     } > 61 } > 62 $d->close(); > 63 > 64 > 65 ?> > > * > * > > -- >

Re: [PHP] problems with permissions or getting access to a file

2010-02-11 Thread Richard Quadling
On 11 February 2010 09:31, Pat wrote: > Richard Quadling wrote: >> >> On 10 February 2010 16:31, Pat wrote: >> >>> >>> hi all >>> having trouble here with a site that I am hosting on go-daddy >>> >>> I want to keep my php and my

Re: [PHP] RE: SOAP connect error

2010-02-12 Thread Richard Quadling
On 11 February 2010 16:04, Eric Lommatsch wrote: > >>Are you using wsdl? If so, does the WSDL file contain the information that > the port to use for the requests is on port 8080? >> >>-- >>- >>Richard Quadling >>"Standing on the sho

Re: [PHP] optional object arguments to a function

2010-02-13 Thread Richard Quadling
: > > > class Bar {} > > class Foo > { >        function dobar(Bar $o = null) { /* ... */ } > } > > $b = new Bar; > $f = new Foo; > > $f->dobar($b); > $f->dobar(); > > ?> > >> > > > -- > PHP General Mailing List (http:/

Re: [PHP] Quick research

2010-02-15 Thread Richard Quadling
cross section of exposure. > > Nathan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > You need another option of "I don't use Linked Data". -- - Richard Quadling "Standing on the should

[PHP] DocBlocking SOAP types.

2010-02-16 Thread Richard Quadling
ack to the Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex. I think the Zend_Soap_Wsdl_Strategy_Composite is of use here, but I can't quite work out how to use it. Any ideas would be appreciated. Regards, Richard Quadling. [1] http://www.w3.org/TR/xmlschema11-2/#built-in-primitive-datatypes -- - Richard Quadli

[PHP] Re: DocBlocking SOAP types.

2010-02-16 Thread Richard Quadling
On 16 February 2010 16:41, Nathan Rixham wrote: > Nathan Rixham wrote: >> Richard Quadling wrote: >>> Hi. >>> >>> I want to docblock a set of properties to be xml primitive datatypes [1]. >>> >>> Considering that this is the correct type for

Re: [PHP] Re: DocBlocking SOAP types.

2010-02-17 Thread Richard Quadling
On 16 February 2010 18:20, Nathan Rixham wrote: > Richard Quadling wrote: >> On 16 February 2010 16:41, Nathan Rixham wrote: >>> Nathan Rixham wrote: >>>> Richard Quadling wrote: >>>>> Hi. >>>>> >>>>&

[PHP] PHPDoc (not PhD) question.

2010-02-18 Thread Richard Quadling
t rendered with appropriate styling, etc.). Any suggestsions, fixes, alternatives. Regards, Richard. -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAn

Re: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-19 Thread Richard Quadling
hen laminate them. That way you can build your own layout relatively cheaply. You also don't have to use black/white bars. For one our systems (Access control to buildings), we used infra-red detectable ink. When it was printed, we could only just see it in the right light. The scanners use a red las

  1   2   3   4   5   6   7   8   >