Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
of that bug, you get knocked down, but the vast majority of software will keep running. Java doesn't seem to work that way, at least from an IT worker's perspective. Andy McKenzie On Tue, Aug 20, 2013 at 10:00 AM, Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
formatting. With PHP, that's not a big deal: as long as I put my braces in the right places, everything will continue to work. With Python -- or any whitespace delimited language -- it's fatal, and I have to hope I can exit without saving anything. Andy

Re: [PHP] Web dev, DB and proper db design.

2013-07-04 Thread Andy McKenzie
complex then that there's going to be some value in using foreign keys, whether formally (constraints set in the DB) or informally (constraints imposed in the web interface), but it's quite possible the guy had never worked on something where they were needed. -Andy . On Thu, Jul 4, 2013 at 10:20 AM

Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Andy McKenzie
it... I'm unemployed right now, and a project to work on this week (or next... this week is kind of busy) might be a good thing. -Andy McKenzie On Mon, Apr 1, 2013 at 6:49 PM, Mark mark...@gmail.com wrote: On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea sorin.bade...@gmail.com wrote: Hi Mark, I

Re: [PHP] PHP fails to install on Ubuntu 12.10. What's going on?

2013-02-14 Thread Andy McKenzie
On Thu, Feb 14, 2013 at 2:52 PM, Daniel Brown danbr...@php.net wrote: Remember to hit reply-all, Andy, so it goes to the list as well as the previous author. On Thu, Feb 14, 2013 at 2:49 PM, Andy McKenzie amckenz...@gmail.com wrote: On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown danbr

Re: [PHP] Random 404 screens

2013-02-10 Thread Andy McKenzie
This is a good point, and one I hadn't thought of. I saw Network time out and thought network problems, but Geoff is right. If it's actually a 404, it's not a network problem between you and the server. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Random 404 screens

2013-02-09 Thread Andy McKenzie
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner jim.gi...@albanyhandball.com wrote: This is a tough one. Lately, my web pages are giving me some problems. Once a day or so one or more of my pages/scripts will give me a 404 error page saying my web page has timed out. Problem is that the page was

Re: [PHP] Re: limiting

2012-10-10 Thread Andy McKenzie
! -Andy McKenzie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this list less busy than it used to be?

2012-07-04 Thread Andy McKenzie
when the next major version of PHP is released we'll see an upswing in traffic for a while as people try to figure it out. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why might fclose() block?

2012-05-03 Thread Andy Theuninck
I'm currently seeing this in 5.3.10, although it's an intermittent problem I've seen earlier versions too. Occasionally I get a maximum execution time error when calling fclose() on a parallel port file descriptor. Code looks like this: $fp = fopen('/dev/lp0','w'); if ($fp){

Re: [PHP] book quest

2011-09-29 Thread Andy McKenzie
. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] book quest

2011-09-28 Thread Andy McKenzie
using a new version of PHP book. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upgrade or Die?

2011-06-24 Thread Andy McKenzie
like this... -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] the best 1 book for php

2011-04-07 Thread Andy McKenzie
On Thu, Apr 7, 2011 at 12:15 AM, Kirk Bailey kbai...@howlermonkey.net wrote: If I only had 1 book on php, what would it be? -- end Very Truly yours,                 - Kirk Bailey,                   Largo Florida My most common reference is, as other people have said, www.php.net. But

Re: [PHP] Question about directory permissions

