[PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-21 Thread edward eric pedersson
Hi My host, Host Papa (yes, they are rubbish) has disabled mod_deflate, mod_gzip and php_value auto_prepend_file so can't use them in .htaccess file. I would move host but I did not realise this was the case until I wanted to make use of them. I am tied in for three years so need to find a workaro

Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote: > On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote: > >>Ashley Sheridan wrote: >> >>>On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote: >>> >>> >>> >>>>Dear All, >>>> >

Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote: > On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote: > >>Ashley Sheridan wrote: >> >>> On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote: >>> >>>>Ashley Sheridan wrote: >>>> >&

Re: [PHP] pear for fedora 11

2010-03-08 Thread Edward. S. P. Leong
Ashley Sheridan wrote: >On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote: > > > >>Dear All, >> >>Which can we download pear ann install into fc 11 system ? >> >>Thank for your help ! >> >>Edward. >> >> >

[PHP] pear for fedora 11

2010-03-07 Thread Edward. S. P. Leong
Dear All, Which can we download pear ann install into fc 11 system ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2010-01-20 Thread 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, >> >>Would

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

2010-01-20 Thread 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 ? >> >>Thanks ! &g

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

2010-01-20 Thread 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 bei

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

2010-01-19 Thread 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 solution. You can also use the latest SQL >Native Client driver so you can talk t

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

2010-01-18 Thread Edward S.P. Leong
Dear All, I had config the php.ini as the following : extension=php_mssql.dll Then run the cli "iisreset" and reboot the web server machine... After that, there is NO any MS-SQL within the phpinfo()... So, would you mind to help more ? Thanks ! Edward. -- PHP General Mailing

[PHP] Instll php on Window 2003 64Bit questions

2010-01-02 Thread Edward S.P. Leong
Dear All, If the OS is Windows 2003 64Bit (IIS)... So, which php package must download and how to config it for running with IIS ? Due to I don't quite the online manual: http://www.php.net/manual/en/install.windows.iis.php Which installation mode is suitable of it ? Thanks ! Edward. --

[PHP] Download and Install 64bit php into 64bit Windows

2009-12-01 Thread Edward S.P. Leung
Dear All, Where can we download the 64bit php package for running on 64bit Windows platform ? Thanks ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-04-22 Thread Edward Diener
Chris wrote: Edward Diener wrote: Chris wrote: Any light anyone can throw on the 'nob...@myserver.com' address would be most welcome. It is using the apache user @ your host name as the default. Try this: ini_set('sendmail_from', 'whate...@wherever.com'

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

2009-04-22 Thread Edward Diener
Chris wrote: Any light anyone can throw on the 'nob...@myserver.com' address would be most welcome. It is using the apache user @ your host name as the default. Try this: ini_set('sendmail_from', 'whate...@wherever.com'); I will try this but I do not understand why it should work. I have

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

2009-04-22 Thread Edward Diener
Shawn McKenzie wrote: Edward Diener wrote: Phpster wrote: On Apr 21, 2009, at 20:32, Edward Diener wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an AT&T address, such as my own as an AT&T ISP customer, the

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

2009-04-22 Thread Edward Diener
Phpster wrote: On Apr 21, 2009, at 20:32, Edward Diener wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an AT&T address, such as my own as an AT&T ISP customer, the mail never gets to me. If the 'to&#x

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

2009-04-22 Thread Edward Diener
scubak1w1 wrote: "Edward Diener" wrote in message news:d9.64.21597.c829e...@pb1.pair.com... Chris wrote: kranthi wrote: of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached the mail s

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

2009-04-21 Thread Edward Diener
Chris wrote: kranthi wrote: of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached the mail server from the http server Somehow I doubt AT&T gives out that sort of access ;) Exactly. The idea

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

2009-04-21 Thread Edward Diener
kranthi wrote: of u are sure that the mail was not received as spam... check the log files of the mail server on the server to be sure that the mail actually reached the mail server from the http server I doubt AT&T will give me access to the log files on their incoming mail server. -- PHP

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

2009-04-21 Thread Edward Diener
Phpster wrote: On Apr 21, 2009, at 20:32, Edward Diener wrote: I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an AT&T address, such as my own as an AT&T ISP customer, the mail never gets to me. If the 'to&#x

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

2009-04-21 Thread Edward Diener
I have a PHP script which uses the PHP 'mail' function. When the script's 'to' address is an AT&T address, such as my own as an AT&T ISP customer, the mail never gets to me. If the 'to' address is anything other than an AT&T address, the mail gets to the recipient. The PHP code for sending the

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Edward Diener
, Per Jessen wrote: Edward Diener wrote: Phpster wrote: In reading the license I believe it refers to the gnupg itself, not the application it may be embedded in. You are completely free to use gnupg as you choose including modifying it to meet your needs. I always thought the GNU public li

Re: [PHP] Encryption/decryption of PHP data

2009-01-01 Thread Edward Diener
Per Jessen wrote: Edward Diener wrote: Phpster wrote: In reading the license I believe it refers to the gnupg itself, not the application it may be embedded in. You are completely free to use gnupg as you choose including modifying it to meet your needs. I always thought the GNU public

Re: [PHP] Encryption/decryption of PHP data

2008-12-31 Thread Edward Diener
, which use any software distributed with this license, make their source code freely available to end users. If this is either not the case or no longer the case, then I will be glad to use GnuPG. Bastien Sent from my iPod On Dec 30, 2008, at 10:50 PM, Edward Diener wrote: My client

[PHP] Encryption/decryption of PHP data

2008-12-30 Thread Edward Diener
My client application needs to send data to a PHP page in encrypted form and have the PHP code able to decrypt it. Likewise the PHP code needs to return data to my application encrypted and my client application needs to be able to decrypt it. My application is written in C++ and naturally the PH

Re: [PHP] Sending mail with Outlook high priority

2008-11-03 Thread Edward Diener
Per Jessen wrote: Edward Diener wrote: Is there any PHP functionality for sending mail and attaching a high priority to the mail item ? printf() ? All you need to do is a add header like "X-Priority: High". It's just a line of text. Thanks for pointing this header out. M

Re: [PHP] Sending mail with Outlook high priority

2008-11-03 Thread Edward Diener
Per Jessen wrote: Edward Diener wrote: Is there any PHP functionality for sending mail and attaching a high priority to the mail item ? printf() ? All you need to do is a add header like "X-Priority: High". It's just a line of text. Thanks for pointing this header out. M

[PHP] Sending mail with Outlook high priority

2008-11-03 Thread Edward Diener
Is there any PHP functionality for sending mail and attaching a high priority to the mail item ? In Outlook ( and Outlook Express ) there is the notion of a high priority mail item, but I do not know if this corresponds to anything in an RFC for mail. Nor do I know how to mimic this in PHP. If

[PHP] Converting JPG to Windows BMP

2008-08-29 Thread Edward Diener
I have a JPG file on the server which I want to convert to a Windows BMP file. How can I do this in PHP ? I did not see a GD image function for doing this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
Dan Joseph wrote: On Fri, Aug 29, 2008 at 11:33 AM, Edward Diener <[EMAIL PROTECTED]>wrote: I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP scrip

[PHP] Debugging PHP scripts

2008-08-29 Thread Edward Diener
I am fairly new to PHP. What is the best way of debugging PHP scripts ? I have put in echo statements to tell me what is happening, but perhaps there are better methods. I have a PHP script on a server, which I access from a client side program ( written in C++ ) and the script is not returni

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Maciek Sokolewicz wrote: Edward Diener wrote: Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?>' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?>' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text t

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
brian wrote: Edward Diener wrote: Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo "someresponse" to return some data. When I run it from a Windows client program, the response I am seeing is not only the "someresponse" above but also

[PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Edward Diener
Maciek Sokolewicz wrote: Edward Diener wrote: I have a PHP file which does an: echo "someresponse" to return some data. When I run it from a Windows client program, the response I am seeing is not only the "someresponse" above but also has the entire HTML form in the PHP

[PHP] Returning response includes HTML form data

2008-08-02 Thread Edward Diener
I have a PHP file which does an: echo "someresponse" to return some data. When I run it from a Windows client program, the response I am seeing is not only the "someresponse" above but also has the entire HTML form in the PHP file appended to it. Naturally I do not want the form to be includ

[PHP] Using $_GET for POST

2008-07-30 Thread Edward Diener
In handling an HTTP POST request I came across some PHP code, which I need to modify for my own purposes, which has code like this: if ( ! (isset($_GET['x']) && $_GET['x'] == 20) ) { // Do something by returning an error } Can this ever be correct when the form looks like:

RE: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Edward Kay
> > What would you like on your Tombstone? (<-- that's actually a > trademarked saying) > I've always liked Spike Milligan's: "I told you I was ill" :) http://news.bbc.co.uk/1/hi/england/southern_counties/3742443.stm Edward -- PHP Gener

RE: [PHP] Problem with IE 6.0

2008-06-25 Thread Edward Kay
t;Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")."GMT"); header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); header("Pragma: no-cache"); These work fine for me in all browsers. HTH, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PDF inline viewer

2008-06-20 Thread Edward Kay
IFRAME method mentioned by Iv would work OK. If you like Scribd though, why not use their platform? http://www.scribd.com/platform/home Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Edward Kay
;> Thanks in advance. > >>> Mathijs. > >>> > >> > >> I didn't work with IMAP much. So one suggestion could be to check > >> if your dev box is behind a proxy server. If you're using SSL check > >> if it's enabled on your

RE: [PHP] Escaping JavaScript strings

2008-05-29 Thread Edward Kay
"\n" => '\n', > "\t" => '\t', > "'" => "\\'", > '\\' => ''); > > return strtr($string, $js_escape); > } Just what was needed - thanks Richard. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Escaping JavaScript strings

2008-05-29 Thread Edward Kay
sed to the JS function doesn't work as this causes JS errors: DOESN'T WORK: var sCopy = 'String to copy to clipboard'; Any ideas? Thanks, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP debugger

2008-04-29 Thread Edward Kay
gt; > Also, I noticed that in your script where you have "default:" in your > switch, you have a : instead of a ; > Actually, the colon is correct: http://uk.php.net/switch You also need to enclose your string declarations correctly and add the $ before ext, e.g. $cmd = "http://www.whois.com/?query=$nom.$ext";; or $cmd = 'http://www.whois.com/?query='.$nom.'.'.$ext; Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Checking how many letters are in a string.

2008-03-20 Thread Edward Kay
> -Original Message- > From: tedd > Chapter 4 is all about l16n, L10n, and Unicode. Makes a good read. What's l16n? Did you mean i18n (internationasation)? (I'm not being a pedant; just wondered if I was missing something) :) Edward -- PHP General Mailing List

