RE: [PHP] Catch STDERR

2007-02-19 Thread Peter Lauri
It looks like that will be the situation. Sad that exec() don't have that feature as an option. Maybe in the future :) 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

RE: [PHP] Poblem with sesions

2007-02-19 Thread Peter Lauri
Have you tried to print_r($_SESSION) on all the pages so that you can see what the $_SESSION is containing and how it is changing? 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

RE: [PHP] Install / update php rpm packages with FC6

2007-02-20 Thread Peter Lauri
Do you really need to use an RPM package to install a PHP on FC. Why not yum install php instead... and for any extension you might want you just install that as well yum install php-gd as example. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site

RE: [PHP] Latin letter problem!

2007-02-20 Thread Peter Lauri
How are you setting the charset of the web page? Are you using header() or using html head section to set it? 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: Delta Storm

RE: [PHP] php forcing a post??

2007-02-20 Thread Peter Lauri
fsockopen can probably help you with that http://www.php.net/fsockopen 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: blackwater dev [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] php forcing a post??

2007-02-20 Thread Peter Lauri
Or cURL: http://php.net/curl 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: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 20, 2007 9:45 PM To: php

RE: [PHP] Catch STDERR

2007-02-20 Thread Peter Lauri
/notices during the script. Actually I want to show the whole process if it fails so 21 for exit code not equal to 0. I'll probably end up writing a patch for exec now :) /Peter www.dwsasia.com www.lauri.se www.carbon-free.org.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] css in mail()