2011-03-21 Thread Andy McKenzie
. (If you're confused by the numbers I used, check here: http://www.yolinux.com/TUTORIALS/LinuxTutorialManagingGroups.html) I hope that helps! -Andy On Mon, Mar 21, 2011 at 1:58 PM, Al n...@ridersite.org wrote: I understand dir perms pretty well; but, have a question I can't readily find

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson simples...@gmail.com wrote: This one's got me stumped.  I have the following line in a script: $this-bc = ($this-network | (~$this-netmask)) 4294967295; $this-network and $this-netmask should both be of type long, and I should wind up with

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
On Tue, Mar 15, 2011 at 8:07 AM, Andy McKenzie amckenz...@gmail.com wrote: On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson simples...@gmail.com wrote: This one's got me stumped.  I have the following line in a script: $this-bc = ($this-network | (~$this-netmask)) 4294967295

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Andy McKenzie
Now:  I did a little more looking around this morning, and it looks like I may well run into problems here given that I'm moving from a 32-bit architecture to a 64-bit architecture.  Bitwise math is still fairly obscure to me, so it's likely that I'm overlooking something obvious, but maybe

[PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-14 Thread Andy McKenzie
Greetings, I'm moving some scripts from an older server (SuSE who-knows-what, running PHP 5.2.5) to a newer one (Ubuntu 10.10, running PHP 5.3.2). For the most part there haven't been any problems, or they've been things that I was able to fix easily. This one's got me stumped. I have the

Re: [PHP] How to write code: how wrong am I?

2011-02-22 Thread Andy McKenzie
On Tue, Feb 22, 2011 at 6:29 AM, Dotan Cohen dotanco...@gmail.com wrote: I wrote a short page on how to actually type of code that one writes, it can be found here: http://dotancohen.com/howto/write_code.html The point that I stress on the page is that first you close an element, then you

[PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
Hey folks, Hopefully this is enough on-topic not to annoy anyone. Up until now I've mostly written small one-off scripts -- a web page that needs a few things dynamically generated, a shell script to do a small job, things like that -- and vim has been more than adequate. I'm currently

Re: [PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
On Wed, Jan 26, 2011 at 8:51 AM, Lester Caine les...@lsces.co.uk wrote: Andy McKenzie wrote: So:  does anyone have a recommendation for an IDE that works in Windows, Mac, and Linux?  I spend roughly equal time in all three, and I haven't found a tool I like yet that works in all of them

Re: [PHP] Command line PHP

2011-01-07 Thread Andy McKenzie
On Fri, Jan 7, 2011 at 11:55 AM, la...@garfieldtech.com la...@garfieldtech.com wrote: Hi folks.  I have a project coming up that will involve writing a non-trivial command line PHP application.  Most of it will be nice and abstracted and standalone and all of that jazz, but it will need to do

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
a few times in the last week. -Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard jblanch...@pocket.com wrote: [snip] really makes me question remaining a member...it's been a close thing a few times in the last week. [/snip] $door = new door(large, heavy, swift); $door-open(); $door-hitArse(); $door-close(); C'mon, the

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings rob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part about double quotes from? Can't seem to locate it in the any of the relevant specs (xhtml or xml). Also, never seen an xml or xhtml validator

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind peter.e.l...@gmail.com wrote: On 6 October 2010 15:21, Andy McKenzie amckenz...@gmail.com wrote: On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings rob...@interjinn.com wrote: On 10-10-06 08:52 AM, Peter Lind wrote: Where exactly do you get the part

[PHP] if/elseif being treated as if/if

2010-09-24 Thread Andy McKenzie
Hey folks, Here's the deal. I have the following code: if($col_vals[$i][$val['column']] == $search_result[0][$col]) { echo ' selected=selected'; } elseif($val['default'] == $col_vals[$i][$val['column']]) { echo ' selected=selected'; } It's supposed to check whether

Re: [PHP] if/elseif being treated as if/if

2010-09-24 Thread Andy McKenzie
][$col]))) Now the elseif only triggers if there is a default, but there is no value in the DB for that field. Hope my failure to think saves someone else some trouble later! -Alex On Fri, Sep 24, 2010 at 1:56 PM, chris h chris...@gmail.com wrote: Andy I see no reason why both echo's would

Re: [PHP] Auto-generating HTML

