Re: [PHP] security risk by using remote files with include(); ?

2006-03-24 Thread Jasper Bryant-Greene
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

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Andy
This is my code: ?php $str = öüééééÉooOO; echo $str; echo br; echo utf8_encode ($str); ? öüééééÉõõÕÕ I tried all the ways: meta http-equiv=content-type content=text/html; charset=UTF-8 and ?php header('Content-Type: text/html;charset=UTF-8');?

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Jasper Bryant-Greene
Is the file saved in UTF-8 encoding (the PHP script itself)? Jasper Andy wrote: This is my code: ?php $str = öüééééÉooOO; echo $str; echo br; echo utf8_encode ($str); ? öüééééÉõõÕÕ I tried all the ways: meta http-equiv=content-type

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Andy
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];

Re: [PHP] undefined function error with lost password script

2006-03-24 Thread Robin Vickery
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 was

Re: [PHP] Switching to UTF-8. Need help.

2006-03-24 Thread Jasper Bryant-Greene
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

[PHP] Re-arranging elements in an associative array

2006-03-24 Thread Fred Riley
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

[PHP] opening .Z archive with gzopen

2006-03-24 Thread nicolas figaro
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

Re: [PHP] undefined function error with lost password script

2006-03-24 Thread Barry
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

[PHP] How to ping a webserver with php?

2006-03-24 Thread Merlin
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

[PHP] Re: How to ping a webserver with php?

2006-03-24 Thread Barry
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.

[PHP] opening .Z compressed file with php

2006-03-24 Thread nicolas figaro
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

[PHP] Fwd: Re: WG: Bitte weiterleiten

2006-03-24 Thread Thomas Munz
-- 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ärz

Re: [PHP] Fwd: Re: WG: Bitte weiterleiten

2006-03-24 Thread Thomas Munz
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

Re: [PHP] PHP and Connection: Close

2006-03-24 Thread Chris Shiflett
Jon Anderson wrote: IfModule mod_ssl.c ... SetEnvIf User-Agent .*MSIE.* nokeepalive ... ... /IfModule 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

Re: [PHP] security risk by using remote files with include(); ?

2006-03-24 Thread Chris Shiflett
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

Re: [PHP] Fwd: Re: WG: Bitte weiterleiten

2006-03-24 Thread Barry
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

[PHP] Apache/PHP/MySQL/OpenSSL upgrade question

2006-03-24 Thread Jason Gerfen
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.

RE: [PHP] Help?

2006-03-24 Thread Clinton, Rochelle A
Richard, You were exactly right - my data was already in the format: lt;/agt; 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:

Re: [PHP] undefined function error with lost password script

2006-03-24 Thread Robin Vickery
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 in PHP5 if the function

Re: [PHP] Apache/PHP/MySQL/OpenSSL upgrade question

2006-03-24 Thread Petar Nedyalkov
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 the

Re: [PHP] Parents constructor

2006-03-24 Thread Jochem Maas
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

Re: [PHP] Apache/PHP/MySQL/OpenSSL upgrade question

2006-03-24 Thread Julius Hacker
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' as

RE: [PHP] HTTPS with NuSOAP

2006-03-24 Thread Peter Lauri
[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]

[PHP] Re: xdiff

2006-03-24 Thread Leonard Burton
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 documentation

Re: [PHP] GD Library or PHP Function

2006-03-24 Thread tedd
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

[PHP] Re: How to ping a webserver with php?

2006-03-24 Thread tedd
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.

Re: [PHP] Parents constructor

2006-03-24 Thread tedd
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

Re: [PHP] Parents constructor

2006-03-24 Thread Robert Cummings
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.

[PHP] colored text in images

2006-03-24 Thread Marcus Gnaß
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 *

Re: [PHP] colored text in images

2006-03-24 Thread Kevin Kinsey
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 =

Re: [PHP] colored text in images

2006-03-24 Thread tedd
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 *

RE: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread tedd
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()) {

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread Robin Vickery
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 and 0's

Re: [PHP] security risk by using remote files with include(); ?

2006-03-24 Thread Anthony Ettinger
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 from function.

[PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread benifactor
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

Re: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread Robin Vickery
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 one can

RE: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread Brady Mitchell
-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($query) or

Re: [PHP] deleting muliple feilds from a table using an array

2006-03-24 Thread benifactor
thanks all, very helpful! - Original Message - From: Brady Mitchell [EMAIL PROTECTED] To: benifactor [EMAIL PROTECTED]; php php-general@lists.php.net Sent: Friday, March 24, 2006 1:21 PM Subject: RE: [PHP] deleting muliple feilds from a table using an array -Original Message-

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread Chris Shiflett
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

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread Chris Shiflett
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

Re: [PHP] Why does this work on one server...(Final comment)

2006-03-24 Thread tedd
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

[PHP] Test email

2006-03-24 Thread PHP Mailer
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

Re: [PHP] Test email

2006-03-24 Thread Pham Huu Le Quoc Phuc
- Original Message - From: PHP Mailer [EMAIL PROTECTED] To: php-general@lists.php.net 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