[PHP] Virtual Host document directory.

2001-05-23 Thread Richard Quadling
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 advance. Richard

[PHP] Virtual Hosts document root directory.

2001-05-23 Thread Richard Quadling
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 advance. Richard

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
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 PROTECTED] Subject: RE

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
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 Quadling'; [EMAIL PROTECTED

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

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

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 p...@computer.org: 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 escape sequences to colour the output (all working very

Re: [PHP] Unable to send mail from PHP to ATT e-mail address

2009-04-22 Thread Richard Quadling
, Average = 104ms -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex not working with :

2009-04-22 Thread Richard Quadling
, 'UTF-8'); The warnings above come from RegexBuddy. Considering the PHP examples, I'm not sure how accurate they are. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- PHP General Mailing

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

2009-04-23 Thread Richard Quadling
the learning curve you'll go through getting the style. Richard. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread Richard Quadling
, the light came forth and it worked. :-) Regards Lenin www.twitter.com/nine_L www.lenin9l.wordpress.com -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- PHP General Mailing List

Re: [PHP] Boolean Parameter to 3 Options?

2009-04-30 Thread Richard Quadling
-- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-05-07 Thread Richard Quadling
2009/5/7 Richard Quadling rquadl...@googlemail.com: 2009/4/30 Olivier Lalonde olalo...@gmail.com: 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 an ORM and trying

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

2009-05-07 Thread Richard Quadling
: http://www.php.net/unsub.php In $orm-getBook('id') should be something similar to ... $book = new ClassBook('id'); $book-load; return $book; surely? -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very

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

2009-07-07 Thread Richard Quadling
greatness by playing it safe. -Harry Gray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Try ... error_reporting = 22527 -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing

Re: [PHP] PHP Manual in PDF format

2009-07-07 Thread Richard Quadling
:) 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 Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants

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

2009-08-10 Thread Richard Quadling
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=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! ZOPA : http

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

2009-12-09 Thread Richard Quadling
); set_time_limit(0); // Just in case it takes more than your default execution time. var_dump(file_get_contents('http://www.google.com')); -- - 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] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-09 Thread Richard Quadling
? -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP General Mailing List (http://www.php.net

Re: [PHP] Upload dir

2009-12-11 Thread Richard Quadling
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://docs.php.net/manual/en/configuration.changes.modes.php -- - Richard Quadling Standing on the shoulders of some very clever giants! EE

Re: [PHP] Upload dir

2009-12-12 Thread Richard Quadling
2009/12/11 Ashley Sheridan a...@ashleysheridan.co.uk On Fri, 2009-12-11 at 15:44 +, Richard Quadling wrote: 2009/12/11 kranthi kranthi...@gmail.com: 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
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 rather than an empty array if you are building your objects dynamically). Richard. -- - Richard Quadling

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

2009-12-15 Thread Richard Quadling
-- Forwarded message -- From: Randall Girard randallgir...@hotmail.com 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

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

2009-12-15 Thread Richard Quadling
Johnny Moronic would have been a better example? -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

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

2009-12-15 Thread Richard Quadling
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. So, this should be a little easier to say. -- - Richard Quadling Standing

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

2009-12-15 Thread Richard Quadling
-fetchAll(); print_r($result); ? for example. -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP

Re: [PHP] PHP + ODBC

2009-12-15 Thread Richard Quadling
-string too ... odbc_pconnect(Driver={SQL Server Native Client 10.0};Server={$s_Server};Database={$s_DB};MARS_Connection=Yes;, $s_User, $s_Pswd, SQL_CUR_USE_DRIVER); -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html

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

2009-12-15 Thread Richard Quadling
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 generate identical requests? -- - Richard Quadling Standing

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

2009-12-16 Thread Richard Quadling
2009/12/16 René Fournier m...@renefournier.com: 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 with), I had to route

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

