php-general Digest 7 Jan 2007 15:25:03 -0000 Issue 4556

2007-01-07 Thread php-general-digest-help
php-general Digest 7 Jan 2007 15:25:03 - Issue 4556 Topics (messages 246701 through 246701): Re: Windows directory listings 246701 by: Jochem Maas Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL

Re: [PHP] Windows directory listings

2007-01-07 Thread Jochem Maas
Beauford wrote: Hi, I am trying to write a script that reads a directory on Windows. All the PHP functions I have looked at all seem to work with the Linux dietary it sounds more like you have found an examples that show windows being used (i.e. windows file paths). structure. Is there

Re: [PHP] Exceptions: How much is too much.

2007-01-07 Thread Craige Leeder
Thanks. Does anybody else have any input? Not to be pushy, but I'm in the middle of programming a framework for a site. - Craige On 1/5/07, Paul Scott [EMAIL PROTECTED] wrote: On Fri, 2007-01-05 at 00:44 -0500, Craige Leeder wrote: The question is: How much is too much. Should I use

[PHP] Re: Question regarding include() and symlinks to directories

2007-01-07 Thread spam
On 6 Jan 2007, [EMAIL PROTECTED] wrote: On Thu, January 4, 2007 2:47 pm, Karl Pfl=E4sterer wrote: In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? The PHP version is 5.1.6 (will soon be updated).

[PHP] Re: Question regarding include() and symlinks to directories

2007-01-07 Thread spam
On 5 Jan 2007, [EMAIL PROTECTED] wrote: On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: reply at the bottom ... (Karl Pflästerer) wrote: Hi let's say we have the follwing directory structure: directory test, with to subdirectories: a and b; both have ssi subdirectory; a has

Re: [PHP] Re: Question regarding include() and symlinks to directories

2007-01-07 Thread Robert Cummings
On Sun, 2007-01-07 at 19:39 +0100, [EMAIL PROTECTED] wrote: On 5 Jan 2007, [EMAIL PROTECTED] wrote: On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: reply at the bottom ... (Karl Pflästerer) wrote: Hi let's say we have the follwing directory structure: directory test,

[PHP] PHP Manipulation of WMV