2010-09-21 Thread Andy McKenzie
On Tue, Sep 21, 2010 at 3:32 AM, Simcha Younger simcha.youn...@gmail.com wrote: On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: Hey folks,  Here's the problem.  I'm writing a lot of pages, and I hate going in and out of PHP.  At the same time, I want my HTML to be legible.  When you look

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:47 PM, Steve Staples sstap...@mnsi.net wrote: On Mon, 2010-09-20 at 14:56 -0400, Andy McKenzie wrote: Hey folks,   I have the feeling this is a stupid question, but I can't even find anything about it.  Maybe I'm just not searching for the right things.   Here's

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto r...@niof.net wrote: On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: On Sep 20, 2010, at 2:56 PM, Andy McKenzie wrote: Hey folks,  I have the feeling this is a stupid question, but I can't even find anything about it.  Maybe I'm

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:59 PM, Peter Lind peter.e.l...@gmail.com wrote: On 20 September 2010 21:56, Andy McKenzie amckenz...@gmail.com wrote: On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto r...@niof.net wrote: On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: On Sep 20, 2010, at 2:56

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
Here's a related question maybe one of you can answer: is there any place in HTML (not PHP, but actually in HTML) where there's a difference between a single quote and a double quote? As nearly as I can tell, it shouldn't ever matter. If that's the case, using double-quotes to enclose an echo

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Andy McKenzie
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse mickyhulse.li...@gmail.com wrote: On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown danbr...@php.net wrote:    It would be cheaper to employ the same method used on some lawnmowers and required on Jet Skis and Skidoos: a cable with a clip worn by the

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
A question, to clarify my fuzzy thinking about such things: Can a business have a server connected to the Internet but limit access to just their employees? I don't mean a password protected scheme, but rather the server being totally closed to the outside world other than to their internal

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
On Sun, Sep 12, 2010 at 1:51 PM, tedd tedd.sperl...@gmail.com wrote: At 1:18 PM -0400 9/12/10, Andy McKenzie wrote:    A question, to clarify my fuzzy thinking about such things:  Can a business have a server connected to the Internet but limit access to  just their employees? I don't