2009-12-17 Thread Richard Quadling
. -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP General Mailing List (http://www.php.net

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

2009-12-17 Thread Richard Quadling
2009/12/17 Richard Quadling rquadl...@googlemail.com: 2009/12/17 唐家兴 tjxing.1...@gmail.com: 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 I close

Re: [PHP] PHP to answer HEAD requests

2009-12-18 Thread Richard Quadling
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. See http://docs.php.net/manual/en/reserved.variables.server.php -- - Richard Quadling Standing

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

2009-12-23 Thread Richard Quadling
\n; readfile($_FILES['userfile']['tmp_name']); } else { echo Possible file upload attack: ; echo filename '. $_FILES['userfile']['tmp_name'] . '.; } ? -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html Zend

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 poni1...@yahoo.com: Of course: also tried the is_uploaded_file, exactly like in the manual. And it fails :( --- On Wed, 12/23/09, Richard Quadling rquadl...@googlemail.com wrote: From: Richard Quadling rquadl...@googlemail.com Subject: Re: [PHP] File upload

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

2009-12-26 Thread Richard Quadling
Quadling rquadl...@googlemail.com wrote: From: Richard Quadling rquadl...@googlemail.com Subject: Re: [PHP] File upload directive: $_FILES['filename']['name'] instead of $_FILES['filename']['tmp_name'] To: Andrei Iarus poni1...@yahoo.com, PHP General list php-general@lists.php.net Date

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

2010-01-04 Thread Richard Quadling
mod_rewrite, which I believe you'd have to pay for on an IIS server. Thanks, Ash http://www.ashleysheridan.co.uk IIS7 has a URLRewrite module which is freely available via the Web Platform Installer or via http://learn.iis.net/page.aspx/460/using-url-rewrite-module -- - Richard

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

2010-01-04 Thread Richard Quadling
, just said that, ...) MVC (wasn't that a chain of music shops in the UK?)... Having said that, a real programmer only knows not to use Pascal! Pretty much everything else is up for grabs. Regards, Richard. P.S. I know nothing. -- - Richard Quadling Standing on the shoulders of some very

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

2010-01-05 Thread Richard Quadling
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! EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http

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

2010-01-05 Thread Richard Quadling
2010/1/5 Richard Quadling rquadl...@googlemail.com: 2010/1/5 Angus Mann angusm...@pobox.com: 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 numbers

Re: [PHP] Re: splitting a string

2010-01-05 Thread Richard Quadling
$substr_left_name = substr($file, 0, strpos($file, '.')); $substr_left_extension = substr($file, strpos($file, '.')); -- - 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

Re: [PHP] Re: splitting a string

2010-01-05 Thread Richard Quadling
://www.php.net/substr Pick one of the functions we've mentioned and follow the See also for other related functions. Regards, Richard. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http

[PHP] Using PHPDocumentor to document the magic functions.

2010-01-12 Thread Richard Quadling
are 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! EE : http

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

2010-01-12 Thread Richard Quadling
2010/1/12 Jochem Maas joc...@iamjochem.com: 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 the number of methods

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

2010-01-15 Thread Richard Quadling
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 returned from getmxrr(). No authentication required. -- - Richard Quadling Standing

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

2010-01-18 Thread Richard Quadling
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 location_of_php.ini file -m instead; e.g. php -c D:\PHP\INI\php-cli.ini -m php -c C:\windows\php-isapi.ini -m etc. -- - Richard Quadling Standing

Re: [PHP] Notices flooding logs with fastcgi

2010-01-18 Thread Richard Quadling
ideas :( Thanks again, Max Don't log the errors! Let them go to php's normal error log. If you can have a per-site setup, then log them per site and pass them to the coder/owner to fix. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts

[PHP] Casting objects.

2010-01-18 Thread Richard Quadling
and 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 Certified Engineer : http

[PHP] Re: Casting objects.

2010-01-19 Thread Richard Quadling
. Extended ReflectionClass and ReflectionProperty. Thanks, Richard. -- - 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=ZEND002498r=213474731 ZOPA : http

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...@ita.org.mo: 引述 Richard Quadling rquadl...@googlemail.com: 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 your

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

2010-01-19 Thread Richard Quadling
the 32bit issue entirely. Take a listen 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

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

2010-01-19 Thread Richard Quadling
. -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP General Mailing List (http://www.php.net/) To unsubscribe

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 edward...@ita.org.mo: 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 solution. You can also use

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 edward...@ita.org.mo: Richard Quadling wrote: 2010/1/19 Edward S.P. Leong edward...@ita.org.mo: 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

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 rquadl...@googlemail.com: 2010/1/20 Edward S.P. Leong edward...@ita.org.mo: Richard Quadling wrote: 2010/1/19 Edward S.P. Leong edward...@ita.org.mo: Richard Quadling wrote: But having said all of that, the php_mssql.dll uses a very old library which may give

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 edward...@ita.org.mo: Richard Quadling wrote: http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73Cdisplaylang=en Sorry, Would you mind to tell me which for connecting MS-SQL 2000 and PHP ? Thanks ! Edward. Either

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 edward...@ita.org.mo: Richard Quadling wrote: 2010/1/20 Edward S.P. Leong edward...@ita.org.mo: Richard Quadling wrote: http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73Cdisplaylang=en Sorry, Would you mind to tell

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 Zend Certified

[PHP] Enforce a constant in a class.

2010-01-22 Thread Richard Quadling
if the constant exists and throw an exception when it doesn't. The interface should only say that x, y and z must exist, not the values of x, y and z. Regards, Richard. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814

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

2010-01-22 Thread 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 Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

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

2010-01-22 Thread Richard Quadling
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 very clever giants! EE : http://www.experts-exchange.com/M_248814

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

2010-01-22 Thread Richard Quadling
{        public function __construct()        {                self::$isSet = FALSE;                self::$date = '2010-01-21T09:30:00+';                self::$notes = Test;        } } Cheers Pete Ford And of course, Fatal error: Interfaces may not include member variables. -- - Richard

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

2010-01-22 Thread Richard Quadling
. 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.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http

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

2010-01-22 Thread Richard Quadling
) 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 presence. -- - Richard Quadling

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

2010-01-22 Thread Richard Quadling
2010/1/22 Jochem Maas joc...@iamjochem.com: 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.jsp

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

2010-01-25 Thread Richard Quadling
2010/1/25 Pete Ford p...@justcroft.com: Richard Quadling wrote: 2010/1/22 Pete Ford p...@justcroft.com: 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 constant! You should probably have protected

[PHP] Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-25 Thread Richard Quadling
this that I'm missing? Any ideas really. Is this 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

[PHP] Re: Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-26 Thread Richard Quadling
2010/1/25 Nathan Rixham nrix...@gmail.com: 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. So, cut down (I've removed all the other details

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

2010-01-26 Thread Richard Quadling
2010/1/25 Colin Guthrie gm...@colin.guthr.ie: '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 to have constants, but you cannot

[PHP] Re: Recursion issue with Zend_Soap_AutoDiscovery.

2010-01-27 Thread Richard Quadling
2010/1/25 Richard Quadling rquadl...@googlemail.com: 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), ... class

Re: [PHP] Multiple Class Inheritance

2010-01-27 Thread Richard Quadling
here too I would guess. -- - 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=ZEND002498r=213474731 ZOPA

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

2010-01-27 Thread Richard Quadling
($a)) as $i) { } is an alternative. You can see the effect of the counting if you replace ... count($a) with ... mycount($a) and have ... function mycount($a) { echo 'Counting : ', count($a), PHP_EOL; return count($a); } -- - Richard Quadling Standing on the shoulders of some very clever

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