2007-01-07 Thread Casey Chu
Hello. Is there a way to manipulate WMV files with PHP? I need to do so with an include(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Manipulation of WMV

2007-01-07 Thread Jochem Maas
Casey Chu wrote: Hello. Is there a way to manipulate WMV files with PHP? I need to do so with an include(). the mind boggles as to what the correlation is between needing to manipulate a file and having to use include. with regard to file manipulation - a file is a file is a file, if you can

Re: [PHP] PHP Manipulation of WMV

2007-01-07 Thread Casey Chu
Okay, sorry if I wasn't clear. I need to get frames from a WMV dynamically with PHP. If the way to do is not a native PHP function, I need to use an include() to get the functions because I can't use extensions. On 1/7/07, Jochem Maas [EMAIL PROTECTED] wrote: Casey Chu wrote: Hello. Is there a

Re: [PHP] PHP Manipulation of WMV

2007-01-07 Thread Jochem Maas
Casey Chu wrote: Okay, sorry if I wasn't clear. I need to get frames from a WMV dynamically with PHP. If the way to do is not a native PHP function, I need to use an include() to get the functions because I can't use extensions. extracting frames from a video file/stream is not quite at the

Re: [PHP] Exceptions: How much is too much.

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-07 13:17:23 -0500: On 1/5/07, Paul Scott [EMAIL PROTECTED] wrote: On Fri, 2007-01-05 at 00:44 -0500, Craige Leeder wrote: The question is: How much is too much. Should I use Exceptions to handle all of my error reporting/triggering? How about catching them? I

Re: [PHP] OT - web based project management tool

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-07 21:34:48 +0200: What project management tool do you use for your project? Is dotProject (www.dotproject.org http://www.dotproject.org/ ) only alternative? trac is popular. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man.

Re: [PHP] OT - web based project management tool

2007-01-07 Thread Jochem Maas
Peter Lauri wrote: Hi, What project management tool do you use for your project? Is dotProject (www.dotproject.org http://www.dotproject.org/ ) only alternative? I don't understand the second part of your question and I don't see that dotproject.org is even a tool for project

Re: [PHP] Search script problem

2007-01-07 Thread Jochem Maas
Wikus Moller wrote: Hi. I am having problems with a script I wrote which searches keywords from a field in a mysql db table. It is a very simple, one-page script. My site is a toplist, very basic, still in it's infancy. When I go to the page, key in the keywords and press submit, the

Re: [PHP] OT - web based project management tool

2007-01-07 Thread Jochem Maas
Skip Evans wrote: I use dotProject, and what I like most about it is it is quite easy to modify and enhance. For example, it uses a PDF library (name escapes me at the moment) and in 2 hours I wrote a quite nice invoicing module for it. I know, I think there is already one out there, but I

Re: [PHP] Search script problem

2007-01-07 Thread Jochem Maas
please keep it on the list. Wikus Moller wrote: Let me repeat myself, SIMPLE, this was just the starting point. niether 'simple' or 'starting point' equate to 'ugly' or 'shit' though do they. even simple scripts deserve error checking and a managable layout. I wasn't pointing that out to make

RE: [PHP] Windows directory listings

2007-01-07 Thread Beauford
Maybe I should clarify. When I use a windows path (c:\whatever) I get an error that it can't find the path. In Linux the same code works fine (/usr/local/whatever). Here is all the relevent info. Warning: opendir(f:\downloads\): failed to open dir: Invalid argument in c:\web\index.php on line 30

[PHP] XML API, libcurl, POST Help Needed

2007-01-07 Thread Richard Luckhurst
Hi List I have been given a rather urgent problem to solve for one of our clients. I have to be able to connect to a server that deals with a section of the travel industry and send and receive XML data. The API is quite poorly written and I am finding it hard to get sense out of the companies

Re: [PHP] OT - web based project management tool

2007-01-07 Thread Skip Evans
I use dotProject, and what I like most about it is it is quite easy to modify and enhance. For example, it uses a PDF library (name escapes me at the moment) and in 2 hours I wrote a quite nice invoicing module for it. I know, I think there is already one out there, but I like to add my own

[PHP] Syntax Error

2007-01-07 Thread JD
Can someone help me figure out why I can't run this on MySQL. I get a syntax error. list($qh,$num) = dbQuery(SELECT password AS passwd1, $DATABASE_PASSWORD_FUNCTION('$password') AS passwd2 . FROM $USER_TABLE WHERE username='$username'); $data = dbResult($qh); -- PHP General Mailing List

Re: [PHP] Syntax Error

2007-01-07 Thread Chris
JD wrote: Can someone help me figure out why I can't run this on MySQL. I get a syntax error. list($qh,$num) = dbQuery(SELECT password AS passwd1, $DATABASE_PASSWORD_FUNCTION('$password') AS passwd2 . FROM $USER_TABLE WHERE username='$username'); $data = dbResult($qh); You've already

Re: [PHP] XML API, libcurl, POST Help Needed

2007-01-07 Thread Jochem Maas
Richard Luckhurst wrote: Hi List I have been given a rather urgent problem to solve for one of our clients. I have to be able to connect to a server that deals with a section of the travel industry and send and receive XML data. The API is quite poorly written and I am finding it hard to

Re: [PHP] Search script problem

2007-01-07 Thread Jochem Maas
top posting. what sucks? - still having trouble keeping your posts on lists? if you want to put me in my place, that's fine but please keep it on list where it belongs - if only because private flames wars are so

Re: [PHP] Windows directory listings

2007-01-07 Thread Jochem Maas
with regard to trolling - I'd don't *just* do that :-) sometime I even get the answer to the question correct :-) let's see if I can help ... Beauford wrote: Maybe I should clarify. When I use a windows path (c:\whatever) I get an error that it can't find the path. In Linux the same code works

[PHP] ODBC and long text fields

2007-01-07 Thread Larry Garfield
Hi all. I've a question regarding PHP's ODBC support. Here's the situation: We've a PHP app that uses ODBC to talk to a MS SQL server. Its original home was on a server that used the OpenLink ODBC driver, which was a POS, so we build an abstraction wrapper around the subset of PHP's ODBC

Re: [PHP] ODBC and long text fields

2007-01-07 Thread Jochem Maas
no real answer, but ... Larry Garfield wrote: Hi all. I've a question regarding PHP's ODBC support. Here's the situation: We've a PHP app that uses ODBC to talk to a MS SQL server. Its original home was on a server that used the OpenLink ODBC driver, which was a POS, so we build an

Re: [PHP] Syntax Error

2007-01-07 Thread Chris
bruce wrote: chris... sure there is.. alot of people don't subscribe to other lists. if you're one who does, simply ignore his post. And if the poster looked at either of the responses he received and replied to the questions asked, then he'd get a much better response.

RE: [PHP] Windows directory listings

2007-01-07 Thread Beauford
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: January 7, 2007 8:35 PM To: Beauford Cc: 'PHP' Subject: Re: [PHP] Windows directory listings with regard to trolling - I'd don't *just* do that :-) sometime I even get the answer to the question correct

