Re: [PHP] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
of opening a file on a new OS, only to find that the default editor there has wiped out my 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] PHP vs JAVA

2013-08-20 Thread Andy McKenzie
was supposed to, so we fixed it" kind of way. If you were taking advantage 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

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

2013-07-04 Thread Andy McKenzie
thing much more 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

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

2013-04-01 Thread Andy McKenzie
... 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 wrote: > On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea > wrote: > > Hi Mark, > > I think a sim

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 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 wrote: >> On Thu, Feb 14, 2013 at 2:29 PM, Daniel Brown wrote: >>> O

Re: [PHP] Random 404 screens

2013-02-10 Thread Andy McKenzie
> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > 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

Re: [PHP] Random 404 screens

2013-02-09 Thread Andy McKenzie
On Sat, Feb 9, 2013 at 10:41 AM, Jim Giner 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 just displayed. I clic

Re: [PHP] Re: limiting

2012-10-10 Thread Andy McKenzie
, and I've now scrapped the entire project and rebuilt it. Why? Because I did just about everything wrong. It just plain wasn't practical to try to fix it. I'd never learned the basics, I just threw myself at a big project to see what would happen. Good luck! -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
y exist, then taper off for a while, then come back. I'd bet 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){ fwrite($fp,$LongS

Re: [PHP] book quest

2011-09-29 Thread Andy McKenzie
Put simply, I like to learn the basics from books rather than web pages. -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
#x27;t quite supplanted it as a concept book, but is my go-to for "here's a way to solve this particular problem 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
On Fri, Jun 24, 2011 at 1:30 PM, wrote: > Chrome. Enough said. Now, if we can only convince the rest of the world ... > Ugh. I can't stand Chrome. Of course, I gave up on Firefox years ago and went back to Opera, so it doesn't bother me when Firefox does something weird lik

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 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 when I reach for a

Re: [PHP] Question about directory permissions

