[PHP] TEST ONLY

2011-08-18 Thread Anders Norrbring
Sorry, but I've had e-mail problems with lists, so this is just a test. Please just disregard it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

SV: [PHP] URL data decoding problem

2009-04-21 Thread Anders Norrbring
> On Tue, 2009-04-21 at 08:39 +0200, Anders Norrbring wrote: > > I'm working on a PayPal IPN module, and PayPal returns a lot of data > in a > > GET call. > > The problem is that international characters entered by a user on the > PayPal > > site gets en

[PHP] URL data decoding problem

2009-04-20 Thread Anders Norrbring
I'm working on a PayPal IPN module, and PayPal returns a lot of data in a GET call. The problem is that international characters entered by a user on the PayPal site gets encoded really weird, and I don't see an obvious way to decode them, can someone please assist? My website is running utf-8 all

[PHP] php5-mhash disabled...

2009-04-02 Thread Anders Norrbring
I just saw that mhash is disabled in the spec file for php5 if SUSE version is 11.0 or higher. Simple question, does it do any harm? I know it's been deprecated in favor for hash, but I have quite a few apps using mhash still, so if it doesn't do any harm I thought I'd continue using it until all

SV: SV: [PHP] Sending files via POST

2009-01-03 Thread Anders Norrbring
> Nathan Rixham's original email. Hope it helps! > > On Thu, Jan 1, 2009 at 09:35, Nathan Rixham wrote: > > > > after having a flick through the source it looks like a limitation of > http > > request; > > > http://pear.php.net/package/HTTP_Request/docs/latest/__filesource/fsour > ce_HTTP_Re

SV: [PHP] Sending files via POST

2009-01-02 Thread Anders Norrbring
> On Fri, Jan 2, 2009 at 14:14, Anders Norrbring > wrote: > > *bump* > > Please don't "bump" threads, Anders. This is not a traditional > web-based user forum. You've provided no additional data, so there is > no need to bring this thread up ag

SV: [PHP] Sending files via POST

2009-01-02 Thread Anders Norrbring
*bump* > > > I'm a bit stuck.. I'm using the PEAR http_Request to send files and > > data as > > > HTTP POST, which is working fine if I in fact have the files on > disk > > on the > > > server. Just using the method addFile.. > > > > Okay > > > > > But what if the file data is only in a v

SV: [PHP] Sending files via POST

2009-01-01 Thread Anders Norrbring
> On Thu, Jan 1, 2009 at 02:35, Anders Norrbring > wrote: > > I'm a bit stuck.. I'm using the PEAR http_Request to send files and > data as > > HTTP POST, which is working fine if I in fact have the files on disk > on the > > server. Just using the metho

[PHP] Sending files via POST

2008-12-31 Thread Anders Norrbring
I'm a bit stuck.. I'm using the PEAR http_Request to send files and data as HTTP POST, which is working fine if I in fact have the files on disk on the server. Just using the method addFile.. But what if the file data is only in a variable? It feels like overkill to first save to disk, and then re

SV: SV: [PHP] Round to a given value?

2008-12-26 Thread Anders Norrbring
> Anders Norrbring wrote: > >>>> On Wed, 2008-12-24 at 20:38 +0100, Anders Norrbring wrote: > >>>>> Rounding an integer to the closest divisor by ten is easy with > >>>> round() and a > >>>>> negative precision, but

SV: [PHP] Round to a given value?

2008-12-25 Thread Anders Norrbring
> > > On Wed, 2008-12-24 at 20:38 +0100, Anders Norrbring wrote: > > > > Rounding an integer to the closest divisor by ten is easy with > > > round() and a > > > > negative precision, but I turn out to be lost if I want to round > to > > a &

SV: [PHP] Round to a given value?

2008-12-25 Thread Anders Norrbring
> > On Wed, 2008-12-24 at 20:38 +0100, Anders Norrbring wrote: > > > Rounding an integer to the closest divisor by ten is easy with > > round() and a > > > negative precision, but I turn out to be lost if I want to round to > a > > given > > > nu

SV: [PHP] Round to a given value?

2008-12-24 Thread Anders Norrbring
> On Wed, 2008-12-24 at 20:38 +0100, Anders Norrbring wrote: > > Rounding an integer to the closest divisor by ten is easy with > round() and a > > negative precision, but I turn out to be lost if I want to round to a > given > > number.. > > > > Example, ro

[PHP] Round to a given value?