RE: [PHP] algorithm of pages beaking

2008-03-19 Thread Edward Kay
> Hi, > > I am working in page breaking (dividing the result of > a select query in multiple pages). > > Now my problem is not with the php code, but with the > algorithm that organize the links to the pages. I want > to do something like google, the pages numbers at the > bottom of the page mus

RE: [PHP] Double click problem

2008-03-19 Thread Edward Kay
;d also add a bit of text near the button saying: "Please click this button ONCE only. Clicking again may result in your credit card being billed twice." I'm always much more precise with my clicking when such warnings are displayed :) Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Double click problem

2008-03-19 Thread Edward Kay
bit of JavaScript that disabled the button when the form was submitted? This is used by eBay and Google for their login processes. Sure, if JS was disabled this could be circumvented but it would be a good start and work with the majority of users. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Fastest way to get table records' number

2008-03-19 Thread Edward Kay
erything" and would have figured > > > that (id) would have been quicker. > > > > > > > > > > You generally want to explicitly specify column names rather than > > using SELECT *, because it returns everything even if you don't need > > it. But for aggregate COUNT, I'm not surprised by the results Nathan > > got. > > > what about SELECT MAX(id) FROM table :) But that's not the same thing. If any rows have been deleted, then this would give the wrong answer. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Comparing files