Re: [PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Andy McKenzie
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Andy McKenzie at 24/08/10 21:42 did gyre and gimble: Even if I'd thought about it in terms of the architecture, I would have assumed that PHP would treat a two-bit number as a two-bit number You two

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling rquadl...@gmail.com wrote: On 20 August 2010 17:00, Andy McKenzie amckenz...@gmail.com wrote:  Thanks to everyone who responded.  I've dealt with binary math before, but it never occurred to me (and doesn't seem to be anywhere in the document

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Andy McKenzie [mailto:amckenz...@gmail.com] Sent: 24 August 2010 17:24 To: php-general@lists.php.net Subject: Re: [PHP] Bitwise NOT operator? From your example, this would have shown

[PHP] Bitwise NOT operator?

2010-08-20 Thread Andy McKenzie
Hey everyone, I'm really not sure what's going on here: basically, the bitwise NOT operator seems to simply not work. Here's an example of what I see. Script $ cat bintest2.php ?php $bin = 2; $notbin = ~$bin; echo Bin: . decbin($bin) . !bin: . decbin($notbin)

Re: [PHP] Bitwise NOT operator?

2010-08-20 Thread Andy McKenzie
August 2010 17:41, Peter Lind peter.e.l...@gmail.com wrote: On 20 August 2010 17:10, Andy McKenzie amckenz...@gmail.com wrote: Hey everyone,  I'm really not sure what's going on here:  basically, the bitwise NOT operator seems to simply not work.  Here's an example of what I see

[PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
I'm trying to parse a string containing an HTML table using the builtin DOM classes and running into an odd problem. Here's what I'm doing: $dom = new DOMDocument(); $dom-loadHTML($str); $tables = $dom-getElementsByTagName(table); $rows = $tables-item(0)-getElementsByTagName('tr'); foreach($rows

Re: [PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
Veerman rene7...@gmail.com wrote: hmm lame bug... but you can add a classname to the ths and check for that?.. On Thu, Mar 11, 2010 at 9:34 PM, Andy Theuninck gohan...@gmail.com wrote: I'm trying to parse a string containing an HTML table using the builtin DOM classes and running into an odd

Re: [PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
name. On Thu, Mar 11, 2010 at 9:52 PM, Andy Theuninck gohan...@gmail.com wrote: I could could, but that would kind of defeat the point of the project (I'm trying to capture a bunch of existing HTML reports via output buffering and transform the tables into proper XLS. Tweaking every single

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

2010-01-15 Thread Andy Shellam
on Windows - just install it and SMTP to localhost - nothing more, nothing less. Andy

Re: [PHP] Intermittent etwork connection errors with apache. Restarting apache temporarily fixes the problem. PHP or apache problem?

2010-01-04 Thread Andy Shellam
the connection was dropped without the client disconnecting properly - it may be worth running netstat on your LDAP server as well. Regards, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] idea? add set_trace_handler() to PHP

2009-12-25 Thread Andy Shellam
Hi, Have you taken a look at Xdebug - http://xdebug.org/ ? From the manual: Xdebug allows you to log all function calls, including parameters and return values to a file in different formats. Would this do what you need - then your second script could process this file? Regards, Andy On 25

[PHP] Re: [PHP-DB] RE: Help for a beginner

2009-12-23 Thread Andy Shellam
not familiar enough with MySQL on Windows to know if the essentials package includes it. The error you're getting from ASP means it doesn't recognise the driver mySQL or is looking for an ODBC connection called mySQL which doesn't exist. Regards, Andy -- PHP General Mailing List (http://www.php.net

Re: [PHP] sending email with php

2009-12-23 Thread Andy Shellam
online. Regards, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Andy Shellam
Both at home and at work there are caching DNS on the LAN. So a DNS request may come back with a valid IP address when the WAN connection is down. I still won't be able to connect to the remote site. Dig an external server - e.g. dig @a.root-servers.net google.co.uk If your net is down the

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Andy Shellam
I'm confused... what's the problem with just trying to hit the update server? If you can then you check for updates, if not then you, erm, don't. Simples, no? True, I think I said this same thing in a previous post - I suggested the DNS option if all the OP wanted to do was check if an

Re: [PHP] Checking for internet connection.

2009-12-22 Thread Andy Shellam
And I was pointing out that this would not be a valid test when there is a caching DNS on the LAN. I also pointed out how to avoid caching issues - the comment was aimed at the author of the message before mine. Too much of the conversation and most of the attribution was stripped too

Re: [PHP] Checking for internet connection.

2009-12-20 Thread Andy Shellam
I think the only way to detect if it can connect to the Internet is to see if you can grab a file from somewhere on the Internet. I'd hazard a guess that when operating systems are able to tell you they can connect to the Internet they are actually saying they can ping a predetermined

Re: [PHP] Checking for internet connection.

2009-12-20 Thread Andy Shellam
By attempting to connect you will implicitly query DNS (which itself is a connection to server). No it's not - it's putting out a packet targeted at an IP address and hoping a server will answer - hence why multi-cast works for DNS because you're not directly connecting to a specified

Re: [PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Andy Shellam (Mailing Lists)
, but I can see why hosting providers may enable it.) I can't see any conceivable benefit to this restriction when using open_basedir, as I thought that related to the local file system - unless CURL can use file:// URLs to access the local system? Regards, Andy -- PHP General Mailing List (http

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread Andy Shellam (Mailing Lists)
realm is returned in the authentication request. If the user doesn't have the cookie, the server sends a random realm to trick the browser into thinking it's not logged in. By the time you've done all that, you might as well just use sessions. Regards, Andy -- PHP General Mailing List (http

Re: [PHP] is Aptana taking a crap on the face of PHP?

2009-11-15 Thread Andy Shellam (Mailing Lists)
* It is FREE (unlike Zend's retarded $500 price tag). I bought Zend Studio back in the 5.5 days - a couple of months after that they announced they were dropping support for the standalone IDE and made Studio an Eclipse plugin. It was then they added about $200 to the price. I moved to

Re: [PHP] please help with regular expression in preg_replace

2009-10-29 Thread Andy Shellam (Mailing Lists)
- and because your regex is greedy it's grabbing both, leaving you with com. Try adding the ungreedy modifier to your regex, like so: $domain = preg_replace( '/[^.]*\./U' , '', $host); (note the additional U in your regex.) HTH, Andy On 29 October2009, at 20:33, Red wrote: hello, im

Re: [PHP] Using setters/getters with array of objects

2009-10-18 Thread Andy Shellam (Mailing Lists)
Hi, $u-emails[] = $e; I would hazard a guess because $u-emails isn't a concrete object (whereas $u-_emails is, but is private.) It's sort of a virtual reference - PHP has no way of knowing that $u-emails actually translates into _emails which is an array, if you see what I mean

[PHP] Remote Developer Wanted

2008-10-20 Thread Andy Dyble
Hi I am looking for a remote developer for small add hoc jobs. Usually only a few hours at a time. Basic stuff, listing data from SQL and text files. Mainly work on existing systems. $10-$15 per hour depending on location. Andy Midsoft UK -- PHP General Mailing List (http://www.php.net

[PHP] Quick Guide to Building On Windows

2008-04-18 Thread Andy
I have a question in regards to building php-5.2.5 on Windows. I followed the direction under Quick Guide to Building On Windows on the following website exactly: http://php.mirror.camelnetwork.com/manual/en/install.windows.building.php However, I am unable to build the project because

Re: [PHP] PHTML files showing as blank pages

2008-01-07 Thread Andy Smith
was seeing and now I can connect to the index.phtml page too. Thanks to those who replied, cheers Andy. - Original Message - From: Brady Mitchell [EMAIL PROTECTED] To: A.smith [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Sunday, January 06, 2008 12:37 AM Subject: Re: [PHP

RE: [PHP] Currency Exchange Database?

2007-06-28 Thread Andy B.
You could have a look at the Euro foreign exchange reference rates rom the European Central Bank. They also provide a regularly updated XML file: http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html Hope it helps... Andy -Original Message- From: Tom Ray [Lists] [mailto

RE: [PHP] Database administration framework

2007-06-26 Thread Andy
tables that have data's in them. And these table data's must be edited with this admin tool. There are very few joins but there are references between the tables. Regards, Andy. -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 3:29 PM

[PHP] Database administration framework

2007-06-26 Thread Andy
Hi, I just need a framework for administrating tables in a database. These are simple add/edit/remove operations from tables. Can you suggest a framework for this kind of job? Cause there are a lot of tables and I hope I can find a nice tool to work with. Thank you.

RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Andy B.
message like /usr/sbin/sendmail: permission denied would have made it. Regards, Andy -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 01:01 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only working with php-cli

RE: [PHP] mail() only working with php-cli

2007-05-06 Thread Andy B.
/sendmail: permission denied, then at least I know what needs to be done. However I doubt that my php configuration is forbidden to access this file. Andy -Original Message- From: Oliver Block [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 23:58 To: php-general@lists.php.net

[PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
this kind of mail() issue. This installation is quite simple: standard Apache 2.0 with php5, php5-mysql, php5-gd, ... This makes it even more frustrating :-( What am I missing? Thanks a lot!! Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
tested with E_ALL and also dumping errors/warnings into log files... Andy -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 23:58 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only working with php-cli Are you sure

[PHP] PHP IMAP with Attachments!?

2006-10-31 Thread Andy
Hi to all, I need a class that reads emails from a server and reads the attachments from the mail. The mailservers is an IMAP for mail reading. The attachment types can be: images/pdf/text documents. Any suggestions? On phpclasses.org did not find any which works well. Regards, Andy.

Re: [PHP] User question for PHP

2006-10-19 Thread Andy Hultgren
was set up; however, the general consensus was that this situation created a number of serious security concerns that had to be very carefully addressed. I would avoid this configuration if you have the choice, based purely on the advice I received. Hope that helps, Andy

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Andy Hultgren
Would something like this work? Definition: function example($$ex) { echo Variable Name is $ex; } example($ball); I'm fairly new to php and not so familiar with variable variables, but I thought I'd throw it out there as a thought! Andy On 10/11/06, Jochem Maas [EMAIL PROTECTED] wrote

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Andy Hultgren
u no... I suppose I should have though! :) On 10/11/06, Jochem Maas [EMAIL PROTECTED] wrote: Andy Hultgren wrote: Would something like this work? did you try it? ;-) it won't work Definition: function example($$ex) { echo Variable Name is $ex; } example($ball); I'm

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Andy Hultgren
parameters by reference* ?php function add_some_extra($string) { $string .= 'and something extra.'; } $str = 'This is a string, '; add_some_extra($str); echo $str;// outputs 'This is a string, and something extra.' ? I think that does what you want? Andy On 10/11/06, Jônata Tyska Carvalho [EMAIL

[PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
of my property information (which should have been flattened into the first dimension). If that's doesn't make any sense please let me know and I will attempt to clarify. Otherwise, any and all help is very much appreciated! Andy

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
. I'll try this in a completely one-dimensional array from flash to php and see if it works. If it does, I'll let everyone know. Andy On 10/6/06, Raphael Martins [EMAIL PROTECTED] wrote: Did you explicitly checked if the id1 'a' prop isn´t an array? Can you post your ActionScript codemaybe

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
Am working on #2 right now... On 10/6/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, October 6, 2006 4:01 pm, Andy Hultgren wrote: /*/ $data = $_POST; $stuff = \n \n Post contains:; foreach($data as $prop = $val) { $stuff .= \n {$prop}: {$val

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
); /**/ This works perfectly and php receives all of the data correctly. Thanks guys for your thoughts. I'm going to be posting an addition to the online ActionScript documentation to hopefully help others avoid this pitfall! Andy On 10/6/06, Andy Hultgren [EMAIL PROTECTED] wrote: Am working on #2 right

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
$20 cash. -- This website never carries anyone's financial information. :) Andy On 9/26/06, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote: So I tried to implement the example code given in the php tmpfile() documentation and it wouldn't do

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
of site security, and I appreciate you taking the time to pass on your expertise to a newcomer. All the best, Andy On 9/27/06, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, September 27, 2006 12:12 pm, Andy Hultgren wrote: So I've been trying to figure out where php uploads files

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
an ftp connection within PHP and then use the ftp series of functions to accomplish all of the directory creation and permissions changes? If so, then I will probably change my code to follow yours. Andy On 9/25/06, tedd [EMAIL PROTECTED] wrote: At 9:32 PM -0600 9/24/06, Andy Hultgren wrote

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
files there, does that make the situation substantially better? Or is the PHP running as me thing enough alone to raise some serious serious problems (perhaps less around the image uploading but more around a login page or something)? As always, thank you so much for your help. Andy On 9/25/06

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
me a hand. Hopefully I get good enough at this that I can return the favor sometime!!! Andy On 9/25/06, Eric Butera [EMAIL PROTECTED] wrote: On 9/25/06, Andy Hultgren [EMAIL PROTECTED] wrote: Tedd, Thanks so much your thorough response - it's good to know that I'm not the only one trying

Re: [PHP] File Upload Security and chmod

2006-09-24 Thread Andy Hultgren
are finished uploading/saving/downloading/etc.? I have my uploaded_images/ directory set at chmod 0100 and I can still browse to an uploaded image from my file upload page... Thanks for your response, Andy On 9/23/06, tedd [EMAIL PROTECTED] wrote: At 7:19 PM -0600 9/22/06, Andy Hultgren wrote

[PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
though it has been set to chmod 0100? I'd really rather not have those files accessible to anyone, as an extra security layer. Thank you for your help! Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
: On Fri, September 22, 2006 3:58 pm, Andy Hultgren wrote: that as my root directory is simply www.myDomain.com and not .public_html/ and I am on a shared server where my root cannot be I got two words for you: Change Hosts -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
of file upload security. Also, I'd be curious still to hear why I can browse to a file in a directory that has been set with chmod 0100. I really didn't expect that. Thanks again very much for your thoughts, Andy On 9/22/06, Richard Lynch [EMAIL PROTECTED] wrote: I may have hit send too soon

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Andy
to check the performance of the system in this case, but I think it will be the same. The performance Issue that I asked was: Is there a difference if apache sends the image or If I output it with php with readfile. Andy. - Original Message - From: WeberSites LTD [EMAIL PROTECTED

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Andy
Thanks for the answers. I will launch anyway this solution, it is more secure for us... I will monitor the server to see if it can handle the load. Regards, Andy. - Original Message - From: Chris [EMAIL PROTECTED] To: Andy [EMAIL PROTECTED] Cc: WeberSites LTD [EMAIL PROTECTED]; php

[PHP] Image list performance ISSUE

2006-08-02 Thread Andy
)); readfile($fname); ... where fname is the image file. I want to know... is this a big performance issue or not(the image is handled by php and not by apache directly) OR... Is there any other way to handle this situation??? Thanx, Andy.

[PHP] performance criteria on DEFINE()

2006-04-21 Thread Andy
, CPU etc) so the question is: how much affects the performace the inclusion of a lot of defines??? Andy.

Re: [PHP] performance criteria on DEFINE()

2006-04-21 Thread Andy
Thanks for the suggests. I will have to make some tests to see what will happen, especially how fast. I will post after that my opinion. Regards, Andy. - Original Message - From: Jochem Maas [EMAIL PROTECTED] To: Andy [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday

[PHP] String /pattern formatting extraction question

2006-04-10 Thread Andy
and /p can be switched, so there is no rule that /p is before /o. How can I do this? I tried ereg but no success. Andy.

Re: [PHP] Re: String /pattern formatting extraction question

2006-04-10 Thread Andy
([^/.*]*), $html, $reg); print_r($reg); //text is in reg[2] eregi(^(.*)/o([^/.*]*), $html, $reg); print_r($reg); //text is in reg[2] This example works, but I thought there might be a better way to extract the texts, with a single ereg or preg_match. Regards, Andy. - Original Message - From: Barry

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Andy
with utf8_encode function than it wroks well. But... it this the solution??? I don't want to modify the whole project. Best regards, Andy. - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Andy [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, March 24, 2006 2:14 AM

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Andy
No it was not. If I save it with UFT8 encoding it works well. So, do I have to convert all the files to UTF8 encoding? Is there an easy way to do that? - Original Message - From: Jasper Bryant-Greene [EMAIL PROTECTED] To: Andy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; php-general

[PHP] Switching to UTF-8. Need help.

2006-03-23 Thread Andy
and french characters. Any of these aren't shower correctly. What is the workaround for this? Best regards, Andy.

Re: [PHP] Re: PDFLib or some free solution?

2006-03-21 Thread Andy
I suggest also www.fpdf.org. You have there a lot of examples... Regards. - Original Message - From: Barry [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, March 21, 2006 4:26 PM Subject: [PHP] Re: PDFLib or some free solution? [EMAIL PROTECTED] wrote: Hi, I have to

Re: [PHP] Re: PDFLib or some free solution?

2006-03-21 Thread Andy
need very complicated pdf documents(with javascript and much scripting in it)... then I don't know what class to suggest. Andy. - Original Message - From: Suhas To: Andy Sent: Tuesday, March 21, 2006 9:07 PM Subject: Re: [PHP] Re: PDFLib or some free solution? also

  1   2   3   4   5   6   7   8   >