Merlin wrote:
I am wondering if I am opening a potential security risk by
including files on remote servers. I am doing an include
('http:/www.server.com/file.html') inside a php script of mine
to seperate content from function. Content is produced by a friend of
mine and
I do not want to gran
This is my code:
";
echo utf8_encode ($str);
?>
öüééééÉõõÕÕ
I tried all the ways:
and
etc.
The first echo... is not showed correctly.
The second (with the encoding function) works well.
In php.ini the default encoding is UFT-8. The webserver sends the correct
e
Is the file saved in UTF-8 encoding (the PHP script itself)?
Jasper
Andy wrote:
This is my code:
";
echo utf8_encode ($str);
?>
öüééééÉõõÕÕ
I tried all the ways:
and
etc.
The first echo... is not showed correctly.
The second (with the encoding function) work
No it was not. If I save it with UFT8 encoding it works well.
So, do I have to convert all the files to UTF8 encoding?
Is there an easy way to do that?
- Original Message -
From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]>
To: "Andy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>;
Sent: Fr
On 24/03/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> In incredibly ancient versions of PHP, you needed to have the:
>
> function foo () { ... };
>
> appear BEFORE you called it.
>
You still do in PHP5 if the function definition is in a conditional
block. Like his.
But apparently the script w
If you're on *nix:
man iconv
otherwise, I have no idea, sorry.
Jasper
Andy wrote:
No it was not. If I save it with UFT8 encoding it works well.
So, do I have to convert all the files to UTF8 encoding?
Is there an easy way to do that?
- Original Message - From: "Jasper Bryant-Greene"
Hi
This is my first question to these NGs, so please be gentle with me in any
replies :). I've crossposted it as I'm not sure which is the more appropriate
group.
I'm a relative newbie to PHP, and my Q in short is: is there an easy way to
manually change the arrangement of elements in an asso
Hi
I'm using php 4.3.11 on linux RH9.
I'd like to open a .Z archive with gzopen.
I looked at the options of gzopen, but I'm not sure there is a way to
specify the compression used by compress/uncompress.
Has anyone ever tried and done this yet ? (without a system("uncompress
$file")
thanks
Robin Vickery wrote:
On 24/03/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
In incredibly ancient versions of PHP, you needed to have the:
function foo () { ... };
appear BEFORE you called it.
You still do in PHP5 if the function definition is in a conditional
block. Like his.
But apparen
Hi there,
I do have a webserver (that also runns php 4.x) running which I would
like to ping from an intranet server. In case that the webserver is down
and therefore my webapp the php script which does the ping should send
an e-mail which results in a message on my mobile.
Are there any com
Merlin wrote:
Hi there,
I do have a webserver (that also runns php 4.x) running which I would
like to ping from an intranet server. In case that the webserver is down
and therefore my webapp the php script which does the ping should send
an e-mail which results in a message on my mobile.
Ar
Hi
I'm using php 4.3.11 on linux RH9.
I'd like to open a .Z archive with gzopen.
I looked at the options of gzopen, but I'm not sure there is a way to
specify the compression used by compress/uncompress.
Has anyone ever tried and done this yet ? (without a system("uncompress
$file")
thanks
-- Weitergeleitete Nachricht --
Subject: Fwd: Re: WG: Bitte weiterleiten
Date: Freitag, 24. März 2006 15:29
From: Thomas Munz <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
-- Weitergeleitete Nachricht --
Subject: Re: WG: Bitte weiterleiten
Date: Freitag, 24. Mär
Sorry!
Was mistakly commited, should go to the list in my address book but not here!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jon Anderson wrote:
...
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ...
...
I seem to recall this being due to a bug in Internet Explorer that keeps
the connection open longer than necessary, tying up server resources.
George Schlossnagle has a formula for calculating the win/loss of using
Merlin wrote:
I am wondering if I am opening a potential security risk by
including files on remote servers.
Yes.
I am doing an include ('http:/www.server.com/file.html') inside
a php script of mine to seperate content from function. Content
is produced by a friend of mine and I do not want t
Thomas Munz wrote:
Sorry!
Was mistakly commited, should go to the list in my address book but not here!
LOL
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know this might be slightly off topic but I just upgraded
PHP/MySQL/OpenSSL and Apache to the latest stable release for each
project and so far so good. The one problem I am encountering is
dealing with SSL and apachectl not accepting the command 'apachectl
startssl' as it is depreciated. A
Richard,
You were exactly right - my data was already in the format:
I have resolved my issue now.
Thank you to all who responded to my question. I was pleasantly
surprised by the willingness of so many to help a stranger!
Best Regards,
Rochelle
-Original Message-
From: Richard Ly
On 24/03/06, Barry <[EMAIL PROTECTED]> wrote:
> Robin Vickery wrote:
> > On 24/03/06, Richard Lynch <[EMAIL PROTECTED]> wrote:
> >
> >>In incredibly ancient versions of PHP, you needed to have the:
> >>
> >>function foo () { ... };
> >>
> >>appear BEFORE you called it.
> >>
> >
> >
> > You still do
On Friday 24 March 2006 17:24, Jason Gerfen wrote:
> I know this might be slightly off topic but I just upgraded
> PHP/MySQL/OpenSSL and Apache to the latest stable release for each
> project and so far so good. The one problem I am encountering is
> dealing with SSL and apachectl not accepting th
Pham Huu Le Quoc Phuc wrote:
I want to execute polymorphism.
...BUT the OP didn't ask about polymorphism and php
doesn't support it at all anyway.
if you want polymorphism either use another language,
drop the requirement or figure out a workaround using
some kind of decorator pattern
Jason Gerfen wrote:
> I know this might be slightly off topic but I just upgraded
> PHP/MySQL/OpenSSL and Apache to the latest stable release for each
> project and so far so good. The one problem I am encountering is
> dealing with SSL and apachectl not accepting the command 'apachectl
> startssl
[snip]
> soapclient('https://webservices.netsuite.com/wsdl/v1_3_1/netsuite.wsdl');
The 's' in 'https' should be all that nuSOAP would need to know that
it should use SSL, if nuSOAP can do that.
[/snip]
Correct. NuSOAP do detect automatically, and if CURL is configured it will
work.
[snip]
> 'ro
Hm, this message bounced saying "550-Spammy URLs in your message"
So I will try it again.
On 3/24/06, Leonard Burton <[EMAIL PROTECTED]> wrote:
> HI All,
>
> I started using some of the xdiff functions to keep up with differences.
>
> How are you all using it?
>
> Is there any better docume
On Wed, March 22, 2006 9:18 pm, brian dichiara wrote:
Is there a way to check to see if a JPEG or PDF is color or
black/white?
Like a function or something?
There does not appear to be a built-in function that does that...
I don't know of any either, but that's the reason when I put an im
Merlin wrote:
Hi there,
I do have a webserver (that also runns php 4.x) running which I
would like to ping from an intranet server. In case that the
webserver is down and therefore my webapp the php script which does
the ping should send an e-mail which results in a message on my
mobile.
A
Pham said:
I want to execute polymorphism.
I've felt that way too.
tedd
--
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2006-03-24 at 10:50, Jochem Maas wrote:
> Pham Huu Le Quoc Phuc wrote:
> > I want to execute polymorphism.
> >
>
> ...BUT the OP didn't ask about polymorphism and php
> doesn't support it at all anyway.
Ummm, PHP supports polymorphism.. it has at least since PHP 4.
http://whatis.tec
Hi list!
I like to generate a larger image from different tiles. Each tile should
have a text on it which should be red for better readability. I figured
out how to compose the larger image but got stuck when to color the
text. I tried the following code:
$img = imagecreate($w * 100, $h * 10
Marcus Gnaß wrote:
Hi list!
I like to generate a larger image from different tiles.
Each tile should have a text on it which should be
red for better readability. I figured out how to
compose the larger image but got stuck when
to color the text. I tried the following code:
$img = imagecreate(
Hi list!
I like to generate a larger image from different tiles. Each tile
should have a text on it which should be red for better readability.
I figured out how to compose the larger image but got stuck when to
color the text. I tried the following code:
$img = imagecreate($w * 100, $h * 10
Richard:
I'm not arguing with you, I just want to understand the problem and solution.
I said:
> For storing an image into MySQL I simply used:
> $image_large = mysql_real_escape_string($buffer);
Then for displaying the image, I use:
if (get_magic_quotes_gpc())
{
$fil
On 24/03/06, tedd <[EMAIL PROTECTED]> wrote:
>
> Storing things in MySQL should not be based upon "If you're going to
> search the field or not". MySQL storage is simply a way to store
> stuff. It's not that much different than storing things on the "file
> system" because all you're storing is 1's
On 3/24/06, Chris Shiflett <[EMAIL PROTECTED]> wrote:
> Merlin wrote:
> > I am wondering if I am opening a potential security risk by
> > including files on remote servers.
>
> Yes.
>
> > I am doing an include ('http:/www.server.com/file.html') inside
> > a php script of mine to seperate content fr
example code:
//implode the value of the submitted form
//$del will look like 38, 40, 43
$del = implode(",", $idd);
//create query for the deletion of values from submited form
$query = "delete From news where id = '$del'";
//execute query
mysql_query($query) or die(mysql_error());
//echo sucess m
On 24/03/06, benifactor <[EMAIL PROTECTED]> wrote:
>
> //$del will look like 38, 40, 43
>
> $query = "delete From news where id = '$del'";
>
> This code will only delete the first value of $idd. what i think is wrong is
> i have the incorrect syntax to delete multiple feilds from a table if some
> -Original Message-
> example code:
> //implode the value of the submitted form
> //$del will look like 38, 40, 43
> $del = implode(",", $idd);
> //create query for the deletion of values from submited form
> $query = "delete From news where id = '$del'";
> //execute query
> mysql_query(
thanks all, very helpful!
- Original Message -
From: "Brady Mitchell" <[EMAIL PROTECTED]>
To: "benifactor" <[EMAIL PROTECTED]>; "php"
Sent: Friday, March 24, 2006 1:21 PM
Subject: RE: [PHP] deleting muliple feilds from a table using an array
> -Original Message-
> example code:
If I perform stripslashes first, then the process doesn't work.
I usually raise eyebrows with this statement, but you should never (with
very, very few exceptions) need to unescape anything. Ever.
Richard was pointing out that the only reason you would need to strip
slashes after retrieving
tedd wrote:
> I usually raise eyebrows with this statement, but you should
> never (with very, very few exceptions) need to unescape
> anything. Ever.
What's this then?
http://us3.php.net/mysql_real_escape_string
That's an escaping function.
Chris
--
PHP General Mailing List (http://www.php
tedd wrote:
> I usually raise eyebrows with this statement, but you should
never (with very, very few exceptions) need to unescape
anything. Ever.
What's this then?
http://us3.php.net/mysql_real_escape_string
That's an escaping function.
Chris
A, it pays to read.
Thanks -- it's b
Seems pretty dead tonight.
Checking POP3 quickly.
Ignore this email or reply kindest!
=)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: "PHP Mailer" <[EMAIL PROTECTED]>
To:
Sent: Saturday, March 25, 2006 10:59 AM
Subject: [PHP] Test email
> Seems pretty dead tonight.
> Checking POP3 quickly.
>
> Ignore this email or reply kindest!
>
> =)
>
> --
> PHP General Mailing List (http://www.p
44 matches
Mail list logo