Alister Bulman wrote:
$dirs[$d] = filemtime($d);
Has he even retrieved the directories in sorted order by modification
time? If not he still needs to sort.
Then he'll need an asort($dirs); They would not have come in any
particular order, so you have to sort them for whatever you need
$fmtime = filemtime($d);
if (!array_key_exists($fm,$dir)) $dir[$fm] = array();
$dir[$fm][] = $d;
This would give you an array indexed by filetime containing arrays of
filenames. You may try and see if the last line is enough on its own, but I
believe it once happened to me that it failed to
2007. 04. 16, hétfő keltezéssel 09.27-kor Otto Wyss ezt írta:
Alister Bulman wrote:
$dirs[$d] = filemtime($d);
Has he even retrieved the directories in sorted order by modification
time? If not he still needs to sort.
Then he'll need an asort($dirs); They would not have come in any
Zoltán Németh wrote:
what do you mean by doesn't work? what error is thrown if any? what
result do you get instead of the expected?
at first glance I cannot see anything wrong with your function...
It simply doesn't add any sub folder to $dirs. Could it be that the
function doesn't return the
2007. 04. 16, hétfő keltezéssel 10.40-kor Otto Wyss ezt írta:
Zoltán Németh wrote:
what do you mean by doesn't work? what error is thrown if any? what
result do you get instead of the expected?
at first glance I cannot see anything wrong with your function...
It simply doesn't add any
Otto Wyss wrote:
Tijnema ! wrote:
*ROFLMFAO*...Did you actually try google for json.php?
Second result:
http://mike.teczno.com/JSON/JSON.phps
This doesn't have a json_encode but needs a $json object which then
could be used as $json-encode(...). Thanks anyway.
that's going to make it
Richard Kurth wrote:
I am trying to write a import script for loading data into an existing mysql
table. I want to show the import data on the screen and let the user select
the column number to go with which mysql field. Now some of the fields are
mandatory like firstname lastname email
On 14 April 2007 13:16, Afan Pasalic wrote:
Tijnema ! wrote:
On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote:
function value2var($array, $print=0)
{
foreach ($_POST as $key = $value)
I think you should change above line to :
foreach ($array as $key = $value)
yup!
2007. 04. 16, hétfő keltezéssel 10.50-kor Zoltán Németh ezt írta:
2007. 04. 16, hétfő keltezéssel 10.40-kor Otto Wyss ezt írta:
Zoltán Németh wrote:
what do you mean by doesn't work? what error is thrown if any? what
result do you get instead of the expected?
at first glance I cannot
Zoltán Németh wrote:
2007. 04. 16, hétfő keltezéssel 10.50-kor Zoltán Németh ezt írta:
2007. 04. 16, hétfő keltezéssel 10.40-kor Otto Wyss ezt írta:
Zoltán Németh wrote:
what do you mean by doesn't work? what error is thrown if any? what
result do you get instead of the expected?
at first
Jochem Maas wrote:
that's going to make it completely impossible to use then isn't it.
no way you could possibly wrap the class/objects functionality in a wrapper
function.
At the moment it's sufficient, since I've now time to figure out how the
Json package can be installed. Then I can
On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote:
Otto Wyss wrote:
Tijnema ! wrote:
*ROFLMFAO*...Did you actually try google for json.php?
Second result:
http://mike.teczno.com/JSON/JSON.phps
This doesn't have a json_encode but needs a $json object which then
could be used as
At 1:31 AM -0400 4/16/07, Jeremy Adams wrote:
I'm building a website right now that will be a database of attractions in
the Carolina and Virginia area.
The idea is that attraction owners can submit data to the database and the
database will automatically generate a page containing that
Hi gang:
What ever happened to the NEWBIE guide we were talking about
providing last year? Did anyone do anything about it?
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
What ever happened to the NEWBIE guide we were talking about
providing last year? Did anyone do anything about it?
[/snip]
We had periodically published a newbie guide to the list, for a while it
was automated by one of the group, then I would send out manually from
time-to-time. These
Dear list,
I'm currently reviewing a load of scripts to dynamically generate a form for
a membership system.
I have designed a registration form, and once registered and logged in there
are a load of different options relevant to people's profile (which will all
be radio check boxes) in a 2nd
I'm working on a site where I need to allow someone to send me a text
message and let the code take their message and respond or post it in the
db. Can someone point me in the right direction on how this is done?
Thanks!
Richard Lynch wrote:
On Wed, April 11, 2007 9:00 pm, Jochem Maas wrote:
[PS - I've the pleasure of listening to a colleague do a manual
install
of Vista over an existing copy of XP and then get the really tricky
stuff
like the soundcard to work ... for the last week :-/]
Give them an
Hi all,
I've been banging my head into the wall cause I can't get ibm_db2
extension working with Apache 2.0.59 and PHP 5.2.1 (as apache module).
(Operating system is winxp pro SP2)
For some reason, this code is working on command line but not when
placed to htdocs folder:
?php
# [EMAIL PROTECTED] / 2007-04-16 14:03:55 +0200:
Jochem Maas wrote:
that's going to make it completely impossible to use then isn't it.
no way you could possibly wrap the class/objects functionality in a wrapper
function.
At the moment it's sufficient, since I've now time to figure out
At 12:16 PM -0500 4/15/07, Larry Garfield wrote:
If you want your syntax to be a bit simpler, I frequently use helper functions
along these lines:
function http_get_int($var, $default=0) {
return isset($_GET[$var]) ? (int) $_GET[$var] : $default;
}
if (http_get_int('var') ==5) {
// Do
At 8:41 AM -0500 4/16/07, Philip Thompson wrote:
On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote:
Otto Wyss wrote:
Tijnema ! wrote:
*ROFLMFAO*...Did you actually try google for json.php?
Second result:
http://mike.teczno.com/JSON/JSON.phps
This doesn't have a json_encode but needs a $json
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like
if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because $_REQUEST['var'] =
and isset thinks is set
I use this combination a lot:
if (
On Mon, 2007-04-16 at 10:49 -0400, tedd wrote:
At 8:41 AM -0500 4/16/07, Philip Thompson wrote:
On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote:
Otto Wyss wrote:
Tijnema ! wrote:
*ROFLMFAO*...Did you actually try google for json.php?
Second result:
http://mike.teczno.com/JSON/JSON.phps
On 4/16/07, tedd [EMAIL PROTECTED] wrote:
At 1:31 AM -0400 4/16/07, Jeremy Adams wrote:
I'm building a website right now that will be a database of attractions in
the Carolina and Virginia area.
The idea is that attraction owners can submit data to the database and the
database will
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because $_REQUEST['var']
=
and isset thinks is set
I use this combination a lot:
if (
Robert Cummings wrote:
On Mon, 2007-04-16 at 10:49 -0400, tedd wrote:
At 8:41 AM -0500 4/16/07, Philip Thompson wrote:
On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote:
Otto Wyss wrote:
Tijnema ! wrote:
*ROFLMFAO*...Did you actually try google for json.php?
Second result:
On 4/16/07, Ford, Mike [EMAIL PROTECTED] wrote:
On 14 April 2007 13:16, Afan Pasalic wrote:
Tijnema ! wrote:
On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote:
function value2var($array, $print=0)
{
foreach ($_POST as $key = $value)
I think you should change above line to :
On 4/16/07, Jochem Maas [EMAIL PROTECTED] wrote:
Otto Wyss wrote:
Tijnema ! wrote:
*ROFLMFAO*...Did you actually try google for json.php?
Second result:
http://mike.teczno.com/JSON/JSON.phps
This doesn't have a json_encode but needs a $json object which then
could be used as
Robert Cummings wrote:
On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set.
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because $_REQUEST['var'] =
and isset thinks is set
I
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because
$_REQUEST['var'] =
and isset
any reason why this should be?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because
$_REQUEST['var'] =
that was actually my point.
:)
-afan
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it
Provide some code...?
Has anyone created that web 2.0 shiny floor effect with the GD
Library?
I have seen it dynamically created by passing variables into a Flash
movie. Has this been done with GD?
many thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because $_REQUEST['var']
=
and isset thinks is set
I use this combination a
On Apr 16, 2007, at 11:27 AM, Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because $_REQUEST
['var'] =
[snip]
web 2.0
[/snip]
There is a new web? Do you have an example of the shiny floor? Does it
look like the one in my kitchen or one of those old Java water effects?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because
On 16 April 2007 16:18, Tijnema ! wrote:
On 4/16/07, Ford, Mike [EMAIL PROTECTED] wrote:
On 14 April 2007 13:16, Afan Pasalic wrote:
Tijnema ! wrote:
On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote:
function value2var($array, $print=0)
{
foreach ($_POST as $key =
Jim Lucas wrote:
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because
Here is an example of a 'Shiny Floor' effect (dynamically generated
with flash).
http://alistapart.com/d/semanticflash/shiny/
look like the one in my kitchen or one of those old Java water
effects?
Personally, I prefer the Quicktime 'Fire' effect.
As to the effect itself, I wanted to see
-Message d'origine-
De : tedd [mailto:[EMAIL PROTECTED]
Envoyé : lundi 16 avril 2007 15:59
À : Jeremy Adams
Cc : php-general@lists.php.net
Objet : Re: [PHP] auto page generation
At 1:31 AM -0400 4/16/07, Jeremy Adams wrote:
I'm building a website right now that will be a
[snip]
Here is an example of a 'Shiny Floor' effect (dynamically generated
with flash).
http://alistapart.com/d/semanticflash/shiny/
[/snip]
Ah, so it really isn't Web 2.0, it is just a neat graphics effect.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Graham Anderson wrote:
Has anyone created that web 2.0 shiny floor effect with the GD Library?
I have seen it dynamically created by passing variables into a Flash
movie. Has this been done with GD?
http://reflection.corephp.co.uk
Cheers,
Rich
--
Zend Certified Engineer
On 4/16/07, Ford, Mike [EMAIL PROTECTED] wrote:
On 16 April 2007 16:18, Tijnema ! wrote:
On 4/16/07, Ford, Mike [EMAIL PROTECTED] wrote:
On 14 April 2007 13:16, Afan Pasalic wrote:
Tijnema ! wrote:
On 4/14/07, Afan Pasalic [EMAIL PROTECTED] wrote:
function value2var($array,
Stut wrote:
Jim Lucas wrote:
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set.
On Mon, 2007-04-16 at 18:16 +0100, Stut wrote:
Jim Lucas wrote:
Stut wrote:
tedd wrote:
At 4:08 PM +0100 4/16/07, Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Many Thanks :)
That would be it.
On Apr 16, 2007, at 10:25 AM, Richard Davey wrote:
Graham Anderson wrote:
Has anyone created that web 2.0 shiny floor effect with the GD
Library?
I have seen it dynamically created by passing variables into a
Flash movie. Has this been done with GD?
...
You could use AJAX to get things from/to PHP, but why should
you? You can use session within javascript too i believe.
Tijnema
ps. Maybe you could also use AJAX instead of submitting forms the
whole time.
...
Really, it's not that hard to use AJAX. You might want to
tim says:
forwarding to list as was sent to me directly:
Thanks everyone, I'll look into all of this. I'm trying to learn all of
this since I'm starting school next semester for Computer programming and am
trying to get some understanding of the concepts by building web pages.
If anyone
My first guess would be to make sure that the version of PHP that you
are running from CLI is the same as the one running as an apache module,
and that they are configured the same. When running the CLI, do an
?php phpinfo(); ?
And compare the output with what you get from doing the same thing
ok I have a page that calls my my functions, basically a 6 step signup. All
the steps look like this
function step_one() {
$_SESSION['property_id'] =$_POST['property_id'];
$property_id = $_POST['property_id'];
$postcode= $_POST['postcode'];
$query = INSERT INTO properties (property_id,
-Message d'origine-
De : Ross [mailto:[EMAIL PROTECTED]
Envoyé : lundi 16 avril 2007 19:45
À : php-general@lists.php.net
Objet : [PHP] Re: header('Location:') works locally but not remotely
ok I have a page that calls my my functions, basically a 6
step signup. All the steps
Afan Pasalic wrote:
hi,
this one I can't figure out:
I have to assign value of an array to variable named after key of the
array several times in my project to , e.g. after I submit a form with
personal info I have
$_POST['name'] = 'john doe';
$_POST['address'] = '123 main st.';
$_POST['city']
-Message d'origine-
De : Tim [mailto:[EMAIL PROTECTED]
Envoyé : lundi 16 avril 2007 19:54
À : 'Ross'; php-general@lists.php.net
Objet : RE: [PHP] Re: header('Location:') works locally but
not remotely
-Message d'origine-
De : Ross [mailto:[EMAIL PROTECTED]
On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote:
[snip]
Bleh, my mistake... I'm so adverse to empty() I forgot it doesn't
generate notices.
Lemme guess... You don't like empty() because it thinks null/0/'' is
empty? Or is there some other reason?
Agreed, it can be tricky if you
On Apr 16, 2007, at 12:44 PM, Ross wrote:
ok I have a page that calls my my functions, basically a 6 step
signup. All
the steps look like this
function step_one() {
$_SESSION['property_id'] =$_POST['property_id'];
$property_id = $_POST['property_id'];
$postcode= $_POST['postcode'];
Escape
On Mon, 2007-04-16 at 13:16 -0500, Edward Vermillion wrote:
On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote:
[snip]
Bleh, my mistake... I'm so adverse to empty() I forgot it doesn't
generate notices.
Strings only containing only spaces are not empty. Strings containing a
0 are
Hello,
on 04/16/2007 11:14 AM blackwater dev said the following:
I'm working on a site where I need to allow someone to send me a text
message and let the code take their message and respond or post it in the
db. Can someone point me in the right direction on how this is done?
You need
Hello,
on 04/16/2007 11:14 AM Tom Chubb said the following:
Dear list,
I'm currently reviewing a load of scripts to dynamically generate a form
for
a membership system.
I have designed a registration form, and once registered and logged in
there
are a load of different options relevant to
On Apr 16, 2007, at 1:28 PM, Robert Cummings wrote:
On Mon, 2007-04-16 at 13:16 -0500, Edward Vermillion wrote:
On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote:
[snip]
Bleh, my mistake... I'm so adverse to empty() I forgot it doesn't
generate notices.
Strings only containing only
On 4/16/07, Tim [EMAIL PROTECTED] wrote:
...
You could use AJAX to get things from/to PHP, but why should
you? You can use session within javascript too i believe.
Tijnema
ps. Maybe you could also use AJAX instead of submitting forms the
whole time.
...
Really, it's not that
Hello all,
I buid a patch for wrapper php fopen. In this patch I create a way for
the script access the filedescriptos opened by process. Ex:
php file.php 3file_in.txt 7file_out.txt
In this case the script can't read the filedescriptor 3 and 7. Not
have way for read or write in filedescriptor
On 4/16/07, Fernando chucre [EMAIL PROTECTED] wrote:
Hello all,
I buid a patch for wrapper php fopen. In this patch I create a way for
the script access the filedescriptos opened by process. Ex:
php file.php 3file_in.txt 7file_out.txt
In this case the script can't read the filedescriptor 3
Fernando chucre wrote:
Hello all,
I buid a patch for wrapper php fopen. In this patch I create a way for
the script access the filedescriptos opened by process. Ex:
php file.php 3file_in.txt 7file_out.txt
In this case the script can't read the filedescriptor 3 and 7. Not
have way for
On 4/16/07, Jochem Maas [EMAIL PROTECTED] wrote:
Richard Lynch wrote:
On Wed, April 11, 2007 9:00 pm, Jochem Maas wrote:
[PS - I've the pleasure of listening to a colleague do a manual
install
of Vista over an existing copy of XP and then get the really tricky
stuff
like the soundcard to
Robert Cummings wrote:
On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote:
Stut wrote:
Jim Lucas wrote:
Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set.
On Mon, April 16, 2007 11:16 am, Ross wrote:
any reason why this should be?
Things that could go wrong:
1. output_buffering can make header work when it shouldn't because
it will buffer HTML (or other) output and then it works
2. Location: URLs are supposed to be full-blown URLs. Maybe it
On Mon, April 16, 2007 9:21 am, Leo Jokinen wrote:
Also, phpinfo() won't say nothing that module ibm_db2 is in use
Did you re-start Apache?
Actually, Windows being Windows, just re-boot the dang thing...
You should be used to that. :-)
Is the php.ini file named in phpinfo() the one you are
Hi,
I am tring to use curl to access, via POST, a remote 'service'.I've
managed to test it fine but when I use real data to feed the curl it gives
me strange results.
When I check the logs of the remote web server one thing that alarms me is
that with test data I see
A.B.C.D - -
On Mon, April 16, 2007 9:14 am, blackwater dev wrote:
I'm working on a site where I need to allow someone to send me a text
message and let the code take their message and respond or post it in
the
db. Can someone point me in the right direction on how this is done?
You mean like a cellphone
On Mon, April 16, 2007 12:43 am, Richard Kurth wrote:
I am trying to write a import script for loading data into an existing
mysql
table. I want to show the import data on the screen and let the user
select
the column number to go with which mysql field. Now some of the fields
are
mandatory
HEAD is just like GET, only it gets just the headers (hence the name)
usually to see if the document has changed according to LastModified:
before doing a full-blown GET.
There shouldn't be a HEAD done before a POST...
Are you sure you are doing a CURLOPT_POST and not CURLOPT_GET...?
On Mon,
On Mon, April 16, 2007 12:31 am, Jeremy Adams wrote:
I'm building a website right now that will be a database of
attractions in
the Carolina and Virginia area.
The idea is that attraction owners can submit data to the database and
the
database will automatically generate a page containing
On Sun, April 15, 2007 2:20 pm, Otto Wyss wrote:
I want to sort directories according there modification time and
thought
accociative arrays would be perfect. But when I add an element like
$dirs = array (filemtime($d) = $d)
the previous ones are lost. I tried array_push but that doesn't
See PHP manual section titled Handling File Uploads
On Sun, April 15, 2007 1:56 pm, Joker7 wrote:
I have said I would host a couple of friends CV's as a web page,here's
the
situation I'd like to set it up so that it can updated it via a simple
form.I've googled the subject a fair bit and
On Sun, April 15, 2007 4:15 am, Ross wrote:
I am creating a single user secure login based on this:
http://www.phpnoise.com/tutorials/26/1
For just one user, I'd just tossing in an .htaccess and .htpasswd
file, personally, and not bother with page after page of PHP.
Can anyone see any
http://php.net/preg_replace_all
And be sure to use Ungreedy flag to your pattern:
/pattern/U
On Sat, April 14, 2007 11:22 pm, Travis Moore wrote:
Okay, so what I have is a BB code type of thing for a CMS, which I for
obvious reasons can't allow HTML.
Here's the snippet of my function:
On Sat, April 14, 2007 8:36 pm, Richard Kurth wrote:
What do you do when isset does not work? If I send data in a
$_REQUEST['var'] like
if (isset($_REQUEST['var'])) {
}
Put var has no data it still says it is set. Because $_REQUEST['var']
=
and isset thinks is set
It *is* set.
It just
On Sun, April 15, 2007 12:07 pm, [EMAIL PROTECTED] wrote:
I have E_NOTICE turned off. :)
Your first mistake.
:-)
E_NOTICE on is a royal pain at first, but will catch bugs for you, and
save you development time in the long run.
Turn it on for your next new project and try it.
--
Some people
-Message d'origine-
De : Robert Cummings [mailto:[EMAIL PROTECTED]
Envoyé : lundi 16 avril 2007 20:28
À : Edward Vermillion
Cc : php Lists
Objet : Re: [PHP] isset
On Mon, 2007-04-16 at 13:16 -0500, Edward Vermillion wrote:
On Apr 16, 2007, at 12:30 PM, Robert Cummings wrote:
On Mon, April 16, 2007 11:12 am, tedd wrote:
I've been accuse of that too, but what's your solution?
*MY* solution:
Don't use empty because its behaviour changed wrt 0 in various
versions, so it's just gonna bite you in the butt like it did me. :-)
I generally do this basic algorithm:
#1
Use
On Mon, April 16, 2007 5:35 pm, Tim Earl wrote:
What about in the following context?
$arr = array();
If (!empty($arr)) { }
This is where i have found it to be the most usefull...
If I'm already certain that it's an array, I just use 'count' personally.
'empty' takes a mixed data type, and
On Mon, April 16, 2007 11:18 am, Jim Lucas wrote:
these two lines are not the same infact, with the first, you will not
get a E_NOTICE warning, but
with the second you will.
I dunno what you are thinking of, but the manual says:
empty() is the opposite of (boolean) var, except that no warning
On Mon, April 16, 2007 12:06 pm, Graham Anderson wrote:
Has anyone created that web 2.0 shiny floor effect with the GD
Library?
I have seen it dynamically created by passing variables into a Flash
movie. Has this been done with GD?
I think you're going to have to provide some sample images
On Mon, April 16, 2007 12:14 pm, Jay Blanchard wrote:
[snip]
web 2.0
[/snip]
There is a new web? Do you have an example of the shiny floor? Does it
look like the one in my kitchen or one of those old Java water
effects?
Actually, I just saw a comment on some blog that Web 2.0 is already
Richard Lynch wrote:
On Mon, April 16, 2007 5:35 pm, Tim Earl wrote:
What about in the following context?
$arr = array();
If (!empty($arr)) { }
This is where i have found it to be the most usefull...
If I'm already certain that it's an array, I just use 'count' personally.
'empty'
On Sat, April 14, 2007 10:47 am, tedd wrote:
At 4:56 PM -0500 4/13/07, Richard Lynch wrote:
Put the files outside the webtree, and have a PHP script that
controls
access and is your gate-keeper.
Richard:
How secure is this:
I can't answer that question definitely just looking from the
Short-term, you can toss an @ in front of pg_eonnect.
Long-term:
http://php.net/set_error_handler
Also check out ini_set for error_log and friends.
After you've done it the Right Way, get rid of the @
On Sat, April 14, 2007 8:44 am, Alain Roger wrote:
Hi,
Today i discovered that when my host
On Sat, April 14, 2007 12:12 pm, Tijnema ! wrote:
try putting an @ sign before this line. something like this:
@$conn = pg_connect($conn_string);
According to the manual:
http://www.php.net/manual/en/language.operators.errorcontrol.php
the @ should be placed before the function, so like
On Sat, April 14, 2007 3:55 am, Merlin wrote:
I am moving to a new box and want to install php with pdflib again.
After configure I get an error saying:
pdflib.h not found! Check the path passed to --with-pdflib
The path is just fine:
'--with-pdflib=/usr/local/lib'
configure needs to find
On Sat, April 14, 2007 3:11 am, Otto Wyss wrote:
I've seen a json.php file somewhere in a project for cases where the
json module isn't installed (e.g. PHP4), yet I can't find that project
again. Is there an official or unofficial download site for json.php?
Why isn't this available in the
On Mon, April 16, 2007 9:33 am, Roman Neuhauser wrote:
# [EMAIL PROTECTED] / 2007-04-16 14:03:55 +0200:
Jochem Maas wrote:
that's going to make it completely impossible to use then isn't it.
no way you could possibly wrap the class/objects functionality in a
wrapper
function.
At the
I've been using empty() for about 5 years, obeying the rules for empty() in the
php manual
Appendix P. PHP type comparison tables and have never seen it generate any
type of error message.
If you guys know of at least one exception, please clue us in on it.
Jim Lucas wrote:
Stut wrote:
On Mon, April 16, 2007 10:20 am, Tijnema ! wrote:
And btw, I think it's better not to create a new link to the class
each time the function is called, but just use ::
if (!function_exists('json_encode')) {
function json_encode($data) {
return
On Fri, April 13, 2007 8:02 pm, Børge Holen wrote:
Before mr lynch starts beating up those already dead and probably long
since
burried horses...
Images in a database!
Feh.
Read the archives.
See I was just wondering, and that at times leads to late nights
I used to read the images from
On Mon, April 16, 2007 6:10 pm, Jochem Maas wrote:
if I know it's an array I'll definitely use empty() over count()
count() needs to actually count the items where as empty() can return
false
as soon as it finds a singel element ... maybe I'm mistaken - if so
please
put me right.
1 - 100 of 110 matches
Mail list logo