2008-03-12 Thread Edward Kay
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: 12 March 2008 12:33 > To: 'Edward Kay'; 'mathieu leddet'; php-general@lists.php.net > Subject: RE: [PHP] Comparing files > > > > -Original Message

RE: [PHP] Comparing files

2008-03-12 Thread Edward Kay
-- > > Note that I would like to compare any type of files (text and binary). > > Thanks for any help, > Depending upon the size of the files, I would expect it would be quicker to compare a hash of each file. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Anyone jump from Studio 5.5.x -> Zend Eclipse?

2008-03-03 Thread Edward Kay
n Eclipse, just use Ctrl+Alt+Up Arrow. To see a list of Eclipse short-cuts, use Ctrl+Alt+L HTH, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do you send stylized email?

2008-02-26 Thread Edward Kay
> > Ex's are the experience you need to get it to work. > > > > I've always said that everyone should go through at least one divorce > > before getting married. > > Marriage?? That's for backwards people stuck in ancient pointless > traditions >:) And moreso in today's culture... it's just a comme

RE: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Edward Kay
> On Mon, February 18, 2008 10:36 am, Jay Blanchard wrote: > > [snip] > > That's funny... MS defaults to tabs for a file whose extension is .csv > > which is an acronym for (C)omma (S)eparated (V)alues. > > [/snip] > > > > Welcome to Microsoftwhere do we want you to go today? > > I think it de