2010-01-27 Thread Richard Quadling
2010/1/27 Richard Quadling rquadl...@googlemail.com: 2010/1/27 Michael A. Peters mpet...@mac.com: 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 code. - Dan Brown Tip #1

Re: [PHP] Reports generator

2010-01-28 Thread Richard Quadling
Crystal Reports 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

Re: [PHP] Appalling Dreamweaver performance

2010-01-31 Thread Richard Quadling
PHP!. -- - 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=ZEND002498r=213474731 ZOPA : http://uk.zopa.com

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
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) and see how you go. -- - Richard Quadling Standing

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
On 4 February 2010 14:19, kranthi kranthi...@gmail.com 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

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
On 4 February 2010 14:38, Richard Quadling rquadl...@googlemail.com wrote: On 4 February 2010 14:19, kranthi kranthi...@gmail.com wrote: fsockopen What type of socket are you opening? -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts

Re: [PHP] CLI behind proxy

2010-02-04 Thread Richard Quadling
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-exchange.com/M_248814

Re: [PHP] HTML plain text in Outlook 2007

2010-02-05 Thread Richard Quadling
). In O2K7? It renders in order - 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

Re: [PHP] Simple code obfuscation

2010-02-08 Thread Richard Quadling
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.net/phar -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts

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

2010-02-09 Thread Richard Quadling
occur. If they do, I've missed something. But at least I'll get a near instant notification of the issue, along with the stack and all the params involved. Very useful. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814

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