2007-02-20 Thread Peter Lauri
. Best regards, 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: Sancar Saran [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 3:02 AM To: [EMAIL PROTECTED] Cc: php

RE: [PHP] Catch STDERR

2007-02-21 Thread Peter Lauri
will either use this or redirect STDERR to a file and read it from there. Best regards, 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: steve [mailto:[EMAIL PROTECTED] Sent

RE: [PHP] DOM Element default ID attribute

2007-02-21 Thread Peter Lauri
This was not clear for me, do you mean: a peter = a id=peter 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: Eli [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22

RE: [PHP] GET doesn't work as POST

2007-02-24 Thread Peter Lauri
How are you fetching the GET and POST? With $_GET and $_POST? 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: Otto Wyss [mailto:[EMAIL PROTECTED] Sent: Saturday, February

RE: [PHP] Include file path.. please help im newby

2007-02-24 Thread Peter Lauri
the include is. Then it will first look in . /include /usr/lib/php Take a look here http://www.php.net/include to read more about the include function in PHP. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

RE: [PHP] PHP+MySQL website cache ? Yes/No

2007-02-25 Thread Peter Lauri
MySQL has caching functions I believe. Read here: http://dev.mysql.com/doc/refman/5.0/en/query-cache.html 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: Martin Zvarík

RE: [PHP] PHP shell_exec

2007-02-27 Thread Peter Lauri
ssh2_exec would do it for you... 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: h [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 3:18 PM To: php-general

RE: [PHP] Who in this list would you...

2007-02-27 Thread Peter Lauri
[snap] [snip] He would need to work in-house. And the location is somewhere in Scandinavia. He could work as sub contractor or employed for my company. [/snip] I don't know too many list denizens who live in Scandinavia, so that severely limits your choices. [/snap] I live in Thailand but that

RE: [PHP] Eregi error

2007-02-28 Thread Peter Lauri
, otherwise it will be treated as a range. 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: Brad [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 5:09 AM To: PHP Mailing

[PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
that yet, want to get some feedback first. Best regards, Peter Lauri http://www.dwsasia.com/ www.dwsasia.com - company web site http://www.lauri.se/ www.lauri.se - personal web site http://www.carbonfree.org.uk/ www.carbonfree.org.uk - become Carbon Free

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
The thing is that the commands are executed as they should. I have tested to give full path /bin/ls and that gives the same result. BUT the exit code is -1 still. Not 0 as when running it from command line. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
a shell script that runs PHP only to run a shell script that just does 'ls', which, really, you could probably just splat into your shell script without PHP being involved... [Peter Lauri - DWS Asia] It is a much more complicated logic, so therefore I am not using a shell script. I

RE: [PHP] exec from process (deamon) without shell

2007-03-01 Thread Peter Lauri
. [Peter Lauri - DWS Asia] I will take a look at that tomorrow; right now it is 1am and time for bed :) I will keep you updated on that one to inform you if your theory was working :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes 20-30 seconds

RE: [PHP] Re: Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes

RE: [PHP] dst and strtotime

2007-03-12 Thread Peter Lauri
Is your system time correct? 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: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 6:10 PM To: PHP

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Peter Lauri
Thank you! I did not know about the ucwords() functions, and it does not need the string set to lower case. Now to create a filter that returns only numbers (e.g. a1234z - 1234) and the same for non-numbers. [Peter Lauri - DWS Asia] This to replace all non-digit characters

Re: [PHP] Rewriting urls

2007-03-26 Thread Peter Lauri
On Monday 26 March 2007 19:49:48 Erik Jones wrote: Yep, take this to the mod_rewrite forums @ http://www.modrewrite.com/   as this is a php list :) Thanks. This solved it for me: http://forum.modrewrite.com/viewtopic.php?p=10796#10796 /Peter -- PHP General Mailing List (http://www.php.net

RE: [PHP] changing array to a string

2007-03-27 Thread Peter Lauri
[] value=7 type=checkboxtest message /td/tr /table input type=hidden name=doit value=yes input type=submit name=submit /form [Peter Lauri - DWS Asia] Check www.php.net/implode Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
? Thanks! [Peter Lauri - DWS Asia] Hi, Assuming you are on a linux you could try: exec(find /the/path/to/the/place/where/you/should/start/searching -type f -name 515515515*.ext, $files); Then the $files will be an array with the found files matching the search. Best regards, Peter Lauri

RE: [PHP] Gnome and MIME types

2007-03-29 Thread Peter Lauri
Is php safe mode on or 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: Nathan Ziarek [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:30 PM To: php

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
); /Peter -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:49 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Peter, Believe it or not, but this is actually working. I'm on a Mac OS X, which is linux

RE: [PHP] Show Filename using Wildcards

2007-03-29 Thread Peter Lauri
DON'T commit suicide mate :) What if you one day move the path? ;) -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 9:54 PM To: Peter Lauri; PHP Subject: Re: [PHP] Show Filename using Wildcards Ave, This Works

RE: [PHP] Re: finding the index name of an associative array

2007-04-01 Thread Peter Lauri
. foreach is recursive??? thanks. -- [Peter Lauri - DWS Asia] foreach is NOT recursive :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problems downloading a PDF

2007-04-04 Thread Peter Lauri
)); header('Content-disposition: attachment; filename='. basename($file) .''); readfile($full); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [Peter Lauri - DWS Asia] You are echoing stuff before sending the file

RE: [PHP] Sense last record

2007-04-09 Thread Peter Lauri
); //or equivalent in AdoDB $i=1; while(...) { if($i==$count) { //Do the stuff for the last one } else { //Do the rest of the stuff here } $i++; } Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site

RE: [PHP] redirect http to https

2007-04-09 Thread Peter Lauri
, or what ever instructionyour web server has. Um...guess I will have to check with our hosting company about this. Thanks. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [Peter Lauri - DWS Asia] You might be able to do

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
it says authenticated = yes, and you're authenticated... Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php [Peter Lauri - DWS Asia] If cookies were that unsecured so you could create your own cookies that easily, then would cookies

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99% illegal right? But that means i can't give you these tools to proof it, but it is possible. Tijnema [Peter

RE: [PHP] Copying PHP array into a Javascript array

2007-04-10 Thread Peter Lauri
Check www.php.net/json You can use the encode function there. 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: Otto Wyss [mailto:[EMAIL PROTECTED] Sent: Tuesday, April

RE: [PHP] PHP Command line script

2007-05-02 Thread Peter Lauri
Check the error from mysqli: http://fi.php.net/manual/en/function.mysqli-error.php 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: Nathaniel Hall [mailto:[EMAIL PROTECTED

[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

[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

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

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

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

[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

[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: PHP class or functions to manipulate PDF metadata?

2009-04-07 Thread Peter Ford
O. Lavell wrote: Peter Ford wrote: O. Lavell wrote: [..] Any and all suggestions are welcome. Thank you in advance. So many people ask about manipulating, editing and generally processing PDF files. In my experience, PDF is a write-once format - any manipulation should have been done

[PHP] Larger fonts...

2009-04-08 Thread Peter Ford
designed. Replacing them with just words is not very good - it makes them all different sizes, which messes up the layout. I could remove the shaded background and see if that helps. Other points I will work on. Cheers -- Peter Ford phone: 01580 89 Developer

Re: [PHP] Larger fonts...

2009-04-08 Thread Peter Ford
, Before you get slated by the list, I'm guessing you meant to send this to someone else? (It came to me via the PHP-General Mailing List. Tom 2009/4/8 Peter Ford p...@justcroft.com mailto:p...@justcroft.com Patrick, The reason you think the fonts are too small is that you have

Re: [PHP] Generate XHTML (HTML compatible) Code using DOMDocument

2009-04-14 Thread Peter Ford
, and -- 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

[PHP] Re: error in printer_open function

2009-04-28 Thread Peter Ford
Network The ; at the start of the configuration line in php.ini is a comment character... Remove that, restart the web server, and you might see things working better. -- Peter Ford phone: 01580 89 Developer fax: 01580

Re: [PHP] object literals

2009-05-01 Thread Peter Ford
, but PHP doesn't have a object literal syntax AFAIK. You could use JSON, $foo = json_decode('{a:1,b:3}'); but I guess that's not much better than Richard's suggestion. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft

[PHP] Re: graphical integrated development environment recommendations?

2009-05-05 Thread Peter Ford
that way inclined), and it's free. -- 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

Re: [PHP] How to deal with identical fields in db

2009-05-06 Thread Peter Ford
how it works? Cheers, tedd It always surprises me how many people need to have database normalisation explained to them - it seems obvious to me... (and tedd, clearly!) -- Peter Ford phone: 01580 89 Developer fax: 01580

Re: [PHP] How to deal with identical fields in db

2009-05-06 Thread Peter Ford
tedd wrote: At 3:14 AM -0700 5/6/09, Michael A. Peters wrote: Peter Ford wrote: tedd wrote: (and I added in some extra bits...) You need to normalize. Authors should have an unique id in an authors table. The authors table has all the specific information about authors, but not the books

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Peter Ford
a truecolor image 4096 pixels square is going to take a LOT of memory, and it will take a while to download to the client, AND it is 4096 pixels square! That's a fair bit bigger than most screens... I suspect the OP is going to have to rethink this... -- Peter Ford

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Peter Ford
(which they probably are not, unless the web server is configured to keep them safe) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Peter Ford
as $line_num = $line) { echo $line.\n; } echo/td/tr/table; ? -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] When is __destruct called on an object in $_SESSION ?

2009-05-14 Thread Peter Ford
. Any ideas about working around that? -- 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

Re: [PHP] When is __destruct called on an object in $_SESSION ?

2009-05-14 Thread Peter Ford
Stuart wrote: 2009/5/14 Peter Ford p...@justcroft.com: I'm sure I've seen something about this before, but I can't find it: I'm creating a file which needs to live for the duration of a session, and ONLY the duration of the session. I made a little call which holds the name of the file

Re: [PHP] Software to read/write Excel to CD?

2009-05-15 Thread Peter Ford
links are to satellites... (expensive). I suspect that a USB key is a better option (and more physically portable) than a UFB CD. But why write an Excel spreadsheet - why not save the data in something more portable like CSV that ExCel and read and write to once you are back at base? -- Peter

[PHP] Re: Parsing of forms

2009-05-18 Thread Peter Ford
:) ) -- 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

[PHP] Re: Any conflict with $_POST when 2 users concurrently submitting the same form using POST method?

2009-06-10 Thread Peter Ford
not mean that it is shared by separate requests - it is not even shared by requests in the same session. It just means that it is already declared and you don't need to use the global keyword to access it in your PHP pages. -- Peter Ford phone: 01580 89 Developer

[PHP] Re: Dynamic Titles

2009-06-12 Thread Peter Ford
{$config[HTTP_SERVER]}help.php: according to whether you like interpolation in quotes or not. I recommend finding a development environment or editor that does syntax highlighting - that would catch all of these problems before you even save the file. -- Peter Ford phone

[PHP] Re: Search/Replace in entire database?

2009-06-15 Thread Peter Ford
the database, at least with respect to the product names... -- 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

Re: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread Peter Ford
']}' $sel{$row['category']}/optionbr /; } Unless the code is seriously performance critical, I still think variable interpolation is nicer to read than all those quotes and commas, and it keeps the HTML structure together better... Good luck -- Peter Ford phone: 01580

[PHP] Re: aesthetic beauty in conception, execution

2009-06-18 Thread Peter Ford
important, you know... -- 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

[PHP] Re: accessing level above $_SERVER['DOCUMENT_ROOT']

2009-06-19 Thread Peter Ford
have used dirname($_SERVER[DOCUMENT_ROOT]), but in a define, that's not going to work. I think you're stuck with your inelegance... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst

Re: [PHP] I've some doubts if I should go with 5.2 or go alreadywith 5.3 (for a course)

2009-06-23 Thread Peter Ford
... -- 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

[PHP] Re: Echo result in a loop on each instance

2009-06-23 Thread Peter Ford
/correct to do this? call flush() after each echo to flush the buffer to the client. That should work... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General

[PHP] Re: Scope woe

2009-06-30 Thread Peter Ford
otherObject { private $firstobject; function __construct() { $this-firstobject = $GLOBALS['firstobject']; } static function messwithotherthings () { $this-firstobject-propertycontainingobject-methodinsidethatobject(); } } -- Peter Ford

Re: [PHP] Re: Scope woe

2009-06-30 Thread Peter Ford
, and is reasonable to the OOP purists... -- 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

Re: [PHP] [GD] Image errors

2009-07-15 Thread Peter Ford
/1.0 500 File is not an allowed image type'); -- 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

Re: [PHP] [GD] Image errors

2009-07-15 Thread Peter Ford
( $this-updir . $id . '.png' ); } hey, look, just 2 lines! But it doesn't convert the image from whatever came in to a JPEG output, which is what the OP's code appears to be trying to do (and possibly ought to work...) -- Peter Ford phone: 01580 89

[PHP] Re: newbie question - php parsing

2009-07-23 Thread Peter Ford
if you wrote it that way, especially if it was in some kind of loop. Note that I prefer to keep HTML separate from PHP as much as possible because it helps me to read it and helps my editor check my syntax and HTML structure better... -- Peter Ford phone: 01580 89

[PHP] Re: Undefined Index ...confusion

2009-07-23 Thread Peter Ford
MyTable WHERE Foo='Bar'); -- 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] Broken IF behavior? (Changing the branch changes the evaluation)

