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
anywa
$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 cr
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
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
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
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 ad
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 $k
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
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?
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 switch
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 $json->encode(..
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 informati
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 are
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 form
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
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:
Command line o
# [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 fi
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 stuff
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 o
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 ( isset($_GET['somet
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://m
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 automat
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?
>> Secon
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 chang
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 a
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. Because
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
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 thi
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.ph
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
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'] = ""
a
[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. B
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)
> > > > > {
> > > > >
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
$_REQ
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 i
> -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
[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: http://www.php
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
http://www.corep
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
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. B
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
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 mi
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 wa
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
And compare the output with what you get from doing the same thing from
the web.
-L
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, postcode
> -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
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 PR
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 ju
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 conta
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 sev
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 releva
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 s
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.
...
> Real
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_out.txt
In this case the script can't read the filedescriptor 3 and 7. Not
have way for read or write in filedescriptor opends by prec
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_out.txt
In this case the script can't read the filedescriptor 3 and 7. Not
hav
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_out.txt
>
> In this case the script can't read the filedescriptor 3 and 7. Not
> have way for read o
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 so
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. Because
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 edi
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 - - [16/Apr/200
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 cellph
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
> man
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, Apr
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 containi
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 doe
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 a
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 p
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.
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 Cummin
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
Us
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,
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 warn
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 im
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 alre
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.
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
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 ho
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 li
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 f
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 th
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
>> >functio
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:
te
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 Services_JSON::encode($d
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
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 113 matches
Mail list logo