If you store your sessions in a database then your could gain a little mode
control over your session, but I think what you're asking is if there's a
way to tell if a user has closed the browser thus killing the session on
their side. If that's what you're asking then the answer is not going to
Miles Thompson wrote:
At 03:51 PM 5/3/2006, Phillip S. Baker wrote:
Greetings Gents,
...
However - why do you think paging an article improves readability? What
it does do is control the amount of text you display on a page so you
can profitably surround it with advertising.
Thanks all for explanations.
I'll try to use callback functions.
Tony.
On 5/4/06, Joe Wollard [EMAIL PROTECTED] wrote:
If you store your sessions in a database then your could gain a little
mode control over your session, but I think what you're asking is if there's
a way to tell if a user
Hi again all,
Here my next PHP newbie question.
When I'm building an array as bellow. Is there any way I can get the left
element out of the array?
$salesperson = array();
while($row=mysql_fetch_array($result)) {
$salesperson[$row[1]] = '0';
}
If I write: echo
Jonas Rosling wrote:
Hi again all,
Here my next PHP newbie question.
When I'm building an array as bellow. Is there any way I can get the left
element out of the array?
the 'left element' is the key.
$salesperson = array();
while($row=mysql_fetch_array($result)) {
On Wed, May 3, 2006 11:29 pm, Tony Aldrich wrote:
Well, I mean visitors of site. They can open it in several windows or
in
several browsers. I understand that each browser on a machine will be
a
session (in simple explanation). And for all of them I create some
info in
database. Then they
It's remotely possible that your database classes are trying to create
temp files or cache files or something in the current working
directory which for cron would be... The home directory of the user
running it???
I don't even know what it would be, but I know it can be problematic.
The cron
On Thu, 2006-05-04 at 00:24 +0200, Rory Browne wrote:
I'd like to rectify this, but I can't think of a suitable project. I'd like
to do something new / useful as opposed to a glorified Hello World
demonstration.
Depends on your interests. I would say, join an established project and
contribute
On Wed, May 3, 2006 5:15 pm, Chris W. Parker wrote:
Steve mailto:[EMAIL PROTECTED]
on Friday, April 21, 2006 5:58 PM said:
So everyone's aware, I have NO intention of storing credit card #'s.
I
don't see why anyone needs to.. especially after reading Richard's
past posts in the
Marten Lehmann wrote:
Hello,
is there any function in PHP which binds to libidn? I found only a
PEAR-project, but PEAR-projects are often beta and not as stable as
PHP-builtin functions.
that statement is rather baseless.
the extension you refer to may be marked as EXPERIMENTAL but that
On Wed, May 3, 2006 1:51 pm, Phillip S. Baker wrote:
I have an interesting problem I would like some ideas on for a
solution.
I cannot seem to find any code examples on the net, though I might not
be looking in the right place really.
I have some articles stored in a MySQL DB.
What I want
On Wed, May 3, 2006 6:57 pm, Jochem Maas wrote:
a. who said anything about sessions?
Jay did.
He suggested sucking down the whole article, paginating it all, and
cramming the pages into session, presumably so you don't have to suck
down the whole article again.
Which, by the way, is what I
On Wed, May 3, 2006 12:51 pm, Ezra Nugroho wrote:
I envision a tool that would audit your php code, and tell you if your
code is good or not, if it has scaling issues, etc, etc. Basically it
tells if your php code is sane or not.
Oooh. I know what you mean.
I call that tool a Consultant :-)
On 03 May 2006 18:27, Jason Gerfen wrote:
I am looking for some information on how to do this the correct way,
here is the data I am working with:
Array
(
[hostname-0] = hostname
[mac-0] = 00:0a:b3:aa:00:5d
[ip-0] = 192.168.0.1
[subnet] = MMC-Subnet
[group] =
On Wed, May 3, 2006 12:25 pm, Duffy, Scott E wrote:
Are printf and number_format supposed to round?
echo ($hcount-$lcount)/$hilow. ;
echo number_format(($hcount-$lcount)/$hilow,2,'.','');
0.208333 0.21
0.145833 0.15
0.17 0.17
On Wed, May 3, 2006 9:17 am, Jochem Maas wrote:
BUT there is a fourth form of polymorphism - one I would argue if the
most common form when speaking about polymorphism with respect to
programming,
namely the ability to derive a subclass from more than one base class
(simutaneously),
this is
Ray Hauge wrote:
convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] -
The '-' makes it display the contents of the image to stdout. I
want to
caputre that binary data and somehow display the images inline with
the
website. Is this possible, or am I living in a dream world ;)
Richard Lynch wrote:
On Wed, May 3, 2006 6:57 pm, Jochem Maas wrote:
a. who said anything about sessions?
Jay did.
dang - I didn't read properly - apologies go out to Edward for that!
He suggested sucking down the whole article, paginating it all, and
cramming the pages into session,
$xml = blah balh blah;
$tournaments = explode(/tournament, $xml);
$tournaments = array_slice($tournaments, 0, 3); //maybe 4
$xml = implode(/tournament, $tournaments);
$xml .= \n/xmlfeed;
Crude, but effective Captain -- Spock
On Wed, May 3, 2006 5:40 am, Dave Goodchild wrote:
Hi all, maybe
Richard Lynch schrieb:
On Wed, May 3, 2006 12:25 pm, Duffy, Scott E wrote:
Are printf and number_format supposed to round?
echo ($hcount-$lcount)/$hilow. ;
echo number_format(($hcount-$lcount)/$hilow,2,'.','');
0.208333 0.21
0.145833 0.15
How's the best way to remove a key and it's value from an array? Like in the
code bellow where I would like to remove AK and it's value.
$salesperson = array(
'AK' = '1000',
'AT' = '1500',
'BT' = '2000'
);
On Thu, 4 May 2006, Jonas Rosling wrote:
How's the best way to remove a key and it's value from an array? Like in the
code bellow where I would like to remove AK and it's value.
$salesperson = array(
'AK' = '1000',
'AT' = '1500',
Best group member,
I am sending email to a hotmail thru PHP. When I send it like this it
arrives (in the junk mail, but it arrives):
mail('[EMAIL PROTECTED]', 'A nice subject', 'Some text');
It works well, but I want to change the FROM header so I do this:
mail('[EMAIL PROTECTED]', 'A nice
Why would I want to mess with the xml file like that? I use it in other
places. The actual xslt solution I came up with (with assistance) is the
preferred one.
On 04/05/06, Richard Lynch [EMAIL PROTECTED] wrote:
$xml = blah balh blah;
$tournaments = explode(/tournament, $xml);
$tournaments =
On Thu, 2006-05-04 at 17:37 +0700, Peter Lauri wrote:
mail('[EMAIL PROTECTED]', 'A nice subject', 'Some text', 'From: Peter
Lauri [EMAIL PROTECTED]');
This email does not arrive to the Hotmail inbox.
This has been discussed ad nauseum on this list. I suggest going through
the list archives
Peter Lauri wrote:
Best group member,
I am sending email to a hotmail thru PHP. When I send it like this it
arrives (in the junk mail, but it arrives):
mail('[EMAIL PROTECTED]', 'A nice subject', 'Some text');
It works well, but I want to change the FROM header so I do this:
mail('[EMAIL
Paul,
I did make a search on this. However, as you understand, searching for
hotmail mail header will generate to much junk because it will be replies
from hotmails that also will be included.
/Peter
-Original Message-
From: Paul Scott [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04,
Sending email to hotmail using mail();
you need to set your mail headers for the mail to be assumed valid,
namely:
X-Sender
From
Date
Subject
Delivered-to
MIME-Version
Reply-To
Content-type
X-Priority
Importance
Return-Path
X-Mailer
HTH
Angelo
--
PHP General Mailing List
On Thu, 2006-05-04 at 17:51 +0700, Peter Lauri wrote:
Paul,
I did make a search on this. However, as you understand, searching for
hotmail mail header will generate to much junk because it will be replies
from hotmails that also will be included.
Try the mail function on http://za2.php.net/
Greetings All,
I am currently implementing a form for a client that will run over
https. Now, all is good and well except, for some reason when the form
loads in IE the lock in the status bar displays for a short while and
then goes away, it is fine in Firefox though. The way I have the form
Schalk schrieb:
Greetings All,
I am currently implementing a form for a client that will run over
https. Now, all is good and well except, for some reason when the form
loads in IE the lock in the status bar displays for a short while and
then goes away, it is fine in Firefox though. The way
The only one I do not know what to set it to is Importance. What values
are possible there? Is it the same as for X-priority?
Regards,
Peter
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 5:53 PM
To: Peter Lauri
Cc:
At 11:51 AM 5/3/2006, Phillip S. Baker wrote:
I have some articles stored in a MySQL DB.
What I want is if the article is above a certain length in
characters, to page article through a few pages for site readability.
So I would want to print X number of words/characters.
Save the where the
On 5/3/06, Satyam [EMAIL PROTECTED] wrote:
I used that method initially, some months ago, but finally dropped it. It
looked nice at first, but then I started getting into problems and required
too many special cases to make it work. In the end, it wasn't a clean nor
elegant solution.
Barry wrote:
Schalk schrieb:
Greetings All,
I am currently implementing a form for a client that will run over
https. Now, all is good and well except, for some reason when the
form loads in IE the lock in the status bar displays for a short
while and then goes away, it is fine in Firefox
On 5/3/06, Jay Blanchard [EMAIL PROTECTED] wrote:
[aha moment]
I finally get it. PHP developers are the smartest people on the planet
and therefore we know and use everything. JavaScript, Java, C++, SQL,
network management, Apache internals, women and even PHP. That is why
people come on this
Also, with regards to sending success/failure messages across the
redirection of your forms, I'd recommend considering sessions for
passing the data. It keeps your URLs clean, and allows you to send
complex data a bit easier (IMHO). For example if a user makes an
error on a few different form
[snip]
The code then goes on to move some data from a remote SQL Server db to
the
local mysql. When finished, the log stops at got two classes. I am
trying to debug now to see which of the two classes it seems to be
failing
on. I don't have anything in the php error log. The MSSQL connection
Is there any way to call for an element value in an array by the position?
Like position 2 in the array and not the key name.
// Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is there any way to call for an element value in an array by the
position?
Like position 2 in the array and not the key name.
[/snip]
I hate to say this, but you really need to RTFM http://www.php.net/array
To get a value from position 2 in an array you use $arrayName[1] (all
array
On Wed, May 3, 2006 12:51 pm, Ezra Nugroho wrote:
I envision a tool that would audit your php code, and tell you if your
code is good or not, if it has scaling issues, etc, etc. Basically it
tells if your php code is sane or not.
No, but
If you're in a team environment, the best advice
Hi,
The line was this.
echo TD WIDTH=\25%\ ALIGN=\CENTER\
A
HREF=\javascript:open_window('$PHP_SELF?action=view_recorduserid=$userid');\View/A
A HREF=\$PHP_SELF?action=delete_recorduserid=$userid\
onClick=\return confirm('Are you sure?');\Delete/A/TD\n;
I have
Will this also work with an associative array? If this is what he is
talking about, I tried it and it does not work
I put this together though and it works, not sure if it is the *best*
way though...
?php
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
[snip]
There's a fundamental problem with trying to slice text into
resizable web pages the same way it's sliced on paper. Paper pages
work because they're set in a fixed font size. When you change the
ratio of font size to column width, the places where lines of text
wrap changes. Because
Seem like your missunderstanding me. I'm not using an orignal array. I'm
using an map-array.
$array = ('element' = 'value');
// Jonas
Den 06-05-04 14.29, skrev Jay Blanchard [EMAIL PROTECTED]:
[snip]
Is there any way to call for an element value in an array by the
position?
Like position
Hi there,
I am operating 3 sites where I would like to be able to login cross site. Means
with one login have a valid session on all 3 domain.
Currently I do set the cookie like this:
setcookie($cookiename,$sessid,0,'/','.'.$domain[name],0);
That makes is available for all subdomains.
Ross wrote:
Hi,
The line was this.
echo TD WIDTH=\25%\ ALIGN=\CENTER\
A
HREF=\javascript:open_window('$PHP_SELF?action=view_recorduserid=$userid');\View/A
A HREF=\$PHP_SELF?action=delete_recorduserid=$userid\
onClick=\return confirm('Are you
[snip]
If you're in a team environment, the best advice I've heard is to have
the team share accountability. Meaning, if you write a piece of code,
you _must_ have a colleague double-check it and sign off on it. Then
if a bug is discovered down the road, _both_ of you will be held
responsible.
[snip]
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
[/snip]
What happens when you echo $colors[1]?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I get nothing
do you get something different?
Jay Blanchard wrote:
[snip]
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
[/snip]
What happens when you echo $colors[1]?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
I get nothing
do you get something different?
[/snip]
Not even 'array'?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nothing.
// Jonas
Den 06-05-04 14.40, skrev Jay Blanchard [EMAIL PROTECTED]:
[snip]
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
[/snip]
What happens when you echo $colors[1]?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Nope... dead air.
Of course getting an indexed value into an associative array seems a bit
odd to me... maybe Jonas could shed some light on why he would go this
route...
Jay Blanchard wrote:
[snip]
I get nothing
do you get something different?
[/snip]
Not even 'array'?
--
PHP
This may clarify - in php, integer and associate arrays are created
arbitrarily, ie keys can be numbers or strings. So, either create an array
like this:
array('1' = 'first element',
'2' = 'second element');
and call by the key!
On 04/05/06, Jonas Rosling [EMAIL PROTECTED] wrote:
Is
On 5/4/06, Brad Bonkoski [EMAIL PROTECTED] wrote:
Will this also work with an associative array? If this is what he is
talking about, I tried it and it does not work
I think you're correct. This is because PHP arrays are a mash-up
(as Jochem put it) of numerical
[snip]
Of course getting an indexed value into an associative array seems a bit
odd to me... maybe Jonas could shed some light on why he would go this
route...
[/snip]
Exactly
[snip]
To get a value from position 2 in an array you use $arrayName[1] (all
array elements start numbering at 0,
[snip]
Seem like your missunderstanding me. I'm not using an orignal array. I'm
using an map-array.
$array = ('element' = 'value');
[/snip]
It is called an associative array, a value is associated with a key.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
That makes is available for all subdomains. Is there a possiblity to
make it
available for all domains like example: .domainname.
[/snip]
Are you trying to share a cookie across domain names? If so that cannot
be done.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Tom Ray wrote:
snip
Ok so I can't find apxs on the server at all, even though the 4.3.4 phpinfo
claims to have been configured with --with-apxs2=/usr/sbin/apxs2-prefork. I did
some search via google and I reconfigured using --enable-cli and --disable-cgi
but I still had to use
Hi. I have problem with preg_replace_callback. It seems that my pattern
is bad, but I can't find any error.
Pattern : \[\s*((\d|\w|_)+)\s*\]
this pattern is intended to find strings like [field],
[ fi12_eld]...
but every time I get warning message
Warning: preg_replace_callback(): Delimiter
Jonas Rosling wrote:
How's the best way to remove a key and it's value from an array? Like in the
code bellow where I would like to remove AK and it's value.
$salesperson = array(
'AK' = '1000',
'AT' = '1500',
'BT' =
[snip]
Lasso can do the following, can PHP?
?LassoScript
Variable:
'Colors'=(Map:'red'='#ff','green'='#00ff00','blue'='#ff');
Loop: $Colors-Size;
Output: 'br' + $Colors-(Get: Loop_Count),-EncodeNone;
/Loop;
?
This outputs;
ff
00ff00
ff
I'm new at PHP but
John Wells wrote:
On 5/3/06, Jay Blanchard [EMAIL PROTECTED] wrote:
[aha moment]
I finally get it. PHP developers are the smartest people on the planet
and therefore we know and use everything. JavaScript, Java, C++, SQL,
network management, Apache internals, women and even PHP. That is why
Merlin wrote:
Hi there,
I am operating 3 sites where I would like to be able to login cross
site. Means with one login have a valid session on all 3 domain.
Currently I do set the cookie like this:
setcookie($cookiename,$sessid,0,'/','.'.$domain[name],0);
That makes is available for all
[snip]
Hi. I have problem with preg_replace_callback. It seems that my pattern
is bad, but I can't find any error.
Pattern : \[\s*((\d|\w|_)+)\s*\]
this pattern is intended to find strings like [field],
[ fi12_eld]...
but every time I get warning message
Warning: preg_replace_callback():
[snip]
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
foreach($colors AS $key = $value){
echo $value . br /\n;
}
But I don't get anything out of this code. Why? Doesn't echo anything?
[/snip]
Seriously? Works fine here.
--
PHP General Mailing List
On 5/4/06, Brad Bonkoski [EMAIL PROTECTED] wrote:
try this:
echo TD WIDTH=\25%\ ALIGN=\CENTER\
A
HREF=\javascript:open_window('.$_SERVER['PHP_SELF'].?action=view_recorduserid=$userid');\View/A
---^---^
concatenate
On 04 May 2006 13:52, John Wells wrote:
On 5/4/06, Brad Bonkoski [EMAIL PROTECTED] wrote:
Will this also work with an associative array? If this is what he
is talking about, I tried it and it does not work
I think you're correct. This is because PHP arrays are a mash-up
(as
On 04 May 2006 14:04, tJey wrote:
Hi. I have problem with preg_replace_callback. It seems that my
pattern is bad, but I can't find any error.
Pattern :
this pattern is intended to find strings like [field], [
fi12_eld]...
but every time I get warning message
Warning:
I'm having trouble with setting HTTP error status from PHP4.
The PHP docs say that if I have this :
Directory /mydir
ErrorDocument 400 /mydir/error.html
/Directory
then the script /mydir/test.php:
?php
header(HTTP/1.0 400);
?
will cause the page /mydir/error.html to be
On 5/4/06, Ford, Mike [EMAIL PROTECTED] wrote:
They're not even that. They're pure associative arrays, or maps -- it's just
that integer keys are treated somewhat specially so that an array with *only*
integer keys will look like a traditional array.
True true, thanks for making it crystal
- Original Message -
From: John Wells [EMAIL PROTECTED]
On 5/3/06, Satyam [EMAIL PROTECTED] wrote:
I used that method initially, some months ago, but finally dropped it. It
looked nice at first, but then I started getting into problems and
required
too many special cases to make it
At 4:30 AM -0700 5/4/06, Paul Novitski wrote:
At 11:51 AM 5/3/2006, Phillip S. Baker wrote:
I have some articles stored in a MySQL DB.
What I want is if the article is above a certain length in
characters, to page article through a few pages for site
readability.
So I would want to print X
On May 4, 2006, at 4:16 AM, Richard Lynch wrote:
On Wed, May 3, 2006 6:57 pm, Jochem Maas wrote:
a. who said anything about sessions?
Jay did.
He suggested sucking down the whole article, paginating it all, and
cramming the pages into session, presumably so you don't have to suck
down the
Hi All,
I've got an array which has the following properties:
$file_array[$filename] = array (Date = $Date, size = $size,
permissions = $permissions);
I can quite happily sort the array by filename (using natksort and
natkrsort), which I found on the php manual - and for reference have
included
Richard Lynch wrote:
Ray Hauge wrote:
convert -resize 800x600 AR-M455N_20060420_130446.pdf[0] -
The '-' makes it display the contents of the image to stdout. I
want to
caputre that binary data and somehow display the images inline with
the
website. Is this possible, or am I living in a dream
James Nunnerley wrote:
I've got an array which has the following properties:
$file_array[$filename] = array (Date = $Date, size = $size,
permissions = $permissions);
I can quite happily sort the array by filename (using natksort and
natkrsort), which I found on the php manual - and for
tJey wrote:
Hi. I have problem with preg_replace_callback. It seems that my pattern
is bad, but I can't find any error.
Pattern : \[\s*((\d|\w|_)+)\s*\]
this pattern is intended to find strings like [field],
[ fi12_eld]...
but every time I get warning message
Warning: preg_replace_callback():
I think I may have written down my variable structure incorrectly in the
first place, which even has me confused...
The $file_array[$filename] is I don't think a further array.
The sub values are created as follows:
$file_array[$filename][Date] = ...
$file_array[$filename][Size] = ...
Looking
Hi folks,
Config is Apache/1.3.34 (Unix) PHP/4.4.1 mod_ssl/2.8.25 OpenSSL/0.9.7i.
If my usort callback has in it:
if ($aday == $bday) {return 0;}
else {return ($aday $bday) ? -1 : 1;}
everything works - lots of sort operations happen on the array (three
elements) and it sorts correctly.
James Nunnerley wrote:
I think I may have written down my variable structure incorrectly in the
first place, which even has me confused...
The $file_array[$filename] is I don't think a further array.
The sub values are created as follows:
$file_array[$filename][Date] = ...
Jon Earle wrote:
$ret_val = 0;
if ($aday == $bday) {$ret_val = 0;}
else {$ret_val = ($aday $bday) ? -1 : 1;}
return ret_val;
I could be wrong, but I think you need some extra brackets on the else
line...
else {$ret_val = (($aday $bday) ? -1 : 1);}
-Stut
--
PHP General Mailing
Hello,
I want to use htmlentities() with UTF-8, which I can set with the third
parameter. But to use the third parameter, I have to provide the second
parameter. Currently the default for the second parameter is ENT_COMPAT.
But as this might change, I don't want to call htmlentities with
Richard Lynch mailto:[EMAIL PROTECTED]
on Thursday, May 04, 2006 2:06 AM said:
Contact the bank with which you already HAVE a merchant account for
your point-of-sale credit card swiper thingies.
Already have the info in front of me. :)
If you're re-doing it anyway, you might as well do
Hey all,
Every now and then I start on using REGEXs and URL
rewriting as needed then stop again, this is one of
those times :-) I have a simple url rewite that goes
like this:
RewriteRule ^blog-([0-9]+).html$
index.php?act=blogid=$1
and I send urls to the page like this:
On 5/4/06, Jon Earle [EMAIL PROTECTED] wrote:
$ret_val = 0;
if ($aday == $bday) {$ret_val = 0;}
else {$ret_val = ($aday $bday) ? -1 : 1;}
return ret_val;
You're missing the $ for ret_val on the return line.
PHP thus understands the return value as a string,
ret_val, which would be
On 5/4/06, Stut [EMAIL PROTECTED] wrote:
Jon Earle wrote:
$ret_val = 0;
if ($aday == $bday) {$ret_val = 0;}
else {$ret_val = ($aday $bday) ? -1 : 1;}
return ret_val;
I could be wrong, but I think you need some extra brackets on the else
line...
else {$ret_val = (($aday $bday) ? -1
John Wells wrote:
Not true actually, it's a quick if/else using the ternary operator.
It's also difficult to read all on one line:
$ret_val = 0;
if ($aday == $bday)
{
$ret_val = 0;
} else {
// what this does is test if $aday is less than $bday.
// If so, it sets $ret_val to -1. If
On 5/4/06, Stut [EMAIL PROTECTED] wrote:
Anyway, as someone else has pointed out, there is a missing $ on the
return value.
-Stut
Yup, missed that one too. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/4/06, Ryan A [EMAIL PROTECTED] wrote:
RewriteRule ^blog-([0-9]+).html$
index.php?act=blogid=$1
This is fine, but you should really be escaping the
. (by writing it as \.). Otherwise, it matches any
character, not just the literal period.
mysite.com/blog/blog-2-the_great_escape.html
Rabin Vincent escribió:
On 5/4/06, Jon Earle [EMAIL PROTECTED] wrote:
$ret_val = 0;
if ($aday == $bday) {$ret_val = 0;}
else {$ret_val = ($aday $bday) ? -1 : 1;}
return ret_val;
You're missing the $ for ret_val on the return line.
PHP thus understands the return value as a string,
I finally got it working and Chris was correct. It appears that cron was
using the wrong php. Pumping the errors of even logging them wouldn't have
helped as I was tweaking the ini for the php I thought it was using. When I
explicitly tell it which one to use, it seems to work fine.
Thanks!
Schalk Neethling wrote:
Barry wrote:
Schalk schrieb:
Greetings All,
I am currently implementing a form for a client that will run over
https. Now, all is good and well except, for some reason when the
form loads in IE the lock in the status bar displays for a short
while and then goes
Works perfectly, thank you!
Just got a bit confused after all the reading.
Regards,
Ryan
You just need to add another pair of parenthesis
to get the second match. For your case, it'll be
something like (untested):
RewriteRule ^blog-([0-9]+)-([^\.]+)\.html$
At 07:12 AM 5/4/2006, tedd wrote:
If the text is organized into paragraphs, which I can't imagine it
not being, then the solution can be found in using a combination of
javascript and php.
Javascript can detect the size (height width) of window the user
is currently using and the web site
I am currently looking for a good PHP editor for Windows. I know, the
question must have been asked so many times, but I thought I could ask it
again now that a few editors have evolved, others have appeared.
Before I used something called Ultraedit but I was disappointed by the lack
of features,
[snip]
I am currently looking for a good PHP editor for Windows. I know, the
question must have been asked so many times, but I thought I could ask
it
again now that a few editors have evolved, others have appeared.
[/snip]
Eclipse. You could also STFA
--
PHP General Mailing List
Hi Peter,
RFC 2156 (http://www.faqs.org/rfcs/rfc2156.html) defines the importance
header as following:
importance = low / normal / high
Which means that you can either use the values low, normal or high
HTH,
Christian
The only one I do not know what to set it to is Importance. What
Hey,
When i started on the net I was told that if sending
than 256 characters via a form to use a POST instead
of a GET method, now that I am playing with URL
rewriting I wanted to know if member served me right,
but searching via google I see that IE takes up to
2040-2083 characters in a GET,
[snip]
- Anything else you wish to add pertaining to the
above.
[/snip]
People who use GET requests are lazy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 170 matches
Mail list logo