2009-07-29 Thread Peter Ford
; } Anyway, the !$Ret branch is being executed because the fetch operation will return NULL (or FALSE or something equivalent) when there are no results. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-30 Thread Peter Ford
fileinfo... Having said that, with file -i on my system, Word documents are 'application/msword' and Excel files are 'application/octet-stream' -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd

[PHP] Re: Clean break.

2009-08-03 Thread Peter Ford
will happily parse your format, so something like $tmp = date_create($theParts[0]); $theDate = $tmp-format(d/m/Y); $theTime = $tmp-format(h:i:s); should do it -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft

[PHP] Re: file upload question

2009-08-03 Thread Peter Ford
, and then *move* it back if the new version doesn't verify. That seems pretty safe to me... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

[PHP] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Peter Wang
Hi php-general, sorry if it is a wrong lists for this question. I have read many articles/messages about using tmpfs store temp files, for example, php session data, smarty compied templates and so on. An obvious reason for that is: it doesn't matter about data loss caused by machine

Re: [PHP] Is there any considerations for not putting php scripts in tmpfs?

2009-08-10 Thread Peter Wang
hi,thanks for your reply. On Mon, Aug 10, 2009 at 9:54 PM, Richard Quadling rquadl...@googlemail.comwrote: 2009/8/10 Peter Wang ptr.w...@gmail.com: Hi php-general, sorry if it is a wrong lists for this question. I have read many articles/messages about using tmpfs store temp files

