[PHP] Re: preg_match problem

2006-08-21 Thread Alex Turner
Off the top of my head: /form[1-6]\.php/ AJ www.deployview.com [EMAIL PROTECTED] wrote: hi. I have to check if the script file belongs to any ov form1.php to form6.php files. Need something like: preg_match('/form*.php/', $_SERVER['PHP_SELF']) wher * kan be any number between 1 and 6. Thank

Re: [PHP] preg_match problem

2006-08-21 Thread Alex Turner
I think this pattern would also match form16.php etc, which I think is not what afan wanted. Dave Goodchild wrote: On 21/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: hi. I have to check if the script file belongs to any ov form1.php to form6.php files. Need something like: preg_match(

[PHP] Re: Regex

2006-08-21 Thread Alex Turner
If what you mean is a db table, then it would seem to me that you should not be using a regex. PHP has rawurlencode() for this sort of thing. But - you should learn regex ;-) Try something like (untested and late at night) function urlme($location) { $enc=rawurlencode($location); $spc

Re: [PHP] Overriding core functions

2006-08-22 Thread Alex Turner
It may be possible to override the core function - I don't actually know. If you just define a new function with the same function it might work OK. The snag I see coming at you like a tonne of bricks is 'how do you call the original function once you have overridden it.'. This like like ca

[PHP] Re: Why small > big?

2006-08-23 Thread Alex Turner
M Sokolewice got it nearly correct. However, the situation is a little more complex than he has discussed. The % compression figure for jpeg is translated into the amount of information stored in the reverse cosine matrix. The size of the compressed file is not proportional to the % you set

Re: [PHP] PHP & BEA Weblogic 8.

2006-08-23 Thread Alex Turner
I agree that it is probably pretty non standard! You could write a bean to drive it using the java version of fcgi. But then the app server will hate you for ever as beans are not supposed to do things like open sockets etc. I am very very interested in why you want to do such a thing :-) A

[PHP] Re: Where to download APC for windows?

2006-08-23 Thread Alex Turner
At the risk of being flamed to death, I thought it was in ext in the standard windows distro. If it is not, I am stuffed if I can remember where I got it from (blush). AJ steve wrote: I used to have a bookmark on where to download APC for windows. Anyone have a link? -- PHP General Mailing

Re: [PHP] Re: Why small > big?

2006-08-23 Thread Alex Turner
of the original) with a quality setting of 25 and "see" no difference. I think this (the quality factor) is programmable. As for png images, I would probably agree (if I saw comparisons), but not all browsers accept them. I belive that at least one IE has problems with png's,

Re: [PHP] Re: Why small > big?

2006-08-24 Thread Alex Turner
roblems with png's, right? tedd At 4:45 PM +0100 8/23/06, Alex Turner wrote: M Sokolewice got it nearly correct. However, the situation is a little more complex than he has discussed. The % compression figure for jpeg is translated into the amount of information stored in the revers

[PHP] Re: ssl.

2006-08-24 Thread Alex Turner
It would appear that the root of the page has not gone back to http. Is it possible that this is a one of those cases when two things get changed at once by accident? I would suggest downloading the IE developer's tool bar (or the firefox equivalent) and then when you get to the page you thin

Re: [PHP] ssl.

2006-08-24 Thread Alex Turner
João, Surely the issue is to find why it is not working now. Why it did work in the past is only of interest if you want to stop the problem re-occurring in the future. Thus, the correct approach is to find why it is not working now, fix it and then see if you can work out what has change b

Re: [PHP] ssl.

2006-08-24 Thread Alex Turner
João, Please try and find out why it is not working now. Once you have that worked out, it will be much easier to find out what has changed. There are a few subtle methods by which changing the key length might interact with PHP. However, in general, PHP is not involved with the encryption

[PHP] Re: ssl.

2006-08-25 Thread Alex Turner
Mourad, I think that you might have misread the original post. The snag appears not to be the leaving of a secure site. The snag is that root document is secure but some of the embedded urls (images, frames, iframes etc) are unsecured. Whilst this again is a standard warning, it is one that

[PHP] Re: ssl.

2006-08-25 Thread Alex Turner
My understanding is that the message said that the page had a mix of ssl and non ssl and that the root remained https. This root did not remain https before the key change. Mourad Boulahboub wrote: Hi Alex, Alex Turner schrieb am 25.08.2006 09:55: Mourad, I think that you might have

[PHP] Re: ssl.

