> application/x-pdf, unsure) for PDF files.
>>
>> --
>> Regards,
>> Nilesh Govindarajan
>> Facebook: http://www.facebook.com/nilesh.gr
>> Twitter: http://twitter.com/nileshgr
>> Website: http://www.itech7.com
>> VPS Hosting: http://www.itec
2010/7/27 Dušan Novaković :
> Hello Peter,
>
> I can't use files from filesystem. Let's say that they are not on the
> some mashine where is application that has to show files :-) So it has
> to be in exact order as I wrote :-(
>
That normally doesn't stop people
;>
>>
>>
>>
>> --
>> mob: + 46 70 044 9432
>> web: http://novakovicdusan.com
>>
>> Please consider the environment before printing this email.
>>
>
> Are you sure that you need Content-Disposition? Try removing that. I
> think that's used only in emails (Correct me if I'm wrong).
You're wrong. Content-Disposition tells the browser how to handle the
content - in this case, the browser will download the file instead of
displaying it.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 29 July 2010 15:43, Nathan Rixham wrote:
> have you sent an email to ?
I love how you guys are torturing the poor bastard *after* he made it
clear he's tried *in several ways* to unsubscribe and *really* doesn't
need more advice but a list admin. Made me chuckle :)
Regards
Pe
On 29 July 2010 07:36, Nathan Rixham wrote:
> Hi All,
>
> I find myself wondering about the state of the PHP community (and related
> community with a PHP focus), so, here's a bunch of questions - feel free to
> answer none to all of them, on list or off, or add more of your own - this
> isn't for
gt;>
>>
>>
>
That's assuming you just want to call wpads. If you want to output the
return of wpads, stick echos in there.
And might I kindly ask of you to please read
http://dk2.php.net/manual/en/control-structures.if.php and
http://dk2.php.net/manual/en/language.basic-syntax.phpmode.php
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
work today?
Sounds like a roundabout way of saying "You can only find run-time
errors (such as undefined functions) by actually running the script".
Could definitely need some clarification
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com
s
you have a lot less power, which you might forget). There's no
difference in performance, which leaves just one thing: personal
preference.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twi
you cannot use this security measure to lock out an
account.
> - Do you know/suggest a better way to solve this?
Velocity control, as stated.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://t
stLogin" counter against the account in the DB
> should be enough. If that exceeds your limit, then they can't login.
> They will have to re-authenticate in some other way. When that is
> successful, then the value can be cleared.
That allows locking out users at random by knowin
orlog.php
>
> Thanks, T
>
Xdebug formats errors, try installing that.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.n
it would take long.
>
> Granted, I'm not an encryption expert. I look forward to hearing more.
>
I'd love to see sources on how to bruteforce the entire keyspace for
3DES in under a few hours without knowing the three keys involved or
the IV. Googling triple des gives you
ht
r string) but even weaker -
keyspace of 16^24 vs. 128^16.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubs
uot;
>
> I am thinking that you can not do this, but was wondering if there was
> something like that.
> Thanks,
No, you can't.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitt
image dimensions from the file, for
instance, then it's likely not an image.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.p
I'm guessing you may have been referring to something like:
http://kestas.kuliukas.com/JavaScriptImage/ - this actually does seem
to be a valid threat to IE6 and would go undetected by the measures
proposed. Checking an image for
2.php.net/manual/en/function.getimagesize.php for this
myself, as there isn't a lot of overhead with that function - I don't
know if Imagick would be faster though, you'd have to check.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.
On 17 August 2010 22:17, tedd wrote:
> Hi gang:
>
> The subject line says it all.
>
> How secure is a .htaccess file to store passwords and other sensitive stuff?
>
> Can a .htaccess file be viewed remotely?
No, Apache won't serve it.
Regards
Peter
--
WWW: http://
On 17 August 2010 22:35, Robert Cummings wrote:
>
>
> On 10-08-17 04:23 PM, Peter Lind wrote:
>>
>> On 17 August 2010 22:17, tedd wrote:
>>>
>>> Hi gang:
>>>
>>> The subject line says it all.
>>>
>>> How secure is a .ht
ironment. Thus far, it appears that .htaccess files are
> the safest bet, but I understand that nothing is certain -- every method has
> risks.
Try accessing a .htaccess file that you have created - if you get a
403 or anything to that effect, you're safe. You might also want to
try t
7;d say.
> Urpmi was used to install so the php version installed is not known.
> How to obtain this please
Check with php -i from the command line or a script containing
phpinfo(); requested through the browser.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: htt
mission occurs. However, the html file containing the php script
> remains unchanged.
>
> The instruction:
>
> ...
>
> ...
>
> Does not show the version of php.
>
Your webserver might not be configured to process php files - which
server are you using?
Regards
Pe
ate on a byte, a word, a doubleword, etc (before any
nitpickers interrupt: sure, they can, but most operations don't).
Hence, you're not doing a not operation on just "10", you're doing it
on "0010". And as you are operating on a
signed int, you'll get a
On 20 August 2010 17:41, Peter Lind wrote:
> On 20 August 2010 17:10, Andy McKenzie wrote:
>> Hey everyone,
>>
>> I'm really not sure what's going on here: basically, the bitwise
>> NOT operator seems to simply not work. Here's an example
hat that essentially does not touch upon whether or
not MD5 can be considered safe or not as a means to store password
information. The researchers have discovered ways of crafting inputs
to easily find colliding hashes - they have not discovered any easy
means to craft an input that will collide with
On 24 August 2010 16:25, Jan G.B. wrote:
> 2010/8/24 Bob McConnell :
>> From: Peter Lind
>>
>>> On 24 August 2010 15:43, Gary wrote:
>>>> Jan G.B. wrote:
>>>>
>>>>> The weakness of MD5 is mainly because MD5 collisions are possible.
Please stop arguing this pointless topic on the php mailing list.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To
then a framework might be better in this
> situation.
>
You could also argue that using a framework is more likely to promote
good habits, as there's a bigger chance you'll be forced down good
paths.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.link
omains not explicitly set. So no, you do not need to define every
single name as a DNS record.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http
ble to connect and communicate with the remote host, it would need to
know the name of the remote host. Hence, the local host already knows
the name and has no reason to ask the remote host for a name by which
to contact it.
That's what I get from your description of the problem. You probably
it.
> I will search more about it now, thanks.
>
For maintainability: 1 class, 1 file
For performance: all critical/core class in same file (i.e. the ones
you WILL load no matter what), the rest loaded as needed
It's a tradeoff. If you don't know which to pick, go with 1 class, 1 f
to add some something to the headers or pass it along in the body of
> the request itself.
>
+1. Let the requestion script send through identification/authentification.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfi
e the IP address will always
>> translate back to your website.
>
The HTTP protocol does not provide a domain among the request header
fields - you need to implement idenfication/authentication in a
different manner (preferably in a way that does not rely upon IP
addresses, seeing as that
ave's "look-up URL" for
> the url-confirmation file is hardwired to the Master address.
>
> 5. And lastly, all communication between both domains is done via https.
>
> Now, for the exception of both server's being hacked at the same time, what
> could go wrong?
;s explicitly stated that one server acts
as a client in trying to access a resource on another server. Could
you enlighten me as to where the domain name of a client is located in
the request header fields? Here's the RFC for HTTP 1.1
http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.3
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 30 August 2010 22:34, Paul M Foster wrote:
> On Mon, Aug 30, 2010 at 09:53:46PM +0200, Peter Lind wrote:
>
>> On 30 August 2010 21:32, Paul M Foster wrote:
>> > On Sun, Aug 29, 2010 at 06:04:23PM +0200, Per Jessen wrote:
>> >
>> >> Jason Pruim wr
I thought require_once meant it was in that file and
> anything pulled in later?
> Thanks.
> Dave.
The file is included properly, otherwise your script would halt.
You're likely looking at an issue of scope: the functions might be
included in a scope you don't expect them to be.
Re
hp has a require_once to file3.php
> but file3.php calls a function in file2.php
>
> answer would be to require_onec file2.php in file3.php
Which wouldn't do anything seeing as file2.php has already been
included by file1.php.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 2 September 2010 13:20, Jangita wrote:
> On 02/09/2010 12:59 p, Peter Lind wrote:
>>
>> Which wouldn't do anything seeing as file2.php has already been
>> included by file1.php.
>
> Amazing! I didn't think that once you include a file; any other file
On 15 September 2010 14:46, Peter van der Does wrote:
> Hi,
>
> How do you people store data that doesn't change, an example of this
> would be the version number of your software. You might want to use it
> through out your program but how to you store it?
>
> As
_emp_info = hitMSSQL($q1,"_sql","database","table","password",1);
>
> $_SESSION['SSN'] = $rs_emp_info->fields("emp_ssn");
>
> $_SESSION['CostCenter'] = $rs_emp_info->fields("emp_costcenter");
>
blem is not database related. What
exactly happens between the two pages and on the second page?
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (h
7;type']?) and where: on the form page or on the
>> validation page? I want to be able to tell the users that their file
>> doesn't have the right format. Thank you very much for your help!
>>
You need to use something like http://www.fpdf.org/ to try and
actually ope
watermark, then combine
> the two routines. I'll leave that to you.
>
You're generating the thumbnail on every request. Just generate it
once and serve the thumbnail as a file (there's no reason why you
would need to invoke php to show a thumbnail of an image).
Regards
Pete
having ugly output code, but I'd
>>> > like to stop doing that. How do other people deal with this?
>>> >
>>> > Thanks,
>>> > Alex
>>>
>>> Alex
>>>
>>> Just add a \n at the end as
>>>
>>> echo
>
Seeing as all the "extra" stuff you need is just plain sql commands, I
don't see the problem as such. You just need to make sure access to
the tool is done right (i.e. a user that can create/destroy databases
needs to be aware of this and you need to restrict the access to those
s and say you didn't start programming in PHP but in
something else.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ewline functioning ? even print_r() output
> is not 'newlined' as it should be. Also note the \n is missing between the "
> " in the output text of the second test!
>
Are you outputting to browser or to command line? Browsers have a
habit of ignoring whites
perhaps there's a better way in the language to do what
you want done? That would normally be a much more productive and
intelligent response than either a) pressing on in the face of failure
or b) complaining about your specific needs and how the language fails
to meet them.
Regards
Peter
-
On 25 September 2010 00:11, Daniel Kolbo wrote:
> On 9/24/2010 8:35 AM, Peter Lind wrote:
>> On 24 September 2010 14:22, Bob McConnell wrote:
>>> From: David Hutto
>>>
>>>> On Fri, Sep 24, 2010 at 4:09 AM, Gary wrote:
>>>>> Daniel Kolbo w
On 24 September 2010 12:49, YAD(YetAnotherDavid) wrote:
> Peter Lind wrote:
>>
>> On 23 September 2010 21:47, YAD(YetAnotherDavid) wrote:
>>>
>>> This code is 95% cut and paste from the PHP manual examples -
>>> the Types/Strings/Heredocs section and t
nctionality (4.0 was released this year and has functionality that
definitely makes me consider taking it on).
As for whether .Net is a better library than the JVM, I wouldn't be
able to judge that.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com
On 1 October 2010 20:21, Per Jessen wrote:
> Peter Lind wrote:
>
>> C# has by now exceeded Java by quite a bit -
>
> I've been away from the Java "scene" since 2002 (when I worked for BEA
> deploying J2EE on Linux/390), but assuming you're talking
>
On 2 October 2010 11:05, Per Jessen wrote:
> Peter Lind wrote:
>
>> On 1 October 2010 20:21, Per Jessen wrote:
>>> Peter Lind wrote:
>>>
>>>> C# has by now exceeded Java by quite a bit -
>>>
>>> I've been away from the Java &quo
.0.0 is years old. B) your issue is with apache, not php - 403 is
a "you have no permission to see this".
Check permissions for the file you're trying to test, as well as for
the folder. Also, seeing as you're naming the file test.php, make sure
you're browsing for that file a
n the second it would be looking for a simple
>>> scaler called $arr, not the array value you wanted.
>>>
>> Ash:
>>
>> I understand what the {} does, but just like in HTML, it is more
> proper
>> to use lower case for the attributes/elements, and use
they follow that form, but I've certainly seen it a lot of
> places.
>
> -Alex
>
Xhtml documents are xml documents and thus must follow the specs for
XML. Specifically, the following:
http://www.w3.org/TR/2008/REC-xml-20081126/#NT-AttValue
Regards
Peter
--
WWW: plphp.dk /
Just out of curiosity: why were you told to switch off output buffering?
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld get duplicated a couple of times in some files.
>>
>> 3. Avoid the problem all together, use output buffering and completely
>> forget about separation between application and presentation.
>>
>> I hope I make sense.
>>
>> Any thoughts on these kinds of problems?
&g
ly the thread had ended there ...
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
behavior I described
> is due to something I don't understand about PHP, or to a bug. If it's
> something I don't understand, I want to understand it. If it's a bug,
> I want to report it.
It is not a bug - somewhere before the foreach loop you've got, a
On 23 October 2010 16:48, Jonathan Sachs <081...@jhsachs.com> wrote:
> On Sat, 23 Oct 2010 08:34:27 +0200, peter.e.l...@gmail.com (Peter
> Lind) wrote:
>
>>It is not a bug - somewhere before the foreach loop you've got, a
>>variable is being referenced, and that
You can check with function_exists to see if a function is already defined.
If not, create it.
Regards
Peter
On Nov 3, 2010 11:40 AM, "David Nelson" wrote:
> Hi Thijs, :-)
>
> On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink wrote:
>> As far as I know it is not possible
That's not going to happen. My point was you could check in the original
file if the function is defined and if not then define it.
On Nov 3, 2010 11:55 AM, "David Nelson" wrote:
> Hi Peter, :-)
>
> On Wed, Nov 3, 2010 at 18:44, Peter Lind wrote:
>> You can check wi
stem needs to be and what it needs to do. For smaller projects.
smarty or phptal will get in the way and will likely get very
annoying. For bigger projects they can be of great use.
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP Ge
On 9 November 2010 06:20, Paul M Foster wrote:
> On Mon, Nov 08, 2010 at 02:41:12PM -0700, Hansen, Mike wrote:
>
>> I really like the idea of using a templating engine. Which one do you
>> use? Why? For those that don't use templating engines, why don't you
>> use them?
>>
>
> Here's why I don't u
ype out and had no difference) - on 5.2.9
it works on all documents, returning the proper nodeValue.
Am I missing something basic?
TIA
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (http://www.php.net/)
To uns
een any updates to
the DOM* extensions that would explain the change in behaviour and
really find it weird - but, at least I found a solution to the
problems :)
Quick note, in case anyone has similar problems: make sure that the
data you feed into DOMDocument is UTF8 encoded
Regards
Peter
--
W
o do with a procedural autoloader.
Autoloading takes place if you try to instantiate an object of a class
that PHP doesn't know about (yet). There is no such thing for
functions. Either refactor your code so you don't have this problem
(The Way To Go [tm]) or make an extension. End of di
On 23 November 2010 20:52, Steve Staples wrote:
> tap tap tap... testing testing... 1, 2, 3
>
> Hello? No activity since yesterday at like 6pm EST... am i not
> getting messages, or has there not been any activity?
>
> Just curious... carry on about your business... :P
>
http://news.php.ne
On Saturday, November 27, 2010, Richard West wrote:
> Hey Tommy,
>
> I get the same when seting it to a_downloads=a_downloads+1
> It still increments by 2
> I've never run into this before.
> RD
>
>
> On Nov 26, 2010, at 11:45 PM, Tommy Pham wrote:
>
>>> -Original Message-
>>> From: Tamara
And what difference will that make if the document is requested twice with
every browser load?
On Nov 27, 2010 6:39 AM, "Richard West" wrote:
> I took that into consideration so I added the update at the very end of
document...
> Still the same,
> RD
>
>
>
>
> O
to me: connect to port 25 on the mail server
instead of going through sendmail. Plenty of good mail libraries out
there (swiftmailer, phpmailer come to mind).
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (h
e browser, it should take no more
> than 3 seconds for the browser's status to be 'Done', provided that the user
> isn't on some 56k modem connection ;).
Always use a cache. Not using a cache means you've misunderstood some
fundamental points.
Regards
Peter
--
ing cache is doing it wrong.
You shaving 10 secs off the request without cache is fine but you
should have brought it much further down with a cache. Waiting 20 secs
for the response is still useless.
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitte
On Sunday, 12 December 2010, Tommy Pham wrote:
>> -Original Message-
>> From: Peter Lind [mailto:peter.e.l...@gmail.com]
>> Sent: Sunday, December 12, 2010 1:18 AM
>> To: Tommy Pham
>> Cc: php-general List
>> Subject: Re: [PHP] ORM doctrine
>&
On Sunday, 12 December 2010, Tommy Pham wrote:
>> -Original Message-
>> From: Lester Caine [mailto:les...@lsces.co.uk]
>> Sent: Sunday, December 12, 2010 2:10 AM
>> To: php-general List
>> Subject: Re: [PHP] ORM doctrine
>>
>> Peter Lind wrote:
&g
On Sunday, 12 December 2010, Tommy Pham wrote:
>> -Original Message-
>> From: Lester Caine [mailto:les...@lsces.co.uk]
>> Sent: Sunday, December 12, 2010 2:10 AM
>> To: php-general List
>> Subject: Re: [PHP] ORM doctrine
>>
>> Peter Lind wrote:
&g
On Sunday, 12 December 2010, Lester Caine wrote:
> Peter Lind wrote:
>
> I may have misunderstood the topic, but a cache to me is more than
> just storing views. It's also the db cache, memcache, apc, etc. You
> have to think about how you use these - some of them can'
> $top = ($hits[0] + 1) * pow(10, strlen($hits) - 1);
> }
>
> Basically, add one to the first digit and make the rest of the digits 0.
> Depending on how you want to handle the cases ending in 0s, you may want an
> extra check in there.
>
> General disclaimer about co
pler and likely as safe or safer. I
wouldn't waste my time on trying to come up with very clever schemes
when tried and true technologies are out there.
> But before all that goes on, I have to decide what to do about leading
> and trailing spaces.
As has been noted a couple of times: tr
On 28 December 2010 22:06, Daniel Brown wrote:
> On Tue, Dec 28, 2010 at 16:05, Dotan Cohen wrote:
>>
>> Did you know that when you type 'brown1' we see it as **? Your
>> system does that automatically.
>
> That's how I see it, too. It took me fourteen years to realize
> that my password
1GB RAM in few minutes. BTW, gc_enabled() reports on.
>
> Thanks,
> Tommy
>
>
Are you storing or throwing away the passwords? Also, lots of code is
missing from that post, no idea if you've got a memory leak in the rest of
the code
Regards
Peter
On Jan 6, 2011 4:24 PM, "Sándor Tamás" wrote:
>
> In that case you should use include_once in every script. But if you are
absolutely sure that all scripts will be processed, you can include it only
in one of them, because PHP - in short terms - does a file include, so it
will look like as the in
&& pg_numrows($result))
{
echo pg_numrows($result).PHP_EOL;
echo pg_fetch_result($result, 0, 0).PHP_EOL;
)
?>
Tells me there that although the $result resource is valid, there are no rows
and therefore no result to fetch (PHP Warning: pg_fetch_result(): Unable to
igit.php
An important note:
This function expects a string to be useful, so for example passing in
an integer may not return the expected result. However, also note that
HTML forms will result in numeric strings and not integers. See also the
types section of the manual.
--
Jim
Integers can be n
I won't go Off Topic and suggest you try compiling
from
> source :-)
>
>
While you're busy being not off topic, perhaps it might be an idea to also
not point to a proper place for questions about debian tools to read chm
files? I'm sure there are plenty of resources like irc channels or such.
Regards
Peter
On Jan 11, 2011 4:32 PM, "Gary" wrote:
>
> Steve Staples wrote:
> > or the ($needle, $haystack) vs ($haystack, $needle)... i still get it
> > screwed up...
>
> Given that, for example, array_search and strstr take those arguments in
> different orders, that's not really surprising.
>
Something te
Heads up: jeg har flyttet projectpier over paa fastaval.dk domaenet -
det koerer nu under pp.fastaval.dk. Der er ogsaa sat redirects op paa
fastaval.plphp.dk saa man skulle ikke kunne komme til det gamle site
(og dermed ikke logge ind det forkerte sted).
--
WWW: plphp.dk / plind.dk
LinkedIn: pli
2011/1/12 Ashley Sheridan
> On Wed, 2011-01-12 at 23:14 +0100, Peter Lind wrote:
>
> jeg har flyttet projectpier over paa fastaval.dk domaenet -
> det koerer nu under pp.fastaval.dk. Der er ogsaa sat redirects op paa
> fastaval.plphp.dk saa man skulle ikke kunne komme til det g
et/>
Considering that you've used the PHP list for some very inane
questions yourself, perhaps you should keep the tone lighter and avoid
flaming people? Just a thought.
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n't need to parse docblocks or anything like
it).
regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> I did a quick search of the archives and found a couple elaborate things..
> but
> I'm looking for something simple. This job will have trusted users and
> the checker is more to help them catch mistakes when registering.
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
Probably not the solution you were looking for, but I've always found mail()
very unstable and I tend to use a mail library instead. Like phpmailer or
swiftmailer. Easier to configure and figure out problems with.
Regards
Peter
gt;
>
Strtotime can read a number of formats, but does (from experience) have
problems with some. It won't work with textual dates in anything but
English, far as I know.
Regards
Peter
hat makes it so much easier to find
> those invisible problems. I can't count how many times it has pointed
> right at a logic flaw in my code.
>
> Bob McConnell
Or go with the more likely candidate for a future html standard: html
5. Has the added benefit of easing you in to the ne
On 9 February 2011 17:22, Bob McConnell wrote:
> From: Peter Lind
>
>> On 9 February 2011 14:57, Bob McConnell wrote:
>>> From: Al
>>>
>>>> On 2/8/2011 4:58 PM, Donovan Brooke wrote:
>>>>> Hello,
>>>>>
>>>
How do I do it?
Ask google you should
Plenty of advice you'll find
we won't do your homework
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cluding defaults.
That said, if you're making use of optional parameters and need to
check if anything was passed in, you're almost certainly doing things
wrong.
Regards
Peter
--
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
--
PH
On 16 February 2011 21:45, Andre Polykanine wrote:
> Hello Peter,
>
> So is
> func_get_args()
> the unique way?
>
Not really sure what you mean by the unique way. Most things proposed
so far in the thread would be fine for most purposes, I'd say. If you
really need f
1101 - 1200 of 1885 matches
Mail list logo