Re: [PHP] Help with an error...

2008-07-24 Thread Wolf
!-- SNIP -- Here is the updated code Notice!! $message doesn't contain any PHP code within it $query only has a single ; within the whole line, right at the end of the ; to complete the PHP assignment string. Placing one inside it will barf the script typically. $headers are all

Re: [PHP] php help.

2008-07-20 Thread Jochem Maas
Jim Lucas schreef: Belinda wrote: Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get

[PHP] php help.

2008-07-19 Thread Belinda
Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get me head around this error.(lack of

Re: [PHP] php help.

2008-07-19 Thread Venky K Shankar
On Saturday 19 July 2008 01:11:38 pm Belinda wrote: Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php

Re: [PHP] php help.

2008-07-19 Thread Jim Lucas
Belinda wrote: Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get me head around this

[PHP] Help with query MySQL and PHP

2008-07-03 Thread axis
Hi, I want to create a new column or table from queries of the values of columns I( already have. My table is : PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS products_id products_extra_fields_id products_extra_fields_value 1 1

[PHP] Help with login

2008-06-27 Thread Byron
Hey, I think this should be working but it doesn't seem to be. ?php /* Admin Login Page TS Achilles Website Created by Byron Glover */ require(config.php); require(functions.php); // Check for previous authentication if (isset($_COOKIE[auth]) isset($_GET[page])) {

Re: [PHP] Help with login

2008-06-27 Thread Dan Shirah
Hey, I think this should be working but it doesn't seem to be. $_GET[page] $_SERVER['PHP_SELF'] What is the error message you are getting? And, why are you using different quotes throughout all of your script? I believe you should use single quotes for all of your server generated

Re: [PHP] Help with login

2008-06-27 Thread tedd
At 8:37 AM -0400 6/27/08, Dan Shirah wrote: Hey, I think this should be working but it doesn't seem to be. $_GET[page] $_SERVER['PHP_SELF'] What is the error message you are getting? And, why are you using different quotes throughout all of your script? I believe you should use

Re: [PHP] Help with login

2008-06-27 Thread Richard Heyes
if (isset($_COOKIE[auth]) !isset($_GET[page])) { include($GLOBALS['admin_index']); die(); } Your script is awfully insecure. $_COOKIE is user supplied, so in if I hand craft a request, I could just send an auth cookie which is set to 1. Relying on people not knowing is not

Re: [PHP] Help with login

2008-06-27 Thread Daniel Brown
On Fri, Jun 27, 2008 at 1:36 PM, Richard Heyes [EMAIL PROTECTED] wrote: if (isset($_COOKIE[auth]) !isset($_GET[page])) { include($GLOBALS['admin_index']); die(); } Your script is awfully insecure. $_COOKIE is user supplied, so in if I hand craft a request, I could just send an

[PHP] Help with SSH2

2008-05-30 Thread Gonzalo Bettancourt
Hello, I'm from Chile, so, I don't write great in English. My cuestion is: I'm programming a Website where you can see the files that you have in a remote PC. (In my University Computer Room) I don't know how to Download a file from the remote pc to my computer and, also, how to Upload a

Re: [PHP] Help with SSH2

2008-05-30 Thread Jim Lucas
Gonzalo Bettancourt wrote: Hello, I'm from Chile, so, I don't write great in English. My cuestion is: I'm programming a Website where you can see the files that you have in a remote PC. (In my University Computer Room) I don't know how to Download a file from the remote pc to my computer

[PHP] Help mms (Get audio Stream)

2008-05-29 Thread Shelley
1. URL http://pub.qmoon.net/WMSStatus/WMS.asmx/IRadioGetCurrentPublishPoint 2. Call method HTTP GET: GET / WMSStatus/WMS.asmx/IRadioGetCurrentPublishPoint HTTP/1.1 Host: pub.qmoon.net 3. return (string) ?xml version=1.0 encoding=utf-8 ? string

Re: [PHP] Help mms (Get audio Stream)

2008-05-29 Thread Gabriel Sosa
what do you wanna do ?? just a bridge? or try to play it?? in that case you can't. i think you should get the streamming and try to play it with flash saludos On Thu, May 29, 2008 at 4:05 AM, Shelley [EMAIL PROTECTED] wrote: 1. URL

Re: [PHP] Help mms (Get audio Stream)

2008-05-29 Thread Shelley
My test result is that it works on Windows platform, but not on Linux. Maybe that's because it is Microsoft Media Services protocol? Whatever, I can not hear anything on Firefox 3 Beta 5 on Ubuntu. 2008/5/29 Gabriel Sosa [EMAIL PROTECTED]: what do you wanna do ?? just a bridge? or try to play

[PHP] Help preg_replace with Non-English character

2008-05-22 Thread Shelley
Hi all, Just a question, I want to replace some Chinese characters with preg_replace(). But it does not work. The string is $str = 'test你好http://www.phparch.cn/ 完成'; The ideal output is : testa href=http://www.phparch.cn;你好/a 完成 Any suggestion will be greatly appreciated. -- Regards,

Re: [PHP] Help preg_replace with Non-English character

2008-05-22 Thread Richard Heyes
Just a question, I want to replace some Chinese characters with preg_replace(). But it does not work. The string is $str = 'test你好http://www.phparch.cn/ 完成'; The ideal output is : testa href=http://www.phparch.cn;你好/a 完成 Any suggestion will be greatly appreciated. Have a look to see if the

Re: [PHP] Help preg_replace with Non-English character

2008-05-22 Thread Shelley
Yes, I have checked and tried that. And I have successfully tested it with GB2312 encoding, but when turned to UTF8. It does not work any more. The server is using UTF8 encoding, and also the database. Weird. On Thu, May 22, 2008 at 4:51 PM, Richard Heyes [EMAIL PROTECTED] wrote: Just a

Re: RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-21 Thread Nitsan Bin-Nun
I was surprised it didnt came up before. As Tedd said, try to ajax-up your javascript On 20/05/2008, tedd [EMAIL PROTECTED] wrote: At 11:41 AM -0300 5/20/08, Thiago Pojda wrote: That way you can conditionally send some JS to client, but running actual JS in PHP is not possible. While

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Message- From: Shelley [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 3:06 PM To: PHP General list Subject: [PHP] Help Call Javascript Methods Inside PHP Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Yea, of course. On Tue, May 20, 2008 at 5:44 PM, jose javier parra sanchez [EMAIL PROTECTED] wrote: Do you know that php runs on the server and that javascript runs on the client ? 2008/5/20 Shelley [EMAIL PROTECTED]: Hi all, How can I call a javascript method inside PHP? That is:

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Richard Heyes
Shelley wrote: Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js There are some js methods in that js file, I want to include that js into PHP and call its methods. Is it possible? No. What you can do though is use PHP to

[PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shelley
Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js There are some js methods in that js file, I want to include that js into PHP and call its methods. Is it possible? If it is, how? Thank you very much. -- Regards, Shelley

Re: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Shiplu
On 5/20/08, Shelley [EMAIL PROTECTED] wrote: Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js There are some js methods in that js file, I want to include that js into PHP and call its methods. Is it possible? If it is,

RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Thiago Pojda
PROTECTED] Enviada em: terça-feira, 20 de maio de 2008 06:53 Para: Shelley Cc: PHP General list Assunto: Re: [PHP] Help Call Javascript Methods Inside PHP Shelley wrote: Hi all, How can I call a javascript method inside PHP? That is: Suppose there is a js file: http://someurl/somejs.js

RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread Thiago Pojda
] Enviada em: terça-feira, 20 de maio de 2008 11:41 Para: [EMAIL PROTECTED]; 'Shelley' Cc: 'PHP General list' Assunto: RES: [PHP] Help Call Javascript Methods Inside PHP What Richard meant was: /// FILE.PHP /// ?php $var = 123; if ($var 100){ ? script language=JavaScript

Re: RES: [PHP] Help Call Javascript Methods Inside PHP

2008-05-20 Thread tedd
At 11:41 AM -0300 5/20/08, Thiago Pojda wrote: That way you can conditionally send some JS to client, but running actual JS in PHP is not possible. While running JS inside of PHP is at best confusing, it is possible to use both php and javascript together. For example: You can use php to

[PHP] HELP !!!!! PHP SOAP Not building objects correctly

2008-05-16 Thread Tim Traver
Hi all, sorry for the cross post to the general PHP list as well as the SOAP PHP list, but I'm a little bit desperate... Ok, for some reason when I am sending the proper objects to the __soapCall method, it is not including those objects in the XML call itself... I am using PHP 5.2.6 now

Re: [PHP] HELP !!!!! PHP SOAP Not building objects correctly

2008-05-16 Thread Nathan Nobbe
On Fri, May 16, 2008 at 1:04 PM, Tim Traver [EMAIL PROTECTED] wrote: Hi all, sorry for the cross post to the general PHP list as well as the SOAP PHP list, but I'm a little bit desperate... Ok, for some reason when I am sending the proper objects to the __soapCall method, it is not

Re: [PHP] HELP !!!!! PHP SOAP Not building objects correctly

2008-05-16 Thread Tim Traver
Nathan Nobbe wrote: On Fri, May 16, 2008 at 1:04 PM, Tim Traver [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, sorry for the cross post to the general PHP list as well as the SOAP PHP list, but I'm a little bit desperate... Ok, for some reason when I am sending the

[PHP] Help with a foreach statement

2008-05-11 Thread Ron Piggott
I am writing a shopping cart. Products assigned in the following fashion: $_SESSION['selection'][$product]=$quantity; I am wanting to display the list of products in the shopping cart in a list for the user to see as they continue shopping. I put the SESSION variable into $cart $cart =

Re: [PHP] Help with a foreach statement

2008-05-11 Thread Craige Leeder
Hi Ron, This code should work: ?php $path_to_shopping_cart = './'; $iLength = count($cart); foreach ($cart as $product_name = $quantity) { echo lia href=\ . $path_to_shopping_cart . product/ . $cart[$product_id] . /\ . $product_name . /a - . $quantity . /li\r\n; } ?

[PHP] Help with preg_match_all regex for alt tags

2008-04-29 Thread Joe Harman
Hey y'all ... i am having alittle trouble with this regex for finding ALT tags for images... Here is my statement preg_match_all('alt[^]*?.*?[^]'si, $output,

Re: [PHP] Help with preg_match_all regex for alt tags

2008-04-29 Thread James Dempster
try preg_match_all('/img[^]*alt=([^]*)/i', $subject, $result); -- /James On Tue, Apr 29, 2008 at 8:18 PM, Joe Harman [EMAIL PROTECTED] wrote: Hey y'all ... i am having alittle trouble with this regex for finding ALT tags for images... Here is my statement

[PHP] Help with SSH2 persistent connection in php

2008-04-11 Thread Rodrigo Reis da Rocha
Hi, I want to make an persistent connection via ssh2 to a server with php, but all I can get with the present API is an temporary connection that is lost at end of the script. Anyone have an idea of how I can save the Resource and reuse it on future scripts instead of having to reconnect over and

Re: [PHP] Help with SSH2 persistent connection in php

2008-04-11 Thread Jason Norwood-Young
On Fri, 2008-04-11 at 10:14 -0300, Rodrigo Reis da Rocha wrote: I want to make an persistent connection via ssh2 to a server with php, but all I can get with the present API is an temporary connection that is lost at end of the script. Anyone have an idea of how I can save the Resource and

[PHP] help needed building php_dblib for PHP 5.2.5 on windows

2008-04-02 Thread Jason
Hi all, I have previously posted this on the windows specific list, however I believe this list reaches a wider audience so i'll try again. I am trying to recompile php 5.2.5 on win32, specifically trying to rebuild the freetds extension with the latest RC code from FreeTDS.org. I am

[PHP] Help with inputbox

2008-04-02 Thread Ricardo Pinto
Description: text including spaces placed in an input text control in HTML show the whole text. text including spaces placed in an input text control in PHP does not show the whole text, only the first word up to the first space is displayed. The same happens with variables from a

Re: [PHP] Help with inputbox

2008-04-02 Thread Wolf
!-- SNIP -- div id=\quadro_1\ID : $x nbsp;nbsp;nbsp; Criação:nbsp;input type=\text\ size=\50\ maxlength=\12\ name=\\ value=$creation Modificação:nbsp;input type=\text\ size=\50\ maxlength=\50\ name=\\ value=$modif Origin_Val:nbsp;input type=\text\ size=\10\ maxlength=\50\

[PHP] help with autoload

2008-03-24 Thread Jonathan Mast
I have a project the someone else wrote and that I can't get to work. It uses a rather large library of classes that are not apparently getting loaded by the provided __autoload() function. I'm not very well versed in PHP and one of the first things I did was see if in fact the __autoload

Re: [PHP] help with autoload

2008-03-24 Thread Carlton Whitehead
Jonathan Mast wrote: I have a project the someone else wrote and that I can't get to work. It uses a rather large library of classes that are not apparently getting loaded by the provided __autoload() function. I'm not very well versed in PHP and one of the first things I did was see if in

[PHP] help on using 'request_uri' to make a front-end site

2008-03-17 Thread Donn Ingle
Hi, I have been trying to get a little templating thing going and I want everything to pass through a single index.php file which then decides what page is wanted and includes them. The scheme is to go to a url like [http://localhost/~donn/blah/] which serves index.php in that dir. That includes

[PHP] Help for openssl_pkcs7_verify function

2008-03-17 Thread Carlo Carbone
I need help for this function to verify a p7m file . The funcion return always error value ( -1 ) this is the sintax that I use to verify the sign on the file openssl_pkcs7_verify(prova.p7m, PKCS7_BINARY ,prova.pdf, array(c:\cert.pem) ); I 'm a winXP user and the path of PHP is place in the

Re: [PHP] Help for openssl_pkcs7_verify function

2008-03-17 Thread Stut
On 17 Mar 2008, at 21:34, Carlo Carbone wrote: I need help for this function to verify a p7m file . The funcion return always error value ( -1 ) this is the sintax that I use to verify the sign on the file openssl_pkcs7_verify(prova.p7m, PKCS7_BINARY ,prova.pdf, array(c:\cert.pem) ); I 'm

RES: [PHP] Help on running external command

2008-02-20 Thread Thiago Pojda
: Mário Gamito [mailto:[EMAIL PROTECTED] Enviada em: quarta-feira, 20 de fevereiro de 2008 11:32 Para: PHP General list Assunto: [PHP] Help on running external command Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c

Re: [PHP] Help on running external command

2008-02-20 Thread Hiep Nguyen
On Wed, 20 Feb 2008, Mário Gamito wrote: Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); try: exec('su - vpopmail -c

Re: [PHP] Help on running external command

2008-02-20 Thread Zoltán Németh
2008. 02. 20, szerda keltezéssel 14.31-kor Mário Gamito ezt írta: Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); But I

[PHP] Help on running external command

2008-02-20 Thread Mário Gamito
Hi, I need to run an eternal command from a PHP page. My code is: $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/ . $username'); But I get the error: /var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/: Not

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 9:59 AM, Mário Gamito [EMAIL PROTECTED] wrote: Of course the code is: $username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\$username); Oh, yes, of course it is! That still doesn't mean that Apache has the right

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Hi, Thank you for your answers. I got it working with: //$username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\$username); Now, if I run it from the shell, it creates the directory. From a page on the web server it doesn't. Directory

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Of course the code is: $username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\$username); Mário Gamito wrote: Hi, Thank you for your answers. I got it working with: //$username = 'lixo'; exec(su -c - vpopmail \/var/qmail/bin/maildirmake

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 9:52 AM, Mário Gamito [EMAIL PROTECTED] wrote: Now, if I run it from the shell, it creates the directory. From a page on the web server it doesn't. Chances are, the user as which the HTTP server (probably Apache) is running does not have permission to write/create in that

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Mário Gamito
Hi, ? $username = lixo; exec('su -c - vpopmail /var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/'.$username.'',$ret,$err); echo pre /\n; print_r($ret); echo /pre\n; echo isset($err) ? Error: .$err : null; ? No output at all and I have display_errors = On in php.ini Still no

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Daniel Brown
On Feb 20, 2008 10:30 AM, Mário Gamito [EMAIL PROTECTED] wrote: Please keep the replies on-list, Mario. It helps others out, and ensures that you'll get better advice from a larger group of talented people. ? $username = lixo; exec('su -c - vpopmail /var/qmail/bin/maildirmake

Re: [PHP] Help on running external command / Partially solved

2008-02-20 Thread Chris
Daniel Brown wrote: On Feb 20, 2008 10:30 AM, Mário Gamito [EMAIL PROTECTED] wrote: Please keep the replies on-list, Mario. It helps others out, and ensures that you'll get better advice from a larger group of talented people. ? $username = lixo; exec('su -c - vpopmail

[PHP] js to php help

2008-02-19 Thread tedd
Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any suggestions. Cheers, tedd --

[PHP] Re: js to php help

2008-02-19 Thread Nathan Rixham
Nathan Rixham wrote: tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any

[PHP] Re: js to php help

2008-02-19 Thread tedd
At 3:23 PM + 2/19/08, Nathan Rixham wrote: Nathan Rixham wrote: tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in

[PHP] Re: js to php help

2008-02-19 Thread Nathan Rixham
tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Thanks in advance for any suggestions. Cheers,

Re: [PHP] js to php help

2008-02-19 Thread Brady Mitchell
On Feb 19, 2008, at 712AM, tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is selected in javascript to POST? Have you tried

Re: [PHP] js to php help

2008-02-19 Thread tedd
At 10:18 AM -0800 2/19/08, Brady Mitchell wrote: On Feb 19, 2008, at 712AM, tedd wrote: Hi gang: I have a date picker in javascript working, but I need to take the date selections to php. Here's the link and code: http://www.webbytedd.com/a/calendar/index.php How can I get what is

[PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread pretty
hi any one help me out, im using cronofirm, i need to field form details will converted into pdf as well as it will go maill attachment doing this in joomla, atleast i need this only php with out joomla. -- View this message in context:

Re: [PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread Brady Mitchell
On Feb 13, 2008, at 426AM, pretty wrote hi any one help me out, im using cronofirm, i need to field form details will converted into pdf as well as it will go maill attachment doing this in joomla, atleast i need this only php with out joomla. For sending email: The standard mail

Re: [PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread David Giragosian
On 2/13/08, pretty [EMAIL PROTECTED] wrote: hi any one help me out, im using cronofirm, i need to field form details will converted into pdf as well as it will go maill attachment doing this in joomla, atleast i need this only php with out joomla. It might be overkill for your purposes, but

Re: [PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread Richard Lynch
On Wed, February 13, 2008 6:26 am, pretty wrote: hi any one help me out, im using cronofirm, i need to field form details will converted into pdf as well as it will go maill attachment doing this in joomla, atleast i need this only php with out joomla. To make a PDF, you can use:

[PHP] Help looking for inventory software

2008-01-30 Thread Zbigniew Szalbot
Hello, I am sorry if this is appropriate but does anyone know php based, open source solution that would enable me to put a system handling inventory (books, booklets). I work for a charity and we are archiving our old products by making a digital archive. So far we have been doing it in Excel

RE: [PHP] Help looking for inventory software

2008-01-30 Thread Bastien Koert
check for code / systems on www.hotscripts.com http://sourceforge.net hth bastien Date: Wed, 30 Jan 2008 19:14:57 +0100 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] Help looking for inventory software Hello, I am sorry if this is appropriate but does anyone know

Re: [PHP] Help Sending Mail

2007-12-15 Thread Richard Lynch
On Tue, December 11, 2007 4:24 pm, Daniel Brown wrote: On Dec 11, 2007 12:20 PM, Richard Lynch [EMAIL PROTECTED] wrote: I dunno if RFC822 specifies which ending but I *do* know that this breaks the current PEAR mimePart.php code. RFC 822 has been obsolete since RFC 2822 was introduced

Re: [PHP] Help Sending Mail

2007-12-15 Thread Daniel Brown
On Dec 15, 2007 1:09 PM, Richard Lynch [EMAIL PROTECTED] wrote: A standard nobody follows isn't a standard; It's a waste of paper. Only if you printed it out in the first place. ;-P That aside, I completely agree with you. It's sort of like the ^M versus \n versus \r\n line

Re: [PHP] Help Sending Mail

2007-12-11 Thread Jim Lucas
Robert Cummings wrote: Yeah, he's all over the place with his line endings. Personally, I use an array to track the headers and use implode in one shot before sending. Cheers, Rob. Same here -- Jim Lucas Perseverance is not a long race; it is many short races one after the

Re: [PHP] Help Sending Mail

2007-12-11 Thread Nathan Rixham
If you want a source to very verify against, send yourself an email, then view it's source; then change your class till it outputs the same info, gauranteed winner every time. Nathan Jim Lucas wrote: Robert Cummings wrote: Yeah, he's all over the place with his line endings. Personally, I

Re: [PHP] Help Sending Mail

2007-12-11 Thread Richard Lynch
Until today, there was a very nifty MIME Message Lint tool to check your email message here: http://www.apps.ietf.org/msglint.html The homepage is now the default Apache install page though, and that URL is 404. I'm posting it in hopes that somebody knows a good similar tool and/or that it will

Re: [PHP] Help Sending Mail

2007-12-11 Thread Richard Lynch
PS GMail will not accept \r\n between header lines, only \n I dunno if RFC822 specifies which ending but I *do* know that this breaks the current PEAR mimePart.php code. Editing the code to hack \r\n to just \n for the _CRLF constant works for gmail, but may break other mail clients if \r\n is

Re: [PHP] Help Sending Mail

2007-12-11 Thread Andrew Ballard
On Dec 11, 2007 12:20 PM, Richard Lynch [EMAIL PROTECTED] wrote: PS GMail will not accept \r\n between header lines, only \n I dunno if RFC822 specifies which ending but I *do* know that this breaks the current PEAR mimePart.php code. Editing the code to hack \r\n to just \n for the _CRLF

Re: [PHP] Help Sending Mail

2007-12-11 Thread Jochem Maas
heh Richard! long time no see, guess you had withdrawal symtoms or you managed to bust out of whatever compound they were holding you in ;-) ... Richard Lynch wrote: PS GMail will not accept \r\n between header lines, only \n I dunno if RFC822 specifies which ending but I *do* know that

Re: [PHP] Help Sending Mail

2007-12-11 Thread Daniel Brown
On Dec 11, 2007 12:20 PM, Richard Lynch [EMAIL PROTECTED] wrote: I dunno if RFC822 specifies which ending but I *do* know that this breaks the current PEAR mimePart.php code. RFC 822 has been obsolete since RFC 2822 was introduced in 2001. We (that is, myself and other members of the

[PHP] Help Sending Mail

2007-12-10 Thread Me2resh Lists
Dear All, i wrote this class below to send Mail. but when i use it. i get the sender No Body. and from the address of the server, not the From address that i specify. and the MIME Headers as text in the message itself. and the attachment is pasted as binary text also. can anyone help please ??

Re: [PHP] Help Sending Mail

2007-12-10 Thread Robert Cummings
On Tue, 2007-12-11 at 06:33 +0200, Me2resh Lists wrote: Dear All, i wrote this class below to send Mail. but when i use it. i get the sender No Body. and from the address of the server, not the From address that i specify. and the MIME Headers as text in the message itself. and the

Re: [PHP] Help Sending Mail

2007-12-10 Thread Jim Lucas
Me2resh Lists wrote: Dear All, i wrote this class below to send Mail. but when i use it. i get the sender No Body. and from the address of the server, not the From address that i specify. and the MIME Headers as text in the message itself. and the attachment is pasted as binary text also. can

Re: [PHP] Help Sending Mail

2007-12-10 Thread Jim Lucas
Robert Cummings wrote: On Tue, 2007-12-11 at 06:33 +0200, Me2resh Lists wrote: Dear All, i wrote this class below to send Mail. but when i use it. i get the sender No Body. and from the address of the server, not the From address that i specify. and the MIME Headers as text in the message

Re: [PHP] Help Sending Mail

2007-12-10 Thread Robert Cummings
On Mon, 2007-12-10 at 21:05 -0800, Jim Lucas wrote: Robert Cummings wrote: On Tue, 2007-12-11 at 06:33 +0200, Me2resh Lists wrote: Dear All, i wrote this class below to send Mail. but when i use it. i get the sender No Body. and from the address of the server, not the From address that

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-11 Thread Dimiter Ivanov
On Nov 9, 2007 5:48 PM, robert mena [EMAIL PROTECTED] wrote: Hi Daniel, According to the audit this happened yesterday. I am searching astalavista but could not find anything, probably because I am being too specific. From the php side (or closely) what steps would you recommend in order

[PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread robert mena
Hi, One server that hosts several domains ended up with the message Owned by W4n73d H4ck3r.While still performing an audit I am very confident that this was caused by a php script (it is a linux server) uploaded via FTP or by a defective site hosted (perhaps vulnerable version of a CMS). The

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Daniel Brown
On Nov 9, 2007 9:27 AM, robert mena [EMAIL PROTECTED] wrote: Hi, One server that hosts several domains ended up with the message Owned by W4n73d H4ck3r.While still performing an audit I am very confident that this was caused by a php script (it is a linux server) uploaded via FTP or by a

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread David Giragosian
On 11/9/07, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 9, 2007 9:27 AM, robert mena [EMAIL PROTECTED] wrote: Hi, One server that hosts several domains ended up with the message Owned by W4n73d H4ck3r.While still performing an audit I am very confident that this was caused by a

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread robert mena
Hi Daniel, Thanks for the reply. I agree that there are steps that go outside php scope (chroot apache etc) but I think this partially belongs to this list specially since google shows that the same message (perhaps a copycat?) appears in tons of sites. I was hoping that someone already had

RE: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Edward Kay
I'd be interested in reading this thread. OK with me to keep it on the list. Ditto. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Daniel Brown
On Nov 9, 2007 10:05 AM, robert mena [EMAIL PROTECTED] wrote: Hi Daniel, Thanks for the reply. I agree that there are steps that go outside php scope (chroot apache etc) but I think this partially belongs to this list specially since google shows that the same message (perhaps a copycat?)

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread robert mena
Hi Daniel, According to the audit this happened yesterday. I am searching astalavista but could not find anything, probably because I am being too specific. From the php side (or closely) what steps would you recommend in order to have a better security? I could not find a consistent 'list' of

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Daniel Brown
On Nov 9, 2007 10:48 AM, robert mena [EMAIL PROTECTED] wrote: Hi Daniel, According to the audit this happened yesterday. I am searching astalavista but could not find anything, probably because I am being too specific. From the php side (or closely) what steps would you recommend in order

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Tom Chubb
Me too. Guess a lot of us can learn something here from another's misfortune. Thanks Robert and good luck On 09/11/2007, Edward Kay [EMAIL PROTECTED] wrote: I'd be interested in reading this thread. OK with me to keep it on the list. Ditto. -- PHP General Mailing List

RE: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Bastien Koert
me, too this would be interesting bastien Date: Fri, 9 Nov 2007 09:01:09 -0600 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r On 11/9/07, Daniel Brown [EMAIL PROTECTED] wrote

RE: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Instruct ICC
The person doing this seems to be relatively new to the scene, only defacing websites with common vulnerabilities that you can find anywhere on the Internet (http://astalavista.box.sk/ for example). Check out Zone-H (http://www.zone-h.net/) to see if your domains are on there, and

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Daniel Brown
That's an old SPAW exploit. Google (gotta' love how that's a verb now) for `spaw exploit` and the first result is MARC. [NOTE: All previous text cleared because this is the THIRD time I've sent the message after Mailman rejected it twice due to URLs in log inclusion.] -- Daniel P.

[PHP] help with link from mysql

2007-11-07 Thread Joey
Hello All, I have a situation where I am storing data to a blob field. Everything works in respect to in and out of the DB, however when we type in a link like so HYPERLINK http://www.abc.com/subfolder/folder2/http://www.abc.com/subfolder/folder2/ the link stops at the domain, so the

[PHP] Help with preg_replace

2007-11-07 Thread Richard Luckhurst
Hi I am in the process of porting a Perl application to PHP and I have hit a snag with trying to substitute test within a file. I have looked at the PHP manual and believe I should be using preg_replace but I have tried the examples and am not getting the result I would expect. I would

Re: [PHP] help with link from mysql

2007-11-07 Thread Andrew Ballard
On Nov 7, 2007 5:22 PM, Joey [EMAIL PROTECTED] wrote: I have a situation where I am storing data to a blob field. Everything works in respect to in and out of the DB, however when we type in a link like so HYPERLINK http://www.abc.com/subfolder/folder2/http://www.abc.com/subfolder/folder2/

[PHP] Help with OOPHP

2007-10-31 Thread Andrew Peterson
I'm hoping you guys can help me out. I'm not sure if you can do this, but i'm trying to create a class that is build of another class. I also want to be able to do functions on the class1 from within class2. example: class fruitBasket{ private $fuit = array(); //this is a

Re: [PHP] Help with OOPHP

2007-10-31 Thread Simon Welsh
On 1/11/2007, at 5:48, Andrew Peterson wrote: I'm hoping you guys can help me out. I'm not sure if you can do this, but i'm trying to create a class that is build of another class. I also want to be able to do functions on the class1 from within class2. example: class fruitBasket{

<    1   2   3   4   5   6   7   8   9   10   >