2010-02-09 Thread Richard Quadling
(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-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com

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

2010-02-09 Thread Richard Quadling
;) Thanks, Ash http://www.ashleysheridan.co.uk So, no documentation AND bugs!!! Gee. I really wouldn't want to rely on that code base! -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html EE4Free : http

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

2010-02-09 Thread Richard Quadling
= 'php://temp'; That's it. The actual file name is not your job. -- - 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

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

2010-02-10 Thread Richard Quadling
On 9 February 2010 16:47, Ryan Sun ryansu...@gmail.com 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 rquadl...@googlemail.com

Re: [PHP] RE: SOAP connect error

2010-02-10 Thread Richard Quadling
/) To unsubscribe, visit: http://www.php.net/unsub.php 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 shoulders of some very clever giants! EE : http://www.experts-exchange.com

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

2010-02-10 Thread Richard Quadling
On 9 February 2010 22:25, clanc...@cybec.com.au wrote: On Tue, 9 Feb 2010 16:09:05 +, rquadl...@googlemail.com (Richard Quadling) wrote: On 9 February 2010 14:20, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote: Richard wrote

Re: [PHP] PHP Manual problems

2010-02-10 Thread Richard Quadling
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.com/zce.php?c=ZEND002498r=213474731 ZOPA

Re: [PHP] Simple code obfuscation

2010-02-10 Thread Richard Quadling
On 10 February 2010 14:33, דניאל דנון danondan...@gmail.com 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_248814.html EE4Free

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

2010-02-10 Thread Richard Quadling
returns the filename, not the full path. So, when the script is in the same directory, the current directory contains the required file. Try using ... filemtime(realpath($f)) instead. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts

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

2010-02-11 Thread Richard Quadling
On 11 February 2010 09:31, Pat patrick.j.r...@gmail.com wrote: Richard Quadling wrote: On 10 February 2010 16:31, Pat patrick.j.r...@gmail.com wrote: hi all having trouble here with a site that I am hosting on go-daddy I want to keep my php and my images apart so to do this I have

Re: [PHP] RE: SOAP connect error

2010-02-12 Thread Richard Quadling
On 11 February 2010 16:04, Eric Lommatsch er...@micronix.com 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 shoulders of some very clever giants! EE : http

Re: [PHP] optional object arguments to a function

2010-02-13 Thread Richard Quadling
, then that can be the type hint. You can also use func_get_args() to read all the parameters and type check them if there are MANY optional parameters. -- - Richard Quadling Standing on the shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814.html EE4Free

Re: [PHP] Quick research

2010-02-15 Thread Richard Quadling
. 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 shoulders of some very clever giants! EE : http://www.experts-exchange.com/M_248814

[PHP] DocBlocking SOAP types.

2010-02-16 Thread Richard Quadling
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 Quadling Standing

[PHP] Re: DocBlocking SOAP types.

2010-02-16 Thread Richard Quadling
On 16 February 2010 16:41, Nathan Rixham nrix...@gmail.com 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 the XML/SOAP/WSDL communication, how do I bypass

Re: [PHP] Re: DocBlocking SOAP types.

2010-02-17 Thread Richard Quadling
On 16 February 2010 18:20, Nathan Rixham nrix...@gmail.com wrote: Richard Quadling wrote: On 16 February 2010 16:41, Nathan Rixham nrix...@gmail.com wrote: Nathan Rixham wrote: Richard Quadling wrote: Hi. I want to docblock a set of properties to be xml primitive datatypes [1

[PHP] PHPDoc (not PhD) question.

2010-02-18 Thread Richard Quadling
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/becomeAnExpert.jsp Zend Certified Engineer

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

2010-02-19 Thread 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 Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 ZOPA : http://uk.zopa.com/member

Re: [PHP] array conversion

2010-02-19 Thread Richard Quadling
that functions beautifully http://nephtaliproject.com -- - 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

Re: [PHP] array conversion

2010-02-19 Thread Richard Quadling
On 19 February 2010 15:52, tedd tedd.sperl...@gmail.com wrote: At 10:48 AM + 2/19/10, Richard Quadling wrote: On 19 February 2010 07:26, Adam Richardson simples...@gmail.com wrote:  Or, Code fight!!! http://www.webbytedd.com/ccc/array/ After reviewing the entries, mine does

  1   2   3   4   5   6   7   8   >