[PHP] Re: $60 Reward, 1 Hour Eclipse Project

2008-11-17 Thread Nathan Rixham
johny why wrote: - Tasks $60 reward to walk me through a successful Eclipse PHP debug session of doProject on my IIS server. The only task here is to get a debug session going. There will not be any IIS support or PHP programming involved. Should only be some basic config settings in Eclips

[PHP] Re: while question

2008-11-17 Thread Nathan Rixham
Alain Roger wrote: Hi, i'm on PHP training and our lector is telling us that to avoid counting an array item amout thanks count($my_array), he tells we can do: while($my_array) { ... do something } but from experience this is an infinity loop... it should be always something like $count = coun

Re: [PHP] while-question

2008-11-17 Thread Nathan Rixham
Jochem Maas wrote: $a = range(1,10); for ($i = 0, $c = count($a); $i < $c; print($a[$i]."\n"), $i++); think the point of this is to count the items in an array without count mate :p no point in the above you could just: $c = count($a); foreach! $a = range(1,10); $c = 0; foreach($a as $b) {

[PHP] Re: Cannot create statement handler

2008-11-17 Thread Nathan Rixham
Thodoris wrote: I was wondering if anyone sees something I am bypassing: I have this sample code that works in another server: query($sql); // die(var_dump($sthr)); $res = $sthr->fetch(PDO::FETCH_ASSOC); return $res['Name']; } try { $dbh = new PDO('mysql:host=localhost;port=3306;

Re: [PHP] Variable Argument List

2008-11-17 Thread Nathan Rixham
Richard Heyes wrote: ... And you might also be interested in func_get_args(), which returns an array of args passed to the function (don't know what it does if used outside a function. Probably get an error). yup.. Warning: func_get_args(): Called from the global scope - no function conte

Re: [PHP] while-question

2008-11-17 Thread Nathan Rixham
Stut wrote: On 17 Nov 2008, at 14:31, Nathan Rixham wrote: if you really want a challenge try this one.. task: add the numbers 5 and 17 together, using php, without using the + operator. fill it in: function add($a , $b) { //code here but no + - / * operators return $answer; } echo add(5

[PHP] Re: Accented character in Regex.

2008-11-17 Thread Nathan Rixham
Shiplu wrote: How to match accented characters by preg match?? I need to match ">Sin garantía<" by "/>([^<]+) convert to utf8 and use the U modifier on the regex string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date Issue

2008-11-17 Thread Nathan Rixham
Boyd, Todd M. wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 10:50 AM To: php-general@lists.php.net Subject: [PHP] Date Issue $smont = 10; $sday = 13; $syear = 2008; $timestamp = mktime(0,0,0,$smont,$sday,$syear); $thismonth =

[PHP] Re: Accented character in Regex.

2008-11-17 Thread Nathan Rixham
Nathan Rixham wrote: Shiplu wrote: How to match accented characters by preg match?? I need to match ">Sin garantía<" by "/>([^<]+) convert to utf8 and use the U modifier on the regex string? sorry.. lowercase "u" for utf8! (U is ungreedy) -- PHP General

Re: [PHP] while-question

2008-11-17 Thread Nathan Rixham
bruce wrote: curious qiestion to all on here who dabble in php... how many of you have actully gone to college, taken algorithm courses, microprocessor courses, design/architecture courses, etc.. or is the majority of the work here from people who've grabbed the tools and started programmin

Re: [PHP] while question

2008-11-18 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2008-11-17 at 18:01 -0500, Craige Leeder wrote: Ashley Sheridan wrote: On Mon, 2008-11-17 at 17:47 -0500, Craige Leeder wrote: Only thing to note with the foreach is that you are actually working on a copy of the array, so if you intend to modify it, pass it b

Re: [PHP] while-question

2008-11-18 Thread Nathan Rixham
tedd wrote: At 7:02 PM -0500 11/17/08, Craige Leeder wrote: I'm not illiterate; promise :p - Craige Yeah, his parents were married before he was born. Cheers, tedd omg tedd, I was just reading this thread over, thought exactly that witty response, clicked you're reply and there it is;

[PHP] Re: phpDesigner 2008?

2008-11-18 Thread Nathan Rixham
Waynn Lue wrote: I know the IDE wars spring up occasionally, but looking through the archives, I haven't seen any discussions pro or con for phpDesigner 2008 ( http://www.mpsoftware.dk/phpdesigner.php). Anyone had a chance to use it and think it's good or not? I just installed PDT + Eclipse tod

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Nathan Rixham
Kevin Waterson wrote: This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-) Also, in some religions the date is

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Nathan Rixham
Nathan Rixham wrote: Kevin Waterson wrote: This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-)

[PHP] Re: implode()

2008-11-18 Thread Nathan Rixham
Terion Miller wrote: I have read the whole forum at php.net on implode and I still don't get why this one does not work if (isset($_POST['BannerSize'])){$BannerSize = implode($_POST['BannerSize'],',');} else {$BannerSize = "";} someone please help don't think it's a php thing, it's expecting

Re: [PHP] while-question

2008-11-18 Thread Nathan Rixham
Craige Leeder wrote: Jochem Maas wrote: klieder ... kliederen the E sound is short. Interesting to know. Thanks :D - Craige don't believe him, "jochem" is really called Bob Davis, a slightly balding middle aged ASP developer from hull sent to infiltrate the PHP community and misguide

[PHP] Re: PHP performance profiling

2008-11-18 Thread Nathan Rixham
Gryffyn wrote: I did a search and didn't find anything really astounding sounding, so I wanted to ask for some "live" recommendations from the crowd here. I was wondering if anyone had used FirePHP with Firebug or could recommend a good profiling method for figuring out where the slow parts of

[PHP] Re: anchor name on URL

2008-11-18 Thread Nathan Rixham
Stan wrote: If I had a page written in HTML and I had a named anchor on that page I could position the user at the anchor by http://myPage.com/myHTML.htm#myAnchor but I can't seem to make this work if the page is generated http://mypage.com/myPHP.php#myAnchor I've tried both FireFox

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham
Per Jessen wrote: Craige Leeder wrote: Micah Gersten wrote: I'd rather all the engines follow the W3C standards so that you just have to make sure your web page is compliant. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Though I always script to W3

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham
Per Jessen wrote: Nathan Rixham wrote: Per Jessen wrote: Nathan Rixham wrote: i never understand this, if i was makign a browser I'd be "where's the rfc's" then code it to implement those rfc's - why people choose not to is beyond me? World domination is pa

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham
Richard Heyes wrote: although the crapness of firefox 3 may change that a bit.. Keh? FF3 is great IMO. I thought that at first as well, then I noticed it was a bit unstable on windows xp/media center/tablet edition, on all my machines, then talked to workmates, friends, partner etc and th

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Nathan Rixham
Per Jessen wrote: Nathan Rixham wrote: Though I always script to W3 Standards, I could care less if browsers follow those standards, so long as we wind up closer and closer to a general set of rules we can obide by. Uh, only as long as that general set of rules is well documented. /Per

[PHP] Re: mysql_fetch_object and modulo %

2008-11-19 Thread Nathan Rixham
Alain Roger wrote: Hi, how can i do to test if the row number (record number) sent by mysql_fetch_object is odd or even ? i mean that: while ($row = mysql_fetch_object($result)) { if($row%2 == 1) { ... } } the $row doesn't return a value... like 1, 2 or 6 for exampl

[PHP] Re: HTTP Authentication

2008-11-19 Thread Nathan Rixham
Thiago H. Pojda wrote: Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it working. I believe it has something to do with the password containing a # (can't change it) and the browser thinks it's an a

[PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-19 Thread Nathan Rixham
Rene Fournier wrote: Hi, I have four identical command-line PHP scripts running, and each will frequently fetch some data from another server via file_get_contents(). By frequently, I mean on average, every second. Periodically, one of the processes (command-line PHP scripts), will fail on

Re: [PHP] Stats (was anchor name on URL)

2008-11-19 Thread Nathan Rixham
Luke Slater wrote: On Wed, 19 Nov 2008, Ashley Sheridan wrote: On Wed, 2008-11-19 at 09:50 -0500, tedd wrote: Nathan Rixham wrote: well that bubble should have popped.. from some of my sites: Browser % visits Firefox 88.43% Internet Explorer 9.99% and At 12:25 PM + 11/19/08

Re: [PHP] Invalid Arguements

2008-11-19 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote: I am still getting the Invalid arguement error on this implode: if (isset($_POST['BannerSize'])){$BannerSize = implode(',',$_POST['BannerSize']);} else {$BannerSize = "";} I have moved the ',', from the beginning to

[PHP] Re: How to Execute Multiple SQL Updates Using PHP

2008-11-19 Thread Nathan Rixham
Alice Wei wrote: Hi, I am inquiring on this list to see if it is possible to create a script that takes multiple update statements without my having to write one "SQL" statement for each of the updates. I have a scenario of which I create a table of some sort with some existing informati

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Nathan Rixham
Rene Fournier wrote: On 19-Nov-08, at 12:52 PM, Nathan Rixham wrote: Rene Fournier wrote: Hi, I have four identical command-line PHP scripts running, and each will frequently fetch some data from another server via file_get_contents(). By frequently, I mean on average, every second

Re: [PHP] Invalid Arguements

2008-11-20 Thread Nathan Rixham
On 20 Nov 2008, at 14:37, Terion Miller wrote: I currently have it like this: if you've got it working don't change it :) but to explain: it is possible to send through an array of data from a form, to do this you place multiple elements with the same name followed by [] in the form.. so

Re: [PHP] Invalid Arguements

2008-11-20 Thread Nathan Rixham
Terion Miller wrote: Nathan, thank you thank you thank you now I get it! your the bomb!! terion joy, glad to hear it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Nathan Rixham
Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 11:50 AM, Rene Fournier <[EMAIL PROTECTED]> wrote: Don't think that can be it, since (a) the other processes are not being denied their http requests and (b) requests are going to two servers. Have you checked your firewall settings? It may b

Re: [PHP] Re: PHP Warning: HTTP request failed -- BSD resource limit reached?

2008-11-20 Thread Nathan Rixham
Rene Fournier wrote: On 20-Nov-08, at 12:44 PM, Daniel P. Brown wrote: On Thu, Nov 20, 2008 at 2:41 PM, Rene Fournier <[EMAIL PROTECTED]> wrote: There is no firewall between any of the servers -- they are all on the same LAN. I read when you said that, but I must not have explained my

[PHP] Re: reading XML

2008-11-21 Thread Nathan Rixham
Angelo Zanetti wrote: What is the simplest way to accomplish this small challenge? you could give this a go if you like (one i made earlier): http://programphp.com/xmlparser.phps - class at the top, usage at the bottom. it simply turns xml into an associated array, using regex; just teste

Re: [Fwd: Re: [PHP] Displaying information from table graphically]

2008-11-22 Thread Nathan Rixham
Ashley Sheridan wrote: On Sat, 2008-11-22 at 19:47 -0100, [EMAIL PROTECTED] wrote: Since I am not an expert in FLASH, I need to make sure I understand what you suggested below. >From what I understand I can pass the data from SQL query to Flash via some sort of flash parameters (flashvars), but

Re: [Fwd: Re: [PHP] Displaying information from table graphically]

2008-11-22 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru temporary XML files correct? not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable (see S

[PHP] Re: Displaying information from table graphically]

2008-11-22 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technolo

Re: [PHP] Displaying information from table graphically]

