[PHP] Re: PHP class or functions to manipulate PDF metadata?

2009-04-06 Thread Peter Ford
call with exec or whatever... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Java applet clearing session variables?

2009-04-03 Thread Peter Ford
with the session ID somehow before it runs so that it can generate a PHP_SESSIONID (or whatever it is) cookie to send back to PHP... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst

Re: [PHP] What is wrong with this code

2009-04-03 Thread Peter van der Does
echo 'Thank you $name for submitting your inquiry!br /'; echo 'You have supplied the following information:br /'; echo 'Name: $name br /'; echo 'Email Address: $email br /'; echo 'Comments: $comments'; } ? -- Peter van der Does GPG key: E77E8E98 IRC: Ganseki

Re: [PHP] XML data extraction

2009-04-02 Thread Peter Ford
to turn you XML into SQL. Write some code to run that SQL. HTH Pete -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net

Re: [PHP] XML data extraction

2009-04-02 Thread Peter Ford
programs for them, especially when they look like college assignments. Cheers Pete -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

[PHP] Re: Button id's - firefox and IE different ?

2009-04-02 Thread Peter Ford
on their respective bits of the form. Or: bite the bullet and use javascript onclick events to set a hidden field which signals what the action is supposed to be in the back end. -- Peter Ford phone: 01580 89 Developer fax: 01580

[PHP] Re: Button id's - firefox and IE different ?

2009-04-02 Thread Peter Ford
Peter Ford wrote: Angus Mann wrote: Hi all. I want to have several delete buttons with just one form, and depending on which button is pressed, one of several items is deleted. So I need multiple submit buttons for 1 form, each displaying the same text Delete to the user, but each

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Peter Ford
or is it just wrong? -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Peter Ford
Peter Ford wrote: Michael A. Peters wrote: Shaun Thornburgh wrote: Hi, We are getting errors when trying to vaildate our HTML due to the [ character when using Post Arrays: Line 173, Column 65: character [ is not allowed in the value of attribute id …e=filters[calling_url] id

Re: [PHP] Web Development/Application Analysis

2009-03-20 Thread Peter Ford
. Boss: Really? Me: No, a year. Boss: Eh? Me: Actually, somewhere between the two, I suspect... Boss wanders off, tearing out some more of the little hair remaining... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

[PHP] ltrim behavior.

2009-03-11 Thread Peter van der Does
ltrim($a,'options['); ][name] UH, what? Not exactly what I expected. This works: php $a='options[options][name]'; php echo ltrim(ltrim($a,'options'),'['); options][name] Can somebody explain the second behavior? Is this a known bug in PHP, I'm running PHP 5.2.6 on Ubuntu. -- Peter van der Does

Re: [PHP] ltrim behavior.

2009-03-11 Thread Peter van der Does
On Wed, 11 Mar 2009 15:28:04 -0400 Paul M Foster pa...@quillandmouse.com wrote: On Wed, Mar 11, 2009 at 03:07:18PM -0400, Peter van der Does wrote: This might be old for some of you but I never encountered it until today and I would like to know why this is happening. Here's

Re: [PHP] whoami explanation