[PHP] is there any way to get realpath cache hit ratio of php?

2009-08-11 Thread Peter Wang
hi, Is there any way to get realpath cache hit ratio of php? realpath_cache_size integer Determines the size of the realpath cache to be used by PHP. This value should be increased on systems where PHP opens many files, to reflect the quantity of the file operations performed.

Re: [PHP] SESSIONS lost sometimes

2009-08-20 Thread Peter Ford
. -- 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] Re: unset() something that doesn't exist

2009-08-27 Thread Peter Ford
was at university - he had more flying hours than I had lived and flown just about everything with wings. A superb instructor, but far too much of a livewire to be a manager... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft

Re: [PHP] IRC and English

2009-09-02 Thread Peter Ford
(who couldn't even spell his own name consistently), without any more neologisms creeping in. -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List

Re: [PHP] CodeWorks 09

2009-09-02 Thread Peter Ford
NORTH WEST?? Seattle or Portland Oregon area would be great! Or even in the rest of the world - PHP is bigger than just the USA :) -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd

Re: [PHP] Return XML attribute in DOM

2009-09-08 Thread Peter Ford
it incorrectly. I think I'm drowning in the deep end =/ Could you advise Gamesmaster ? It's a method on DomElement: http://uk3.php.net/manual/en/function.domelement-get-attribute.php and you need to tell it which attribute to get... :) -- Peter Ford phone: 01580 89