2008-11-22 Thread Nathan Rixham
Ashley Sheridan wrote: On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is know

Re: [PHP] Displaying information from table graphically]

2008-11-22 Thread Nathan Rixham
Nathan Rixham wrote: WSOT is worth a look... sorry my nickname for it.. i meant wso2 (wso2.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Open Project

2008-11-22 Thread Nathan Rixham
Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything wit

Re: [PHP] Open Project

2008-11-22 Thread Nathan Rixham
Alex Chamberlain wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or

Re: [PHP] Open Project

2008-11-22 Thread Nathan Rixham
Craige Leeder wrote: Hi Nathan, Are you fluent with OOP concepts? I'm working on a framework called Ember, and wouldn't mind some help. I literally JUST started the re-code though - Craige Hi Craige, Do send through more details, I'm fluent with OO concepts and design patterns etc, devel

Re: [PHP] Displaying information from table graphically]

2008-11-23 Thread Nathan Rixham
Robert Cummings wrote: Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent im

Re: [PHP] Displaying information from table graphically]

2008-11-23 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: I absolutely agree. This type of scenario is exactly what they had in mind when they decided to develop Flex technology. And I have no time to experiment or take risk. I did some aditional reading on Flex in the mean time, and I found out that it is fully integratable wit

Re: [PHP] file_Exists() and case