2009-03-04 Thread Peter Ford
= `find . -name '*.php'`; foreach (explode(' ',$list) as $file) { copy ($file,{$file}.bak); } ? should do much the same thing (if permissions etc. allow...) Note that in both of these examples, filenames with spaces in them will blow the whole thing up :( -- Peter Ford

[PHP] Re: preg_match and dates

2009-03-02 Thread Peter Ford
that generates a manageable number of exceptions you can deal with those by hand. As for your expectation of a museum: the reputation of dusty old rooms full of stuff is not entirely un-earned, so I wouldn't expect their databases to be spotless! -- Peter Ford phone

[PHP] Re: use strict or similar in PHP?

2009-02-27 Thread Peter Ford
you get the safest handling of values without any tedious messing about with manually escaping strings. I suspect that under the hood it actually prepares a statement and then executes it, but I might be wrong... -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Peter Ford
elegant code libraries. But then the dot-com thing all fell over and it was too expensive for most people to pay for three teams and a couple of managers just to build a web shop... -- Peter Ford phone: 01580 89 Developer fax: 01580

Re: [PHP] Re: Webhotel structure

2008-12-31 Thread Peter Sorensen
guess not. /Peter -- Dotan Cohen Hi again Sorry for cutting your name card short Dotan, but I get tired reading the entire alfabet every time. Yes ssh and fixed IP is properly a must for you guys who having php programming as a hobby, but I only want a webside up and running. The only

[PHP] Re: Webhotel structure

2008-12-30 Thread Peter Sorensen
to correct the permissions. I anyone want to know more abot this see coppermine forum search for batch-add best regards Peter Sørensen Carlos Medina i...@simply-networks.de wrote in message news:c5.73.47432.da8b6...@pb1.pair.com... Nordstjernealle 10 schrieb: Hi PHP experts What is the overall

Re: [PHP] Secure uploads tutorial

2008-12-16 Thread Peter Ford
code - if they care then they shouldn't be using IE, and if they don't care they shouldn't be on the internet. /troll Tim's efforts do seem to be a bit of overkill... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

Re: [PHP] Re: Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-12 Thread Peter Ford
) and the server is visible just like it was a real machine... So I can take this machine around, and (without needing any network connection) show off the app in IE, Firefox, Opera or Chrome without having to run IIS. Well, I thought it was cool, anyway :( -- Peter Ford

Re: [PHP] A MySQL Question

2008-12-09 Thread Peter Ford
this is taking it a bit far... In space, no one can hear you scream... (or bang, for that matter) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing

Re: [PHP] Parsing XML

2008-12-01 Thread Peter Ford
I'm currently working on: maybe I can come up with some examples in a couple of days... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Netbeans 6.5 WAS: phpDesigner 2008?

2008-11-28 Thread Peter Ford
certainly don't find it slow (not like Eclipse was) or confusing (again, looking at you, Eclipse), and on my SuSE Linux box (Intel CoreD 2.4Ghz, 2Gb RAM) the fonts are lovely and smooth. -- Peter Ford phone: 01580 89 Developer fax: 01580

[PHP] Re: phpDesigner 2008?

2008-11-18 Thread Peter Ford
3.5) for Java, and I've always liked it... I do miss some of Quanta+'s neat quote, bracket and tag completion, though... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent

Re: [PHP] It's Sunday, and I'm bored...

2008-11-10 Thread Peter Ford
) when I come to do my timesheets, which is usually less often than my commits... Cheers Pete -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

[PHP] Re: PHP Dev Facts

2008-10-22 Thread Peter Ford
project, just interested and interested to know what's most common + might learn something/find some new tools/toys! pps: will reply myself as well but if I do here it'll make your intertwined replies messy! Many Regards Nathan -- Peter Ford phone: 01580

[PHP] Re: 1 last error to fix before the application is done!