[PHP] Re: php/mysql Query Question.

2009-09-16 Thread Peter Ford
... It's should be a simple operation to write a wrapper function to put HTML around the results. There might even be a PEAR extension or PHPClasses class to do it (I haven't looked yet) -- Peter Ford phone: 01580 89 Developer fax

[PHP] Re: avoid Denial of Service

2009-10-09 Thread Peter Ford
:) -- 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

[PHP] Re: Fun with XSLT

2009-10-22 Thread Peter Ford
of the 'umbongo' template (only) 'f course, this is not tested, but I have used this idea in working code -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing

[PHP] Re: Fun with XSLT

2009-10-22 Thread Peter Ford
/ /xsl:template xsl:template match='{$choice}'xsl:apply-templates//xsl:template /xsl:stylesheet EoXSL $xslt = new DOMDocument(); $xslt-loadXML($xslScript); // ... etc... ? -- Peter Ford phone: 01580 89 Developer fax: 01580 893399

Re: [PHP] Spam opinions please

2009-10-23 Thread Peter Ford
://www.ashleysheridan.co.uk Unfortunately, it might also confound someone who doesn't speak the language. Admittedly, they would probably already be struggling with the rest of the site... I guess locale-dependent captchas are a possibility. -- Peter Ford phone: 01580

Re: [PHP] Multilingual website, texts in external JavaScript problem

2009-11-09 Thread Peter Ford
here /*]]*/ /script That seems to validate fine in XHTML 1.0 Strict for me... -- Peter Ford phone: 01580 89 Developer fax: 01580 893399 Justcroft International Ltd., Staplehurst, Kent -- PHP General Mailing List (http

Re: [PHP] Multilingual website, texts in external JavaScriptproblem

2009-11-10 Thread Peter Ford
leledumbo wrote: I don't see why you can't use inline script in XHTML 1.0 Strict Because I don't know about CDATA, thanks. Glad to be of service! As another regular contributor to this list often points out, there's always something new to learn :) -- Peter Ford

[PHP] Re: fread() memory problems

2009-11-16 Thread Peter Ford
thought a vague idea might be better than nothing! -- 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

<    8   9   10   11   12   13   14   15   16   17   >