2011-03-21 Thread Andy McKenzie
this case. (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 wrote: > I understand dir perms pretty well; but, have a question I can't readi

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 may

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 wrote: > On Mon, Mar 14, 2011 at 11:39 PM, Adam Richardson > wrote: >>> >>> This one's got me stumped.  I >>> have the following line in a script: >>> >>> $this->bc = ($this->network

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 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 wit

[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 fol

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 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 fill it's content

Re: [PHP] Cross-platform IDE

2011-01-26 Thread Andy McKenzie
On Wed, Jan 26, 2011 at 8:51 AM, Lester Caine 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 w

[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 worki

Re: [PHP] Command line PHP

2011-01-07 Thread Andy McKenzie
On Fri, Jan 7, 2011 at 11:55 AM, 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 > command line intera

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
On Fri, Oct 22, 2010 at 9:22 AM, Jay Blanchard 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 ru

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Andy McKenzie
favoring the value of the knowledge here, but it's been a close thing 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] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:25 AM, Peter Lind wrote: > On 6 October 2010 15:21, Andy McKenzie wrote: >> On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings wrote: >>> On 10-10-06 08:52 AM, Peter Lind wrote: >>>> >>>> Where exactly do you get the part about dou

Re: [PHP] which one is faster

2010-10-06 Thread Andy McKenzie
On Wed, Oct 6, 2010 at 9:03 AM, Robert Cummings 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 choke on sing

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

2010-09-24 Thread Andy McKenzie
[$i][$val['column']]) && (!isset($search_result[0][$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 w

[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 t

Re: [PHP] Auto-generating HTML

2010-09-21 Thread Andy McKenzie
On Tue, Sep 21, 2010 at 3:32 AM, Simcha Younger 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

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 ge

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:59 PM, Peter Lind wrote: > On 20 September 2010 21:56, Andy McKenzie wrote: >> On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto wrote: >>> On Mon, Sep 20, 2010 at 03:02:35PM -0400, TR Shaw wrote: >>>> >>>> On Sep 20, 2010, at 2:5

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:50 PM, Rick Pasotto 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

Re: [PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
On Mon, Sep 20, 2010 at 3:47 PM, Steve Staples 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

[PHP] Auto-generating HTML

2010-09-20 Thread Andy McKenzie
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 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

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Andy McKenzie
On Mon, Sep 13, 2010 at 8:11 PM, Micky Hulse wrote: > On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown 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 rider.  The rider falls off, the cable

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread Andy McKenzie
On Sun, Sep 12, 2010 at 1:51 PM, tedd 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

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 > in

Re: [PHP] HTTPS SSL

2010-09-02 Thread Andy McKenzie
Jordan, Bostjan hit the main points, but if you're trying to run a secure server, you probably ought to know more about it than you do now. It's pretty easy to arrange a secure connection that isn't actually secure if you don't know what you're doing. I'd recommend a good Apache book -- I have

Re: [PHP] Re: Bitwise NOT operator?

2010-08-25 Thread Andy McKenzie
On Wed, Aug 25, 2010 at 9:46 AM, Colin Guthrie 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

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike 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 y

Re: [PHP] Bitwise NOT operator?

2010-08-24 Thread Andy McKenzie
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling wrote: > On 20 August 2010 17:00, Andy McKenzie 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-20 Thread Andy McKenzie
20 August 2010 17:41, Peter Lind wrote: >> On 20 August 2010 17:10, Andy McKenzie 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 exa

[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 = Output $ php bintest2.php Bin: 1

Re: [PHP] DOMElement: td vs. th

2010-03-11 Thread Andy Theuninck
sportTH'. >> } >> >> the only problem i foresee is s in your reports already having a >> class="something" set, which could mess it up. you'd need to check >> that. but in that case you can always pump the original $str to the >> DOM, and us

Re: [PHP] DOMElement: td vs. th

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

[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($

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

2010-01-15 Thread Andy Shellam
rfectly reliable as a relay 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
before in the ESTABLISHED state, PHP isn't disconnecting. If any connections are listed as TIME_WAIT, it means 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, A

Re: [PHP] sending email with php

2009-12-23 Thread Andy Shellam
d also realise that a lot of mail clients don't render images/stylesheets by default - therefore straight after the tag before the rest of the content, put a link to an external website where recipients can view the content online. Regards, Andy -- PHP General Mailing List (http://ww

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

2009-12-23 Thread Andy Shellam
You didn't mention in your post if you had or not and I'm 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

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 >

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 a

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 t

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 ser

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] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Andy Shellam (Mailing Lists)
de or open_basedir and never had an issue, 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?

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread Andy Shellam (Mailing Lists)
on the user's machine - if the user has the cookie, the correct authentication 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 t

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 Nu

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

2009-10-29 Thread Andy Shellam (Mailing Lists)
uot;host." and "domain." match this regex - 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' , '&#x

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 becaus

Re: [PHP] PHTML files showing as blank pages

2008-01-07 Thread Andy Smith
e error message I 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: Sent: Sunday, January 0

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

[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] Database administration framework

2007-06-26 Thread Andy
I have 20 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: T

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

2007-05-07 Thread Andy B.
. A simple error 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

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

2007-05-06 Thread Andy B.
not access /usr/sbin/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 2

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

2007-05-05 Thread Andy B.
ve already 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

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

2007-05-05 Thread Andy B.
had 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/unsub.php

[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
ar too powerful). In my situation I couldn't change how the server 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
tion parameters by reference* I think that does what you want? Andy On 10/11/06, Jônata Tyska Carvalho <[EMAIL PROTECTED]> wrote: I know that function does not work, but im asking if someone know a way to do that. Someone know how ??? On 10/11/06, Andy Hultgren < [EMAIL PROTECTED]>

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

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 Ma

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
} } data_lv.sendAndLoad("myScript.php", data_lv, "POST"); /**/ 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 avoi

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

Re: [PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
int as expected, it doesn't send as expected. 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 

[PHP] Problem receiving POSTed data

2006-10-06 Thread Andy Hultgren
ong variable name). And that would work fine if that's what it was doing, but, for some reason, $_POST doesn't seem to be receiving the second array dimension at all which contains all 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] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
y good foundation to start from on these questions 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'v

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
my homepage like the ones that you see in taxis sometimes: "This driver never carries more than $20 cash." --> "This website never carries anyone's financial information." :) Andy On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, September 25, 200

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
really appreciate you guys jumping in a giving 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 mu

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
irectories outside of my webtree and can check and save uploaded 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 someth

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
er to establish 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

Re: [PHP] File Upload Security and chmod

2006-09-24 Thread Andy Hultgren
en you 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/

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
read I understand that those steps are the minimum in terms 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,

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
EMAIL PROTECTED]> wrote: 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:/

[PHP] File Upload Security and chmod

2006-09-22 Thread Andy Hultgren
browser windows never have access to view the uploaded file, only the browser from which the file was uploaded. Any thoughts on why I can view the uploaded file even though it has been set to chmod 0100? I'd really rather not have those files accessible to anyone, as an extra security la

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]&

Re: [PHP] Image list performance ISSUE

2006-08-07 Thread Andy
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" <[EM

[PHP] Image list performance ISSUE

2006-08-02 Thread Andy
uot;.filesize($fname)); 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.

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: S

[PHP] performance criteria on DEFINE()

2006-04-21 Thread Andy
fine. I don't know how php handles these defines(memory usage, CPU etc) so the question is: how much affects the performace the inclusion of a lot of defines??? Andy.

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

2006-04-10 Thread Andy
eg[1] eregi("^(.*)/p([^/.*]*)", $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.

[PHP] String /pattern formatting extraction question

2006-04-10 Thread Andy
e order betweeen /o 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] 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]>

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

2006-03-24 Thread Andy
correct encoding. By default the browser(tested on IE and firefox) sees as UFT-8 encoding for the page. If I output the string 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 Messag

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

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

  1   2   3   4   5   6   7   8   >