RE: [PHP] Mail()
I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] component library
as cold fusion (custom tags), can i made some component to reuse in all my script ? is a function visible every where in PHP ? can i developp a script with a name, and call this script by an include function and passing parameters ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
THe same .. did not make a difference .. for php.ini settings : I am on a virtual hosting .. so I do not have access to the php.ini file -Original Message- From: karthik [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 9:43 AM To: Mahmoud Kassem Subject: Re: [PHP] Mail() Hi Try mail($emailto_owner..$emailto.,$subject,$message,$headers); It worked for me when i had a similar problem. And do check the settings in php.ini for mails. Karthik. - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 12:04 PM Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] component library
as cold fusion (custom tags), can i made some component to reuse in all my script ? ?custom_tag()? is a function visible every where in PHP ? Yes can i developp a script with a name, and call this script by an include function and passing parameters ? You don't need to pass parameters since included files share the same symbol table as the file they were included from. You simply define you variable, then do the include and inside the include file you can access the variable. eg. $a = 123; include 'something.php'; Inside something.php you can then access $a -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] variable $PATH_INFO
why can i read PATH_INFO server variable with apache under windows server ? with IIS 5 it's OK how can i ? ? print $PATH_INFO ? - Warning: Undefined variable: PATH_INFO in e:\sitephp\php_edit\htdocs\var.php on line 3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Meta Tags and Regular Expressions
On Fri, Aug 10, 2001 at 01:29:26PM -0400, Kyle Mathews wrote: Hello: I'm looking for a good way to pull information from a static HTML file for dumping into a database. I need to pull the information from a META tag, and from within two comments in the HTML file. I know this can be done with regular expressions, but I'm not really sure where to start or how to do it. META name=CATEGORY CONTENT=Test Content I need to pull the CONTENT information from this META tag. !-- STORY START -- Story contents !-- STORY END -- Then pull the information from between these two comments. Any help, and/or example code would help a lot. This is for an exact match of your example above: preg_match (/META[^]+CONTENT=\([^\]+)\/, $string, $matches) If you don't know if it's in upper and/or lower case: preg_match (/meta[^]+content=\([^\]+)\/i, $string, $matches) -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Having my script login to a secure area of another site.....
On Fri, Aug 10, 2001 at 03:24:07PM -0700, Evan Nemerson wrote: Try messing with the query string, and emulate a GET request. For instance $uri = http://www.somewhere.com/secure.php?username=bobpassword=linuxrocks;; $theFile = implode(\n,file($uri)); echo $theFile; Using/emulating GET for security isn't realy a very smart thing to do. Everyone can just use the URL as you show it. Using POST isn't completely waterproof either, but at least you don't just give a way your security information. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Simple question (what's ISAPI ?)
Hi folks. Can someone tell me what ISAPI is? I've requested how I could run PHP faster, if 20 USER's access my files at the same time. In my case, PHP run's the php.exe (ca. 5 MB) every time seperatly, and this eats my win-resources! Someone guides me to use it as an ISAPI module but WHAT is that? and HOW can I do that under my win-operation system. Thank's for any help! Tribun (Patrick) --- mp3o.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php 4.0.6 and imap support
Hi all, I tried to find an answer to this but nothing seemed to work. I need to build php 4.0.6 with imap support. I'm running redhat 7.1 and have build and installed the imap-2000-9 rpm's (including devel), php will build correctly but complains about an undefined symbol mxdriver. Has the library changed ? Is the lib it is looking for in the wrong spot ? Have a linked it wrong ?? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] posix_getpwnam
Hi, I`m using function posix_getpwnam. Its works correctly. But The result for param passwd is only "x". I know why is it. Because i have save unix users passwords in shadow file,not in passwd file, there is only "x". Is there some function,which param is encrypted(MD5) password in PHP? I need: User puts password,and I will compare these password with password in shadow? Thank you very much Tomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] posix_getpwnam
Hello Tom, Monday, August 13, 2001, 10:23:16 AM, you wrote: TK Hi, TK I`m using function posix_getpwnam. Its works correctly. But The result for TK param passwd is only "x". I know why is it. Because i have save unix users TK passwords in shadow file,not in passwd file, there is only "x". TK Is there some function,which param is encrypted(MD5) password in PHP? TK I need: User puts password,and I will compare these password with password TK in shadow? TK Thank you very much TK Tomas You can use function md5() and than you can compare users password in passwd file with password submited to form. I hope it helps -- Best regards, Danielmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: Socket problem
Hmm well I has this problem on a FreeBSD box and as soon as I moved it to a RedHat7 box it worked. Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 12 August 2001 22:41 To: [EMAIL PROTECTED] Subject: [PHP] Re: Socket problem Anybody else using 1 on that machine yet? netstat -a -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Jon Farmer [EMAIL PROTECTED] Newsgroups: php.general To: PHP General Mailing List [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:58 AM Subject: Socket problem Hi, I playing with the socket examples off php.net When I try the talkback example I get the following error bind() failed: reason: Can't assign requested address I am setting $address to the ip of the machine and using port 1 Any ideas? Regards Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] plz check the warning message
Hi! Renze, Thanks a lot for u'r help. I am in vacation up to now. Now i am trying with u'r solution. I am getting the following error. I am sending the file also. Warning: Cannot send session cache limiter - headers already sent in c:\www\authentication.php on line 34 File:authentication.php ?phpheader ("Cache-Control: no-cache, must-revalidate");header ("Pragma: no-cache"); error_log ("emp_id: $emp_id", 0); error_log ("Lastname: $emp_pass", 0); // Connect to MySQL mysql_connect( 'localhost', 'balaji', 'pingpong' ) or die ( 'Unable to connect to server.' ); // Select database on MySQL server mysql_select_db( 'imac' ) or die ( 'Unable to select database.' ); // Formulate the query $sql = "SELECT * FROM employee WHERE emp_id = '$emp_id' AND emp_pass = '$emp_pass'"; // Execute the query and put results in $result $result = mysql_query( $sql ) or die ( 'Unable to execute query.' ); // Get number of rows in $result. $num = mysql_numrows( $result ); if ( $num != 0 ) { // A matching row was found - the user is authenticated. session_start(); session_register('$emp_id'); $row = mysql_fetch_object($result); if ($row-user_type=='S'){ include('super.php'); }else if ($row-user_type=='O'){include('ordinary.php'); } } else { file://User does not exist or not authenticated.echo 'centerh1Authorization Required./h1/center';file://header( 'WWW-Authenticate: Basic realm="Private"' );file://header( 'HTTP/1.0 401 Unauthorized' );exit; } ? Thanks and regards -Balaji - Original Message - From: Renze Munnik To: Balaji Ankem Cc: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 5:41 PM Subject: Re: [PHP] plz check the warning message On Fri, Aug 10, 2001 at 04:42:48PM +0530, Balaji Ankem wrote: Is there anyway to restrict the reposting?? Means after pressing logout button we shouldn't allow the user to go back or reposting the data again and getting session again.Okay... I've figured out two 'solutions'. But... I must say: They'renot pretty. Actually you can't prevent it. But:Option 1You can set a cookie after logging in. The authorization page shouldcheck for that cookie. It should not exist in order to login. Thelogin page (where one gives his username/password) should removethat cookie if it exists.This is, though, a _very_ ugly solution and using cookies forsecurity isn't realy the best thing to do. So actually I wouldn'tencourage you to use this.Option 2Another solution is to redirect to a different page. I created thefollowing example:=[ PHP code ]=// File: login.phpHTMLHEAD TITLELogin Test/TITLE/HEAD BODY FORM method="post" action="submit-login.php" INPUT type="text" name="firstname" INPUT type="text" name="lastname" BR INPUT type="submit" /FORM/BODY/HTML// File: submit-login.php? /* Here you should do things with the provided data... For the example I only write it to the log. */ error_log ("Firstname: $firstname", 0); error_log ("Lastname: $lastname", 0); /* Here's where you redirect */ header ("Location: logged-in.php");?// File: logged-in.php/* Whatever you want! */=[ end of code ]=After pushing the submit-button, the data will be submitted tosubmit-login.php. There you handle the login-procedure. After that,you automatically redirect to a different page (logged-in.php in myexample). That's you you show eg 'You are logged in now'. If youreload that page, nothing realy happens. If you push 'Back', you endup on login.php again.Uptil now this is the best option I've come up with.Hope it works for what you had in mind.-- * RzE:-- -- Renze Munnik-- DataLink BV E: [EMAIL PROTECTED]-- W: +31 23 5326162-- F: +31 23 5322144-- M: +31 6 21811143-- H: +31 23 5516190 Stationsplein 82-- 2011 LM HAARLEM http://www.datalink.nl-- -- PHP General Mailing List (http://www.php.net/)To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Information transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records.
Re: [PHP] Simple question (what's ISAPI ?)
On Monday 13 August 2001 08:46, Tribun wrote: Hi folks. Can someone tell me what ISAPI is? It's microsoft's API for running software in IIS. I've requested how I could run PHP faster, if 20 USER's access my files at the same time. Using ISAPI means that php stays alive while the server is alive, so there is no overhead in starting and closing down php.exe on each request. There is a perfomance benefit, although once the script is actually going the speed is the same. i.e. the speed benefit is a fixed amount of time per script. This means you'll notice the speedup much more on shorter scripts. Now the bad news. The PHP ISAPI module is not very stable. For me, it won't work for more than a couple of requests without falling over. Others report more success. If you want the speed benefit of a server API version, plus stability, change from IIS to Apache and run the Apache module version of PHP. Cheers -- Phil Driscoll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] plz check the warning message
On Mon, Aug 13, 2001 at 02:01:59PM +0530, Balaji Ankem wrote: Hi! Renze, Thanks a lot for u'r help. I am in vacation up to now. Now i am trying with u'r solution. I am getting the following error. I am sending the file also. Warning: Cannot send session cache limiter - headers already sent in c:\www\authentication.php on line 34 File:authentication.php ?php header (Cache-Control: no-cache, must-revalidate); header (Pragma: no-cache); error_log (emp_id: $emp_id, 0); error_log (Lastname: $emp_pass, 0); // Connect to MySQL mysql_connect( 'localhost', 'balaji', 'pingpong' ) or die ( 'Unable to connect to server.' ); // Select database on MySQL server mysql_select_db( 'imac' ) or die ( 'Unable to select database.' ); // Formulate the query $sql = SELECT * FROM employee WHERE emp_id = '$emp_id' AND emp_pass = '$emp_pass'; // Execute the query and put results in $result $result = mysql_query( $sql ) or die ( 'Unable to execute query.' ); // Get number of rows in $result. $num = mysql_numrows( $result ); if ( $num != 0 ) { // A matching row was found - the user is authenticated. session_start(); session_register('$emp_id'); $row = mysql_fetch_object($result); if ($row-user_type=='S') { include('super.php'); } else if ($row-user_type=='O') { include('ordinary.php'); } } else { file://User does not exist or not authenticated. echo 'centerh1Authorization Required./h1/center'; file://header( 'WWW-Authenticate: Basic realm=Private' ); file://header( 'HTTP/1.0 401 Unauthorized' ); exit; } ? Well... You can't sent any headers after some output has already been sent. I didn't take a very good look at your code, but looking at the warning you get and the position of session_start() in your code, I'd say you have to move the session_start() up. You can best start your code with session_start() and then the rest of your script. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: Reliable PHP web hosts
I'm quite happy with SiteTurn. You can check them out through www.siteturn.com Pere -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] something about the documentation
Hi there there is something missing in the documentation. in this case is about mysql here is the source that i paste from the website -- $link = mysql_connect(mysql_host, mysql_login, mysql_password) or die (Could not connect); print (Connected successfully); mysql_select_db (my_database) or die (Could not select database); $query = SELECT * FROM my_table; $result = mysql_query ($query) or die (Query failed); --- as i see the $link that do mysql_connect had been state but never been call in the progress such as mysql_select_db(my_database) [ sould be mysql_select_db(my_database,$link) ] so i assume that there wouldn't be any connection to mysql. sorry if i'm wrong but for the newbies it's can be a miss guide Thanks in Advance Yamin Prabudy
Re: [PHP] something about the documentation
The $link argument is optional. If you don't specify one it will just use the last one created. -Rasmus On Mon, 13 Aug 2001, Yamin Prabudy wrote: Hi there there is something missing in the documentation. in this case is about mysql here is the source that i paste from the website -- $link = mysql_connect(mysql_host, mysql_login, mysql_password) or die (Could not connect); print (Connected successfully); mysql_select_db (my_database) or die (Could not select database); $query = SELECT * FROM my_table; $result = mysql_query ($query) or die (Query failed); --- as i see the $link that do mysql_connect had been state but never been call in the progress such as mysql_select_db(my_database) [ sould be mysql_select_db(my_database,$link) ] so i assume that there wouldn't be any connection to mysql. sorry if i'm wrong but for the newbies it's can be a miss guide Thanks in Advance Yamin Prabudy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IE Download twice from DB - MAJOR disaster to db users
Hi - All db users read this !! I know it download it twice because in Netscape it take half of the time and also I see it start in the left bottom bar. I read that IE first read the headers fully ( including the file ) and then ask it again for opening. While Netscape read the file only once. Any ideas ? If I download from db twice while using IE means that all php servers that serve file from phtml cause the same problem, and that's a Major Problem :( Every one in the list that use db to store files should try to download the files with IE and Mozilla while measuring the time its take !!! Ill probably open a bug if no one will have idea how to disable double reading of the file or how to guess when IE read the headers and when its reading the file itself. How do you know it downloads them twice? What are you seeing? Also, if you want it downloaded, Content-type should be application/octet-stream. Perhaps that's causing the browser snag it and try to display it on top of the download... Sounds like how MS would code it. Hi All I store files on MYSQL server but when I try to pull them out ( show them on screen or download ) with IE it download them twice before showing them up :( I played with the headers (adding, removing) with no success. by the way in Netscape its work fine. here is the last code tried: ? $query = select * from files where issue_id='$id'; $result = mysql_query ($query) or die (Invalid query); $data = @MYSQL_RESULT($result,0, file_data); $type = @MYSQL_RESULT($result,0, file_type); $file_name = @MYSQL_RESULT($result,0, file_name); $file_size = @MYSQL_RESULT($result,0, file_size); // # To force save file file://header(Content-disposition: attachment; filename=\$file_name\); Header(Content-type: $type); header(Content-Length: $file_size); header(Content-Disposition: inline; filename=$file_name); echo $data; ? -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Apache/PHP File Upload problems
I have a server running SuSE Linux Pro V7.0 (with security patches) , Apache 1.3.19 , and PHP 3.0.17-dev. The database engine I am using is MySQL 3.22.32 (not relevant for this problem though). I am trying to get file uploads working to the server, I currently have a page which is written in PHP to dynamically create a form complete with file input field. Form is set to multipart/form-data encoding type and is displayed OK in the browser. The form has a valid php file included in the action part of the form tag. I have set the upload_tmp_dir variable in the php3.ini file to a valid pathname with the relevant permissions set. If I try to submit a file for upload using the form using Netscape I get Document contains no data. If I do the same in IE5.0 it just waits forever. Looking at the apache server error_log file I appear to be getting a Segmentation Fault (11) each time I try and Post the contents of the form to the server. Has anyone else had this problem? Is there something I need to switch on in either apache or PHP to support file upload? I have tried looking at the file upload tutorial in the PHP manual and it is the same as I am trying to implement, seems like my system isn't happy somewhere...! Any help would be appreciated. Thanks Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: it works at last!
oh dear. Steve [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Okay I got it working! http://www.futurebird.com/wordstream/index.php3 go on give it a try! Susan -- [EMAIL PROTECTED] http://futurebird.diaryland.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
Try using .htaccess or ini_set() - perhaps this will help you when on shared server. regards, Maxim Maletsky -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:12 PM To: karthik Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() THe same .. did not make a difference .. for php.ini settings : I am on a virtual hosting .. so I do not have access to the php.ini file -Original Message- From: karthik [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 9:43 AM To: Mahmoud Kassem Subject: Re: [PHP] Mail() Hi Try mail($emailto_owner..$emailto.,$subject,$message,$headers); It worked for me when i had a similar problem. And do check the settings in php.ini for mails. Karthik. - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 12:04 PM Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP and SMS
Hello everyone, Has anyone used php to implement SMS (short message service) on a site? I found something on simplewire.com but I was wondering what other options are available? I couldn't find anything in the archives or on php.net so I appreciate any help or leads in this area. --ahmad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using fsockopen()
Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: "David Ovens" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using fsockopen()
Is the timeout coming from fsockopen() or from the program using too much time? I've used @fsockopen() before without any issues (at least on Linux and Solaris), but if your script is running for a long time, you may need to tweak the execution time limit: http://www.php.net/manual/en/function.set-time-limit.php - Tim On 13 Aug 2001 11:40:04 +0100, David Ovens wrote: Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: David Ovens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] MySQL
Please help me. How can I run mysql daemon on RedHat Linux. I install db with script mysql_install_db. roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] MySQL
if you mean how do you get mysqld to startup automatically then you need to call mysql.server start at bootup Regards Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Roman [mailto:[EMAIL PROTECTED]] Sent: 13 August 2001 11:55 To: Php-General Subject: [PHP] MySQL Please help me. How can I run mysql daemon on RedHat Linux. I install db with script mysql_install_db. roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] prob with session start
Hi! friend, I want to start session if authentication is succesfull means if he is a valid user. Then what i have to do Renze?? Thanks in advance. With warm regards -Balaji - Original Message - From: Renze Munnik To: Balaji Ankem Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 2:04 PM Subject: Re: [PHP] plz check the warning message On Mon, Aug 13, 2001 at 02:01:59PM +0530, Balaji Ankem wrote: Hi! Renze, Thanks a lot for u'r help. I am in vacation up to now. Now i am trying with u'r solution. I am getting the following error. I am sending the file also. Warning: Cannot send session cache limiter - headers already sent in c:\www\authentication.php on line 34 File:authentication.php ?php header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); error_log ("emp_id: $emp_id", 0); error_log ("Lastname: $emp_pass", 0); // Connect to MySQL mysql_connect( 'localhost', 'balaji', 'pingpong' ) or die ( 'Unable to connect to server.' ); // Select database on MySQL server mysql_select_db( 'imac' ) or die ( 'Unable to select database.' ); // Formulate the query $sql = "SELECT * FROM employee WHERE emp_id = '$emp_id' AND emp_pass = '$emp_pass'"; // Execute the query and put results in $result $result = mysql_query( $sql ) or die ( 'Unable to execute query.' ); // Get number of rows in $result. $num = mysql_numrows( $result ); if ( $num != 0 ) { // A matching row was found - the user is authenticated. session_start(); session_register('$emp_id'); $row = mysql_fetch_object($result); if ($row-user_type=='S') { include('super.php'); } else if ($row-user_type=='O') { include('ordinary.php'); } } else { file://User does not exist or not authenticated. echo 'centerh1Authorization Required./h1/center'; file://header( 'WWW-Authenticate: Basic realm="Private"' ); file://header( 'HTTP/1.0 401 Unauthorized' ); exit; } ?Well... You can't sent any headers after some output has alreadybeen sent. I didn't take a very good look at your code, but lookingat the warning you get and the position of session_start() in yourcode, I'd say you have to move the session_start() up. You can beststart your code with session_start() and then the rest of yourscript.-- * RzE:-- -- Renze Munnik-- DataLink BV E: [EMAIL PROTECTED]-- W: +31 23 5326162-- F: +31 23 5322144-- M: +31 6 21811143-- H: +31 23 5516190 Stationsplein 82-- 2011 LM HAARLEM http://www.datalink.nl-- -- PHP General Mailing List (http://www.php.net/)To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]To contact the list administrators, e-mail: [EMAIL PROTECTED] --- Information transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] session_start() problem
lines in the acceso.php file: 27 session_name(primera); 28 session_start(); 29 session_register(sesionvar); 30 $HTTP_SESSION_VARS[sesionvar] = fulanito; what I get in the browser: Warning: Cannot send session cookie - headers already sent by (output started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on line 28 Warning: Cannot send session cache limiter - headers already sent (output started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on line 28 some help please thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using fsockopen()
this is my fsockopen satement it will check about 4/5 urls and then time out (exceed 30 second timeout error) on the 5/6 url, I have no idea, why my program wont continue checking all the urls in one go. $socket = @fsockopen($urlArray[host], $urlArray[port], $errnum, $errstr, 100); - Original Message - From: Tim [EMAIL PROTECTED] To: David Ovens [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 11:55 AM Subject: Re: [PHP] Using fsockopen() Is the timeout coming from fsockopen() or from the program using too much time? I've used @fsockopen() before without any issues (at least on Linux and Solaris), but if your script is running for a long time, you may need to tweak the execution time limit: http://www.php.net/manual/en/function.set-time-limit.php - Tim On 13 Aug 2001 11:40:04 +0100, David Ovens wrote: Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: David Ovens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_start() problem
Did you make sure everything below is BEFORE the html tag? Also you can just set the variable $sesionvar like this: $sesionvar = fulanito; instead of $HTTP_SESSION_VARS[sesionvar] = fulanito; lines in the acceso.php file: 27 session_name(primera); 28 session_start(); 29 session_register(sesionvar); 30 $HTTP_SESSION_VARS[sesionvar] = fulanito; what I get in the browser: Warning: Cannot send session cookie - headers already sent by (output started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on line 28 Warning: Cannot send session cache limiter - headers already sent (output started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on line 28 some help please thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using fsockopen()
so far by increasing the set_tim_limit function it seems to have cured my problem. I shall see how it goes. Thanks Dave - Original Message - From: Tim [EMAIL PROTECTED] To: David Ovens [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 11:55 AM Subject: Re: [PHP] Using fsockopen() Is the timeout coming from fsockopen() or from the program using too much time? I've used @fsockopen() before without any issues (at least on Linux and Solaris), but if your script is running for a long time, you may need to tweak the execution time limit: http://www.php.net/manual/en/function.set-time-limit.php - Tim On 13 Aug 2001 11:40:04 +0100, David Ovens wrote: Thought I would repost, does anyone have a solution ? I am using php, apache on a windows system. - Original Message - From: David Ovens [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 1:26 AM Subject: [PHP] Using fsockopen() I am making a program, that uses the fsockopen command looking at various url's, but occasionally it stops with a timeout error, I have used the @ infront of the fsockopen command, but it still times out with the error, how do I make php ignore the error so that I can make it automatically retry or do something else ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using fsockopen()
Try doing set_time_limit(0); at the start of your script and see if that makes a difference. - Tim On 13 Aug 2001 12:00:24 +0100, David Ovens wrote: this is my fsockopen satement it will check about 4/5 urls and then time out (exceed 30 second timeout error) on the 5/6 url, I have no idea, why my program wont continue checking all the urls in one go. $socket = @fsockopen($urlArray[host], $urlArray[port], $errnum, $errstr, 100); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: prob with session start
On Mon, Aug 13, 2001 at 04:33:49PM +0530, Balaji Ankem wrote: Hi! friend, I want to start session if authentication is succesfull means if he is a valid user. Then what i have to do Renze?? Thanks in advance. With warm regards -Balaji I think (haven't got time to test it) you should move the two header()-lines down. Just put them right before you want to sent some output. Or, ofcourse, right behind the session_start(). Think that should do the job. You just have to keep in mind, that no output should be sent before you try to send headers and that session_start() should be as close as possible to the start of your script. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Form help
Hi, input type=checkbox name=sif_? echo $wponud[6]; ? value=1 I'd do it like this: inpuut type=checkbox name=magazines[] Value=?php echo $wpound[6]; ? Now you have an array containing all the checked magazines. To get and write them into the DB you could use implode() in combination with a field of the type SET or do a while (list($key,$value)=each($magazines)) { Do some query stuff with your primary key in $value; } cheers Johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] thanks all sesion_start problem
Ok. Richard was right, the php code was placed in the middle of the html. I place it at the beguining oh the file (before html) and it works. Thanks Thanks also Daniel for your advice: first use session_start() and than session_name Did you make sure everything below is BEFORE the html tag? Also you can just set the variable $sesionvar like this: $sesionvar = fulanito; instead of $HTTP_SESSION_VARS[sesionvar] = fulanito; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using fsockopen()
Hi All I'm new in this forum and this is a test message if you recived it please only reply this message . Thanks in advance _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Test
hi all I'm new in this forum and this is a only test message if you recieved it please only reply this message thsnks in advance
RE: [PHP] IE Download twice from DB - MAJOR disaster to db users
why don't you do some testing first. write these two lines: ? mail( '[EMAIL PROTECTED]', 'visiting myself', Sucked off $PHP_SELF on $HTTP_USER_AGENT ); sleep(2); // just for the sake of it ? go to the page with several different browsers and catch your emails, see how many times it loads it. Cheers, Maxim Maletsky www.PHPBeginner.com -Original Message- From: Ben-Nes Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 5:56 PM To: Richard Lynch; [EMAIL PROTECTED] Subject: [PHP] IE Download twice from DB - MAJOR disaster to db users Importance: High Hi - All db users read this !! I know it download it twice because in Netscape it take half of the time and also I see it start in the left bottom bar. I read that IE first read the headers fully ( including the file ) and then ask it again for opening. While Netscape read the file only once. Any ideas ? If I download from db twice while using IE means that all php servers that serve file from phtml cause the same problem, and that's a Major Problem :( Every one in the list that use db to store files should try to download the files with IE and Mozilla while measuring the time its take !!! Ill probably open a bug if no one will have idea how to disable double reading of the file or how to guess when IE read the headers and when its reading the file itself. How do you know it downloads them twice? What are you seeing? Also, if you want it downloaded, Content-type should be application/octet-stream. Perhaps that's causing the browser snag it and try to display it on top of the download... Sounds like how MS would code it. Hi All I store files on MYSQL server but when I try to pull them out ( show them on screen or download ) with IE it download them twice before showing them up :( I played with the headers (adding, removing) with no success. by the way in Netscape its work fine. here is the last code tried: ? $query = select * from files where issue_id='$id'; $result = mysql_query ($query) or die (Invalid query); $data = @MYSQL_RESULT($result,0, file_data); $type = @MYSQL_RESULT($result,0, file_type); $file_name = @MYSQL_RESULT($result,0, file_name); $file_size = @MYSQL_RESULT($result,0, file_size); // # To force save file file://header(Content-disposition: attachment; filename=\$file_name\); Header(Content-type: $type); header(Content-Length: $file_size); header(Content-Disposition: inline; filename=$file_name); echo $data; ? -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] email newsletter with MySQL - help please!
Being a rather new to php I find myself completely stuck on a script which is possibly a piece of cake for most of you: I want to set up a weekly ezine. Both email addresses and news articles will be retrieved from two separate MySQL tables called subscribers and newsarticles. I put together the following script but it doesn't work the way I want it to: ?php $listquery = SELECT emailaddress FROM subscribers; $listresult = mysql_query($listquery); while($listrow = mysql_fetch_array($listresult)) { $newsquery = SELECT * FROM newsarticles; $newsresult = mysql_query($newsquery); while($newsrow = mysql_fetch_array($newsresult)) { $message = $newsrow[article]; } $recipient = $listrow[emailaddress]; $subject = Welcome to my ezine; $mailheaders = From: [EMAIL PROTECTED]\n; $mailheaders .= Reply-To: [EMAIL PROTECTED]; mail($recipient, $subject, $message, $mailheaders); } echo (The message has been sent/p); ? That's it. A message IS being sent to all subscribers, but somehow, this message only contains the latest newsarticle in the database in stead of the whole array. What am I doing wrong? Any help in this will be greatly appreciated! Best, Herman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Results of survey I asked
Earlier, I asked some questions about what you use in developing PHP applications. First, the questions, and then the answers: Questions 1. Code libraries used: a) Metabase (for database abstraction) b) PHPLib c) PEAR d) BinaryCloud e) other 2. What code editor do you use? 3. How many are using templates, and if so, are you using a template framework: a) PHPLib b) Smarty c) other? Answers (number of respondents in brackets) 1. adodb (1) BinaryCloud (1) A mixture of PEAR's database abstraction, PHPLIB's template class and my own libraries and classes (1) 2. UltraEdit (1), DreamWeaver 4 (2), AceHTML4 Pro from visicom.com (1), Homesite (2), vim (1), FrontPage (1), PHPCoder http://www.phpide.de (2), emacs (1), TextPad (1), ConTEXT (1), EditPlus (1) 3. Smarty (1) Summary: not a huge statistical sample, but interestingly there were hardly any duplicate responses. Also, it seems using published templates and code libraries is not that popular, i.e. most people are writing their own code from scratch. Gerry
[PHP] Having trouble with PHP exec function calling CGI program
Hello list members I'm a newbie and having trouble with the EXEC function call from a PHP script. I've submitted this problem to the list last week but so far no response. And I still haven't figured it out. So here goes again. PHP EXEC function seems to work ok for executing shell commands like 'ls -al' etc. but when I execute the following PHP web page code... -- $basedir = '/mnt/web/xxx/myplace'; $cdir = $basedir . '/cgibin'; $cmd = cd $cdir;pwd;perl -w myscript.cgi; echo cmd: $cmdbr; $result = exec($cmd,$arr,$status); echo status: $status [$result]br; -- The cgi program has been chmod'ed to 755 so it can run from a webpage and the cgi program runs fine when _not_ called from the PHP script. I get a status code of 155. Can someone please explain what this error code means! Thanks in advance Tony Frasketi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How to get the query string?
hi guys, I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for ($a=1;$a=sizeof($HTTP_POST_VARS);$a++){ echo $a. .$HTTP_POST_VARS[$a].br; } Please help Tamas Bucsu
[PHP] Site Stats/Server Logs
what are some good things for analyising server logs?!? I currently have Wusage, is there any better?!? :D - James ReDucTor Mitchell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] email newsletter with MySQL - help please!
Try something like: ?php $listquery = SELECT emailaddress FROM subscribers; $listresult = mysql_query($listquery); $newsquery = SELECT * FROM newsarticles; $newsresult = mysql_query($newsquery); while($listrow = mysql_fetch_array($listresult)) { $newsrow = mysql_fetch_array($newsresult)) $message = $newsrow[article]; $recipient = $listrow[emailaddress]; $subject = Welcome to my ezine; $mailheaders = From: [EMAIL PROTECTED]\n; $mailheaders .= Reply-To: [EMAIL PROTECTED]; mail($recipient, $subject, $message, $mailheaders); } echo (The message has been sent/p); ? if it works, which it should, and you would like to know why, please email me and Ill explain it ;) Being a rather new to php I find myself completely stuck on a script which is possibly a piece of cake for most of you: I want to set up a weekly ezine. Both email addresses and news articles will be retrieved from two separate MySQL tables called subscribers and newsarticles. I put together the following script but it doesn't work the way I want it to: ?php $listquery = SELECT emailaddress FROM subscribers; $listresult = mysql_query($listquery); while($listrow = mysql_fetch_array($listresult)) { $newsquery = SELECT * FROM newsarticles; $newsresult = mysql_query($newsquery); while($newsrow = mysql_fetch_array($newsresult)) { $message = $newsrow[article]; } $recipient = $listrow[emailaddress]; $subject = Welcome to my ezine; $mailheaders = From: [EMAIL PROTECTED]\n; $mailheaders .= Reply-To: [EMAIL PROTECTED]; mail($recipient, $subject, $message, $mailheaders); } echo (The message has been sent/p); ? That's it. A message IS being sent to all subscribers, but somehow, this message only contains the latest newsarticle in the database in stead of the whole array. What am I doing wrong? Any help in this will be greatly appreciated! Best, Herman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Interbase lob field on the web
Hi i have a problem printing a lob field containing an image. The database i use is Interbase 6.0 I have a blob/lob field with a gif image inside an i like to print this image on the web. Can you help me? Bye Alessandro
Re: [PHP] Site Stats/Server Logs
I'm rather fond of Webalizer. - Tim On 13 Jul 2001 23:07:46 +1000, ReDucTor wrote: what are some good things for analyising server logs?!? I currently have Wusage, is there any better?!? :D - James ReDucTor Mitchell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
your MTA is setting the envelope, not your script. if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag. -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:34 AM To: ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to get the query string?
On Mon, Aug 13, 2001 at 03:06:48PM +0200, Tamas Bucsu wrote: hi guys, I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for ($a=1;$a=sizeof($HTTP_POST_VARS);$a++){ echo $a. .$HTTP_POST_VARS[$a].br; } Please help Tamas Bucsu For the complete query-string: $HTTP_SERVER_VARS{QUERY_STRING} Eg.: http://www.some-domain.com/index.php?one=xxxtwo=yyy $HTTP_SERVER_VARS{QUERY_STRING}: one=xxxtwo=yyy; But you can also use: $HTTP_GET_VARS{one} and $HTTP_GET_VARS{two}, etc: $HTTP_GET_VARS{one}: xxx; $HTTP_GET_VARS{two}: yyy; Or you can use: $one and $two, etc. $one: xxx $two: yyy -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to get the query string?
foreach ($HTTP_POST_VARS as $key=$value) { echo $key = $value; } -Stewart -Original Message- From: Tamas Bucsu [mailto:[EMAIL PROTECTED]] Sent: 13 August 2001 14:07 To: [EMAIL PROTECTED] Subject: [PHP] How to get the query string? hi guys, I'd like to get the query string the browser sends to the script. The problem is that since the $HTTP_POST_VARS (or $HTTP_GET_VARS ) is an associative array I can't use numbers to point to the elements of this array. This piece of code does not work: for ($a=1;$a=sizeof($HTTP_POST_VARS);$a++){ echo $a. .$HTTP_POST_VARS[$a].br; } Please help Tamas Bucsu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Question about grant user right to MySql
Sorry, all, but i couldn't fine any Mysql News group around, so i sent this message here, as i found php got a close relationship with mysql. could someone pls tell me how i can grant a user to logon to the database from any computer around the office? i had read a book and the book told me to type this command: Grant all on samp.* to username@% IDENTIFIED BY password The book said that the % is stand for the user can logon to the system at any computer! But i think mysql server take the % as a invaild character. Could somone pls tell me if there is another way to Grant the permission to a user which he can login to the system from any computer? Thx Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Having trouble with PHP exec function calling CGI program
Hi, Tony, I'm a middlebie, and I have the same problem. From the archives, I found the following suggestions from Richard Lynch: Does it work perfectly from the command line if you su to nobody (or whomever PHP runs as) before you execute it? Is it world executable? Does it access resources such as PGP key-rings that nobody can/cannot access? Are you sure you have the path correct? In my case, the answer is yes to all of the above (except for su'ing to nobody since I can't do that on this client's server). I've also discovered that it's usually a path/permission problem unless the server was built in 'safe mode' in which case, no script can be called. I added in `date`; to see if I could execute anything nothing happened, so I fear this. Now all I need to do is read up on suid in the PHP manual.Thankfully, this is just a tool for the client, and not something the world will see. Any other suggestions? Lara - Original Message - From: Tony Frasketi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 6:08 AM Subject: [PHP] Having trouble with PHP exec function calling CGI program Hello list members I'm a newbie and having trouble with the EXEC function call from a PHP script. I've submitted this problem to the list last week but so far no response. And I still haven't figured it out. So here goes again. PHP EXEC function seems to work ok for executing shell commands like 'ls -al' etc. but when I execute the following PHP web page code... -- $basedir = '/mnt/web/xxx/myplace'; $cdir = $basedir . '/cgibin'; $cmd = cd $cdir;pwd;perl -w myscript.cgi; echo cmd: $cmdbr; $result = exec($cmd,$arr,$status); echo status: $status [$result]br; -- The cgi program has been chmod'ed to 755 so it can run from a webpage and the cgi program runs fine when _not_ called from the PHP script. I get a status code of 155. Can someone please explain what this error code means! Thanks in advance Tony Frasketi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] new one is it ??
Boy that looks familiar...my (apache) logs are full of 'em. I wonder if we can make a PHP script called default.ida that sends back a big chunk of data and causes the worm to get a buffer overflow? :) :) - Tim (glad I don't run IIS :) On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote: 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?NNN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] URL Rewrite Problems...
Hello Everyone, I have recently written a script to change htpasswd via a web interface. The script is running fine, but all of the variables (by default) are being sent in the url. I have not called any of the URL functions, so I am not exactly sure why this is happening. Is there something in the php.ini or at compile time which is enabling this. The problem ends up being that passwords are sent in plain text in the url! Help! Brendan _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] URL Rewrite Problems...
You forgot to add a method=POST into your form tag. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 13 Aug 2001 09:35:39 -0500 Brendan P. Caulfield [EMAIL PROTECTED] wrote: Hello Everyone, I have recently written a script to change htpasswd via a web interface. The script is running fine, but all of the variables (by default) are being sent in the url. I have not called any of the URL functions, so I am not exactly sure why this is happening. Is there something in the php.ini or at compile time which is enabling this. The problem ends up being that passwords are sent in plain text in the url! Help! Brendan _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
I said before I do not have access to the php.ini I am on a virtual Hosting ... -Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:43 PM To: Mahmoud Kassem; ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() your MTA is setting the envelope, not your script. if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag. -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:34 AM To: ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] The secrecy of PHP code
Greetings, How safe is the code written in PHP? For instance, if I have an equation or some algorithm with some constants for calculations and I code them in PHP for use on a website are they safe from being viewed or taken? Thanks James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Question about grant user right to MySql
Try these links for MySQL news: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) Best Regards René Jack wrote: Sorry, all, but i couldn't fine any Mysql News group around, so i sent this message here, as i found php got a close relationship with mysql. could someone pls tell me how i can grant a user to logon to the database from any computer around the office? i had read a book and the book told me to type this command: Grant all on samp.* to username@% IDENTIFIED BY password The book said that the % is stand for the user can logon to the system at any computer! But i think mysql server take the % as a invaild character. Could somone pls tell me if there is another way to Grant the permission to a user which he can login to the system from any computer? Thx Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The secrecy of PHP code
The only real way to see the php code is if you don't have the webserver set to parse the code...then it will just be displayed on the page (or downloaded). If you're really paranoid, you can get a tool to encrypt your php code. There's some free ones, but here's a costly one that I know of: www.zend.com Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 13 Aug 2001 07:43:17 -0700 James Shaker [EMAIL PROTECTED] wrote: Greetings, How safe is the code written in PHP? For instance, if I have an equation or some algorithm with some constants for calculations and I code them in PHP for use on a website are they safe from being viewed or taken? Thanks James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] new one is it ??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 what about something like this ? (just configure apache to have PHP handle *.ida files) ? // this is so our script won't time out set_time_limit(0); // how many bytes of junk to generate $jsize = 1024 * 10; // how many times to print $junk $jout = 1; // generate some random junk $n = 0; while ($n++ $jsize) { $junk .= chr( rand(1,200) ); } $i = 0; while ( $i++ $jout ) { print $junk; } ? -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] new one is it ?? Boy that looks familiar...my (apache) logs are full of 'em. I wonder if we can make a PHP script called default.ida that sends back a big chunk of data and causes the worm to get a buffer overflow? :) :) - Tim (glad I don't run IIS :) On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote: 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?NNN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz l7k1s47s8EdDHnM+jLZzDuL2 =z2GG -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] The secrecy of PHP code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 they are kinda safe if the webserver is the only way that your files can be viewed if people can log into the machine, they could just view the plaintext of your PHP script. hint: security thru obscurity is not secure. -Original Message- From: James Shaker [mailto:[EMAIL PROTECTED]] Subject: [PHP] The secrecy of PHP code Greetings, How safe is the code written in PHP? For instance, if I have an equation or some algorithm with some constants for calculations and I code them in PHP for use on a website are they safe from being viewed or taken? Thanks James -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO3fmwMaXTGgZdrSUEQLANQCg5dnsmDdp9rouyXmk1Wuy7/NHd3YAoIBs A2zlBYvpjbk/K35h54V97r/x =+Sy4 -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Having trouble with PHP exec function calling CGI program
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 it could be that the webserver chroot()'s to some secure path, and thus your script cannot find `date`. perhaps all you have to do is to copy the binaries that you need into the safe directory (if you can first find out where the server is chroot()ing to) if you think that your server is doing this, read up on sandboxing, it might help you get a better picture of what's going on. -Original Message- From: Lara J. Fabans [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Having trouble with PHP exec function calling CGI Hi, Tony, I added in `date`; to see if I could execute anything nothing happened, so I fear this. Now all I need to do is read up on suid in the PHP manual.Thankfully, this is just a tool for the client, and not something the world will see. Any other suggestions? Lara -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO3fnh8aXTGgZdrSUEQJRDACfdgGqeflDgZwq195fCsXnnDEUwNYAnjoR Z6MO47A8h5YdcECWy9ANrJdb =WoFm -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] new one is it ??
Unfortunately, you're punishing the infected person, rather than the instigator of the worm. I've read of people developing perl scriptlets that basically hold the connection open as long as possible by fooling the other side into thinking that it's got a host it's infecting... thereby slowing down the propagation of the worm. The numbers I saw indicated that with version 1 of the worm, and it's 100 threads, holding a connection as long as possible before timing out (which is what, 5 minutes?) slows the propagation of the worm 265,000% But (personally) I dont think it's appropriate to lash back against an infected machine (though a quick why dont you patch your @#(*)( machines to the network owner has been known to occur on occasion when I get hit by many many servers within a given netblock). -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 10:38 AM To: php Subject: RE: [PHP] new one is it ?? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 what about something like this ? (just configure apache to have PHP handle *.ida files) ? // this is so our script won't time out set_time_limit(0); // how many bytes of junk to generate $jsize = 1024 * 10; // how many times to print $junk $jout = 1; // generate some random junk $n = 0; while ($n++ $jsize) { $junk .= chr( rand(1,200) ); } $i = 0; while ( $i++ $jout ) { print $junk; } ? -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] new one is it ?? Boy that looks familiar...my (apache) logs are full of 'em. I wonder if we can make a PHP script called default.ida that sends back a big chunk of data and causes the worm to get a buffer overflow? :) :) - Tim (glad I don't run IIS :) On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote: 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?N NN NN NN NN NN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u909 0%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0 000%u00=a HTTP/1.0 400 333 - - - -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz l7k1s47s8EdDHnM+jLZzDuL2 =z2GG -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] variable variables and eval
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, i have come across a strange problem with variable variables. Basicly i'm doing the following and its not working: $section = 'data[SITE][0][NAME][0]'; $pData = 'My Site.'; ${sprintf('$%s', $section)}.=$pData; but it is not working. But if i do this: eval('$'.$section.'.='.addslashes($pData).';'); it works and all is well. I don't really want to use eval() and just wanted to see if anybody has any ideas why the above doesn't work. Thanks, William. -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBO3foS639EoU2VrU1EQIPZgCcCg643+F0xDUXdsBSYAYInFStaJ0An2ID AKL4hMIktbRsQpyVgkoeKsDo =w0ei -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] new one is it ??
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could, of course, throw a few sleep() stmnts in there to get the script to output a few bytes every few seconds and keep the connection active... :-) -Original Message- From: Scott Brown [mailto:[EMAIL PROTECTED]] Subject: RE: [PHP] new one is it ?? Unfortunately, you're punishing the infected person, rather than the instigator of the worm. I've read of people developing perl scriptlets that basically hold the connection open as long as possible by fooling the other side into thinking that it's got a host it's infecting... thereby slowing down the propagation of the worm. The numbers I saw indicated that with version 1 of the worm, and it's 100 threads, holding a connection as long as possible before timing out (which is what, 5 minutes?) slows the propagation of the worm 265,000% But (personally) I dont think it's appropriate to lash back against an infected machine (though a quick why dont you patch your @#(*)( machines to the network owner has been known to occur on occasion when I get hit by many many servers within a given netblock). -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 10:38 AM To: php Subject: RE: [PHP] new one is it ?? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 what about something like this ? (just configure apache to have PHP handle *.ida files) ? // this is so our script won't time out set_time_limit(0); // how many bytes of junk to generate $jsize = 1024 * 10; // how many times to print $junk $jout = 1; // generate some random junk $n = 0; while ($n++ $jsize) { $junk .= chr( rand(1,200) ); } $i = 0; while ( $i++ $jout ) { print $junk; } ? -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] new one is it ?? Boy that looks familiar...my (apache) logs are full of 'em. I wonder if we can make a PHP script called default.ida that sends back a big chunk of data and causes the worm to get a buffer overflow? :) :) - Tim (glad I don't run IIS :) On 13 Aug 2001 22:27:06 +0800, Mark Lo wrote: 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?N NN NN NN NN NN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u909 0%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0 000%u00=a HTTP/1.0 400 333 - - - -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO3fmM8aXTGgZdrSUEQKRAgCgrGf+r6Fma17L39tEVp8lwanC+FwAoJlz l7k1s47s8EdDHnM+jLZzDuL2 =z2GG -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBO3foz8aXTGgZdrSUEQITGQCgwxmL0KexmBSj+FBC4uyv6XXhr30AoJie j67nEMhjOm2Jh8w4tLaofCSq =CpO9 -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] OOP message board
hi does anybody know of a message board written in OOP style? thanks for helping; regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] session_start() part II
ok, let's have this in the right place in a file named startsesion.php i.e. session_start(); session_name(mysesion); session_register(myvar); $myvar = whatever; a SID is generated autmaticaly I've been trying to echo the values of the var defined and the SID generated in another php file ?php echo ($sesionvar); ? not working ?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working ?php echo ($GLOBALS[$sesionvar]); ? not working ?php echo session_name(); ? not working ?php echo ($PHPSESSID); ? not working how can I get this values? thanks, gracias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_start() part II
On Mon, Aug 13, 2001 at 04:57:08PM +0200, Aniceto Lopez wrote: ok, let's have this in the right place in a file named startsesion.php i.e. session_start(); session_name(mysesion); session_register(myvar); $myvar = whatever; a SID is generated autmaticaly I've been trying to echo the values of the var defined and the SID generated in another php file ?php echo ($sesionvar); ? not working ?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working ?php echo ($GLOBALS[$sesionvar]); ? not working ?php echo session_name(); ? not working ?php echo ($PHPSESSID); ? not working how can I get this values? thanks, gracias Did you use session_start() in the file where you try to output data from the session? -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
rather than be rude about it, try reading the whole message and then looking through the PHP documentation. http://www.php.net/manual/en/function.ini-set.php === ini_set (PHP 4 = 4.0RC1) ini_set -- Set the value of a configuration option Description string ini_set (string varname, string newvalue) Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending. Not all the available options can be changed using ini_set(). Below is a table with a list of all PHP options (as of PHP 4.0.5-dev), indicating which ones can be changed/set and at what level. === -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:40 AM To: Michael Geier, CDM Systems Admin Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I said before I do not have access to the php.ini I am on a virtual Hosting ... -Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:43 PM To: Mahmoud Kassem; ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() your MTA is setting the envelope, not your script. if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag. -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:34 AM To: ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: Reliable PHP web hosts
Does anyone have any experience with www.linuxwebhost.com or www.addr.com? Dan Pierce Web Developer Saturn Systems -Original Message- From: Pere Vineta [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 3:53 AM To: [EMAIL PROTECTED] Subject: RE: Reliable PHP web hosts I'm quite happy with SiteTurn. You can check them out through www.siteturn.com Pere -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] new one is it ??
-Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:38 AM To: Mark Lo Cc: php general Subject: Re: [PHP] new one is it ?? Boy that looks familiar...my (apache) logs are full of 'em. I wonder if we can make a PHP script called default.ida that sends back a big chunk of data and causes the worm to get a buffer overflow? :) :) I rather liked this approach that I saw posted in another list: http://www.klippan.seths.se/default.phps (Does some hostname/whois lookups on the infected server and attempts to email some people who might be able to do something about it.) --- Mark Roedel | Blessed is he who has learned to laugh Systems Programmer| at himself, for he shall never cease LeTourneau University | to be entertained. Longview, Texas, USA | -- John Powell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] re: IE double download
I read that IE first read the headers fully ( including the file ) and then ask it again for opening while Netscape read the file only once. This description matches what I've seen. Here's what I've come up with that seems to work for IE and Netscape on Windows and Mac. //$y is the full pathname of the file ... $x = stat( $y ); header( Accept-Ranges: bytes ); header( Content-Length: . $x[7] ); header( Connection: close ); $a = basename( $y ); if( strpos($a,':') ) $a = substr( $a,0,strpos($a,':') ); if( strpos($y,'.') ) $z = substr( $y,strrpos($y,'.') ); // get suffix else $z = 0; if( $z ) { if( strpos($z,':') ) $z = substr( $z,1,strpos($z,':')-1 ); else $z = substr( $z,1 ); header( Content-Type: . FindMime($z) ); // FindMime is my function } else { header( Content-Type: application/octet-stream ); } readfile( $y ); exit; -- Bill Rausch, Software Development, Unix, Mac, Windows Numerical Applications, Inc. 509-943-0861 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] session_start() part III
I guess Renze, I have to use session_start() in the file where I want to output data from the session All this questions about session are generated because I want to control the acces to some of the web pages in a site so only accesible to registered visitors. Ok name user and password are stored in a db (mysql), after password verification sesion is started, temporal storage of some values (PHPSESSID i.e.) and I guess in the begining of every restricted page this temporal info shoul be checked to make the page visible or not but if the visitor closes the browser the sesion is over, session_destroy is this necessary? thanks remind me to invite you to have a beer next time you come to barcelona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_start() part II
On the second page before the html tag write: ? session_name(mysession); session_start(); ? and then go ahead and echo your $myvar; ok, let's have this in the right place in a file named startsesion.php i.e. session_start(); session_name(mysesion); session_register(myvar); $myvar = whatever; a SID is generated autmaticaly I've been trying to echo the values of the var defined and the SID generated in another php file ?php echo ($sesionvar); ? not working ?php echo ($HTTP_SESSION_VARS[myvar] ); ? not working ?php echo ($GLOBALS[$sesionvar]); ? not working ?php echo session_name(); ? not working ?php echo ($PHPSESSID); ? not working how can I get this values? thanks, gracias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_start() part III
On Mon, Aug 13, 2001 at 05:39:47PM +0200, Aniceto Lopez wrote: I guess Renze, I have to use session_start() in the file where I want to output data from the session All this questions about session are generated because I want to control the acces to some of the web pages in a site so only accesible to registered visitors. Ok name user and password are stored in a db (mysql), after password verification sesion is started, temporal storage of some values (PHPSESSID i.e.) and I guess in the begining of every restricted page this temporal info shoul be checked to make the page visible or not but if the visitor closes the browser the sesion is over, session_destroy is this necessary? thanks remind me to invite you to have a beer next time you come to barcelona Yes, indeed, you do have to use session_start() on each page you want to use the session-info. And no, you don't need session_destroy() when the user closes the browser. The session is ended automatically then. And btw, how would you detect whether or not someone has closed his browser? Hope this was an answer to your question... -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- H: +31 23 5516190 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] general digest unreadable
Dear PHP friends I received the first general digest newsletters but am unable to read it properly. I receive an empty message with a txt file (index) and a big number of files with extension ezm attached. What I have to do to receive the digest in a proper format? Im using Microsoft Outlook Express 5. Thank for help Detlev
RE: [PHP] RE: Reliable PHP web hosts
They're one of the cheapest I've found so far. I'm looking for a host that will allow me to have multiple mySQL databases without charging me extra. linuxwebhost.com allows as many as your disk space allows. Dan Pierce Web Developer Saturn Systems -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 10:23 AM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] RE: Reliable PHP web hosts Linuxwebhost isn't too bad. They're prices are getting a bit high I think now..but the cheap package is still well worth it. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Dan Pierce [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 10:10 AM To: [EMAIL PROTECTED] Subject: [PHP] RE: Reliable PHP web hosts Does anyone have any experience with www.linuxwebhost.com or www.addr.com? Dan Pierce Web Developer Saturn Systems -Original Message- From: Pere Vineta [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 3:53 AM To: [EMAIL PROTECTED] Subject: RE: Reliable PHP web hosts I'm quite happy with SiteTurn. You can check them out through www.siteturn.com Pere -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_start() part III
When you named your session by using session_name(mysession) you renamed your session from PHPSESSID to mysession. You do not need to destroy each session when someone closes the browser out. If you do not, the persons session will be stored in a temp folder on the php server and once in awhile php will go in and clean up that directory for you. So as long as the person comes back to the site using the same sessionid number before php cleans up the directory then you'll have access to the same information. If you want access to the same information all the time, use cookies, the majority of people allow cookies so you're pretty safe. I hope that all made sense :) Rick I guess Renze, I have to use session_start() in the file where I want to output data from the session All this questions about session are generated because I want to control the acces to some of the web pages in a site so only accesible to registered visitors. Ok name user and password are stored in a db (mysql), after password verification sesion is started, temporal storage of some values (PHPSESSID i.e.) and I guess in the begining of every restricted page this temporal info shoul be checked to make the page visible or not but if the visitor closes the browser the sesion is over, session_destroy is this necessary? thanks remind me to invite you to have a beer next time you come to barcelona -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ucwords Except 'The' 'And' etc?
Is there a prewritten function for capitalizing the first letter of each word in a string except for the common words you wouldn't want to capitalize in a title? Like Come Learn the Facts From an Industry Leader Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] session_questions() part IV
Renze asked: how would you detect whether or not someone has closed his browser? (session is over then) Do I realy need to know this to let or not a registered user navigate some restricted web pages? Aniceto Lopez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ucwords Except 'The' 'And' etc?
Is there a prewritten function for capitalizing the first letter of each word in a string except for the common words you wouldn't want to capitalize in a title? Like Come Learn the Facts From an Industry Leader None that I've seen. But it wouldn't be hard to write a function that takes a string, passes that string to ucwords() and then you can run through a pre-defined array and just do an ereg_replace() on those words you want to remain lowercase... Or something like that... Chris
[PHP] Using PHP to log into a site
Hello, I am looking for a way to have my script log into a site that use an html form to enter the username and password. Then after it has logged in I need to emulate a form ussing sockets or curl. If you have done this or have an idea how I could do this, thanks ahead of time for the info. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com
Re: [PHP] ucwords Except 'The' 'And' etc?
http://www.php.net/manual/en/function.ucwords.php You can read all about the limit of this function, but this is the closest thing to what you're looking for. Rick Is there a prewritten function for capitalizing the first letter of each word in a string except for the common words you wouldn't want to capitalize in a title? Like Come Learn the Facts From an Industry Leader Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] charset win1251
Hi Maxim, You are probably only one in this mailing list with experiance of work with russian language in PHP, I have another qwestion concerning Opera and textarea - I can't make Opera to accept cyrillic text in textareas, I mean I can type in Russian but can't insert russian text (tried various formats) into textarea in Opera. I have Russian Opera 5.12 and russificated Windows ME in settings of Opera all fonts are cyrillic, I have already 4 years experianse of working with Opera but actually never knew that it has such problem =(( I'm mostly worried about visitours of my site who use Opera, they will not be able to save data in database because they will have this prob with textarea. By the way texarea is working wonderfully with IE. and I tried to add different charsets and lang variables to textarea HTML-tag didn't work any way. Youri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] charset win1251
Hello BRACK, Monday, August 13, 2001, 8:12:42 PM, you wrote: B You are probably only one in this mailing list with experiance of B work with russian language in PHP, I have another qwestion B concerning Opera and textarea - I can't make Opera to accept B cyrillic text in textareas I'm sorry, but I haven't much experience with Opera browsers. If you read Russian, try to search cooler.emax.ru - there were a lot of articles concerning Opera and its russificarion. -- Best regards, Maxim Derkachev mailto:[EMAIL PROTECTED] System administrator programmer, Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 www.books.ru, www.symbol.ru -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ICMP Ping
Hi, Is there any way to send an ICMP ping (or packet) from PHP? (without using exec(ping)!!) Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 Fax - +44(0)8707052859 == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] RE: Reliable PHP web hosts
* Dan Pierce [EMAIL PROTECTED] [010813 09:24]: Does anyone have any experience with www.linuxwebhost.com or www.addr.com? I have been using linuxwebhost for most of my websites during the past year. I am generally satisfied, though I have been waiting for a reply from tech support on some questions I had about PHP support. It could be that they don't really know ;-) -- Jan Wilson, SysAdmin _/*]; [EMAIL PROTECTED] Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com linux.bz Reg. Linux user #151611 |_/ Network, SQL, Perl, HTML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
I tried using the ini_set() but did not affect .. Can you tell me the commands I should use? - for the .htaccess : I only few knowledge about using .htaccess, so can you tell me what to write in the .htaccess file ? Thanks Mahmoud -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 12:03 PM To: 'Mahmoud Kassem'; karthik Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() Try using .htaccess or ini_set() - perhaps this will help you when on shared server. regards, Maxim Maletsky -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:12 PM To: karthik Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() THe same .. did not make a difference .. for php.ini settings : I am on a virtual hosting .. so I do not have access to the php.ini file -Original Message- From: karthik [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 9:43 AM To: Mahmoud Kassem Subject: Re: [PHP] Mail() Hi Try mail($emailto_owner..$emailto.,$subject,$message,$headers); It worked for me when i had a similar problem. And do check the settings in php.ini for mails. Karthik. - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 12:04 PM Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] new one is it ??
208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?NNN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] new one is it ??
No, that's the rather old one. That would be CR1. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 13 Aug 2001 22:27:06 +0800 Mark Lo [EMAIL PROTECTED] wrote: 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?NNN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IE Download twice from DB - MAJOR disaster to db users
very amusing indeed. Go learn php and when youll have answer send it or stfu. you might start with your own site: www.PHPBeginner.com and then go to http://logos.uoregon.edu/explore/socioling/politeness.html to learn how to behave ! Its amazing how many people are rude ! - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: 'Ben-Nes Michael' [EMAIL PROTECTED]; Richard Lynch [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, August 13, 2001 12:12 PM Subject: RE: [PHP] IE Download twice from DB - MAJOR disaster to db users why don't you do some testing first. write these two lines: ? mail( '[EMAIL PROTECTED]', 'visiting myself', Sucked off $PHP_SELF on $HTTP_USER_AGENT ); sleep(2); // just for the sake of it ? go to the page with several different browsers and catch your emails, see how many times it loads it. Cheers, Maxim Maletsky www.PHPBeginner.com -Original Message- From: Ben-Nes Michael [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 5:56 PM To: Richard Lynch; [EMAIL PROTECTED] Subject: [PHP] IE Download twice from DB - MAJOR disaster to db users Importance: High Hi - All db users read this !! I know it download it twice because in Netscape it take half of the time and also I see it start in the left bottom bar. I read that IE first read the headers fully ( including the file ) and then ask it again for opening. While Netscape read the file only once. Any ideas ? If I download from db twice while using IE means that all php servers that serve file from phtml cause the same problem, and that's a Major Problem :( Every one in the list that use db to store files should try to download the files with IE and Mozilla while measuring the time its take !!! Ill probably open a bug if no one will have idea how to disable double reading of the file or how to guess when IE read the headers and when its reading the file itself. How do you know it downloads them twice? What are you seeing? Also, if you want it downloaded, Content-type should be application/octet-stream. Perhaps that's causing the browser snag it and try to display it on top of the download... Sounds like how MS would code it. Hi All I store files on MYSQL server but when I try to pull them out ( show them on screen or download ) with IE it download them twice before showing them up :( I played with the headers (adding, removing) with no success. by the way in Netscape its work fine. here is the last code tried: ? $query = select * from files where issue_id='$id'; $result = mysql_query ($query) or die (Invalid query); $data = @MYSQL_RESULT($result,0, file_data); $type = @MYSQL_RESULT($result,0, file_type); $file_name = @MYSQL_RESULT($result,0, file_name); $file_size = @MYSQL_RESULT($result,0, file_size); // # To force save file file://header(Content-disposition: attachment; filename=\$file_name\); Header(Content-type: $type); header(Content-Length: $file_size); header(Content-Disposition: inline; filename=$file_name); echo $data; ? -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: new one is it ??
get MS Patches from http://www.digitalisland.com/codered/ - Original Message - From: Mark Lo [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php general [EMAIL PROTECTED] Sent: Monday, August 13, 2001 7:57 PM Subject: new one is it ?? 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /d efault.ida?NNN NN NN NN NN NN NNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: new one is it ??
That's code red atack. Apache will be ok. At 10:27 PM 8/13/2001 +0800, Mark Lo wrote: 208.251.146.123 - - [13/Aug/2001:22:24:27 +0800] GET /default.ida?NNN N%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3% u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u%u00=a HTTP/1.0 400 333 - - - ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list Ezra Nugroho Web/Database Application Specialist Goshen College ITS Phone: (219) 535-7706 Don't be humble, you're not that great. -- Golda Meir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] autoconf bugs
Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13 autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP - Dan -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] new one is it ??
That's pretty cool. Alas, the 'whois' part of the code doesn't work properly (at least on my system). - Tim On 13 Aug 2001 10:21:45 -0500, Mark Roedel wrote: I rather liked this approach that I saw posted in another list: http://www.klippan.seths.se/default.phps (Does some hostname/whois lookups on the infected server and attempts to email some people who might be able to do something about it.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-GTK] autoconf bugs
What libtool version are you using ? libtool --version - Markus On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13 autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP - Dan -- -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-GTK] autoconf bugs
1.4b On Mon, 13 Aug 2001, Markus Fischer wrote: What libtool version are you using ? libtool --version - Markus On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13 autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP - Dan -- -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-GTK] autoconf bugs
There it is. You need 1.4 . No trailing a or b or whatsoever. - Markus On Mon, Aug 13, 2001 at 01:20:50PM -0400, Daniel Adams wrote : 1.4b On Mon, 13 Aug 2001, Markus Fischer wrote: What libtool version are you using ? libtool --version - Markus On Mon, Aug 13, 2001 at 12:57:42PM -0400, Daniel Adams wrote : Anyone know why I get this when I run buildconf for php or phpgtk on redhat 7.1? I have autoconf 2.13 autoconf: Undefined macros: ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_MSG_NOTICE ***BUG in Autoconf--please report*** AC_LANG_POP ***BUG in Autoconf--please report*** AC_LANG_PUSH ***BUG in Autoconf--please report*** AC_LANG_POP - Dan -- -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Mail()
Sorry .. I read the doc. and I tried sendmail_from and _path but did not affect also I tried to use a seperate function (directly through Sendmail) but did not work (I did not get any emails) -Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 6:12 PM To: Mahmoud Kassem Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() rather than be rude about it, try reading the whole message and then looking through the PHP documentation. http://www.php.net/manual/en/function.ini-set.php === ini_set (PHP 4 = 4.0RC1) ini_set -- Set the value of a configuration option Description string ini_set (string varname, string newvalue) Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending. Not all the available options can be changed using ini_set(). Below is a table with a list of all PHP options (as of PHP 4.0.5-dev), indicating which ones can be changed/set and at what level. === -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:40 AM To: Michael Geier, CDM Systems Admin Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I said before I do not have access to the php.ini I am on a virtual Hosting ... -Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:43 PM To: Mahmoud Kassem; ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() your MTA is setting the envelope, not your script. if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag. -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:34 AM To: ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] new one is it ??
Way cool... with a bit of work, one could query ARIN, RIPE, and APNIC until an answer was received (that's what I'm modifying it to do) else die. With the timeout set to forever, what would we care if it takes a few extra seconds to go spy-out a potential (would-be-if-we-were-running-IIS)intruder. The author made a really nifty framework and left it pretty easy to modify. I already swiped a copy (thanks, Mark!!) and am having a ball adding my own bends to it. Tim, the part that does the WHOIS query is only querying RIPE. I'm modifying mine to loop through a known set of authorities (right now, the three I mentioned above) and to set a flag ($IGotIt or something I can test afterward with if ( $IGotIt ) { yaddayadda }), and to quit looking when it gets a reasonable answer. If I get it working before anyone else (doubtful, I'm still a bit slow with PHP and I'm also at work), I'd be more than happy to share. CY'all, Bill -Original Message- From: Tim [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:16 PM To: Mark Roedel Cc: Mark Lo; php general Subject: RE: [PHP] new one is it ?? That's pretty cool. Alas, the 'whois' part of the code doesn't work properly (at least on my system). - Tim On 13 Aug 2001 10:21:45 -0500, Mark Roedel wrote: I rather liked this approach that I saw posted in another list: http://www.klippan.seths.se/default.phps (Does some hostname/whois lookups on the infected server and attempts to email some people who might be able to do something about it.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]