RE: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Edward Kay
r how it handles escaping these though... Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Recommended ORM for PHP

2008-02-06 Thread Edward Kay
iles for you. There is a framework aspect to Qcodo called QForms but this is decoupled from the generated ORM so you don't have to use it if you don't want it. HTH, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: how dod you get to do multiple mysql queries concurrently?

2008-01-25 Thread Edward Kay
threaded??? > > > > No, just the mysql queries. > If you're selecting data, could you not reduce the number of queries using joins? If you're inserting data, look into MySQL's INSERT DELAYED syntax. HTH, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] export data to a ms excel file using php

2007-12-18 Thread Edward Kay
> can you help me to export data to a ms excel file using php. i tried to > export them to an html format and change the extension to .xls that's work > but i have lost the formatting Save the data from PHP in comma separated value (CSV) format. Edward -- PHP General Mail

RE: [PHP] Convertig xml into array

2007-11-27 Thread Edward Kay
impleXML objects do not persist in sessions. To workaround this, just use the asXML() function so your XML is stored as a string in the session. You can then recreate the SimpleXML object from this string as and when you need it. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] recommendation for a article manager

2007-11-15 Thread Edward Kay
ntrol the look by css. > I'm currently doing the same thing to add press releases/news archive in our existing site. Using Wordpress with a custom theme is working well at the moment. HTH, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Edward Kay
> > I'd be interested in reading this thread. OK with me to keep it > on the list. > Ditto. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] crop an image

2007-11-06 Thread Edward Vermillion
On Nov 6, 2007, at 10:20 AM, Chris Bruce wrote: Does anyone have some insight here? I am trying to crop an image. The crop seems to almost work, but I get black bars on the image. Has anyone had any experience with cropping images using the GD library? Thanks. Chris On Nov 2, 2007, at

[PHP] php 4.4.7 configure and sablotron version issue

2007-11-04 Thread Edward Vermillion
Anybody trying to build php 4.4.7 with xslt/sablotron support? I'm setting up a new Debian server and configure kept quitting on Sablotron saying the version was less than 0.96. Looking at /usr/ include/sablot.h, it shows the version at 1.0.3. Configure was saying it was using /usr, and I co

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > salestax(15.00,.075); > echo "" . co

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> Here's the list : > > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > echo convert_po

Re: [PHP] Can a PHP script process a file on a remote computer?

2007-10-24 Thread Edward Vermillion
There is set_time_limit() that works from the script as long as safe_mode is not enabled. http://docs.php.net/manual/en/function.set-time-limit.php Ed On Oct 24, 2007, at 3:26 PM, Vo, Lance wrote: you probably won't be able to edit PHP.ini with shared-hosting. The other solutions, one I c

RE: [PHP] window.open() and search engines

2007-10-23 Thread Edward Kay
> > Can anyone say for sure whether window.open() links get spidered by > search engines? > >From my experience they don't, but I use a custom Javascript function to open pop-ups. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: languages and PHP

2007-09-28 Thread Edward Vermillion
On Sep 28, 2007, at 1:05 PM, Per Jessen wrote: Edward Vermillion wrote: I pretty much gave up on the thread when I got the reply along the lines of "if it breaks something it's their problem, not mine". Ed, your question was a good one, but so was my answer. In my case, I

Re: [PHP] Re: languages and PHP

2007-09-28 Thread Edward Vermillion
On Sep 28, 2007, at 11:34 AM, tedd wrote: At 2:01 PM -0500 9/27/07, Edward Vermillion wrote: So back to my original question, what breaks if you're *expecting* UTF-8 and you don't *get* UTF-8? Ed Isn't UTF-8 the big fish here? Sure there' UTF-16 and larger, but

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Edward Vermillion
On Sep 27, 2007, at 1:49 PM, Per Jessen wrote: Edward Vermillion wrote: But what happens if you get data that's *not* UTF-8? Just because your html/form is set to UTF-8 doesn't mean that all your incoming data will be UTF-8. Yes it does. If your HTML page was sent in UTF-8, a

