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
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(
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
.
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
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...
/
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
41 matches
Mail list logo