Re[2]: [PHP] XML API, libcurl, POST Help Needed

2007-01-07 Thread Richard Luckhurst
Hi Jochem, Thanks very much for your help. I now have the application working. Just for anyone elses interest here are a few comments. $length = Content-Length: 502; JM The way I see it your Content-Length is wrong - the JM length of your request in this instance would 380 bytes, JM based on

Re: [PHP] ODBC and long text fields

2007-01-07 Thread Larry Garfield
On Sunday 07 January 2007 8:26 pm, Jochem Maas wrote: Now I'll be honest and say I don't quite follow what they're talking about. I do not claim to be an ODBC guru, but SQLGetData is a lower-level operation, SQL level or C level I don't know, but not something that happens in PHP code as

RE: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-07 Thread Ligaya A. Turmelle
Well - first I would turn off display errors and turn on log errors. Then - well there is always the error suppressor (@) - but I personally don't like it. You could also create a custom error handler... And I wonder if mysqli supports exceptions...

[PHP] Arrays?

2007-01-07 Thread William Stokes
Hello, How to print out the following array $test so that the print order is by the fourth[4] key? I need to print out all arrays in $test so that the data is ordered by the fourth key in ascending order. $test =Array ( [0] = Array ( [0] = 5 [1] = 2 [2] = sika [3] = sika.php [4] = 1

RE: [PHP] Question regarding include() and symlinks to directories

2007-01-07 Thread Vincent DUPONT
hello, if I can still contribute to this topic, I suggest you never use simlinks. We experienced very bad maintenance problems at a customer : when copying new files through FTP, the simlinks were often erased or overwriten. And this occured on every upgrade of the scripts. This would not occur

Re: [PHP] Arrays?

2007-01-07 Thread Nicholas Yim
Hello William Stokes, 1 write a callback function: [php] function cmp_forth_value($left,$right){ return $left[4]$right?-1:($left[4]==$right[4]?0:1); } [/php] 2 use the usort function usort($test,'cmp_forth_value'); Best regards, === At 2007-01-08, 14:46:33 you wrote:

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-07 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 08:13:11 +0100: From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Sat 1/6/2007 0:17 To: Karl Pflästerer Cc: php-general@lists.php.net Subject: Re: [PHP] Question regarding include() and symlinks to directories On Thu, January 4, 2007 2:47 pm, Karl