Re: [PHP] Re: languages and PHP

2007-09-27 Thread Edward Vermillion
On Sep 27, 2007, at 10:09 AM, Colin Guthrie wrote: Per Jessen wrote: David Christopher Zentgraf wrote: Your biggest problem will be if you accept any kind of user input which could be in any kind of language. Depending on your server configuration you'll probably have some serious cleaning a

RE: [PHP] Newbie: special characters in regex?

2007-09-25 Thread Edward Kay
27;ve used a back tick instead of a single quote before \\$1 2. There's no closing parenthesis to the preg_replace function. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Merging PDF Documents

2007-09-24 Thread Edward Kay
ut I think they're primarily designed for creating new PDF files. I think http://www.linux.com/articles/36815 will be helpful to you though. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Edward Kay
to Martin's good suggestions (and also assuming you're running php-cli via cron), you could use nice to stop it consuming too many resources: http://en.wikipedia.org/wiki/Nice_%28Unix%29 Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Edward Kay
ts all, but also methyl ... > Any suggestion ? > Yes, the i pattern modifier makes the search case-insensitive, which is what you want. The carat ^ means start of string, so would only word if the pattern was at the beginning of the line - not what you want. Try something like this:

RE: [PHP] dynamic

2007-09-18 Thread Edward Kay
e: image/jpeg"); Apparently IE doesn't like image/jpg [1]. [1] http://pear.php.net/bugs/bug.php?id=4586 Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-17 Thread Edward Kay
since it will still be blocking on whatever port you use. To resolve this issue, you need to work on why IE is holding the connection open. Perhaps a better solution is to simply have the client poll a PHP script to determine when desired condtion occurs. Edward -- PHP General Mailing List (

RE: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Edward Kay
> Dear all, > > I hope you can help me. I am running FreeBSD 6.2 and I decided to > upgrade from php 4.4.7_1 to php5-5.2.3_1. However, after removing php4 > and installing php5 and php5-extensions I am unable to start apache. What do the Apache error logs say? Edward -- PHP

RE: [PHP] html to xml?

2007-09-12 Thread Edward Kay
HTML pages are > rarely syntactically correct, so trying to parse them or even turn them > into XML is tiresome at best. For one-off, I'd simply copy/paste the data from the browser into Excel/OO Calc and save as CSV. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loosing session data between requests

2007-09-06 Thread Edward Kay
robert mena wrote: I've checked both /tmp and the session file sess_x in one server is empty and in another has the data. Both $_SESSION are ok (I've checked with a var_dump). Check the permissions on /var/lib/php/session Edward -- PHP General Mailing List (http://www.ph

Re: [PHP] IE Not Following Header("Location: /path/to/file.php");

2007-09-06 Thread Edward Kay
nd look at the exact info been sent and received: http://www.fiddlertool.com/fiddler/ Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Generating foldout menus in php

2007-09-06 Thread Edward Kay
> it to generate navigation options. Got a start on it, but if you > already had some code I'd appreciate getting a gander at it. > Hi Ken, You may want to take a look at Yahoo's YUI menu: http://developer.yahoo.com/yui/menu/ These can be defined using standard XHTML markup. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Heredocs

2007-08-29 Thread Edward Kay
print <<< END > Test > END; > ?> > > This won't work because you've indented the closing identifier. Read the big Warning box at http://uk2.php.net/manual/en/language.types.string.php#lang

RE: [PHP] Good php-news newsletter?

2007-08-24 Thread Edward Kay
magphpde/psecom,id,26,noeid,26,.html http://www.phpdeveloper.org/phpdev.rss Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Good php-news newsletter?

2007-08-24 Thread Edward Kay
e I've found for this kind of info. Not only do I see the issues people come up against thus getting an idea of their projects, there are usually a number of solutions and view points presented. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mail() issue

2007-08-22 Thread Edward Kay
tion.mail]: SMTP > server response: 504 : Recipient address rejected: need > fully-qualified address Is the mail server configured correctly? Can you manually connect to it and successfully send a message? See http://www.yuki-onna.co.uk/email/smtp.html Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] a DOM object in $_SESSION ?