2006-08-25 Thread Alex Turner
You're right, but I am impatient ;-) :-) Best wishes - AJ Mourad Boulahboub wrote: Hi alex, Alex Turner schrieb am 25.08.2006 10:36: My understanding is that the message said that the page had a mix of ssl and non ssl and that the root remained https. This root did not remain https b

[PHP] Re: functions classes

2006-08-25 Thread Alex Turner
Bigmark, I have been involved in the evolution of the development process and architecture called functional normalization. I do intend to post some detail on this at funkifunctions.blogspot.com very soon. Anyhow, using this method might help you some what. The trick being to look through

Re: [PHP] functions classes

2006-08-26 Thread Alex Turner
Larry, I have hit similar global names space issues in the past and it is a pain in the behind! One remedial method that can get it stable enough to start to work on is to stick the whole messy lot into classes (NOT OBJECTS!) and then the global name space becomes the local namespace (ie $My

[PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
Class { function MyVar($val = null) { static $datum; if(is_null($val)) { return $datum; } $dataum=$val; } } I definitely need more coffee! AJ Alex Turner wrote: Larry, I have hit similar global names space issues in the past and it

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
ge- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 26 August 2006 17:25 To: Alex Turner Cc: php-general@lists.php.net Subject: RE: [PHP] Brain Death - [PHP] functions classes On Sat, 2006-08-26 at 16:51 +0100, Alex Turner wrote: > Rob, > > I'd go along with the setting a v

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
actually 'x === null' should evaluate to absurdity, but PHP is more pragmatic than that ;-) Cheers - AJ Alexander J Turner Ph.D. www.deployview.com www.nerds-central.blogspot.com www.project-network.com -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 2

RE: [PHP] Brain Death - [PHP] functions classes

2006-08-26 Thread Alex Turner
26 August 2006 19:24 To: Robert Cummings; tedd Cc: Alex Turner; php-general@lists.php.net Subject: RE: [PHP] Brain Death - [PHP] functions classes At 2:30 PM -0400 8/26/06, Robert Cummings wrote: >On Sat, 2006-08-26 at 12:41 -0400, tedd wrote: > > At 4:51 PM +0100 8/26/06, Alex Turner wro

Re: [PHP] display a single thumb per gallery

2006-08-27 Thread Alex Turner
Here is one way of doing it: Group by gallery and return max for image id. Place the resultant Gallery and Image values in an array of arrays. SELECT Gallery, Max(Image) FROM Thumbnails GROUP BY Gallery Then loop over the outer array returning the entire thumbnail row where gallery and image

[PHP] Eaccelerator

2006-08-31 Thread Alex Turner
All, I have just had some very pleasing success with Eaccelerator on windows. Has anyone else been trying this on windows. Has anyone had production experience with this? Thanks for any feedback. I have written up the work I have done so far at http://nerds-central.blogspot.com/2006/08/ea

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Alex Turner
Dave Goodchild wrote: Thanks, that was what I needed to hear. Cheers. On 03/09/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote: > Dave Goodchild wrote: >> Hi all, this may seem like a silly question, but I am creating a library of >> h

Re: [PHP] Crazy behavior...

2006-09-03 Thread Alex Turner
Peter Lauri wrote: Just figured out that it seams to happen when the request is done via AJAX. But it does not make any sense to me that there should be any difference. /Peter -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 1:53 PM To:

RE: [PHP] Crazy behavior...

2006-09-03 Thread Alex Turner
. www.deployview.com www.nerds-central.blogspot.com www.project-network.com -Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: 03 September 2006 17:20 To: Alex Turner; php-general@lists.php.net Subject: RE: [PHP] Crazy behavior... [snip] Can you send an example of the broken HTML? What

RE: [PHP] Crazy behavior...

2006-09-03 Thread Alex Turner
PROTECTED] Sent: 03 September 2006 18:02 To: Alex Turner Cc: php-general@lists.php.net Subject: RE: [PHP] Crazy behavior... Just thought one thing. I did do a alert() on the http.responseText, and that breaks in on the too, so the response that is sent back probably just ends there... weird... /

[PHP] Re: Video uploading with PHP -> convert to flash on the fly?

2006-09-04 Thread Alex Turner
Merlin wrote: Hi there, looks like video uploading goes mainstream. Loads of sites are adding video upload capabilities. That is what I would like to add to my webapp as well. Currently only picture upload is available via PHP and image functions. Can somebody please point me to a start on

RE: [PHP] Crazy behavior...