2008-10-14 Thread Peter Ford
of that - for example if $_SESSION['userInfo']['loggedIn'] is only ever set to TRUE (and is not set otherwise) then you might find that if (isset($_SESSION['userInfo']['loggedin'])) { will work for you ... -- Peter Ford phone: 01580 89 Developer

[PHP] Re: AJAX and PHP

2008-10-04 Thread Peter Wang
Alain Roger [EMAIL PROTECTED] writes: I think both will be ok, it just depends on what's you want:) HI, i'm currently working on some web application and i would like to know what is the best way to do what i want. basically like all application i have a menu and based on selected item menu

Re: [PHP] ASCII Captcha

2008-09-11 Thread Peter Ford
, tedd why don't people just check for x/y co-ord's on an image submit instead? Not so good if you're using lynx, or if you're blind, I guess. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd

Re: [PHP] Length of Exception text?

2008-09-09 Thread Peter Ford
: log_errors_max_len It defaults to 1024 characters: presumably that includes the preamble giving you 1015 or so to play with. If you set it to zero then you get unlimited log messages. 'course that might fill your logs up a bit... -- Peter Ford phone: 01580 89

Re: [PHP] Google Chrome

2008-09-05 Thread Peter Ford
to test on Wine or Mono? -Shawn Tried on Wine (version 0.9.60 on OpenSuse) and I could even get the downloader to start. To be fair, I've never really got anything to work on Wine... -- Peter Ford phone: 01580 89 Developer fax

Re: [PHP] Re: php File upload

2008-08-08 Thread Peter Ford
such) and the actual size of the data sent in the request is therefore likely to be some fraction bigger than the file itself (like 33% bigger for base-64 encoding) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

[PHP] Re: RSS Feed using PHP/MySQL errors

2008-08-07 Thread Peter Ford
'); die('ERROR--CANNOT CONNECT TO SERVER'); // English is a very powerful language!! and similar for the other message... There may be other errors in your code, but that's all you were asking about. -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-08-01 Thread Peter Ford
...'; compared with $foo = You need to pay \$dollars...; Again, it depends on you view of backslashes. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

Re: [PHP] Code beautifier

2008-07-28 Thread Peter Ford
. It's arguably more correct in this case to use ellipsis: But ... I could be wrong :) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Trailing Spaces Problem

2008-07-18 Thread Peter Ford
: . $data[1] . 3: . $data[2] . 4: . $data[3] . 5: . $data[4] ? Does that work for you? -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

[PHP] Re: Corrupted ZIP files (downloaded via a php script) : Internext Explorer 7