2008-12-24 Thread Anders Norrbring
Rounding an integer to the closest divisor by ten is easy with round() and a negative precision, but I turn out to be lost if I want to round to a given number.. Example, round to the closest 5000, or closest 400? Any great ideas? Thanks, and merry x-mas! Anders. -- PHP General Mailing List (

SV: [PHP] Variable name for constants?

2008-12-11 Thread Anders Norrbring
> ... and in that way, you can create the name of the constant as you > please: > > $VAR_IMG = 'HOME'; > define('IMG_HOME', 'pic.jpg'); > echo(constant('IMG_'.$VAR_IMG)); > > SanTa > > - Original Message - > From: "clive" <[EMAIL PROTECTED]> > To: "PHP LIST" > Sent: Thursday, December 1

SV: [PHP] Variable name for constants?

2008-12-11 Thread Anders Norrbring
> > I dont think you can do that with a constant, but you can do this a > > normal variable: > > > > I stand under correction form my previous email, it can be done: > > define('TEST', 'the value of constant TEST'); > > $var= 'TEST'; > > echo constant($var); This may be too early in the morn

[PHP] Variable name for constants?

2008-12-11 Thread Anders Norrbring
I've been experimenting with having a varaible constant name, but failed miserably... Can I please have a pointer? What I'm trying to do is something like this: $name = "home"; Then read the constant IMG_HOME, like IMG_$name, I'm not sure I make myself understood, but I hope so.. Anders. --

SV: [PHP] Problems with images..

2008-11-03 Thread Anders Norrbring
> Anders Norrbring wrote: > > > I've been staring myself blind, so now I don't get anywhere, please > do > > advice.. > > > > I have a web page printed with PHP, in a table I need to display > > images that are stored in a SQL DB. > > Getti

SV: [PHP] Problems with images..

2008-11-03 Thread Anders Norrbring
> > I've been staring myself blind, so now I don't get anywhere, please > do > > advice.. > > > > I have a web page printed with PHP, in a table I need to display > images > > that > > are stored in a SQL DB. > > Getting the images into variables isn't an issue at all, but how do I > > output > > i

[PHP] Problems with images..

2008-11-03 Thread Anders Norrbring
I've been staring myself blind, so now I don't get anywhere, please do advice.. I have a web page printed with PHP, in a table I need to display images that are stored in a SQL DB. Getting the images into variables isn't an issue at all, but how do I output it? This is what I want to accomplish:

Re: [PHP] How to set sending e-mail address?

2008-09-03 Thread Anders Norrbring
r I'd like to set it. Anders On Wed, Sep 3, 2008 at 10:53 PM, Anders Norrbring <[EMAIL PROTECTED]> wrote: I'm trying to figure out how to set the sending address when sending e-mail from PHP, but it doesn't seem like I'm having much success.. When I look in the m

[PHP] How to set sending e-mail address?

2008-09-03 Thread Anders Norrbring
I'm trying to figure out how to set the sending address when sending e-mail from PHP, but it doesn't seem like I'm having much success.. When I look in the mail queue, I always see '[EMAIL PROTECTED]' as the origin (the web server user). In my sending routine I set headers like this: $hdrs =

SV: [PHP] Re: Buffering problem

2008-08-16 Thread Anders Norrbring
> Anders Norrbring a écrit : > > I'm running out of ideas to where to look for this, so can you please > give > > me some pointers? > >I guess it is that you're seeking for : > <http://fr.php.net/manual/en/outcontrol.configuration.php#ini.implicit- >

[PHP] Buffering problem

2008-08-15 Thread Anders Norrbring
I'm trying to make php output things sequentially as they're printed/echoed.. No luck. It's buffered to the end of the script, and then it comes on to screen. This is while running Apache2, in a cli session it works fine. The script does *not* have any buffering commands at all. The web server doe

SV: SV: SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-10 Thread Anders Norrbring
> > -Ursprungligt meddelande- > > Från: Jim Lucas [mailto:[EMAIL PROTECTED] > > Skickat: den 10 augusti 2008 10:56 > > Till: Anders Norrbring > > Kopia: 'Per Jessen'; php-general@lists.php.net > > Ämne: Re: SV: SV: [PHP] Send a cookie with a fi

SV: SV: SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-10 Thread Anders Norrbring
> -Ursprungligt meddelande- > Från: Jim Lucas [mailto:[EMAIL PROTECTED] > Skickat: den 10 augusti 2008 10:56 > Till: Anders Norrbring > Kopia: 'Per Jessen'; php-general@lists.php.net > Ämne: Re: SV: SV: [PHP] Send a cookie with a file_get_contents( ) >

SV: SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-10 Thread Anders Norrbring
> Anders Norrbring wrote: > > > Thanks Per, > > I think so too, I glanced it, but unfortunately I have no idea > > whatsoever about *how* to do it... So, if anyone have suggestions, or > > concrete examples, please do share! > > > > Anders. > >

SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-09 Thread Anders Norrbring
> Anders Norrbring wrote: > > > I have a web site where I use cookies to store logins, and also > > session cookies for users logged in. > > Is there a way for me to use file_get_contents() to pull content > which > > are "behind" the login? > > I

[PHP] Send a cookie with a file_get_contents( ) request?

2008-08-09 Thread Anders Norrbring
I have a web site where I use cookies to store logins, and also session cookies for users logged in. Is there a way for me to use file_get_contents() to pull content which are "behind" the login? In other words, I want to use my own log-in cookie and somehow send it with the file_get_contents reque

[PHP] PHP standard vs. Zend Core

2007-10-31 Thread Anders Norrbring
I'm a bit curious about what the general differences are from the applications point of view, and in consequence with that, the users, between running the standard PHP 5.2.4 distribution and the Zend Core 2.5 distribution? Any special pros and cons on each distribution? Anders. -- PHP Genera

Re: [PHP] Detect local or remote call?

2007-10-11 Thread Anders Norrbring
Nathan Nobbe skrev: On 10/11/07, *Marcus Mueller* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Anders Norrbring wrote: > Is there a good way to detect in a script if it's called locally from > command line, or via a remote browser? Check o

[PHP] Detect local or remote call?

2007-10-11 Thread Anders Norrbring
Is there a good way to detect in a script if it's called locally from command line, or via a remote browser? Anders. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About UTF-8 / ANSI

2007-08-14 Thread Anders Norrbring
Kelvin Park skrev: I heard from a person that he was having some problem with uploading and displaying a web site on an ordinary web hosting server because the files weren't saved as UTF-8 charset (instead they were saved in iso-8859-1). Could saving HTML files in a different charset (UTF-8 o

Re: [PHP] which CMS are you using and why?

2007-04-08 Thread Anders Norrbring
nguages as well. Find it on http://e107.org -- Anders Norrbring Norrbring Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Anders Norrbring skrev: Anders Norrbring skrev: Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt th

Re: [PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
Anders Norrbring skrev: Hiya all! I'm trying to set up PHP 5.1 with a Win 2003 server running IIS6, but all I can out of it is a page saying: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I doubt this is anything new, but I can&#

[PHP] Problems with IIS6

2006-02-13 Thread Anders Norrbring
lution for it.. Any ideas, please? -- Anders Norrbring Norrbring Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Anders Norrbring
limits etc for the running app when testing. -- Anders Norrbring Norrbring Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array sizes?

2006-02-08 Thread Anders Norrbring
Maybe I'm just blind, but I can't find any way to count an array size in bytes? I have a quite big array with multiple data formats in it, and I would like to know how big it is in bytes... -- Anders Norrbring -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Filtering URLs problem..

2005-12-20 Thread Anders Norrbring
On 2005-12-20 16:16 Silvio Porcellana [tradeOver] wrote: Anders Norrbring wrote: I'm writing a filter/parsing function for texts entered by users, and I've run into a problem... What I'm trying to do is to parse URLs of different sorts, ftp, http, mms, irc etc and format them

[PHP] Filtering URLs problem..

2005-12-20 Thread Anders Norrbring
ered a complete link.. In short: http://www.server.tld/page.html should be converted to: href='http://www.server.tld/page.html'>http://www.server.tld/page.html That part works fine, but if the user enters: click here it all becomes a mess... Can somebody please make a suggestion o

[PHP] Re: R: [PHP] Performance question

2005-12-05 Thread Anders Norrbring
rsona a cui il presente messaggio è destinato, La invito ad eliminarlo dal Suo Sistema ed a distruggere le varie copie o stampe, dandone gentilmente comunicazione. Ogni utilizzo improprio è contrario ai principi del D.lgs 196/03 e alla legislazione Europea (Direttiva 2002/58/CE). -Messaggio

[PHP] Performance question

2005-12-04 Thread Anders Norrbring
more php code In both cases, some processing is done, not that 'echo' uses a lot of cpu time, but still... On the other hand, there are more jumps in and out for the interpreter in the first example... I'd love some thoughts on this. -- Anders Norrbring Norrbring Consulting -- P

Re: [PHP] Trying to send data via POST

2005-11-22 Thread Anders Norrbring
suggested cURL, it works perfectly fine, and was really easy to implement! -- Anders Norrbring Norrbring Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trying to send data via POST

2005-11-21 Thread Anders Norrbring
I'm trying to set up a script that will post a picture file to a hosting site. Normally, the site accepts uploads via a web form using a POST action. How can I make this file transfer to the host so it'll think it's posted by it's own web form? I just don't get how t

[PHP] Tools for programming?

2005-09-16 Thread Anders Norrbring
ave a framework that more or less allows "paint the picture" and it generates the appropriate code. Are there such tools out there? -- Anders Norrbring Norrbring Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Junk characters in e-mail

2004-04-15 Thread Anders Norrbring
s added to the mail are added from php variables. Every php file is UTF-8 encoded, and the scripts make use of mail() function. I can send you a status page from my php and an example of the script in question if you have the time to look into it. Regards, Anders Norrbring > > Hi! &

RE: [PHP] Junk characters in e-mail

2004-04-14 Thread Anders Norrbring
> [snip] > First of all, I have no idea if my problem is php or Postfix related, thus > the cross-post. > > Every e-mail sent out from my server by a php script ends with a string of > junk characters, they're not the same from different scripts and of course > not to be found anywhere in the code

[PHP] Junk characters in e-mail

2004-04-14 Thread Anders Norrbring
ample: Thank you! 4 ^m NÉ*Nj j yuÉ8=j{*Ì As of what I know, every file, including the html and php files are UTF-8 encoded to be able to cope with Swedish characters, but the Swedish characters haven't been present in the e-mails I've tested with so far. Any ideas? Thanks, Anders No