2007-08-17 Thread Edward Kay
ent [2] in the PHP manual for SimpleXML seems to suggest it is still the case. You could probably get around it by using a string representation in the session variable. [1] http://bugs.php.net/bug.php?id=20899&edit=1 [2] http://uk2.php.net/manual/en/ref.simplexml.php#74192 Edward -

RE: [PHP] pecl in php5?

2007-08-16 Thread Edward Kay
nyone help me get mailparse installed or at least figure out what's > going on? I'm using php-5.2.3. > > > thanks > Per Jessen > Does mbstring show up in phpinfo()? Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Access parent property from child

2007-08-09 Thread Edward Kay
= 'task'; > const pkFields = 'task_id'; > > function findWithRelation($id) > { > $query = "select * from task LEFT JOIN log ON > task.id=log.task_id"; > $db = parent::getDB(); > $res = $db-&g

RE: [PHP] ORM framework suggestion

2007-08-09 Thread Edward Kay
rk, just use the code generator to build your ORM. I've been using it for about a year now and found it excellent. Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] compose html body with variables

2007-08-06 Thread Edward Kay
il($email, $subject, $body, "From: > [EMAIL PROTECTED]: [EMAIL PROTECTED]: > [EMAIL PROTECTED]: PHP 4.x\r\nMIME-Version: 1.0\r\nContent-Type: > text/html; charset=iso-8859-1\r\n"); > > If anyone could assist me I'd appreciate it very much, > > Matt > Hi Matt, The problem here is that you're using echo statements, which output directly. Instead you need to build a string containing this output, for example: $body = "Hello, here is your quote from Freight Services."; $body .= "Shipping from: $origin to $destination"; etc. Note the use of the .= operator. This is the same as saying $body = $body.'whatever'; At the end, $body will then contain the HTML body of your email which you pass to the mail function. Hope this helps, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php SHOW

2007-08-03 Thread Edward Kay
retty HTML just output to screen > > Ta, > > > R. > Look up print_r() and var_dump() Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Validating Email Conditional

2007-08-01 Thread Edward Kay
ted conditionals: if (getmxrr($domaintld,$mxrecords)) { if (fsockopen($domaintld,25,$errno,$errstr,30)) $valid = true; } There is no need for the second $valid = false in your code below, since you define that at the start. Edward The following works, but needs the conditional mentione

RE: [PHP] Parent Object

2007-08-01 Thread Edward Kay
terms of finding where an instance is created from this is non-sensical. Who's to say the instance is even created by another class? It could be in a function. If you want to be able to access an object that created another object, pass it in via the constructor, e.g. class A { ... $b

RE: [PHP] if inside an echo.

2007-07-31 Thread Edward Kay
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > Alan Milnes > Sent: 31 July 2007 12:41 > To: php-general@lists.php.net > Subject: Re: [PHP] if inside an echo. > > > On 31/07/07, Hulf <[EMAIL PROTECTED]> wrote: > > I am outputting a selectbox and want t

RE: [PHP] if inside an echo.

2007-07-31 Thread Edward Kay
statement inside the the echo? > > > for ($value = 0; $value <= 2000; $value += 100) { > > echo " selected="selected" }> $value"; > > } > Just split it into multiple echo statments: for ($value = 0; $value <= 2000; $value += 100) { echo "

RE: [PHP] No is_date() function?

2007-07-25 Thread Edward Kay
> date? For example: > >> > >> $person = array('name'=>'bob', 'sex'=>'male', 'date_of_birth'=> > >> $someDateHere); > >> > >> Thanks for any help > >> > >> Ken > >> You won

Re: [PHP] Denial of Service Attack

2007-07-20 Thread Edward Vermillion
On Jul 20, 2007, at 2:39 PM, Nathan Nobbe wrote: i recently attached an image, .png i believe. -nathan AH HAAA ;) Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] multiple random items

2007-07-16 Thread Edward Kay
array_rand($quote_arr, min(count($quote_arr), 10)); foreach ($random_keys as $quote_index) { // get quote at $quote_index and return it $herequote = $quote_arr[$quote_index]; echo "$herequote"; } ?> This won't produce any duplicates and will cope with any number of

Re: [PHP] how PHP is batter?

2007-07-03 Thread Edward Vermillion
On Jul 3, 2007, at 12:35 PM, Jim Lucas wrote: Edward Vermillion wrote: On Jul 3, 2007, at 8:52 AM, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in

  1   2   3   4   5   6   7   >