2008-07-17 Thread Peter Ford
message about that. What I can't understand is why is might work with one browser and not another... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
code has the /usr/local/apache/htdocs path hard-coded, when your web files are actually in /var/something... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:06 AM To: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: Hi, Rob: I forgot to mention that I have been using yum install. I

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford [mailto:[EMAIL PROTECTED] Sent: Tuesday, July

Re: [PHP] mkdir permission errors

2008-07-15 Thread Peter Ford
Wei, Alice J. wrote: From: Peter Ford [EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 7:28 AM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] mkdir permission errors Wei, Alice J. wrote: -Original Message- From: Peter Ford

[PHP] Re: What font/size do you use for programming?

2008-07-10 Thread Peter Ford
raining horizontally at the moment and my keyboard hates being wet. I'm using Lucida Sans for code these days - I finally figured that it didn't really have to be a fixed-width font, since I couldn't find one that wasn't ugly. -- Peter Ford phone: 01580 89

[PHP] Re: Logic sought

2008-07-10 Thread Peter Ford
if Apache can do such a thing? In a Java environment, I used a session object which cleaned up such folders when it was garbage-collected... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd

Re: [PHP] how to create a slide show using PHP5

2008-07-08 Thread Peter Ford
image was a background image, which was being copied up to the foreground... and I had caching disabled (I was on my development system and hacking some annoying IE/JS problems) so the copying-up was forcing a reload from source... Not broken after all. Faith restored. All is well. -- Peter

Re: [PHP] odbc msaccess php5 [Giving Up]

2008-07-06 Thread Peter Jackson
Peter Jackson wrote: well thats it Ive come to the conclusion that its a driver/lib issue. From what I can see mdbtools lib only reads and only does basic select. (eg Select * from table where col =thistext But not tex* % or date. Also looks like the project has died (think the last release

[PHP] odbc msaccess php5

2008-07-05 Thread Peter Jackson
? (eg select * from myquery). Just thinking that may fix one of my problems (Caps and spaces in table/column names aaarrgghh) Peter Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Trying to keep a dropdown selection sticky

2008-07-05 Thread Peter Jackson
$value /option\n; Peter Jackson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] odbc msaccess php5

2008-07-05 Thread Peter Jackson
Bastien Koert wrote: On Sat, Jul 5, 2008 at 11:04 AM, Bastien Koert [EMAIL PROTECTED] wrote: On Sat, Jul 5, 2008 at 6:51 AM, Peter Jackson [EMAIL PROTECTED] wrote: $conn=odbc_connect(Database,,); works $a = abcd; (this value exists in db) $stat = Select * FROM . 'Table Name'; $qry

Re: [PHP] substr?

2008-06-19 Thread Peter Ford
Jim Lucas wrote: Peter Ford wrote: Frank Arensmeier wrote: 17 jun 2008 kl. 22.14 skrev Jim Lucas: Jason Pruim wrote: Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip

Re: [PHP] substr?

2008-06-18 Thread Peter Ford
command can help here. Not perfect, but still... You could also Virus-scan the file before accepting it. All depends on whether your customer is prepared to wait while you clear his upload. Cheers Pete -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Choosing PHP or ? for building an automatic photo web.

2008-06-09 Thread Peter Sorensen
Message - From: Stut [EMAIL PROTECTED] Newsgroups: php.general To: Peter Sorensen [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Sunday, June 08, 2008 11:27 PM Subject: Re: [PHP] Choosing PHP or ? for building an automatic photo web. On 8 Jun 2008, at 21:44, Peter Sorensen wrote: I want

[PHP] Choosing PHP or ? for building an automatic photo web.

2008-06-08 Thread Peter Sorensen
amount of hours? Is PHP the choice? Do I need to use mySQL for this? What features must the webhotel suport and do you know if Surftown does? Is there anywhere I get template source code for this, free or at a low price? best regards Peter Sørensen -- PHP General Mailing List (http

Re: [PHP] Re: A Little Something.

2008-05-13 Thread Peter Ford
) and tend to choose what products I buy based on my own research, rather than what a marketing droid thinks I need to buy. Anyway, this is waaay off-topic: it was right from the start - sorry everyone :( I'll keep my pet peeves private from now on ... Cheers Pete -- Peter Ford

[PHP] Re: Scripts slowing down?

2008-05-13 Thread Peter Ford
script runs. Don't always assume that it is your code that is wrong (that's what managers are for) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

[PHP] Re: A Little Something.

2008-05-12 Thread Peter Ford
sandboxes) /pet-peeve 'course, there are many sites that make the same call to urchinTracker(), and many many worse errors... Cheers Pete -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst

Re: [PHP] Re: A Little Something.

2008-05-12 Thread Peter Ford
Stut wrote: On 12 May 2008, at 09:39, Peter Ford wrote: tedd wrote: Hi gang: This is what I did this morning: http://webbytedd.com/bb/tribute/ It speaks for itself. Cheers, tedd tedd, Nothing to do with the subject matter, but I noticed because it is one of your more simple pages: I get

[PHP] Re: problem with for loop

2008-05-02 Thread Peter Ford
explicitly say the the message number is one-based, and most real programming languages these days use zero-based arrays... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent

[PHP] Re: newbie with another HTML/navigation question

2008-04-29 Thread Peter Ford
Generated Source function which extracts the source from the DOM model the browser used to render the page. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General

Re: [PHP] Quarters -- ERRORS --

2008-04-14 Thread Peter Ford
that document.getElementById(id) is actually returning something - if it fails it returns null. Maybe you have given your checkbox a name and not an id, although that should fail with FF (and Safari) too... It's fine on IE7 - anything older than IE7 is too broken to be usable, really. :) -- Peter Ford

[PHP] Re: File Upload Security

2008-04-14 Thread Peter Ford
numbers file that returns mime types (they're easier to parse than regular magic number responses). Probably something like /usr/share/misc/magic.mime, but that depends on the system. -- Peter Ford phone: 01580 89 Developer fax

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Peter Ford
Peter Ford wrote: Mark Weaver wrote: Ryan S wrote: Hey everyone, A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or just me. (My money is on the last one :p ) Here's what I am trying to do: In a form I have a listbox with the values 1-5, and under

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Peter Ford
the original form tag with an empty form. Your Javascript code also adds a spurious tr tag (line 17 of dynamic_no_of_recipients2.js) This is not really anything to do with PHP, of course... :) -- Peter Ford, Developer phone: 01580 89 fax: 01580 893399 Justcroft International Ltd

Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Peter Ford
your page actually looks like after the JS has run... 2. Check that the TD you are loading with content is actually inside the FORM tags - otherwise the inputs won't be included in the request/post variables... Cheers Pete -- Peter Ford phone: 01580 89

Re: [PHP] Re: optimilize web page loading

2008-03-28 Thread Peter Ford
Eric Butera wrote: On Thu, Mar 27, 2008 at 12:41 PM, Peter Ford [EMAIL PROTECTED] wrote: Jason Pruim wrote: On Mar 27, 2008, at 11:05 AM, Shawn McKenzie wrote: Al wrote: Good point. I usually do use the single quotes, just happened to key doubles for the email. Actually, it's

[PHP] Re: putting variables in a variable

2008-03-28 Thread Peter Ford
(') around the src attribute to avoid those ugly backslashes ... $body .= table tr tdimg src='$myimage1'/td /tr /table ; Might be better in this case to use heredoc syntax ... $body .EndOfChunk table tr tdimg src=$myimage1/td /tr /table EndOfChunk; -- Peter Ford

[PHP] Re: Pattern etc to reduce duplicated validation?

2008-03-27 Thread Peter Ford
'); } } } // = Script = $var = $_POST['var']; $foo = new foo(); try { $foo-setBar($var); } catch (Exception $e) { echo 'An error occurred: ',$e-getMessage(),\n; } Take a look at http://www.php.net/manual/en/language.exceptions.php -- Peter Ford phone: 01580 89

Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread Peter Ford
(or attribute) but it's in this list somewhere... Cheers -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: fwrite/fclose troubles

2008-03-20 Thread Peter Ford
using the $this-variable structure in a string like that. An alternative syntax is to escape the variables with braces: $fileName = {$this-path}/{$this-logfile}; -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Peter Ford
mount_point_for_B/the_file_to_copy mount_point_for_C # Unmount the SSHFS mounts when you're finished fusermount -u mount_point_for_B fusermount -u mount_point_for_C Still not PHP though... -- Peter Ford phone: 01580 89 Developer fax

Re: [PHP] Re: temporary error

2008-02-25 Thread Peter Ford
mutilation at birth? Do we want influences into our governments that inhibit natural advances in modern science? Do you really believe in virgin birth and resurrection? Really sounds like Microsoft! Bill Gates IS the Messiah. -- Peter Ford phone: 01580 89

[PHP] Re: XSLTProcessor without validation

2008-02-15 Thread Peter Ford
Siegfried Gipp wrote: Hi, i still got no answer. Maybe i did not see it, altough i'm trying to read any single post. But may be i overlooked it due to high traffic. So now i have set up a filter (hopefully) copying answers to another folder. Here is the question: Is it possible to

[PHP] Re: Create collections of objects

2008-02-15 Thread Peter Ford
match the (possibly wild-carded) condition, indexed by the element Id (useful for making HTML select lists, for example). In fact, I have a base class which implements this by class introspection - filling the properties of objects which extend it by mapping them to the database fields... -- Peter

Re: [PHP] Re: Create collections of objects

2008-02-15 Thread Peter Ford
Emilio Astarita wrote: Peter Ford [EMAIL PROTECTED] writes: Emilio Astarita wrote: Hi people, A static method should still be able to set values of private members. I do something like: ... Thank you, I was not sure how to implement it. Another question. It would be a better

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Peter Ford
in it's own special way. Only problem is the extra hit on the server to get the XSLT... :( -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-06 Thread Peter Ford
Paul Scott wrote: On Tue, 2008-02-05 at 13:29 -0500, Daniel Brown wrote: Still debating what device I'll get next, but I want to use it as a mobile server myself. I had been working on a bound-for-trash PDA doing the same a while back, but with what we'll refer to as limited results. I

[PHP] Printing Question

2008-01-26 Thread Peter Jackson
that require landscape printing. So the question is how to replace this via php/whatever. (I did say it was a vague question) Oh and I'm aiming for a unix/windows outcome. any links welcome. TIA Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Peter Ford
Jochem Maas wrote: Jochem Maas schreef: I'm getting exceptions thrown without a stackframe. I understand what this means but not how it can happen given the following: 1. *every* frontend script on the site is wrapped in a try/catch block 2. I have set an exception handler to dump these

[PHP] regex

2008-01-21 Thread Peter
. (Think the one I'm trying on is 2000+ characters. So its not a case of set number of words/numbers between [] it could be 2 or it could be 4 etc) Anyone workout what I am talking about and can help would be appreciated. Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] regex

2008-01-21 Thread Peter
-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] - On Mon, 21 Jan 2008, Peter wrote: To: php-general@lists.php.net From: Peter [EMAIL PROTECTED] Subject: [PHP] regex I am trying

Re: [PHP] regex

2008-01-21 Thread Peter Jackson
Jim Lucas wrote: Peter wrote: I am trying to convert ms access sql to postgresql using php. I have a sql statement in the form ;- $sql = SELECT DISTINCT [Table Name].[Column.Name], [Table Name 1].[Column Name 2] etc. what I want to end up with is $sql = SELECT DISTINCT

Re: [PHP] regex

2008-01-21 Thread Peter Jackson
Jim Lucas wrote: Peter wrote: I am trying to convert ms access sql to postgresql using php. I have a sql statement in the form ;- $sql = SELECT DISTINCT [Table Name].[Column.Name], [Table Name 1].[Column Name 2] etc. what I want to end up with is $sql = SELECT DISTINCT

[PHP] Re: Can't find .php3 files

2008-01-09 Thread Peter Ford
Jim wrote: I'm sure this is a FAQ but I can't seem to come up with the right search keys to dig it out. I'm trying to help a friend migrate his application to php 5 from another system. The problem seems to be that he references files (require, include, etc) that have a .php3 extension,

Re: [PHP] Assign variable to a block of html code

2007-12-20 Thread Peter Ford
You could just swap all the double quotes in the HTML tags for single quotes - that would work in this instance... $myblokvar = table width='487' border='0' cellspacing='0' cellpadding='0' ... /table ; Or perhaps a HereDoc syntax: $myblokvar = EndOfMyHTMLBlock table width=487 border=0

Re: [PHP] shared memory access - shmod_open

2007-12-07 Thread Peter Ford
Richard Lynch wrote: On Thu, December 6, 2007 2:44 am, Rolf_ wrote: I have a problem working with shmop_open() in a Solaris environment. The following cli-script works fine, except shmod_open returns a warning 'unable to attach or create shared memory segment': ?php $sem = /tmp/ . rand()

Re: [PHP] 5.2.5 failed 7 tests

2007-12-03 Thread Peter Smit
On Dec 3, 2007 12:18 AM, Bill [EMAIL PROTECTED] wrote: Do failed tests mean I absolutely should NOT install. Or is it normal to have a few fails? Try two different versions, all have some failure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Curl doesn't handle memory stream

2007-11-29 Thread Peter Smit
On Nov 27, 2007 11:43 PM, Peter Smit [EMAIL PROTECTED] wrote: Hello, I've got quite a strange problem with the curl library. The following code does output Content||\Content instead of Content|example.orgoutput|\Content $c = curl_init(http://example.com;); $st = fopen(php://memory, r

Re: [PHP] Curl doesn't handle memory stream

2007-11-29 Thread Peter Smit
On Nov 29, 2007 5:18 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Nov 29, 2007 7:56 AM, Peter Smit [EMAIL PROTECTED] wrote: On Nov 27, 2007 11:43 PM, Peter Smit [EMAIL PROTECTED] wrote: Hello, I've got quite a strange problem with the curl library. The following code does

[PHP] Curl doesn't handle memory stream

2007-11-27 Thread Peter Smit
, CURLOPT_FILE, $st); if(!curl_exec($c)) die (error: .curl_error($c)); rewind($st); echo Content|.htmlspecialchars(stream_get_contents($st)).|/Content; fclose($st); unlink($file); What's the problem? Does PHP not support memory streams in Curl? Peter -- PHP General Mailing List (http://www.php.net

Re: [PHP] overloading members. aghhh!!!

2007-11-20 Thread Peter Ford
Jochem Maas wrote: Kiketom wrote: Hi all. Yesterday i have looking for the overloading members Member overloading void __set ( string name, mixed value ) mixed __get ( string name ) As an example i put this code: class foo { private $ID; private $Name; private $LastName;

Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-16 Thread Peter Ford
I was all ready to jump on Point #6 to disagree until I read the next paragraph, updating that with the correct information. PHP can find out the OS of the system on which the browser is running. Strictly speaking, PHP can only find out what the browser tells it - that includes the

Re: [PHP] PHP ide?

2007-11-13 Thread Peter Ford
Lester Caine wrote: Peter Ford wrote: I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work

Re: [PHP] PHP ide?

2007-11-12 Thread Peter Ford
I've tried to use Eclipse PDT, and it's just generally horrible - the All-in-one has no Subversion support and no SSH support for deploying to the server properly. The debugging support worked well on the windows version, but I couldn't get it to work from Linux (with the same web server...) And

Re: [PHP] Benchmarking check to see if array key is set

2007-11-08 Thread Peter Ford
Ford, Mike wrote: On 06 November 2007 12:57, Christoph Boget wrote: Consider the following test code: [...snip...] Running that I found that if( isset( $myArray[$key] )) is faster than if( array key exists( $key, $myArray )) is faster than if( $myArray[$key] ) To be honest,

[PHP] Re: PHP ide?

2007-11-08 Thread Peter Ford
Hulf wrote: Just wondering if anyone uses an IDE and if so what ones? Ta, H. Quanta+, with KDESVN for version management... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-22 Thread Peter Ford
You could try using exec to set up an AT job with a short delay which will then run 'net apache restart' - I'm not a total windows guru so I can't give you the exact recipe... Something like exec('AT 12:00 net apache restart'); Check the documentation on the AT command... One possible extra

[PHP] Getting PHP CLI on machine without compiling or changing the other part of the system

2007-09-23 Thread Peter Lauri
compiling it on their machine and changing their environment. So is there any nice solution with php pre compiled and that the files are just in a tar ball or similar, so that the php cli can be used? Best regards, Peter Lauri http://www.dwsasia.com/ www.dwsasia.com - company web site

RE: [PHP] str_replace oddity

2007-09-23 Thread Peter Lauri
No, turn Magic Quotes off :) Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, September 23, 2007 3:10 AM To: Jim

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. Best regards, Peter Lauri www.dwsasia.com - company web site

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Oh, and by the way, remember that the array that file() returns also will contain the newline. Add the flag FILE_IGNORE_NEW_LINES if you don't want them. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

[PHP] Exceptions

2007-08-09 Thread Peter Pan
Peeps, I'm having an issue where throwing Exceptions are displaying a blank page even though the Exception is being caught in a try...catch statement. This is happening on our production server where warnings, errors, exceptions, etc. are not to be displayed to the user. The assumption is

<    1   2   3   4   5   6   7   8   9   10   >