2008-11-23 Thread Nathan Rixham
Stan wrote: The script is running on an UBUNTU v8.04 LAMP server. Case is supposed to matter, isn't it? out of interest try putting clearstatcache() before if(!file_Exists($basePicture)) ps.. sure it should be file_exists all lowercase - perhaps you're choosing to use call the function wit

Re: [PHP] issue with php.ini

2008-11-23 Thread Nathan Rixham
i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x phpinfo() and i see nowher

[PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?

2008-11-23 Thread Nathan Rixham
robert arnesson wrote: Hello all, I get plenty of error messages (100 000+ / day) in my Apache httpd-error.log like the ones shown here [Sun Nov 23 11:34:42 2008] Script: '/usr/www/example/core/js/wall.php' [Sun Nov 23 11:35:35 2008] Script: '/usr/www/example/core/js/wall.php' [Sun Nov 23 1

[PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?

2008-11-23 Thread Nathan Rixham
robert arnesson wrote: What is causing these errors? further thought.. is PHP installed as CGI or SAPI? if CGI have you checked the apache settings to see if the ScriptLog directive is on any where? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Displaying information from table graphically]

2008-11-23 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: Since you already used it, and I have a doubt regarding wheter to use Zend or PDT with Eclipse, what is your opinion on that subject. Official Adobe Flex page recommends using Zend, but Zend is commercial too, and I generally preffer using open source, could I encounter s

[PHP] Re: Open Project

2008-11-23 Thread Nathan Rixham
Nathan Rixham wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, web

Re: [PHP] issue with php.ini

2008-11-23 Thread Nathan Rixham
Alain Roger wrote: it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311 "you have to install PostgreSQL since enable extension only is not enough" makes sence! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: file_Exists() and case

2008-11-23 Thread Nathan Rixham
Stan wrote: How can I do that, please? Do what? Detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists. http://uk2.php.net/touch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] issue with php.ini

2008-11-23 Thread Nathan Rixham
Alain Roger wrote: Alain Roger wrote: it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311 "you have to install PostgreSQL since enable extension only is not enough" makes sence! -- PH

Re: [PHP] Re: file_Exists() and case

2008-11-23 Thread Nathan Rixham
Stan wrote: This thread began because file_exists() WILL NOT tell that a file exists FOR SURE and FOR CERTAIN if the file you check for happens to be named whatever.jpg and whatever.JPG exists. I know this because IMagick then chokes on whatever.jpg because it DOESN't exist. a: you really ne

[PHP] Re: PostTrack Reminder

2008-11-24 Thread Nathan Rixham
Daniel Brown wrote: Folks; Just as a reminder, the PostTrack/ListWatch system is back to recording and reporting data on the list for the Friday summary reports and list metrics. If you do not want your email address to show up in the reports and have not already told me, please let me

[PHP] Re: Voting methodology

2008-11-26 Thread Nathan Rixham
tedd wrote: Hi gang: What methodology would be the best for online voting? I have a client who is a Union and they want members to vote online, but don't want someone to stuff the voting box. I have some ideas of my own, but would like to hear what you people would recommend. Cheers, ted

[PHP] Re: Online Calendars

2008-11-26 Thread Nathan Rixham
tedd wrote: Hi gang: What online calendars would any of you recommend or have experiences with one way or the other? Cheers, tedd to integrate in with a system? open or closed source? feature list? (you could mean a massive task manager or a tiny calender widget) -- PHP General Mailing

Re: [PHP] Re: Online Calendars

2008-11-26 Thread Nathan Rixham
tedd wrote: At 9:18 PM + 11/26/08, Nathan Rixham wrote: tedd wrote: Hi gang: What online calendars would any of you recommend or have experiences with one way or the other? Cheers, tedd to integrate in with a system? open or closed source? feature list? (you could mean a massive

[PHP] RSE in Ganymede + General Dev Talk

2008-11-26 Thread Nathan Rixham
Evening all, Just wondered if anybody else had tranfer problems using the ftp connector of the RSE plugin for eclipse ganymede, I keep getting a no transfer and the export from project dialog telling me to pick a remote folder (Even though I have). Not looking for a fix, just wondered if any

[PHP] Re: RSE in Ganymede + General Dev Talk

2008-11-26 Thread Nathan Rixham
Nathan Rixham wrote: Just wondered if anybody else had tranfer problems using the ftp connector of the RSE plugin for eclipse ganymede, confusion, it's fine in ganymede off in europa - sorry! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Happy Turkey Day

2008-11-27 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2008-11-27 at 12:31 -0500, Daniel P. Brown wrote: On Thu, Nov 27, 2008 at 12:26 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: For anyone who has no idea who Mr Bean is: http://img.photobucket.com/albums/v125/aricacritter/mr-bean-cooking-turkey.jpg The half-

[PHP] Re: Parsing XML

2008-11-27 Thread Nathan Rixham
Ashley Sheridan wrote: Hi All, I've run into a bit of a problem. I need to parse some fairly detailed XML files from a remote website. I'm pulling in the remote XML using curl, and that bit is working fine. The smaller XML documents were easy to parse with regular expressions, as I only needed

[PHP] Re: Parsing XML

2008-11-27 Thread Nathan Rixham
Ashley Sheridan wrote: Hi All, I've run into a bit of a problem. I need to parse some fairly detailed XML files from a remote website. I'm pulling in the remote XML using curl, and that bit is working fine. The smaller XML documents were easy to parse with regular expressions, as I only needed

Re: [PHP] Re: Parsing XML

2008-11-28 Thread Nathan Rixham
2008/11/27 Ashley Sheridan <[EMAIL PROTECTED]> > On Thu, 2008-11-27 at 22:13 +, Ashley Sheridan wrote: > > On Thu, 2008-11-27 at 20:56 +, Nathan Rixham wrote: > > > Ashley Sheridan wrote: > > > > Hi All, > > > > > > > > I

[PHP] Re: Something to lighten the mood...

2008-11-29 Thread Nathan Rixham
Richard Heyes wrote: Just read this: How many Google Chrome users does it take to change a lightbulb? None. The lightbulb is isolated, so if it fails, the room doesn't go dark. tbh I'm most impressed with your remote php-general-list mood detection script - how did you know? -- PHP General

[PHP] Re: Something to lighten the mood...

2008-11-29 Thread Nathan Rixham
Richard Heyes wrote: Just read this: How many Google Chrome users does it take to change a lightbulb? None. The lightbulb is isolated, so if it fails, the room doesn't go dark. rbh I'm most impressed with your remote php-general-list mood detection script - how did you know? -- PHP General

Re: [PHP] Text To Speech Update

2008-11-30 Thread Nathan Rixham
Michael Kubler wrote: Works ok for me on FFox v2 and v3 on my Windows XP machines, but when trying it on IE v6.0 the speech is played back REALLY fast. Like super chipmunk style. sounds like the double speed playback flash bug; upgrade you're flash player and should work -- PHP General Mail

Re: [PHP] Parsing XML

2008-12-01 Thread Nathan Rixham
Per Jessen wrote: Ashley Sheridan wrote: [/snip] :p XSL(T) an xslt processor, along with an XSLT stylesheet, should be used to transform XML documents in to other XML, human readable or structured documents. DOM a class implementing the DOM interface should be used to traverse, analyse and

Re: [PHP] question about corrupt db?

2008-12-01 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2008-12-01 at 16:29 -0600, Terion Miller wrote: On Mon, Dec 1, 2008 at 4:20 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: On Mon, 2008-12-01 at 15:53 -0600, Terion Miller wrote: > On Mon, Dec 1, 2008 at 3:40 PM, Wolf <[EMAIL PROTECTED]>

[PHP] Re: Slow file download

2008-12-02 Thread Nathan Rixham
Brian Dunning wrote: I'm using a PHP cron job to constantly download files from a remote server. Client and server both have abundant unused bandwidth, and the sysads have already eliminated switches, interface cards, etc. as the source of the slowdown. I'm looking at the script to see why file

Re: [PHP] How to type arguments

2008-12-02 Thread Nathan Rixham
Richard Heyes wrote: I'm a french student, sorry for my mail : I want to know how can I type my functions' arguments ? It is heavy to do : function post($id) { $id=(int)$id; //... PHP is loosely typed so strictly (...) speaking, that would be fine. However, you're best off making sure that wh

Re: [PHP] Re: Slow file download

2008-12-02 Thread Nathan Rixham
Brian Dunning wrote: IIS, Windows PHP 5.2.6, and unfortunately the downloads are https. On Dec 2, 2008, at 12:32 PM, Nathan Rixham wrote: what's the server running? iis/apache, win/linux version of php (as accurate as you can) oh and via http or https/ssl? now I may be wrong but I

Re: [PHP] Re: Slow file download

2008-12-02 Thread Nathan Rixham
Nathan Rixham wrote: Brian Dunning wrote: IIS, Windows PHP 5.2.6, and unfortunately the downloads are https. On Dec 2, 2008, at 12:32 PM, Nathan Rixham wrote: what's the server running? iis/apache, win/linux version of php (as accurate as you can) oh and via http or https/ssl? now I m

Re: [PHP] Re: Slow file download

2008-12-02 Thread Nathan Rixham
Ashley Sheridan wrote: On Tue, 2008-12-02 at 21:13 +, Nathan Rixham wrote: Nathan Rixham wrote: Brian Dunning wrote: IIS, Windows PHP 5.2.6, and unfortunately the downloads are https. On Dec 2, 2008, at 12:32 PM, Nathan Rixham wrote: what's the server running? iis/apache, win/

[PHP] Re: stream_socket_accept() on an SSL socket

2008-12-02 Thread Nathan Rixham
Darren wrote: I'm trying to connect to an SSL server, but I keep on getting these errors: - PHP Warning: stream_socket_accept(): SSL operation failed with code 1. OpenSSL Error messages: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol in C:\scripts\bouncer.php on li

[PHP] Re: stream_socket_accept() on an SSL socket

2008-12-02 Thread Nathan Rixham
Darren wrote: I'm trying to connect to an SSL server, but I keep on getting these errors: - PHP Warning: stream_socket_accept(): SSL operation failed with code 1. OpenSSL Error messages: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol in C:\scripts\bouncer.php on li

[PHP] Re: stream_socket_accept() on an SSL socket

2008-12-02 Thread Nathan Rixham
Nathan Rixham wrote: Darren wrote: I'm trying to connect to an SSL server, but I keep on getting these errors: - PHP Warning: stream_socket_accept(): SSL operation failed with code 1. OpenSSL Error messages: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol

Re: [PHP] adding key-> value pair to an array

2008-12-03 Thread Nathan Rixham
Jim Lucas wrote: I don't think the above will work either, afaik php doesn't allow you to have variable names start with numbers. well debatable.. # $12 = 'value'; Parsing Error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' # $varname = 12;

[PHP] Re: $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Nathan Rixham
Alex Kirk wrote: I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD 6.2. It's worked quite well for over a year now. However, as of some time last night, phpBB broke; upon investigation, I realized that the problem was that $_POST was never getting populated, even on properly f

Re: [PHP] Re: $_POST suddenly empty; $_GET and _$REQUEST fine

2008-12-03 Thread Nathan Rixham
Alex Kirk wrote: I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD 6.2. It's worked quite well for over a year now. However, as of some time last night, phpBB broke; upon investigation, I realized that the problem was that $_POST was never getting populated, even on properly for

[PHP] Re: How to Insert into DOMDocument

2008-12-06 Thread Nathan Rixham
Shanon Swafford wrote: I have the following code: #!/usr/bin/php -q formatOutput = true; $foo = $doc->createElement("foo"); $doc->appendChild($foo); $bar = $doc->createElement("bar"); $foo->appendChild($bar); $bazz = $doc->createElement("bazz"); $foo->appendChild($bazz

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Nathan Rixham
Per Jessen wrote: Terion Miller wrote: I have a huge form to validate and wonder which is better javascript validation or php, the page is a php page, I actually put js validation on it but then it stopped working (stopped inserting into the db) not sure if that had anything to do with it W

Re: [PHP] Parsing Strings

2008-12-06 Thread Nathan Rixham
tedd wrote: At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: How might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote: OK, making good learning progress today. I have a string that is

[PHP] Re: How do you organise your PHP work ?

2008-12-06 Thread Nathan Rixham
franzemmanuel wrote: Hi ! I wanted to know how you organise your work when you develop a project ? - I have a checking list to control each file. - I make a diagram (with Impress). - And a CalcSheet to follow my variables. (examples : http://www.surleweb.biz/development.php). And you ? How do yo

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2008-12-07 at 02:27 -0800, Yeti wrote: I put a small one together using regular expressions, http://www.ashleysheridan.co.uk/coding_php_validation.php So we are "regexing" emails again? #OUT OF coding_php_validation.php COPY case 'email': { $expression =

[PHP] Re: A MySQL Question

2008-12-07 Thread Nathan Rixham
tedd wrote: Hi gang: I just interviewed for a job teaching at the local college (imagine me taking minds of mush and molding them to the world according to tedd -- frightening huh?) In any event, the interviewer asked me how long I've been using MySQL and I replied several years. After whic

[PHP] Re: A MySQL Question

2008-12-07 Thread Nathan Rixham
tedd wrote: At 3:24 PM + 12/7/08, Nathan Rixham wrote: On the same not does anybody else frequently use (or even know about) the awesome spatial extension for mysql? or use the information_schema tables? I've certainly never used them, but I can imagine information_schema tables

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Nathan Rixham
On Sun, 2008-12-07 at 13:59 +, Luke Slater wrote: /** Validate an email address. Provide email address (raw input) Returns true if the email address has the email address format and the domain exists. Not following the usual coding style I know but I can't bring

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2008-12-07 at 20:31 +0100, Per Jessen wrote: Yeti wrote: I think hotmail, or was it some other mail mogul, is allowing their users to have those weird German umlauts and some accented characters. EXAMPLE: [EMAIL PROTECTED] Anyone who allows 8-bit characters on

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2008-12-07 at 15:13 -0500, Robert Cummings wrote: On Sun, 2008-12-07 at 19:54 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Sun, 2008-12-07 at 20:31 +0100, Per Jessen wrote: Yeti wrote: I think hotmail, or was it

Re: [PHP] A MySQL Question

2008-12-08 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2008-12-08 at 23:23 +, [EMAIL PROTECTED] wrote: Presumable, the EXISTS sub-query can be optimized sometimes to just stop processing the sub-query and kick things back out to the outer query. IN has to process them all and find them all. Don't forget the

Re: [PHP] A MySQL Question

2008-12-08 Thread Nathan Rixham
Micah Gersten wrote: Robert Cummings wrote: On Mon, 2008-12-08 at 19:46 -0600, Micah Gersten wrote: Robert Cummings wrote: On Tue, 2008-12-09 at 00:16 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Mon, 2008-12-08 at 23:23 +, [EMAIL PROTECTED

Re: [PHP] Using a class inside of a class

2008-12-12 Thread Nathan Rixham
Robert Cummings wrote: On Fri, 2008-12-12 at 13:21 -0800, Richard Kurth wrote: Can I use another class inside of a function in a class this function process_queue below is inside of a class called class mailer I want to use the phpMailer class inside of this function so I can send email using

[PHP] Re: Instructions on compiling PHP 5.2.8 for Mac OS X Server 10.4.11

2008-12-12 Thread Nathan Rixham
Rene Fournier wrote: Since Marc Liyange hasn't updated his binary since 5.2.4, I've been looking for some instructions on building my own, specifically the latest 5.2.8 source for 10.4 Server. Google doesn't turn up anything for me. Anyone have a good link? ...Rene http://www.hmug.org/pub/M

[PHP] Re: apache and PHP / Eclipse

2008-12-14 Thread Nathan Rixham
Eduardo Vizcarra wrote: I am having a hard time trying to get some pages work. I have PHP 5.2.8, Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All packages were installed, and configured, the strange thing is that pages commonly work but when I add a new line (e.g. an echo l

[PHP] Re: apache and PHP / Eclipse

2008-12-14 Thread Nathan Rixham
Eduardo Vizcarra wrote: I am having a hard time trying to get some pages work. I have PHP 5.2.8, Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All packages were installed, and configured, the strange thing is that pages commonly work but when I add a new line (e.g. an echo l

Re: [PHP] php client

2008-12-14 Thread Nathan Rixham
idan72 wrote: Hi, I am new to PHP. I want to write a web client in PHP that will data to a server written in Java. I want that the client will send an object to the server. What is the best way to do that? Where can I find an example for doing that ? Thanks Run you're java app as a soap 1.

[PHP] Re: runtime access to static variable

2008-12-16 Thread Nathan Rixham
Jack Bates wrote: How do I access a static variable when I do not know the name of the class until runtime? I have the following example PHP: ket% cat test.php class Test { public static $STEPS = array( 'foo', 'bar'); } $className = 'Test'; var_dump($className::$STEPS); k

[PHP] Re: runtime access to static variable

2008-12-16 Thread Nathan Rixham
Jack Bates wrote: How do I access a static variable when I do not know the name of the class until runtime? I have the following example PHP: ket% cat test.php class Test { public static $STEPS = array( 'foo', 'bar'); } $className = 'Test'; var_dump($className::$STEPS); k

  1   2   3   4   5   6   7   8   9   10   >