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
> 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
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
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
> 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
> 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
*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
> 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
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
> 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
> > > 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
&
> > 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
> 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
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 (
> ... 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
> > 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
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.
--
> 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
> > 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
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:
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
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 =
> 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-
>
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
> > -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
> -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( )
>
> 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.
>
>
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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!
&
> [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
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
49 matches
Mail list logo