2006-09-05 Thread Alex Turner
Maas [mailto:[EMAIL PROTECTED] Sent: 04 September 2006 22:43 To: Alex Turner Cc: Peter Lauri; php-general@lists.php.net Subject: Re: [PHP] Crazy behavior... Alex Turner wrote: > Peter, > > When it arrives at the browser, via ajax, I am guessing that you then put it > into t

Re: [PHP] Is this unsecure?

2006-09-05 Thread Alex Turner
Peter Lauri wrote: Isn't that just to send a username and password with the request? Or is the username and password protected somehow in that process? -Original Message- From: Paul Scott [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 4:08 PM To: Peter Lauri Cc: php-genera

[PHP] Re: OT - PHP Hosting Service in UK?

2006-09-05 Thread Alex Turner
Miles Thompson wrote: I have a Canadian client, presently living in England, who is setting up a vary basic web site. The business is located in the UK, it makes sense to have the web hosting service in the UK as well. Would anyone who is happy with a UK hosting service offering PHP (prefe

Re: [PHP] Re: OT - PHP Hosting Service in UK?

2006-09-05 Thread Alex Turner
tedd wrote: I use: http://websitters.co.uk/hosting.php AJ Interesting that they display compliance, but fail validation (89 errors?). tedd May I quickly say that I have no involvement in this company other than having sites hosted with them! (blush) I will raise it with them! Thanks for

Re: [PHP] Re: OT - PHP Hosting Service in UK?

2006-09-05 Thread Alex Turner
tedd wrote: I use: http://websitters.co.uk/hosting.php AJ Interesting that they display compliance, but fail validation (89 errors?). tedd Are - the answer is that they recently updated all the pages, and the buttons for validation should only be on the front page. AJ -- www.deployview

[PHP] Re: IE session problem on one server only

2006-09-08 Thread Alex Turner
Larry Garfield wrote: Another issue. :-) I've another site I've built that uses PHP sessions for user authentication. When the user logs in with a user/pass, that is matched against a record in the database and, if found, that user object is stored in the session along with various other trac

[PHP] Testing PHP sites with JMeter

2006-09-08 Thread Alex Turner
All, Sorry if this is a little off topic. I have been writing tutorials on load and regression testing web applications with JMeter. I have just posted the first. These are being do to help people in TPN, but I am able to make them public. As the testing is all being done on PHP based web

[PHP] Re: How could I make the browser to send a command to a cash register...

2006-09-10 Thread Alex Turner
Man-wai Chang wrote: > to open its drawer? > That 100% depends on how the cash register works. Is it an NT cash register, or an propitiatory one? Is it rs232 or on a network? Basically, find out how the cash register can be controlled, then make a php script that can fire that control. If you

[PHP] Re: Ajax and PHP: XMLHTTP

2006-09-11 Thread Alex Turner
Micky Hulse wrote: Can I replace the above with some sort of XMLHTTP request? Googling now... thought I would ask here first. Any good links to tuts that might cover that sort of thing? Kinda thinking about plugging some Ajax into a random image php script. TIA. :) Cheers, Micky I think th

[PHP] Re: How would you do this ?

2006-09-26 Thread Alex Turner
Jad madi wrote: I'm building an RSS aggregator so I'm trying to find out the best way to parse users account feeds equally so Lets say we have 20.000 user with average of 10 feeds in account so we have about 200.000 feed How would you schedule the parsing process to keep all accounts always upda

[PHP] COM Dlls not unbinding

2005-12-31 Thread Alex Turner
Hi All, I am doing a lot of PHP work with COM. The system uses php 4.3.3.3 and php is being driven via FCGI from our own web server (TAG). We create an instance of an in-process COM server using the following technique: function GetFactory() { static $obj; static $objSet = 0; if($objSe

[PHP] COM dlls not unbinding at script end

2005-12-31 Thread Alex Turner
I am doing a lot of PHP work with COM. The system uses php 4.3.3.3 and php is being driven via FCGI from our own web server (TAG). We create an instance of an in-process COM server using the following technique: function GetFactory() { static $obj; static $objSet = 0; if($objSet==0)

Re: [PHP] Managing upload files in multiple servers(pawns)

2005-12-31 Thread Alex Turner
Why not use php to copy the file over to the other box? You could do this either by ftp, nfs etc, or by making a the php script communicate with the upload script on the other box as though it was a client. Cheers AJ Srinadh Sannidhanam wrote: Thanks Duncan, thanks for the suggestions, I