[PHP] FW:
http://www.shinwa-kensetsu.sakura.ne.jp/bth7rz.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW:
If you're going to send hack attempts, at least adjust your clock so that it doesn't look like it took almost a month for your SPAM to get here. We're not the Pony Express. (And, no, PHP doesn't stand for Produced by Horses Ponies.) On Thu, Apr 11, 2013 at 11:43 AM, Paul Novitski p...@juniperwebcraft.com wrote: http://www.shinwa-kensetsu.sakura.ne.jp/bth7rz.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW:
Yo, (And, no, PHP doesn't stand for Produced by Horses Ponies.) This is completely devastating -- -Dan Joseph http://www.danjoseph.me http://www.dansrollingbbq.com http://www.youtube.com/DansRollingBBQ
Re: [PHP] FW:
Dan Joseph dmjos...@gmail.com wrote: Yo, (And, no, PHP doesn't stand for Produced by Horses Ponies.) This is completely devastating Just noticed the original link has a nasty payload for android, I assume the same applies for other OSs (probably best not to check!) -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: No Subject
http://www.coachholidays.co.uk/ramlm/hfoqauyyvomdvio.kaxkucbebccxpzq
Re: [PHP] FW: parse error
PLEASE INCLUDE THE LIST WHEN REPLYING! On 17 Oct 2011, at 18:21, David Savage wrote: No... I log into a linux box, and use the vi editor (actually I use 'view', which is vi but without the color highlighting which is somewhat hard to see on some colors, such as blue on a black screen). As I said, get one. There are loads of free editors for all operating systems that do syntax highlighting for PHP. Get one, load the file up in that and have a look. -Stuart From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Thu 10/13/2011 1:43 PM To: David Savage Cc: PHP General Subject: Re: [PHP] FW: parse error Please include the list when replying. On 13 Oct 2011, at 19:44, David Savage wrote: ok thanks for the quick reply. Still trying to figure out the line that is causing the problem above that line 1050I'm a novice at php, and currently use it just for console programming, though I want to eventually learn how to place html code in it, and make it simpler to run this program in a web browser, instead of by the command line. Are you using an editor that does syntax highlighting? If not, find one and load up the file. If you have an unterminated string or similar error, the highlighting should tell you where that problem is. -Stuart From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Thu 10/13/2011 12:04 PM To: David Savage Cc: php-general@lists.php.net Subject: Re: [PHP] FW: parse error On 13 Oct 2011, at 18:06, David Savage wrote: I'm sorryI need help with php v. 4.3.9 (cgi). I don't know where else to turn. I've looked on the php.net web site for details on this particular error, but am unable to find any. this is the version I use. php -v PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:03) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies I run the following command, and getting the following compile error on a linux environment: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php here is a portion of the code that includes the line number mentioned: if ($destlen==11) { $start_from_which_offset=1; } if ($destlen==10) { $start_from_which_offset=0; } $termnum10=substr($dest, $start_from_which_offset,10); $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 print $alias_sql_stmt\n; $alias_result = $db-sql_query($alias_sql_stmt); if ($alias_result==TRUE) { if($db-sql_numrows($alias_result) 0) { print Found alias...\n; continue; } } else { die(problem with sql: $alias_sql_stmt); } Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give. There is nothing wrong with the code you've posted... stuart@willow:~$ php -l test.php No syntax errors detected in test.php Which means the error is likely above that in the file. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
[PHP] FW: parse error
please read the following chain of emails...I'm at my wits end. From: David Savage Sent: Thu 10/13/2011 11:09 AM To: php-general-digest-ow...@lists.php.net Subject: FW: parse error How can I find the answer to the following php issue? I am not sure how to post a question to the general digest from php.net. The email address who I initially sent this email to, is not valid, and I cannot find any details on what the following PHP Parse error: parse error refers to, in the context of the line that the error points to. From: David Savage Sent: Thu 10/13/2011 9:56 AM To: ha-ph...@koontz.org Subject: parse error I'm sorryI need help with php v. 4.3.9 (cgi). I don't know where else to turn. I've looked on the php.net web site for details on this particular error, but am unable to find any. this is the version I use. php -v PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:03) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies I run the following command, and getting the following compile error on a linux environment: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php here is a portion of the code that includes the line number mentioned: if ($destlen==11) { $start_from_which_offset=1; } if ($destlen==10) { $start_from_which_offset=0; } $termnum10=substr($dest, $start_from_which_offset,10); $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 print $alias_sql_stmt\n; $alias_result = $db-sql_query($alias_sql_stmt); if ($alias_result==TRUE) { if($db-sql_numrows($alias_result) 0) { print Found alias...\n; continue; } } else { die(problem with sql: $alias_sql_stmt); } Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give.
Re: [PHP] FW: parse error
On 13 Oct 2011, at 18:06, David Savage wrote: I'm sorryI need help with php v. 4.3.9 (cgi). I don't know where else to turn. I've looked on the php.net web site for details on this particular error, but am unable to find any. this is the version I use. php -v PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:03) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies I run the following command, and getting the following compile error on a linux environment: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php here is a portion of the code that includes the line number mentioned: if ($destlen==11) { $start_from_which_offset=1; } if ($destlen==10) { $start_from_which_offset=0; } $termnum10=substr($dest, $start_from_which_offset,10); $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 print $alias_sql_stmt\n; $alias_result = $db-sql_query($alias_sql_stmt); if ($alias_result==TRUE) { if($db-sql_numrows($alias_result) 0) { print Found alias...\n; continue; } } else { die(problem with sql: $alias_sql_stmt); } Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give. There is nothing wrong with the code you've posted... stuart@willow:~$ php -l test.php No syntax errors detected in test.php Which means the error is likely above that in the file. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: parse error
On 10/13/11 10:06, David Savage dsav...@cytelcom.com wrote: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give. My suspicion is that there's is an unmatched curly brace earlier in the file. With this type of error, you'll generally get a report of a bad line further down the file--sometimes way down--because the parser can't recognize until it hits the later point that something is wrong. Try double-checking that the {Š} blocks prior to line 1050 properly balance, and you'll probably find there's an extra one, or that one is missing, etc. If nothing else, just start stripping code from the file until you find the line that's actually at fault. If you do this in a binary search fashion, it won't take more than a few minutes. Regards, Bob -- Robert E. Williams, Jr. Associate Vice President of Software Development Newtek Businesss Services, Inc. -- The Small Business Authority https://www.newtekreferrals.com/rewjr http://www.thesba.com/ Notice: This communication, including attachments, may contain information that is confidential. It constitutes non-public information intended to be conveyed only to the designated recipient(s). If the reader or recipient of this communication is not the intended recipient, an employee or agent of the intended recipient who is responsible for delivering it to the intended recipient, or if you believe that you have received this communication in error, please notify the sender immediately by return e-mail and promptly delete this e-mail, including attachments without reading or saving them in any manner. The unauthorized use, dissemination, distribution, or reproduction of this e-mail, including attachments, is prohibited and may be unlawful. If you have received this email in error, please notify us immediately by e-mail or telephone and delete the e-mail and the attachments (if any). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: parse error
At 01:26 PM 10/13/2011, Robert Williams wrote: On 10/13/11 10:06, David Savage dsav...@cytelcom.com wrote: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give. My suspicion is that there's is an unmatched curly brace earlier in the file. With this type of error, you'll generally get a report of a bad line further down the file--sometimes way down--because the parser can't recognize until it hits the later point that something is wrong. Try double-checking that the {} blocks prior to line 1050 properly balance, and you'll probably find there's an extra one, or that one is missing, etc. It's more likely an unterminated quoted string. It looks like PHP is giving up after finding unrecognizable stuff after either the first double or single quote on that line. If you're using an editor that doesn't do syntax high lighting, get one. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: parse error
-Original Message- From: Ken Robinson [mailto:kenrb...@rbnsn.com] Sent: Thursday, October 13, 2011 1:33 PM To: php-general@lists.php.net Subject: Re: [PHP] FW: parse error At 01:26 PM 10/13/2011, Robert Williams wrote: On 10/13/11 10:06, David Savage dsav...@cytelcom.com wrote: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give. My suspicion is that there's is an unmatched curly brace earlier in the file. With this type of error, you'll generally get a report of a bad line further down the file--sometimes way down--because the parser can't recognize until it hits the later point that something is wrong. Try double-checking that the {Š} blocks prior to line 1050 properly balance, and you'll probably find there's an extra one, or that one is missing, etc. It's more likely an unterminated quoted string. It looks like PHP is giving up after finding unrecognizable stuff after either the first double or single quote on that line. If you're using an editor that doesn't do syntax high lighting, get one. Ken I would suggest that you figure out what is the value of the variable your passing into your query is it possible that the value is getting a ' character, in which case it would be crapping out the line... For now, try adding [addslashes]: $termnum10=addslashes(substr($dest, $start_from_which_offset,10)); $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: parse error
At 02:06 PM 10/13/2011, Steve Staples wrote : [snip] It's more likely an unterminated quoted string. It looks like PHP is giving up after finding unrecognizable stuff after either the first double or single quote on that line. If you're using an editor that doesn't do syntax high lighting, get one. Ken I would suggest that you figure out what is the value of the variable your passing into your query is it possible that the value is getting a ' character, in which case it would be crapping out the line... That would only occur when the script is actually executed. It's not getting that far yet, since it's dying on a syntax error during the parse. For now, try adding [addslashes]: $termnum10=addslashes(substr($dest, $start_from_which_offset,10)); $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 No, mysql_real_escape_string (http://php.net/mysql_real_escape_string) should be used, not addslashes, although there are some people who have suggested that even that function is not enough and that only using stored procedures is good enough. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: parse error
Please include the list when replying. On 13 Oct 2011, at 19:44, David Savage wrote: ok thanks for the quick reply. Still trying to figure out the line that is causing the problem above that line 1050I'm a novice at php, and currently use it just for console programming, though I want to eventually learn how to place html code in it, and make it simpler to run this program in a web browser, instead of by the command line. Are you using an editor that does syntax highlighting? If not, find one and load up the file. If you have an unterminated string or similar error, the highlighting should tell you where that problem is. -Stuart From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Thu 10/13/2011 12:04 PM To: David Savage Cc: php-general@lists.php.net Subject: Re: [PHP] FW: parse error On 13 Oct 2011, at 18:06, David Savage wrote: I'm sorryI need help with php v. 4.3.9 (cgi). I don't know where else to turn. I've looked on the php.net web site for details on this particular error, but am unable to find any. this is the version I use. php -v PHP 4.3.9 (cgi) (built: Jun 26 2006 09:46:03) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies I run the following command, and getting the following compile error on a linux environment: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php here is a portion of the code that includes the line number mentioned: if ($destlen==11) { $start_from_which_offset=1; } if ($destlen==10) { $start_from_which_offset=0; } $termnum10=substr($dest, $start_from_which_offset,10); $alias_sql_stmt=SELECT ani FROM ldrates WHERE ani='$termnum10';// -this is line 1050 print $alias_sql_stmt\n; $alias_result = $db-sql_query($alias_sql_stmt); if ($alias_result==TRUE) { if($db-sql_numrows($alias_result) 0) { print Found alias...\n; continue; } } else { die(problem with sql: $alias_sql_stmt); } Could you please tell me what's wrong with the line 1050 ? I've been pulling my hair out (figuratively speaking) trying to understand why the compiler sees this line as a problem. Thanks for whatever help you can give. There is nothing wrong with the code you've posted... stuart@willow:~$ php -l test.php No syntax errors detected in test.php Which means the error is likely above that in the file. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/
Re: [PHP] Fw: Spoofing user_agent
The following solution works: I set my user-agent to: VerseOfTheDaySitemapRobot/1.0 (http://www.TheVerseOfTheDay.info) By doing: ini_set('user_agent', VerseOfTheDaySitemapRobot/1.0 (http://www.TheVerseOfTheDay.info)); When ran by a cron job this causes AWSTATS to treat the hits as: Unknown robot (identified by 'robot')9704+18284.82 MB30 Nov 2010 - 07:12 The part which tricked me is that if I run the site map generator PHP script using a user interface the hits on the site are credited to the Firefox (the browser I use) user-agent string. The following article discusses how to change browser user agents: http://www.walkernews.net/2007/07/05/how-to-change-user-agent-string/ Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info
Re: [PHP] Fw: Spoofing user_agent
My issue with the user agent is unresolved. I need to do more research to see how AWSTATS distinguishes between a robot crawling the site and a web page user and set the user-agent accordingly. The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: Shreyas Agasthya Sent: Monday, November 29, 2010 1:35 AM To: Ron Piggott Cc: PHP General List Subject: Re: [PHP] Fw: Spoofing user_agent Ron, Can you let us know if this whole thing that you were trying to do worked? I see that very few actually bring a thread to a logical conclusion either by correcting the members here with the proposed fixes or letting the concerned set of people that they were right as rain. We should perhaps make this a practice and mandate so that the archives are utilized better. Correct me if I am wrong. Regards, Shreyas
Re: [PHP] Fw: Spoofing user_agent
Quit top posting. On Mon, Nov 29, 2010 at 9:55 PM, Ron Piggott ron.pigg...@actsministries.org wrote: My issue with the user agent is unresolved. I need to do more research to see how AWSTATS distinguishes between a robot crawling the site and a web page user and set the user-agent accordingly. Ron, AWSTATS probably users a knowledge base for known bots, I'm not sure. If that's the case, you can just set your User-Agent to a known and see how that goes. Look for Googlebot, Majestic, Ask.com (now dead - probably a good pick), MSNBot here: http://www.user-agents.org/ As for setting the User-Agent in your request, I like to use this cUrl snippet (based on a note at curl's manual page): ?php $sUrl = 'www.example.com/'; $sUserAgent = 'Googlebot/2.1 (+http://www.googlebot.com/bot.html)'; $hCurl = curl_init(); curl_setopt ($hCurl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt ($hCurl, CURLOPT_URL, $sUrl); curl_setopt ($hCurl, CURLOPT_CONNECTTIMEOUT, 120); curl_setopt ($hCurl, CURLOPT_TIMEOUT, 120); curl_setopt ($hCurl, CURLOPT_USERAGENT, $sUserAgent); $sContent = curl_exec($hCurl); ? Cheers, Thiago Henrique Pojda +55 41 8856-7925
Re: [PHP] Fw: Spoofing user_agent
Please don't top post. On 25 November 2010 15:38, Ron Piggott ron.pigg...@actsministries.org wrote: Is User Agent suppose to have a hyphen - ? Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -Original Message- From: Richard Quadling Sent: Thursday, November 25, 2010 9:16 AM To: Deva Cc: Shreyas Agasthya ; Ron Piggott ; php-general@lists.php.net ; a...@ashleysheridan.co.uk Subject: Re: [PHP] Fw: Spoofing user_agent On 25 November 2010 11:32, Deva devendra...@gmail.com wrote: Use curl http://php.net/manual/en/book.curl.php On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote: I feel you should use more of the 4th method here as you are not trying to read the file but the header level (7th layer) information of the HTTP protocol. http://php.net/manual/en/function.file-get-contents.php --Shreyas On Thu, Nov 25, 2010 at 4:11 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron ?php header('User Agent: RonBot (http://www.example.com)'); $url = http://www.example.com;; http://www.example.com%22; $input = file_get_contents($url); The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info *From:* Shreyas Agasthya shreya...@gmail.com *Sent:* Thursday, November 25, 2010 4:21 AM *To:* Ron Piggott ron.pigg...@actsministries.org *Cc:* php-general@lists.php.net ; a...@ashleysheridan.co.uk *Subject:* Re: [PHP] Fw: Spoofing user_agent A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya -- Regards, Shreyas Agasthya -- :DJ It is no use using header(). This sets a header for the client, not the server of any file_get_contents() requests. I use stream_contexts. $s_Contents = file_get_contents( $s_URL, False, stream_context_create( array( 'http' = array( 'method' = 'GET', 'header' = User-Agent: RonBot (http://www.example.com)\r\n ), ) ) ); You can supply cookies, or anything else, with the request. Make sure you add a \r\n to each of the headers and just concatenate them. If you are doing this in a loop, then I'd recommend creating a default stream context and then the request would just be ... $s_Contents = file_get_contents($s_URL); As the default stream context would be applied. I had to use a default stream context to route all http requests through an NTLM authentication proxy server because PHP doesn't deal with NTLM authentication. See my user notes on http://docs.php.net/manual/en/function.stream-context-get-default.php. Don't bother with the link at the bottom of the user note- it's not live. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY http://en.wikipedia.org/wiki/User_agent ... the identity is transmitted via the User-Agent request header, ... -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General
Re: [PHP] Fw: Spoofing user_agent
On 25 November 2010 15:38, Ron Piggott ron.pigg...@actsministries.org wrote: Is User Agent suppose to have a hyphen - ? Ron http://en.wikipedia.org/wiki/User_agent ... the identity is transmitted via the User-Agent request header, ... http://tools.ietf.org/html/rfc1945#section-10.15 User-Agent = User-Agent : 1*( product | comment ) Example: User-Agent: CERN-LineMode/2.15 libwww/2.17b3 -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fw: Spoofing user_agent
I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info
Re: [PHP] Fw: Spoofing user_agent
You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info
Re: [PHP] Fw: Spoofing user_agent
Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info
Re: [PHP] Fw: Spoofing user_agent
A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya
Re: [PHP] Fw: Spoofing user_agent
Thanks. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: Shreyas Agasthya Sent: Thursday, November 25, 2010 4:21 AM To: Ron Piggott Cc: php-general@lists.php.net ; a...@ashleysheridan.co.uk Subject: Re: [PHP] Fw: Spoofing user_agent A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya
Re: [PHP] Fw: Spoofing user_agent
Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron ?php header('User Agent: RonBot (http://www.example.com)'); $url = http://www.example.com;; $input = file_get_contents($url); The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: Shreyas Agasthya Sent: Thursday, November 25, 2010 4:21 AM To: Ron Piggott Cc: php-general@lists.php.net ; a...@ashleysheridan.co.uk Subject: Re: [PHP] Fw: Spoofing user_agent A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya
Re: [PHP] Fw: Spoofing user_agent
Use curl http://php.net/manual/en/book.curl.php On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote: I feel you should use more of the 4th method here as you are not trying to read the file but the header level (7th layer) information of the HTTP protocol. http://php.net/manual/en/function.file-get-contents.php --Shreyas On Thu, Nov 25, 2010 at 4:11 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron ?php header('User Agent: RonBot (http://www.example.com)'); $url = http://www.example.com;; http://www.example.com%22; $input = file_get_contents($url); The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info *From:* Shreyas Agasthya shreya...@gmail.com *Sent:* Thursday, November 25, 2010 4:21 AM *To:* Ron Piggott ron.pigg...@actsministries.org *Cc:* php-general@lists.php.net ; a...@ashleysheridan.co.uk *Subject:* Re: [PHP] Fw: Spoofing user_agent A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya -- Regards, Shreyas Agasthya -- :DJ
Re: [PHP] Fw: Spoofing user_agent
On 25 November 2010 11:32, Deva devendra...@gmail.com wrote: Use curl http://php.net/manual/en/book.curl.php On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote: I feel you should use more of the 4th method here as you are not trying to read the file but the header level (7th layer) information of the HTTP protocol. http://php.net/manual/en/function.file-get-contents.php --Shreyas On Thu, Nov 25, 2010 at 4:11 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron ?php header('User Agent: RonBot (http://www.example.com)'); $url = http://www.example.com;; http://www.example.com%22; $input = file_get_contents($url); The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info *From:* Shreyas Agasthya shreya...@gmail.com *Sent:* Thursday, November 25, 2010 4:21 AM *To:* Ron Piggott ron.pigg...@actsministries.org *Cc:* php-general@lists.php.net ; a...@ashleysheridan.co.uk *Subject:* Re: [PHP] Fw: Spoofing user_agent A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya -- Regards, Shreyas Agasthya -- :DJ It is no use using header(). This sets a header for the client, not the server of any file_get_contents() requests. I use stream_contexts. $s_Contents = file_get_contents( $s_URL, False, stream_context_create( array( 'http' = array( 'method' = 'GET', 'header' = User-Agent: RonBot (http://www.example.com)\r\n ), ) ) ); You can supply cookies, or anything else, with the request. Make sure you add a \r\n to each of the headers and just concatenate them. If you are doing this in a loop, then I'd recommend creating a default stream context and then the request would just be ... $s_Contents = file_get_contents($s_URL); As the default stream context would be applied. I had to use a default stream context to route all http requests through an NTLM authentication proxy server because PHP doesn't deal with NTLM authentication. See my user notes on http://docs.php.net/manual/en/function.stream-context-get-default.php. Don't bother with the link at the bottom of the user note- it's not live. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: Spoofing user_agent
Is User Agent suppose to have a hyphen - ? Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -Original Message- From: Richard Quadling Sent: Thursday, November 25, 2010 9:16 AM To: Deva Cc: Shreyas Agasthya ; Ron Piggott ; php-general@lists.php.net ; a...@ashleysheridan.co.uk Subject: Re: [PHP] Fw: Spoofing user_agent On 25 November 2010 11:32, Deva devendra...@gmail.com wrote: Use curl http://php.net/manual/en/book.curl.php On Thu, Nov 25, 2010 at 4:41 PM, Shreyas Agasthya shreya...@gmail.comwrote: I feel you should use more of the 4th method here as you are not trying to read the file but the header level (7th layer) information of the HTTP protocol. http://php.net/manual/en/function.file-get-contents.php --Shreyas On Thu, Nov 25, 2010 at 4:11 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Will the header pass with using file_get_contents , or should I be using another command, and if so, which one? Ron ?php header('User Agent: RonBot (http://www.example.com)'); $url = http://www.example.com;; http://www.example.com%22; $input = file_get_contents($url); The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info *From:* Shreyas Agasthya shreya...@gmail.com *Sent:* Thursday, November 25, 2010 4:21 AM *To:* Ron Piggott ron.pigg...@actsministries.org *Cc:* php-general@lists.php.net ; a...@ashleysheridan.co.uk *Subject:* Re: [PHP] Fw: Spoofing user_agent A standard HTTP Request headers is : User Agent (without the underscore). --Shreyas On Thu, Nov 25, 2010 at 2:36 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is this what you are telling me to do: header('user_agent: RonBot (http://www.theverseoftheday.info)'); Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info From: a...@ashleysheridan.co.uk Sent: Thursday, November 25, 2010 3:34 AM To: Ron Piggott ; php-general@lists.php.net Subject: Re: [PHP] Fw: Spoofing user_agent You need to set it in the header request you make. Putting it in the script you're using as a spider with ini_set won't do anything because the Target site doesn't know anything about it. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: Ron Piggott ron.pigg...@actsministries.org Date: Thu, Nov 25, 2010 08:25 Subject: [PHP] Fw: Spoofing user_agent To: php-general@lists.php.net I have wrote a script to generate a sitemap of my web site. It crawls all of the site web pages. (About 30,000) I need help to spoof the user_agent variable so the stats program running in the background ( “AWSTATS” ) will treat the crawl as a bot, not browsing usage. The sitemap generator is a cron job. I tried the syntax: ini_set('user_agent', 'RonBot (http://www.theverseoftheday.info)/'/); This didn’t work. The browsing was attributed to the dedicated IP address. How do I get AWSTATS to access this, such as other entries under the “Robots/Spiders visitors” heading: Unknown robot (identified by 'bot*') I don’t mean any ill will by changing this setting. Thanks for the help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info -- Regards, Shreyas Agasthya -- Regards, Shreyas Agasthya -- :DJ It is no use using header(). This sets a header for the client, not the server of any file_get_contents() requests. I use stream_contexts. $s_Contents = file_get_contents( $s_URL, False, stream_context_create( array( 'http' = array( 'method' = 'GET', 'header' = User-Agent: RonBot (http://www.example.com)\r\n ), ) ) ); You can supply cookies, or anything else, with the request. Make sure you add a \r\n to each of the headers and just concatenate them. If you are doing this in a loop, then I'd recommend creating a default stream context and then the request would just be ... $s_Contents = file_get_contents($s_URL); As the default stream context would be applied. I had to use a default stream context to route all http requests through an NTLM authentication proxy server because PHP doesn't deal with NTLM authentication. See my user notes on http://docs.php.net/manual/en/function.stream-context-get-default.php. Don't bother with the link at the bottom of the user note- it's not live. Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fw: Dbase database - reg
22.10.2010 Dear sir Please help me the following code and how to rectify the same . ?php $filename='mas1.dbf'; $db = dbase_open($filename, 0); ? Fatal error: Call to undefined function: dbase_open() please help me sir, regards Kumar . L SLST / ARNI / Tamilnadu / India
Re: [PHP] Fw: Dbase database - reg
sounds like you have not compiled php with the --enable-dbase option. check the output of ?php phpinfo(); ? and see if there is any mention of dbase..if not, then that is probably your problem. Alexis On 22/10/10 02:51, kumar wrote: 22.10.2010 Dear sir Please help me the following code and how to rectify the same . ?php $filename='mas1.dbf'; $db = dbase_open($filename, 0); ? Fatal error: Call to undefined function: dbase_open() please help me sir, regards Kumar . L SLST / ARNI / Tamilnadu / India -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: Problem with ssh2_connect
Hello, I am trying connect to freebsd. I have php 5.3.2 installed. I have to connect using public keys, but without succes. Function ssh2_connect throws me following error (then I have invalid resource for function ssh2_auth_pubkey_file)... PHP Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in /usr/home/radek/pokus.php on line 14 Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in /usr/home/radek/pokus.php on line 14 PHP Warning: ssh2_connect(): Unable to connect to test.starnet.cz in /usr/home/darius/pokus_nat.php on line 14 Warning: ssh2_connect(): Unable to connect to test.starnet.cz in /usr/home/radek/pokus.php on line 14 Here is code: ?php $methods = array( 'kex' = 'diffie-hellman-group1-sha1', 'hostkey' = 'ssh-dss', 'client_to_server' = array( 'crypt' = '3des-cbc', 'mac' = 'hmac-md5', 'comp' = 'none'), 'server_to_client' = array( 'crypt' = '3des-cbc', 'mac' = 'hmac-md5', 'comp' = 'none')); $connection = ssh2_connect('test.starnet.cz', 22, array('hostkey'='ssh-rsa'), $methods); ? I got the same error without using methods variable. Thank you for advice. Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Problem with ssh2_connect
From: Radek Krejca I am trying connect to freebsd. I have php 5.3.2 installed. I have to connect using public keys, but without succes. Function ssh2_connect throws me following error (then I have invalid resource for function ssh2_auth_pubkey_file)... PHP Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in /usr/home/radek/pokus.php on line 14 ... I got the same error without using methods variable. Have you tried opening the connection from the command line with OpenSSL or similar tools? Do you know those credentials will actually work? Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Problem with ssh2_connect
Have you tried opening the connection from the command line with OpenSSL or similar tools? Do you know those credentials will actually work? Yes, It is my key (now I am testing), but I got this message before I run ssh2_auth_public... Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: accidentally chown -R mysql /var/lib, so wrote a script to fix them
Figured I'd throw this into the intertubes so it's archived and maybe useful for someone else, since I couldn't find a script that did this already... -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Monday, July 13, 2009 4:06 PM To: 'sv...@lists.svlug.org' Subject: RE: accidentally chown -R mysql /var/lib Well, I just wrote a little script and ran it against the three Ubuntu boxen I have access too, and then just ran the output against my own 'broken' box... -- 8 snip 8 --- #!/usr/bin/php ?php error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); //E_WARNING because the posix_* seems to puke on symlinks ?! function rootscan($base='', $data=array()) { $array = array_diff(scandir($base), array('.', '..')); foreach($array as $value) { $bv = $base.$value; $owner = posix_getpwuid(fileowner($bv)); $owner = $owner['name']; $group = posix_getgrgid(filegroup($bv)); $group = $group['name']; if ($owner != 'root' || $group != 'root') echo chown .$owner.':'.$group.' '.$bv.\n; if (is_dir($bv)) { $data[] = $bv.'/'; $data = rootscan($bv.'/', $data); } elseif (is_file($bv)) { $data[] = $bv; } } return $data; } rootscan('/var/lib'.'/'); ? -- 8 snip 8 --- It produces a bunch of lines like this: vince...@gabriel:~$ sudo ./dirfix.php chown root:polkituser /var/lib/PolicyKit chown root:polkituser /var/lib/PolicyKit/user-haldaemon.auths chown polkituser:root /var/lib/PolicyKit-public chown avahi-autoipd:avahi-autoipd /var/lib/avahi-autoipd chown root:gdm /var/lib/gdm chown libuuid:libuuid /var/lib/libuuid chown polkituser:polkituser /var/lib/misc/PolicyKit.reload chown root:mlocate /var/lib/mlocate/mlocate.db chown mysql:mysql /var/lib/mysql ... chown postfix:postfix /var/lib/postfix chown postfix:postfix /var/lib/postfix/master.lock chown root:sambashare /var/lib/samba/usershares -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Monday, July 13, 2009 2:38 PM To: 'sv...@lists.svlug.org' Subject: accidentally chown -R mysql /var/lib Yes, I was setting up a new Ubuntu 9.04 box for the past couple days, and today when copying a 70GB database from an old server to the new one, I accidentally did this (well, the equiv of anyways): chown -R mysql:mysql /var/lib Instead of chown -R mysql:mysql /var/lib/mysql So I've reverted to: chown -R root:root /var/lib Does anyone know of a script or something that will fix all the directories to their proper owner/group again? If not, I have a 9.04 box next to me that has a pristine /var/lib tree (just not all the same packages that the new box had). Is there some script-fu that I can run on the good box that will show me all the owner/groups that are NOT root:root, so I can manually adjust. Doing a random quick poke at various directories, I don't see all that many, so I expect the result list won't be that much. ...there is always the possibility of just re-installing, but obviously I prefer not to do that if I don't have to and waste another day re-setting stuff up (should be quicker thanks to .tgz though) And before anyone decides to be a smart alec, no, of course I hadn't done backups. ;-) But even if I did, I don't generally backup the entire system, only the core dirs like /etc, /home, /var/lib/mysql, etc... http://daevid.com/content/examples/daily_backup.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: built-in objects APC or serializatio n
... nobody a clue? ... Hi everybody, I am a Certified Zend Engineer with almost 10 years of PHP development experience but for some reason I've never asked question to this ML. As subject says, I would like to know if there a generic extension/3rd parts/solution to save the state of a built-in PHP object. I perfectly know that __sleep and __wakeup or ... implements Serializable { ... } could allow me to store and retrieve serialized data but what I did not expect is that APC just behaves as serialize and nothing more than that. Here there is a quick explanation: $xsltp = new XSLTProcessor; $xsltp-importStylesheet( DomDocument::load('random.xsl') ); // no way to store the variable here with its live state // without re-importing stylesheet on __wakeup or unserialize echo$xsltp-transformToXML( DomDocument::load('random.xml') ); I agree that this built-in stuff could be consider a weird case but I cannot believe that with all these new classes there is no solution to truly hibernate instances state. As summary, I wonder if any of you knows a solution or, if any, when (and if) are you planning to add this feature. Best Regards _ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx
Re: [PHP] FW: [SPAM] [PHP] FIFO files on PHP?
On Wed, Jul 2, 2008 at 1:22 AM, Chris Scott [EMAIL PROTECTED] wrote: -Original Message- From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 11:06 PM To: php-general@lists.php.net Subject: [SPAM] [PHP] FIFO files on PHP? Importance: Low I'm trying to build a queue out using FIFO files (someone on the MySQL list suggested checking them out instead of using the database), but I'm running into a problem because of the synchronous fwrite call. Here's the code: $fifoFile = '/tmp/fifo'; if (!file_exists($fifoFile)) { posix_mkfifo($fifoFile, 0600); } $fp = fopen($fifoFile, w); fwrite($fp, content); fclose($fp); But this will block until something actually reads the pipe. Is there any way to write to the pipe, then go away as opposed to waiting until something consumes it? Otherwise, I may just go back to a database table. Thanks, Waynn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Fifo nodes are equivalent to a pipe (|) and have no size on the file system and therefore the write won't finish until some process reads from the node. See the man page http://linux.die.net/man/7/fifo . Wow, my mail client filtered these responses so I only just noticed them--I thought there were no responses. Thanks for letting me know, I ended up using threads to accomplish something similar.
[PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL)
-Original Message- From: Aviation Coding [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 10:15 AM To: php-general@lists.php.net Subject: [SPAM] [PHP] No Database Connection possible (mySQL) Importance: Low Hi all, I am having problems with a connection to a mysql database. I am using function con() { mysql_connect(localhost,user,pass) or die(mysql_error()); mysql_select_db(tava) or die(mysql_error()); } Now, when I call the _function_ (!) con() or die(no con); I get the no con output. When I call the mysql_connect and mysql_select directly before executing a query, I get some DB output. But that won't work when I am using the function... Any ideas would be greatly appreciated. Cheers! Chris It's a bit of a long shot but are you using variables in the function which might be out of scope? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL)
-Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 11:41 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL) Importance: Low -Original Message- From: Aviation Coding [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2008 10:15 AM To: php-general@lists.php.net Subject: [SPAM] [PHP] No Database Connection possible (mySQL) Importance: Low Hi all, I am having problems with a connection to a mysql database. I am using function con() { mysql_connect(localhost,user,pass) or die(mysql_error()); mysql_select_db(tava) or die(mysql_error()); } Now, when I call the _function_ (!) con() or die(no con); I get the no con output. When I call the mysql_connect and mysql_select directly before executing a query, I get some DB output. But that won't work when I am using the function... Any ideas would be greatly appreciated. Cheers! Chris It's a bit of a long shot but are you using variables in the function which might be out of scope? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi mate, no, I am using no variables in the other function. The function goes like con() or die(no con); $query = SELECT ; and so on and I always get no con... Cheers! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: [SPAM] Re: [PHP] how to create a slide show using PHP5
-Original Message- From: philip [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2008 10:03 PM To: Bastien Koert Cc: php-general@lists.php.net Subject: [SPAM] Re: [PHP] how to create a slide show using PHP5 Importance: Low Bastien Koert wrote: On Wed, Jul 2, 2008 at 4:37 PM, philip [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi everyone, I want to create a slide show of photos for my web site. How is this done using php5? I am using Opensuse 10.3, Apache, PHP5. TIA for any assistance, Philip -- Philip Ramsey learning PHP and MySQL for building a better world philipramsey.is-a-geek.net http://philipramsey.is-a-geek.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php 2 parts to this 1. pull a series on [random] images from the system to show the user 2. client side javascript code to load the images in a slide show fashion You may want to get an existing one and pull it apart to see how they've done it -- Bastien Cat, the other other white meat Hi Bastien, Thank you for your quick response. Where may I find sample? I tried searching the web but only found samples and tutorials that required flash for the actual slide show. Since I run Linux and Adobe/Macromedia do not make a flash editor for Linux, flash is not an option. TIA, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Flash is still an option if you use Ming: http://uk.php.net/manual/en/book.ming.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: [SPAM] [PHP] FIFO files on PHP?
-Original Message- From: Waynn Lue [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 11:06 PM To: php-general@lists.php.net Subject: [SPAM] [PHP] FIFO files on PHP? Importance: Low I'm trying to build a queue out using FIFO files (someone on the MySQL list suggested checking them out instead of using the database), but I'm running into a problem because of the synchronous fwrite call. Here's the code: $fifoFile = '/tmp/fifo'; if (!file_exists($fifoFile)) { posix_mkfifo($fifoFile, 0600); } $fp = fopen($fifoFile, w); fwrite($fp, content); fclose($fp); But this will block until something actually reads the pipe. Is there any way to write to the pipe, then go away as opposed to waiting until something consumes it? Otherwise, I may just go back to a database table. Thanks, Waynn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Fifo nodes are equivalent to a pipe (|) and have no size on the file system and therefore the write won't finish until some process reads from the node. See the man page http://linux.die.net/man/7/fifo . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: [SPAM] Re: [PHP] Inspiration for a Tombstone.
410 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files
I don't think you can open files for writing over http, you get an error: failed to open stream: HTTP wrapper does not support writeable connections. -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:39 PM To: php-general@lists.php.net Subject: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low Wei, Alice J. wrote: Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')? I think fopen($ourFileName, 'a') will do what you want. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files
-Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:48 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low I don't think you can open files for writing over http, you get an error: failed to open stream: HTTP wrapper does not support writeable connections. -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:39 PM To: php-general@lists.php.net Subject: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low Wei, Alice J. wrote: Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')? I think fopen($ourFileName, 'a') will do what you want. From Alice's code: $ourFileName = hello.txt; $ourFileHandle = fopen($ourFileName, 'wb') or die(can't open file); So... she is not, in fact, trying to write a file over HTTP. She is reading a file via HTTP and writing something pertaining to it on the local file system. Also, please refrain from top-posting. It makes the posts get very confusing. :( Todd Boyd Web Programmer
[PHP] FW: [SPAM] RE: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files
-Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:48 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low I don't think you can open files for writing over http, you get an error: failed to open stream: HTTP wrapper does not support writeable connections. -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:39 PM To: php-general@lists.php.net Subject: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low Wei, Alice J. wrote: Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')? I think fopen($ourFileName, 'a') will do what you want. From Alice's code: $ourFileName = hello.txt; $ourFileHandle = fopen($ourFileName, 'wb') or die(can't open file); So... she is not, in fact, trying to write a file over HTTP. She is reading a file via HTTP and writing something pertaining to it on the local file system. Also, please refrain from top-posting. It makes the posts get very confusing. :( Todd Boyd Web Programmer Sorry about the top posting, just habit. I'll stop doing it. From Alice's code: $newFileName=http://www.yoursite.com/hello.txt;; echo $newFileName; $result=rename($ourFileName, $newFileName); $ourFileHandle = fopen($ourFileName, 'wb') or die(can't open file); // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num = $line) { echo pLine #b{$line_num}/b : . htmlspecialchars($line) . /p; $ourFileHandle = fopen($newFileName, 'wb') or die(can't open file); $content=fwrite($ourFileHandle, htmlspecialchars($line)); .. The fwrite is $ourFileHandle which on the previous line is set to $newFileName which is http://www.yoursite.com/hello.txt. I might have missed the point (I regularly do) but it looks like http to me.
Re: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files
Boyd, Todd M. wrote: -Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 8:48 AM To: php-general@lists.php.net Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low I don't think you can open files for writing over http, you get an error: failed to open stream: HTTP wrapper does not support writeable connections. -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:39 PM To: php-general@lists.php.net Subject: [SPAM] RE: [PHP] fwrite() Append Files Importance: Low Wei, Alice J. wrote: Do you mean to edit $ourFileHandle to fopen($ourFileName, 'wba')? I think fopen($ourFileName, 'a') will do what you want. From Alice's code: $ourFileName = hello.txt; $ourFileHandle = fopen($ourFileName, 'wb') or die(can't open file); So... she is not, in fact, trying to write a file over HTTP. She is reading a file via HTTP and writing something pertaining to it on the local file system. Also, please refrain from top-posting. It makes the posts get very confusing. :( Todd Boyd Web Programmer Todd, if you look at her initial code posted in the other thread, you will see that she WAS infact trying to write the file to a remote server. The two URLs were www.mysite.com/hello.txt and www.yoursite.com/hello.txt That would have been trying to write the new file of http. so he was right in saying what he said. Not sure where you got the above code snippet, but it is not from what she originally posted to the list. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: ezmlm warning
I've just got this message... I also see no updates here http://news.php.net/php.general/ since Friday. Any clues on what's going on?? Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, December 15, 2007 11:55 AM To: [EMAIL PROTECTED] Subject: ezmlm warning Hi! This is the ezmlm program. I'm managing the php-general@lists.php.net mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Messages to you from the php-general mailing list seem to have been bouncing. I've attached a copy of the first bounce message I received. If this message bounces too, I will send you a probe. If the probe bounces, I will remove your address from the php-general mailing list, without further notice. I've kept a list of which messages from the php-general mailing list have bounced from your address. Copies of these messages may be in the archive. To retrieve a set of messages 123-145 (a maximum of 100 per request), send an empty message to: [EMAIL PROTECTED] To receive a subject and author list for the last 100 or so messages, send an empty message to: [EMAIL PROTECTED] Here are the message numbers: 265427 265424 265428 265425 265429 265426 265421 265430 265431 265432 265422 265420 265423 265433 265436 265443 265442 265440 265441 265444 265447 265445 265446 265438 265435 265437 265439 265434 265448 265449 --- Enclosed is a copy of the bounce message I received. Return-Path: Received: (qmail 51006 invoked by uid 1010); 3 Dec 2007 20:22:32 - Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 50986 invoked from network); 3 Dec 2007 20:22:32 - Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2007 20:22:32 - Return-Path: Received: from [127.0.0.1] ([local]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with INTERNAL id 34/55-25012-88564574 for ; Mon, 03 Dec 2007 15:22:32 -0500 From: Mail Delivery System [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Mail Delivery Failure Message-Id: E2/[EMAIL PROTECTED] Date: Mon, 03 Dec 2007 15:22:32 -0500 This message was created automatically by the mail system (ecelerity). A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [EMAIL PROTECTED] (after RCPT TO): 550 Unknown User -- This is a copy of the headers of the original message. -- Return-Path: [EMAIL PROTECTED] X-Host-Fingerprint: 216.92.131.4 lists.php.net Received: from [216.92.131.4] ([216.92.131.4:8304] helo=lists.php.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/55-25012-78564574 for [EMAIL PROTECTED]; Mon, 03 Dec 2007 15:22:31 -0500 Received: (qmail 50743 invoked by uid 1010); 3 Dec 2007 20:22:22 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:php-general@lists.php.net Delivered-To: mailing list php-general@lists.php.net Received: (qmail 50734 invoked by uid 1010); 3 Dec 2007 20:22:22 - Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Authentication-Results: pb1.pair.com [EMAIL PROTECTED]; sender-id=unknown Authentication-Results: pb1.pair.com [EMAIL PROTECTED]; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pocket.com from 64.129.48.252 cause and error) X-PHP-List-Original-Sender: [EMAIL PROTECTED] X-Host-Fingerprint: 64.129.48.252 mail.pocket.com Windows 2000 SP4, XP SP1 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 3 Dec 2007 14:22:16 -0600 Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP] Banned from #php Thread-Index: Acg16F9UQeyFwd5sQO6iyRiMqco8PQAAb81g From: Jay Blanchard [EMAIL PROTECTED] To: Brenden Wilson [EMAIL PROTECTED], php-general@lists.php.net Subject: RE: [PHP] Banned from #php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: ezmlm warning
On Dec 15, 2007 12:10 PM, Andrés Robinet [EMAIL PROTECTED] wrote: I've just got this message... I also see no updates here http://news.php.net/php.general/ since Friday. Any clues on what's going on?? Looks to me like there was some reason that the emails being sent to you were bouncing, Rob. As for the news page, I just sent a help response a few moments ago and that's already archived at the bottom of the page, so that seems to be working fine. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [SOLVED] [PHP] FW: ezmlm warning
I know what's the issue now. The mailing list software was sending me a notification about some bounces, dated Dec 4th (which I didn't notice at first). That's ok since we had an issue with Exim and we stopped it some time for maintenance. I thought it was a recent issue, because I got this message today. Since yesterday we've enabled RBL checking in Exim I thought it was that, but then I went to the online version of the list and I noticed there were no posts for today, so the list could also be the problem. Now I know it's neither of them, it's just a delayed warning. Thank you all, Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: http://www.bestplace.biz | Web: http://www.seo-diy.com -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Saturday, December 15, 2007 7:04 PM To: Andrés Robinet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; php- [EMAIL PROTECTED] Subject: Re: [PHP] FW: ezmlm warning On Dec 15, 2007 12:10 PM, Andrés Robinet [EMAIL PROTECTED] wrote: I've just got this message... I also see no updates here http://news.php.net/php.general/ since Friday. Any clues on what's going on?? Looks to me like there was some reason that the emails being sent to you were bouncing, Rob. As for the news page, I just sent a help response a few moments ago and that's already archived at the bottom of the page, so that seems to be working fine. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: Still searching for PHP Experts in SF, CA
If anyone recommends anyone well versed in PHP in their network, in or around San Francisco, please send them along to me Chris Cox @ [EMAIL PROTECTED] Thank you in advance for your consideration. www.stepup.com Sincerely, Chris Cox Intuit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: Reaching the PHP mailing list owners
I have no idea what I am doing - and I hate to think this message is actually going to be read by everyone in a general mailing list. But - since the attempt to reach a human 'owner' didn't work and the general-help doesn't yield results I may just have to conclude that this won't work, either. If the message does reach a 'live' audience, I apologize for my stupidity and hope that someone can see where I've gone astray. I don't have many options beyond taking instructions literally... John B. Moss -Original Message- From: PHP Lists Owner [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 31, 2007 6:45 AM To: [EMAIL PROTECTED] Subject: Reaching the PHP mailing list owners This is an automated response to your message to [EMAIL PROTECTED] If you are trying to post to one of the PHP mailing lists, the correct address looks something like [EMAIL PROTECTED] If you are having problems unsubscribing, follow the directions located online at http://php.net/unsub Thanks! --- Your original email is below. Received: (qmail 32461 invoked by uid 1010); 31 Oct 2007 13:45:08 - Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 32446 invoked from network); 31 Oct 2007 13:45:08 - Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2007 13:45:08 - Return-Path: [EMAIL PROTECTED] Authentication-Results: pb1.pair.com [EMAIL PROTECTED]; sender-id=unknown Authentication-Results: pb1.pair.com [EMAIL PROTECTED]; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain addr1.com from 69.41.130.97 cause and error) X-PHP-List-Original-Sender: [EMAIL PROTECTED] X-Host-Fingerprint: 69.41.130.97 mail.meadowcrk.com Windows 2000 SP4, XP SP1 Received: from [69.41.130.97] ([69.41.130.97:2877] helo=mail.meadowcrk.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/32-20788-2E688274 for [EMAIL PROTECTED]; Wed, 31 Oct 2007 08:45:07 -0500 Received: from JBMMachine [66.45.174.21] by mail.meadowcrk.com with ESMTP (SMTPD-9.21) id A6DD051C; Wed, 31 Oct 2007 06:45:01 -0700 From: John Moss [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: [EMAIL PROTECTED] Subject: RE: ezmlm response Date: Wed, 31 Oct 2007 06:44:45 -0700 Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary==_NextPart_000_0057_01C81B89.87E12D50 X-Mailer: Microsoft Office Outlook 11 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AcgbwB3w3bfuOEYOQrmO4WAs/tT4XgAAHTKg In-Reply-To: [EMAIL PROTECTED] This is a multi-part message in MIME format. --=_NextPart_000_0057_01C81B89.87E12D50 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello ~ I feel so stupid! I am trying to learn php, so am attempting to get involved with a php-related mailing list. The problem: I have no familiarity - none - with mailing list protocols. So - it seems simple - get on a mailing list, ask for help in getting through what I need to know, then participate as my need to know directs me. I find a mailing list related to php - I think. Seems right - lists.php.net. I 'subscribe' (I think) to a 'General user list' which suggests This is a really high volume general list for PHP users. I think this is what I want - but I have no idea what subscribing to it means, other than to suppose that I will get some emails from the group. I chose to get the 'Digest', as opposed to the 'Normal', list since I interpret this to mean I get 1 (or 2) mailings a day with many messages embedded, as opposed to many many messages all day long, all the time. Since I have no idea (and doubt) that I am interested in all of these, and since I want to pick and choose what I read, I'm guessing the 'Digest' suits my purpose. Problem: how to see what's actually involved, once I receive my subscription confirmation? It seems to me that a 'help' function is the answer, but - look below - when I send mail to [EMAIL PROTECTED] - I receive this message in response! Repeating the request means getting this response each time! Apart from feeling that this is insane, where do I turn? How do I find out what is on the list, begin receiving messages, and determine the protocol for participating? For folks who have been on mailing lists since the beginning of the web, this all seems foolish I'm sure. But if I can't take the suggestion for accessing help literally (why not?) it seems there should be a logical substitution argument that would apply. To explain: if in the example I am to replace 'lists.php.net' with something else, in order to get general help, what might that something else be? Where do I deduce the name/replacement value? Why don't the instructions for doing this exist? Why isn't there 'Help' for getting 'help'? I can read as well as the next person: This is a generic help message. The message I received wasn't sent to any of my command addresses. What is meant by
Re: [PHP] FW: Reaching the PHP mailing list owners
On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: I have no idea what I am doing - and I hate to think this message is actually going to be read by everyone in a general mailing list. But - since the attempt to reach a human 'owner' didn't work and the general-help doesn't yield results I may just have to conclude that this won't work, either. If the message does reach a 'live' audience, I apologize for my stupidity and hope that someone can see where I've gone astray. I don't have many options beyond taking instructions literally... We all started someplace. What's your problem... the list is listening :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: I find a mailing list related to php - I think. Seems right - lists.php.net. I 'subscribe' (I think) to a 'General user list' which suggests This is a really high volume general list for PHP users. I think this is what I want - but I have no idea what subscribing to it means, other than to suppose that I will get some emails from the group. I chose to get the 'Digest', as opposed to the 'Normal', list since I interpret this to mean I get 1 (or 2) mailings a day with many messages embedded, as opposed to many many messages all day long, all the time. Since I have no idea (and doubt) that I am interested in all of these, and since I want to pick and choose what I read, I'm guessing the 'Digest' suits my purpose. I wouldn't use the digest option... not in this day and age when you can sort incoming messages to specific directories. Using the digest makes it difficult for you to receive immediate feedback and also to properly respond to any feedback sent to you since you won't have a separate message header for each response. The traffic here isn't overwhelming, maybe 10 to 50 emails a day. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-10-31 at 06:53 -0700, John Moss wrote: I have no idea what I am doing - and I hate to think this message is actually going to be read by everyone in a general mailing list. But - since the attempt to reach a human 'owner' didn't work and the general-help doesn't yield results I may just have to conclude that this won't work, either. If the message does reach a 'live' audience, I apologize for my stupidity and hope that someone can see where I've gone astray. I don't have many options beyond taking instructions literally... We all started someplace. What's your problem... the list is listening :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php John, Here's a page that may help you. Also note the links to the ezmlm commands at the bottom of the page: http://www.php.net/mailing-lists.php Secondly, I see this in the headers: Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2007 13:45:08 - Return-Path: [EMAIL PROTECTED] Authentication-Results: pb1.pair.com [EMAIL PROTECTED]; sender-id=unknown Authentication-Results: pb1.pair.com [EMAIL PROTECTED]; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain addr1.com from 69.41.130.97 cause and error) X-PHP-List-Original-Sender: [EMAIL PROTECTED] You are definitely subscribed and confirmed with that address, correct? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] FW: Reaching the PHP mailing list owners
On 10/31/07, John Moss [EMAIL PROTECTED] wrote: Thank you for your recent email. My inbox is protected by ChoiceMail One, the leader in anti-spam technology. ChoiceMail is holding the message you sent because your email address is not on my list of approved senders. Please click on the link below. This will take you to a sender verification page. Sender verification is a one-time process which takes only a few seconds. This will let me add you to my list of approved senders and receive your original email. ChoiceMail sender verification: Verify your identity here Please be aware that if you do not complete sender verification within 4 days, ChoiceMail will automatically delete your original message. To find out how ChoiceMail can make you spam free, please visit http://www.digiportal.com John, This could be another reason. You may want to set up a different address completely, and use it strictly for the PHP list, as Reply-All messages will require anyone trying to help you out to verify their identity --- and a lot will choose not to do so. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On 10/31/07, Jason Pruim [EMAIL PROTECTED] wrote: On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P We have rants? We should get some RAID and take care of them, or at least report the bugs to the owners I hear they have a nice site setup for reporting such bugs :) Reporting the bugs is probably your best bet, because getting RAID for the rants crawling around on the list would require several terabytes of 0+1 striping, I'm sure. And I haven't seen a can large enough to spray that on the shelves of my local Wal-Mart yet. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P We have rants? We should get some RAID and take care of them, or at least report the bugs to the owners I hear they have a nice site setup for reporting such bugs :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: On 10/31/07, Jason Pruim [EMAIL PROTECTED] wrote: On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P We have rants? We should get some RAID and take care of them, or at least report the bugs to the owners I hear they have a nice site setup for reporting such bugs :) Reporting the bugs is probably your best bet, because getting RAID for the rants crawling around on the list would require several terabytes of 0+1 striping, I'm sure. And I haven't seen a can large enough to spray that on the shelves of my local Wal-Mart yet. I've got rants in my pants. They itch a lot. Can you send me a small can of RAID? Though I'm not sure I want any striping in my undies :/ Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Reaching the PHP mailing list owners
On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: On 10/31/07, Jason Pruim [EMAIL PROTECTED] wrote: On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P We have rants? We should get some RAID and take care of them, or at least report the bugs to the owners I hear they have a nice site setup for reporting such bugs :) Reporting the bugs is probably your best bet, because getting RAID for the rants crawling around on the list would require several terabytes of 0+1 striping, I'm sure. And I haven't seen a can large enough to spray that on the shelves of my local Wal-Mart yet. I've got rants in my pants. They itch a lot. Can you send me a small can of RAID? Though I'm not sure I want any striping in my undies :/ Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... You may be able to get away with RAID/5 for your personal debugging, Rob. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Reaching the PHP mailing list owners
[snip] On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-10-31 at 11:19 -0400, Daniel Brown wrote: On 10/31/07, Jason Pruim [EMAIL PROTECTED] wrote: On Oct 31, 2007, at 10:07 AM, Daniel Brown wrote: On 10/31/07, Robert Cummings [EMAIL PROTECTED] wrote: The traffic here isn't overwhelming, maybe 10 to 50 emails a day. With the exception of the occasional rant. ;-P We have rants? We should get some RAID and take care of them, or at least report the bugs to the owners I hear they have a nice site setup for reporting such bugs :) Reporting the bugs is probably your best bet, because getting RAID for the rants crawling around on the list would require several terabytes of 0+1 striping, I'm sure. And I haven't seen a can large enough to spray that on the shelves of my local Wal-Mart yet. I've got rants in my pants. They itch a lot. Can you send me a small can of RAID? Though I'm not sure I want any striping in my undies :/ Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... You may be able to get away with RAID/5 for your personal debugging, Rob. [/snip] And if the personal debugging does not work certain parts are hot-swappable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: I really need help
On Sun, April 29, 2007 6:29 pm, Stephen Hernandez wrote: These were the values I had to change which I guess is where the problem is. I was supposed to change host to the name of the computer where MySQL is installed. But I do not know what name I should put, the name of my site is spanishbyproz.com. In the example Janet uses she puts datebasehost.mycompany.com . What should I write for host ? I would really appreciate any advice and am sorry it is such a basic question. Only your webhost knows for 100% sure what those should be... It's often in their FAQ on their site. Sometimes it's buried in your Control Panel (ugh) on your webserver. Sometimes it's in your Welcome! email that you got from them. Sometimes, they expect you to just know that the $host is 'localhost' (which means MySQL runs on the same box as your webserver) and that the username and password are the same as your login/FTP username/password for the site itself. Hope that helps... If not, you'll have to contact your webhost that you are paying to host your site, as they are the only ones who really really really know for sure. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: I really need help
I have literally just started using php and my sql so I really hope somebody can help me and I am addressing the right people as I don't want to be a pain in the neck. I have tested whether PHP is installed and running on the remote web server that hosts my website and it is running ok. Next I wanted to see if I could access MySQL using PHP. I downloaded a file from a Web site at janet.valade.com called mysql_up.php as it comes from a book she has written called PHP MySQL for Dummies which is the book I am using to learn - as you can tell I am right at the beginning :-) . I get an error message which relates to lines 9, 10 and 11 of the program which are: $host=host; $user=mysqlaccount; $password=mysqlpassword; These were the values I had to change which I guess is where the problem is. I was supposed to change host to the name of the computer where MySQL is installed. But I do not know what name I should put, the name of my site is spanishbyproz.com. In the example Janet uses she puts datebasehost.mycompany.com . What should I write for host ? I would really appreciate any advice and am sorry it is such a basic question. Many thanks in advance, Steve
Re: [PHP] FW: I really need help
On 4/30/07, Stephen Hernandez [EMAIL PROTECTED] wrote: I have literally just started using php and my sql so I really hope somebody can help me and I am addressing the right people as I don't want to be a pain in the neck. I have tested whether PHP is installed and running on the remote web server that hosts my website and it is running ok. Next I wanted to see if I could access MySQL using PHP. I downloaded a file from a Web site at janet.valade.com called mysql_up.php as it comes from a book she has written called PHP MySQL for Dummies which is the book I am using to learn - as you can tell I am right at the beginning :-) . I get an error message which relates to lines 9, 10 and 11 of the program which are: $host=host; $user=mysqlaccount; $password=mysqlpassword; These were the values I had to change which I guess is where the problem is. I was supposed to change host to the name of the computer where MySQL is installed. But I do not know what name I should put, the name of my site is spanishbyproz.com. In the example Janet uses she puts datebasehost.mycompany.com . What should I write for host ? I would really appreciate any advice and am sorry it is such a basic question. Many thanks in advance, Steve In 99% of the cases is MySQL running on the same host, and you should fill in localhost Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: I really need help
You will have to find that information out through whoever your host is. There is no one configuration for that. The first question to ask is did you create a MySQL database? If you did, then find out whatever the host was for doing that. Many times, your host will put it at mysql.___domainname___.com, so since you have spanishbyproz.com, you can probably try mysql.spanishbyproz.com. -Logan -Original Message- From: Stephen Hernandez [mailto:[EMAIL PROTECTED] Sent: Sunday, April 29, 2007 7:29 PM To: php-general@lists.php.net Subject: [PHP] FW: I really need help I have literally just started using php and my sql so I really hope somebody can help me and I am addressing the right people as I don't want to be a pain in the neck. I have tested whether PHP is installed and running on the remote web server that hosts my website and it is running ok. Next I wanted to see if I could access MySQL using PHP. I downloaded a file from a Web site at janet.valade.com called mysql_up.php as it comes from a book she has written called PHP MySQL for Dummies which is the book I am using to learn - as you can tell I am right at the beginning :-) . I get an error message which relates to lines 9, 10 and 11 of the program which are: $host=host; $user=mysqlaccount; $password=mysqlpassword; These were the values I had to change which I guess is where the problem is. I was supposed to change host to the name of the computer where MySQL is installed. But I do not know what name I should put, the name of my site is spanishbyproz.com. In the example Janet uses she puts datebasehost.mycompany.com . What should I write for host ? I would really appreciate any advice and am sorry it is such a basic question. Many thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: I really need help
On Mon, 2007-04-30 at 00:29 +0100, Stephen Hernandez wrote: I have literally just started using php and my sql so I really hope somebody can help me and I am addressing the right people as I don't want to be a pain in the neck. I have tested whether PHP is installed and running on the remote web server that hosts my website and it is running ok. Next I wanted to see if I could access MySQL using PHP. I downloaded a file from a Web site at janet.valade.com called mysql_up.php as it comes from a book she has written called PHP MySQL for Dummies which is the book I am using to learn - as you can tell I am right at the beginning :-) . I get an error message which relates to lines 9, 10 and 11 of the program which are: $host=host; $user=mysqlaccount; $password=mysqlpassword; These were the values I had to change which I guess is where the problem is. I was supposed to change host to the name of the computer where MySQL is installed. But I do not know what name I should put, the name of my site is spanishbyproz.com. In the example Janet uses she puts datebasehost.mycompany.com . What should I write for host ? I would really appreciate any advice and am sorry it is such a basic question. Try using: $host = 'localhost'; Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
Can you maybe explain why you want the exact size on the disk in blocks?? do you care if it differs 1KB?? what are you planning to write, the actual filesize on the disk can only differ 1 block with real filesize, and so if the blocksize is 1024bytes, it differes a max of 1024bytes... And btw, the size it takes on your server in blocks might be different then the size it takes on the server's disk... I'm not totally sure how a hdd works, but i know it is split up in blocks, and so you need to know the blocksize on the partition you are going to place the file, using different filesystems on 1 system can mean that a file is bigger/smaller on the same system. So the way to calculate the block filesize would be by getting the real filesize, and then round it until $filesize%$blocksize == 0 So, in PHP code it would like this. $blocksize = 1024; // Default on Ext2/3 i believe $filesize = filesize(http://server.com/file.rar;); while($filesize%$blocksize != 0) { $filesize += 1; } I'm not sure if it's the size you were looking for, but keep in mind that it depends on the block size. So different filesystems use different block size. Tijnema On 3/13/07, Richard Lynch [EMAIL PROTECTED] wrote: If PHP is returning that goofy Windows 'size on disk' number, I want to see your script... Because, no, I don't think it does that... On Sat, March 10, 2007 4:42 am, Riyadh S. Alshaeiq wrote: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk Riyadh -Original Message- From: Németh Zolt?n [mailto:[EMAIL PROTECTED] Sent: 10/Mar/2007 12:27 PM To: Riyadh S. Alshaeiq Cc: php-general@lists.php.net Subject: Re: [PHP] FW: looking for two remote functions I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zolt?n Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt ?rta: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
Just a little note, getting content-length and a lot of other stuff from remote files is also possbiel with curl_getinfo() www.php.net/curl_getinfo Tijnema On 3/11/07, Tijnema ! [EMAIL PROTECTED] wrote: Not everyone checks his email 1000 times a day, last time he replied was yesterday... so give him some time to read his email Tijnema On 3/11/07, Myron Turner [EMAIL PROTECTED] wrote: I think we've been talking to ourselves. The guy with the original question seems to have folded his hand and gone home. This is exactly what my script also did, get the content-length from the header. But i don't see what the actual problem is, there have been a lot of solutions around here but they are all wrong? Tijnema -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/
RE: [PHP] FW: looking for two remote functions
If PHP is returning that goofy Windows 'size on disk' number, I want to see your script... Because, no, I don't think it does that... On Sat, March 10, 2007 4:42 am, Riyadh S. Alshaeiq wrote: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk Riyadh -Original Message- From: Németh Zolt?n [mailto:[EMAIL PROTECTED] Sent: 10/Mar/2007 12:27 PM To: Riyadh S. Alshaeiq Cc: php-general@lists.php.net Subject: Re: [PHP] FW: looking for two remote functions I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zolt?n Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt ?rta: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
Myron Turner wrote: Tijnema ! wrote: On 3/10/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk okay then what about this? Th I wrote a small perl script which returns the bytes read when a file is read from the disk and it, too, agrees with the filesize and header sizes. In Windows, the actual filesize is also returned by filesize and stat, not the size on disk (filesize uses stat). Also, in the PHP manual, the fread example uses filesize to set the number of bytes to read: || Here's the perl script: use strict; use Fcntl; sysopen (FH, index.htm, O_RDONLY); my $buffer; my $len = sysread(FH, $buffer, 8192,0); print $len,\n; If you are really anxious about size you can exec out to this script and get the file size. -- Sorry the above version of the script was hard-coded for a small test file. Here's the general version: # get_len.pl use strict; use Fcntl; sysopen (FH, $ARGV[0], O_RDONLY) or die \n; my $buffer; my $bytes_read = 0; my $offset; while($bytes_read = sysread(FH, $buffer, 8192, $offset)) { $offset+=$bytes_read ; } print $offset,\n; From an exec() you'd call it with the file name: perl get_len.pl filename $len = exec(perl get_len.pl $filename); _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
On 3/11/07, Myron Turner [EMAIL PROTECTED] wrote: Myron Turner wrote: Tijnema ! wrote: On 3/10/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk okay then what about this? Th I wrote a small perl script which returns the bytes read when a file is read from the disk and it, too, agrees with the filesize and header sizes. In Windows, the actual filesize is also returned by filesize and stat, not the size on disk (filesize uses stat). Also, in the PHP manual, the fread example uses filesize to set the number of bytes to read: || Here's the perl script: use strict; use Fcntl; sysopen (FH, index.htm, O_RDONLY); my $buffer; my $len = sysread(FH, $buffer, 8192,0); print $len,\n; If you are really anxious about size you can exec out to this script and get the file size. -- Sorry the above version of the script was hard-coded for a small test file. Here's the general version: # get_len.pl use strict; use Fcntl; sysopen (FH, $ARGV[0], O_RDONLY) or die \n; my $buffer; my $bytes_read = 0; my $offset; while($bytes_read = sysread(FH, $buffer, 8192, $offset)) { $offset+=$bytes_read ; } print $offset,\n; From an exec() you'd call it with the file name: perl get_len.pl filename $len = exec(perl get_len.pl $filename); I'm not very familiar with PERL, so will this work with remote files? As it seems that you are just reading from local hard drive... Tijnema _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/
Re: [PHP] FW: looking for two remote functions
Tijnema ! wrote: I'm not very familiar with PERL, so will this work with remote files? As it seems that you are just reading from local hard drive... Tijnema It has to be on the machine from which the pages are being served. There have been several workable suggestions for different possibilities. I think it would help if you gave the context for this. Are these pages on your own web site? Are you downloading pages from third-party web sites using the browser? Are you using the command line to download pages from other servers? Here is a script which will get the headers for any file you can download from the web: ?php $fp = fsockopen(www.example.org, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { $out = HEAD http://www.example.org/any_page.html / HTTP/1.1\r\n; $out .= Host: www.example.org\r\n; $out .= Connection: Close\r\n\r\n; fwrite($fp, $out); $header = ; while (!feof($fp)) { $header .= fgets($fp, 256); } fclose($fp); echo $header; } ? In response you will get the headers: HTTP/1.1 200 OK Date: Sun, 11 Mar 2007 14:57:54 GMT Server: Apache/2.0.51 (Fedora) Last-Modified: Sun, 11 Mar 2007 13:00:03 GMT ETag: 10eb0036-4d1-3c2bbac0 Accept-Ranges: bytes Content-Length: 1233 Connection: close Content-Type: text/plain; charset=UTF-8 This includes the content-length, which is what you want. This script will download only the headers. You will not get a content-length headers for php files, since they are in effect scripts and their length is not know in advance. The same holds true for files which contain SSI. _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
On 3/11/07, Myron Turner [EMAIL PROTECTED] wrote: Tijnema ! wrote: I'm not very familiar with PERL, so will this work with remote files? As it seems that you are just reading from local hard drive... Tijnema It has to be on the machine from which the pages are being served. He was looking for remote functions There have been several workable suggestions for different possibilities. I think it would help if you gave the context for this. Are these pages on your own web site? Are you downloading pages from third-party web sites using the browser? Are you using the command line to download pages from other servers? Here is a script which will get the headers for any file you can download from the web: ?php $fp = fsockopen(www.example.org, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { $out = HEAD http://www.example.org/any_page.html / HTTP/1.1\r\n; $out .= Host: www.example.org\r\n; $out .= Connection: Close\r\n\r\n; fwrite($fp, $out); $header = ; while (!feof($fp)) { $header .= fgets($fp, 256); } fclose($fp); echo $header; } ? In response you will get the headers: HTTP/1.1 200 OK Date: Sun, 11 Mar 2007 14:57:54 GMT Server: Apache/2.0.51 (Fedora) Last-Modified: Sun, 11 Mar 2007 13:00:03 GMT ETag: 10eb0036-4d1-3c2bbac0 Accept-Ranges: bytes Content-Length: 1233 Connection: close Content-Type: text/plain; charset=UTF-8 This includes the content-length, which is what you want. This script will download only the headers. You will not get a content-length headers for php files, since they are in effect scripts and their length is not know in advance. The same holds true for files which contain SSI. This is exactly what my script also did, get the content-length from the header. But i don't see what the actual problem is, there have been a lot of solutions around here but they are all wrong? Tijnema _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
I think we've been talking to ourselves. The guy with the original question seems to have folded his hand and gone home. This is exactly what my script also did, get the content-length from the header. But i don't see what the actual problem is, there have been a lot of solutions around here but they are all wrong? Tijnema -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zoltán Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt írta: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: looking for two remote functions
Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk Riyadh -Original Message- From: Németh Zolt?n [mailto:[EMAIL PROTECTED] Sent: 10/Mar/2007 12:27 PM To: Riyadh S. Alshaeiq Cc: php-general@lists.php.net Subject: Re: [PHP] FW: looking for two remote functions I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zolt?n Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt ?rta: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
On 3/10/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk okay then what about this? function real_filesize_linux($file) { @exec(filesize $file,$out,$ret); if ( $ret '0' ) return FALSE; else return($out[0]); } if you want it on a remote machine, you should use something like ssh2_exec() instead of exec() hope that helps Zoltán Németh He was interested on using it over HTTP, not over SSH... I don't know if there are faster ways, but you could open a socket to the host on port 80, get the file, and only read the header where it says content-length: 400 for example, then you know the file is 400bytes when you download it. something like: $socket = fsockopen($host,$port); $size = 0; while($size == 0) { $line = fgets($socket); if(strlen($line) = 17) { if(substr(strtolower($line),0,14) == content-length) { $size = substr($line,16) } } Now your remote file size is in $size. It is not too fast, but everything in PHP is fast and so is this. Tijnema Riyadh -Original Message- From: Németh Zolt?n [mailto:[EMAIL PROTECTED] Sent: 10/Mar/2007 12:27 PM To: Riyadh S. Alshaeiq Cc: php-general@lists.php.net Subject: Re: [PHP] FW: looking for two remote functions I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zolt?n Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt ?rta: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: looking for two remote functions
Tijnema ! wrote: On 3/10/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 10, szombat keltezéssel 12.42-kor Riyadh S. Alshaeiq ezt írta: Actually if right click on any file or folder on a machine you will see that there are two values (Size on disk Size). Files and folders are stored on the disk in what is called clusters (a group of disk sectors). Size on disk refers to the amount of cluster allocation a file is taking up, compared to file size which is an actual byte count. As I mentioned before what I want is a function for getting the result for the Size no for Size on Disk okay then what about this? function real_filesize_linux($file) { @exec(filesize $file,$out,$ret); if ( $ret '0' ) return FALSE; else return($out[0]); } if you want it on a remote machine, you should use something like ssh2_exec() instead of exec() hope that helps Zoltán Németh He was interested on using it over HTTP, not over SSH... I don't know if there are faster ways, but you could open a socket to the host on port 80, get the file, and only read the header where it says content-length: 400 for example, then you know the file is 400bytes when you download it. something like: $socket = fsockopen($host,$port); $size = 0; while($size == 0) { $line = fgets($socket); if(strlen($line) = 17) { if(substr(strtolower($line),0,14) == content-length) { $size = substr($line,16) } } Now your remote file size is in $size. It is not too fast, but everything in PHP is fast and so is this. Tijnema Riyadh -Original Message- From: Németh Zolt?n [mailto:[EMAIL PROTECTED] Sent: 10/Mar/2007 12:27 PM To: Riyadh S. Alshaeiq Cc: php-general@lists.php.net Subject: Re: [PHP] FW: looking for two remote functions I'm afraid I don't understand what you want. The size of a file is its size in bytes, that is its size on the disk. So what else? greets Zolt?n Németh 2007. 03. 10, szombat keltezéssel 06.07-kor Riyadh S. Alshaeiq ezt ?rta: Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php This question has come up before, and out of curiosity I did some checking. If you use firefox liveheaders, it turns out that the file size on the linux file system is exactly the size shown in the content-length header. This is also the same size as returned by php's filesize() and by the php stat() in its size element. Linux reports the actual file size, not the storage size, which you can get by asking to see the number of blocks used to store the file (ls -ls). I wrote a small perl script which returns the bytes read when a file is read from the disk and it, too, agrees with the filesize and header sizes. In Windows, the actual filesize is also returned by filesize and stat, not the size on disk (filesize uses stat). Also, in the PHP manual, the fread example uses filesize to set the number of bytes to read: |contents = fread($handle, filesize($filename)); |The point of this is to read in the exact number of bytes for the file, not the entire size of the file's storage on disk which would contain garbage. This has to work on both windows and linux. Here's the perl script: use strict; use Fcntl; sysopen (FH, index.htm, O_RDONLY); my $buffer; my $len = sysread(FH, $buffer, 8192,0); print $len,\n; If you are really anxious about size you can exec out to this script and get the file size. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/
[PHP] FW: looking for two remote functions
Thank you Mickey, but I have already looked in there and the function posted in the notes is working just fine for getting the size on disk which I am not interested in.. Riyadh -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 9/Mar/2007 2:57 PM To: php-general@lists.php.net Subject: Re: looking for two remote functions Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the size on disk figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any.. Another thing, I also need a remote function that gets the created date and last modified separately, if possible.. Best regards Try looking here: http://uk.php.net/manual/en/function.filesize.php If the function itself isn't of use to you, look further down in the notes and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: Eregi question
Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. I have read tons of articles, but none really explains what everything means. Like why some things have square brackets and some have round, what does the * and $ do? Etc. i.e. ^[_+a-z0-9-]+(\.[_+a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{1,})*\.([a-z]{2,}){1} $ The problem I am having is I'm trying to create a small function to validate a web address. i.e. www.site.com (no http://). I have tried [a-z0-9]+.[a-z0-9]+.[a-z0-9], but it only works partially. If I input www.bob I get an error - www.bob.com I get no error, but it doesn't stop. www.bob.com.bob.bob.bob also produces no error. How do I stop it after it matches the 3 patterns? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Eregi question
On 1/15/07, Beauford [EMAIL PROTECTED] wrote: Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. Honestly i hope it isn't the last question. As far as eregi articles that really has been dead since about php 4.0.4, php onlu used eregi because pcre was not enable by default. I have read tons of articles, but none really explains what everything means. Like why some things have square brackets and some have round, what does the * and $ do? Etc. i.e. ^[_+a-z0-9-]+(\.[_+a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{1,})*\.([a-z]{2,}){1} $ match, from the beggining of the line any thing that starts with [_+a-z0-9-] one or more times followed by an optional value of multiple values of \.[_+a-z0-9-], and ensuring a @ is included. then it is required to have one or more value of [a-z0-9-] followed by the supper complicated expression (but not complete) that must be defined once: - can have zero or more of \.[a-z0-9-]{1,}) - can have zero or more (\.[a-z0-9-]{1,}) - which a \. must exist - and having at least 2 chars at the end ([a-z]{2,}) Basically a sore attempt in validating an email. The problem I am having is I'm trying to create a small function to validate a web address. i.e. www.site.com (no http://). iirc, there are some tools that already exist to find this, how it is done can complicate things. I have tried [a-z0-9]+.[a-z0-9]+.[a-z0-9], but it only works partially. If I input www.bob I get an error - www.bob.com I get no error, but it doesn't stop. www.bob.com.bob.bob.bob also produces no error. How do I stop it after it matches the 3 patterns? Perhaps looking into regex coach, regex is a whole other language, learning it besides php is a a tough task, even experts in regex get confused and i'm just a novice in regex. Anyway drop eregi and use pcre (php.net/pcre) you might get better results in your search. HTH, Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Eregi question
On Monday 15 January 2007 20:59, Curt Zirzow wrote: On 1/15/07, Beauford [EMAIL PROTECTED] wrote: Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. Honestly i hope it isn't the last question. As far as eregi articles that really has been dead since about php 4.0.4, php onlu used eregi because pcre was not enable by default. I have read tons of articles, but none really explains what everything means. Like why some things have square brackets and some have round, what does the * and $ do? Etc. i.e. ^[_+a-z0-9-]+(\.[_+a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{1,})*\.([a-z]{2,}) {1} $ match, from the beggining of the line any thing that starts with [_+a-z0-9-] one or more times followed by an optional value of multiple values of \.[_+a-z0-9-], and ensuring a @ is included. then it is required to have one or more value of [a-z0-9-] followed by the supper complicated expression (but not complete) that must be defined once: - can have zero or more of \.[a-z0-9-]{1,}) - can have zero or more (\.[a-z0-9-]{1,}) - which a \. must exist - and having at least 2 chars at the end ([a-z]{2,}) Basically a sore attempt in validating an email. The problem I am having is I'm trying to create a small function to validate a web address. i.e. www.site.com (no http://). iirc, there are some tools that already exist to find this, how it is done can complicate things. I have tried [a-z0-9]+.[a-z0-9]+.[a-z0-9], but it only works partially. If I input www.bob I get an error - www.bob.com I get no error, but it doesn't stop. www.bob.com.bob.bob.bob also produces no error. How do I stop it after it matches the 3 patterns? Perhaps looking into regex coach, regex is a whole other language, learning it besides php is a a tough task, even experts in regex get confused and i'm just a novice in regex. And while regex coach does not deliver any new products for the linux release, you can try out kregexpedit witch'll basicly do the same, if yer on linux that is... Anyway drop eregi and use pcre (php.net/pcre) you might get better results in your search. HTH, Curt. -- --- Børge Kennel Arivene http://www.arivene.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fw: `�.�MPEG`�.�
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: 参加してみませんか?
Andrei wrote: u... Nice... I would agree if I would understand something... lol Andy sns-コミュニティー wrote: ■□■ コミュニティー・エンターテイメント ■□■ □■□ ソーシャルネットワーキングサイトに参加してみませんか? □■□ メンバーより招待された方のみで構成されている為、安心快適!! ポイント代・料金等は一切御座いません。全て無料でお使いになれます! http://tada-asobi.com/tada/keijiban3/ テレビ・雑誌で話題!有名芸能人のブログ、写真等を全て無料でご覧になれます! ■これまでの友人関係を活性化できる 信頼できる旧知の友人、お知り合いとのお付き合いの活性化を図るさまざまな ツールをご用意しています。 ■「友人の友人」と交流できる・芸能人、アイドル、俳優と友達になれる! 友人同士のネットワークをたどって「友人の友人」との交流が 簡単にできます。そこにはあなたの友人から繋がる信頼できるネットワークが 形成されています。どこかで繋がっている人同士が集まるコミュニティー であり、これがソーシャルネットワーキングの特徴です。 テレビ・雑誌で話題!ご利用料金・登録料は一切御座いません!全て無料でお使いになれます。 情報・コミュニティーに最適! http://tada-asobi.com/tada/keijiban3/ それでは、参加を心よりお待ちしております。 ※2006/03/06まで有効 Lol its just plain spam mail xD You can get some shitn crap if you go to the site and apply to some stupid stuff. And guess what you get, a whole bunch of nonsense! quick quick ;) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: error de php!
On 1/18/06, Miguel Guirao [EMAIL PROTECTED] wrote: $this-$NumDias = $unixtime2 - $unixtime1; --- This is the line 44 hmm wasn't it supposed to be $this-NumDias? (with no $ before the propery name) -ahmed
[PHP] FW: error de php!
Hi list! I'm migrating to a new server, the old was: -Apache/2.0.46 (Unix) y PHP/4.3.2 -MySQL 4.0.13 -Solaris 8 The following script used to run nicely in the old sever, but now that I migrated the script to a new server with Apache/2.0.54 (Unix Solaris 9), PHP/5.0.5 and MySQL 5.0.18. I got the following error: Fatal error: Cannot access empty property in /usr/local/apache2/htdocs/intranet/phpclass/cdate.php on line 44 I hope any one here can help me!! Best Regards!! I'm noting out line 44 in the following code fragment! ?php class CDate { var $mDate; // in actual OOP it should be private var $NumDias; var $AddmDate; function CDate($d=0,$m=0,$y=0) { If ($y==0) // these three if are necessary because default parameters must be constants. { $y=Date(Y); } If ($m==0) { $m=Date(m); } if ($d==0) { $d=Date(d); } $this - mDate = Date(d-m-Y,mktime(0,0,0,$m,$d,$y)); } // end of constructor function AddTime($y=0,$m=0,$d=0) // this method adds y years, m months and d days to date { $array_date = explode(-,$this-mDate); $this-AddmDate=Date(d-m-Y,mktime(0,0,0,$array_date[1]+$m,$array_date[0]+$ d,$array_date[2]+$y)); } // end of AddTime // Devuelve el numero de dias que hay entre 2 fechas. function DifTime($d1, $m1, $y1, $d2, $m2, $y2) { $unixtime1=mktime(0,0,0,$m1,$d1,$y1); $unixtime2=mktime(0,0,0,$m2,$d2,$y2); $this-$NumDias = $unixtime2 - $unixtime1; --- This is the line 44 } // Devuelve el resultado del numero de dias entre un intervalo. function ReadNumDias() { return ($this-$NumDias / 86400)+1; } // crea un arreglo en donde pone las fechas intermedias de un intervalo dado function ArregloDias($d2,$m2,$y2) { $date_ini = explode(-,$this-mDate); $alarray= Date(Y-m-d,mktime(0,0,0,$date_ini[1],$date_ini[0],$date_ini[2])); $aux= Date(d-m-Y,mktime(0,0,0,$date_ini[1],$date_ini[0],$date_ini[2])); //introduce el primer dato al array $this - DifTime($date_ini[0],$date_ini[1],$date_ini[2],$d2,$m2,$y2); //Calcula el No. de dias entre intervalos for($i=0;$i$this - ReadNumDias();$i++) { $dato_proc = explode(-, $alarray); $date_proc = explode(-, $aux); // Exploda el valor anterior del array $aux=Date(d-m-Y,mktime(0,0,0, $date_proc[1], $date_proc[0]+1, $date_proc[2])); //Calcula el siguiente valor y se lo asigna al array. $alarray=Date(Y-m-d,mktime(0,0,0, $date_proc[1], $date_proc[0]+1, $date_proc[2])); $ArrayDias[$i]=$dato_proc[0].-.$dato_proc[1].-.$dato_proc[2]; } return $ArrayDias; } function ReadArray() { return $this - $ArrayDias; } // If you are a rigorous man, the following method should be your way to access date function ReadDate() { return $this-AddmDate; // you get the date in same format as Date(Y-m-d) } // ends of ReadDate } // end of declaration class CDate ? Este mensaje es exclusivamente para el uso de la persona o entidad a quien esta dirigido; contiene informacion estrictamente confidencial y legalmente protegida, cuya divulgacion es sancionada por la ley. Si el lector de este mensaje no es a quien esta dirigido, ni se trata del empleado o agente responsable de esta informacion, se le notifica por medio del presente, que su reproduccion y distribucion, esta estrictamente prohibida. Si Usted recibio este comunicado por error, favor de notificarlo inmediatamente al remitente y destruir el mensaje. Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Radiomovil Dipsa, S.A. de C.V. o alguna de sus empresas controladas, controladoras, afiliadas y subsidiarias. Este mensaje intencionalmente no contiene acentos. This message is for the sole use of the person or entity to whom it is being sent. Therefore, it contains strictly confidential and legally protected material whose disclosure is subject to penalty by law. If the person reading this message is not the one to whom it is being sent and/or is not an employee or the responsible agent for this information, this person is herein notified that any unauthorized dissemination, distribution or copying of the materials included in this facsimile is strictly prohibited. If you received this document by mistake please notify immediately to the subscriber and destroy the message. Any opinions contained in this e-mail are those of the author of the message and do not necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of its control, controlled, affiliates and subsidiaries companies. No part of this message or attachments may be used or reproduced in any manner whatsoever.
[PHP] FW: Advanced search form
Hello PHP-Gurus, I have already ask this on php-de and pgsql-pgp but unfortunatly gotten no answer. I have a search form and I like to add advanced search options like this is a search -XXX Test which mean, 1) this is a search must be in this order 2) -XXXDo not find XXX contents 3) TestAND Does anyone has a PHP/PGSQL code sniplet? Thanks Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - End forwarded message - ** * Do not Cc: me, because I am on THIS list, if I write here * * Keine Cc: am mich, bin auf DIESER Liste wenn ich hier schreibe * ** Hello, Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Advanced search form
Here is some code that you can modify. It's design to convert a search string into a MySQL full text search string, not sure how different pgsql is. It adds * for word expansion where appropriate. It assume a space is the delimiter, but that's easy to change in the explode statement. Example: this is a search -XXX Test becomes +this is a search -XXX* +Test* Conversion function: function prepFullTextSearch($searchVal) { //Split words into list $word_List = explode(' ',stripslashes(trim($searchVal))); //Step through word list to get search phrases $i = 0; $isPhrase = false; foreach($word_List as $word) { $searchItems[$i] = trim(($isPhrase?$searchItems[$i].' '.$word: $word)); //Check for start of Phrase if(substr($searchItems[$i],0,1) == '') { $isPhrase = true; } //If not building a phrase, append wildcard (*) to end of word if(!$isPhrase) { $searchItems[$i].= '*'; $i++; } //Check for end of Phrase if(substr($searchItems[$i],-1) == '') { $isPhrase = false; $i++; } } $searchVal = '+'.implode(' +',$searchItems); $searchVal = str_replace('+-','-',$searchVal); return $searchVal; } On Dec 7, 2005, at 8:18 AM, Michelle Konzack wrote: Hello PHP-Gurus, I have already ask this on php-de and pgsql-pgp but unfortunatly gotten no answer. I have a search form and I like to add advanced search options like this is a search -XXX Test which mean, 1) this is a search must be in this order 2) -XXXDo not find XXX contents 3) TestAND Does anyone has a PHP/PGSQL code sniplet? Thanks Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - End forwarded message - ** * Do not Cc: me, because I am on THIS list, if I write here * * Keine Cc: am mich, bin auf DIESER Liste wenn ich hier schreibe * ** Hello, Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Merging two images (GD PNG)
Jochem Maas wrote: the output image resource you create should be created with $xxx = imagecreatetruecolor(1000,1000), you should call imagealphablending($xxx, true) on the output image resource after you create and before copying [which you are as far as I can tell], and you should use imagecopyresampled() to actually copy the image data into the final image (instead of imagecopy()). It seems that I have three problems: 1. It seems that true color images do not support transparency (even though I'm outputting to a PNG). It does not matter which colour I set to be transparent it always is displayed as black which hides my satellite image. 2a. Because I am now forced to use a paletted image instead of a true color image it seems that the colours in the second image is not added to the palette of the first image. or 2b. The alpha blending on the image causes the actual colours in the top image to be blended with the satellite image. Because of this the top image are blended in with the satellite image. If I do not set imagealphablending ($im, true) then the transparency in the top image is ignored and I do not see the satellite image. This brings me back to the original problem: I have a true colour satellite image in PNG format. On top of this I want to add the data collected from data collected by my company. This is always shapes drawn which should not be alpha blended with the satellite image. These shapes are drawn on a transparent background. The transparent background allows for the satellite image to show through. Any suggestions are welcome. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Merging two images (GD PNG)
Jochem Maas wrote: try this site: http://php.amnuts.com/ I had a look at the way Andy does the masking and changed my code to do a pixel compare and only transfer the pixels to the satellite image I needed. This now takes quite a bit longer but at least everything is working as it should. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Merging two images (GD PNG)
Albert wrote: Jochem Maas wrote: try this site: http://php.amnuts.com/ I had a look at the way Andy does the masking and changed my code to do a pixel compare and only transfer the pixels to the satellite image I needed. This now takes quite a bit longer but at least everything is working as it should. ai, its process intensive to generate good quality images, I'm gald that Andy's masking stuff helped you out - it certainly helped me. I figured that either you could figure it out from his examples/code or you we're in over your head :-) either way it as a little too complex for me to try an explain it properly! (I only just grok it myself) anyway good to see you cracked it :-) Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: Merging two images (GD PNG)
I have two images which I want to overlay on each other. Image1 is a satellite image. Image2 is contains the statistical data we collected. It has a transparent background and should be overlaid on top of the satellite image. Both are in PNG format. My current code: ? $dataImage = imagecreate(1000, 1000); $dIBack = imagecolorallocate($dataImage, 199, 199, 199); imagecolortransparent($dataImage, $dIBack); $darkGreen= imagecolorallocate($tileImage, 2, 123, 48 ); $grey = imagecolorallocate($tileImage, 118, 131, 120); $fuchsia = imagecolorallocate($tileImage, 255, 0, 255); $aqua = imagecolorallocate($tileImage, 113, 168, 194); $brown= imagecolorallocate($tileImage, 177, 170, 107); $offwhite = imagecolorallocate($tileImage, 187, 210, 193); $black= imagecolorallocate($tileImage, 0, 0, 0 ); $blue = imagecolorallocate($tileImage, 0, 0, 255); $red = imagecolorallocate($tileImage, 255, 0, 0 ); $yellow = imagecolorallocate($tileImage, 255, 255, 0 ); /* Code to draw data on image comes here */ $satImage = imagecreatefrompng(sat_image.png); $mergedImage = imagecreate(1000, 1000); imagealphablending($mergedImage, true); imagecopy($mergedImage, $satImage, 0, 0, 0, 0, 1000, 1000); imagecopy($mergedImage, $dataImage, 0, 0, 0, 0, 1000, 1000); imagepng($mergedImage, merged_image.png); imagedestroy($mergedImage); imagedestroy($satImage); imagedestroy($dataImage); ? Notes: 1. When using imagecreatetruecolor the images turn black 2. When using imagealphablending = true or imagealphablending = false with imagecopy the result is the same. The top image is shown but it is almost transparent. Some images are also discoloured. 3. When using imagecopymerge to copy with a pct value of 99, and commenting out the imagealphablending line the top image does not appear at all 4. When using imagecopymerge to copy with a pct value of 99, and imagealphablending=true, it has the same result as 2. above. 5. When using imagecopymerge to copy with a pct value of 50, and Imagealphablending=true, it has the same result as 2. above. What is the effect of the pct value of imagecopymerge? Should I be using different values for the pct value of imagecopymerge or is there an alternative method which will do what I want to be done? It seems to me that the palette used in the top image is not merged with the palette used in the satellite image. Albert -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.10/188 - Release Date: 2005/11/29 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Merging two images (GD PNG)
imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: I have two images which I want to overlay on each other. Image1 is a satellite image. Image2 is contains the statistical data we collected. It has a transparent background and should be overlaid on top of the satellite image. Both are in PNG format. My current code: ? $dataImage = imagecreate(1000, 1000); $dIBack = imagecolorallocate($dataImage, 199, 199, 199); imagecolortransparent($dataImage, $dIBack); $darkGreen= imagecolorallocate($tileImage, 2, 123, 48 ); $grey = imagecolorallocate($tileImage, 118, 131, 120); $fuchsia = imagecolorallocate($tileImage, 255, 0, 255); $aqua = imagecolorallocate($tileImage, 113, 168, 194); $brown= imagecolorallocate($tileImage, 177, 170, 107); $offwhite = imagecolorallocate($tileImage, 187, 210, 193); $black= imagecolorallocate($tileImage, 0, 0, 0 ); $blue = imagecolorallocate($tileImage, 0, 0, 255); $red = imagecolorallocate($tileImage, 255, 0, 0 ); $yellow = imagecolorallocate($tileImage, 255, 255, 0 ); /* Code to draw data on image comes here */ $satImage = imagecreatefrompng(‘sat_image.png’); $mergedImage = imagecreate(1000, 1000); imagealphablending($mergedImage, true); imagecopy($mergedImage, $satImage, 0, 0, 0, 0, 1000, 1000); imagecopy($mergedImage, $dataImage, 0, 0, 0, 0, 1000, 1000); imagepng($mergedImage, ‘merged_image.png’); imagedestroy($mergedImage); imagedestroy($satImage); imagedestroy($dataImage); ? Notes: 1. When using imagecreatetruecolor the images turn black 2. When using imagealphablending = true or imagealphablending = false with imagecopy the result is the same. The top image is shown but it is almost transparent. Some images are also discoloured. 3. When using imagecopymerge to copy with a pct value of 99, and commenting out the imagealphablending line the top image does not appear at all 4. When using imagecopymerge to copy with a pct value of 99, and imagealphablending=true, it has the same result as 2. above. 5. When using imagecopymerge to copy with a pct value of 50, and Imagealphablending=true, it has the same result as 2. above. What is the effect of the pct value of imagecopymerge? Should I be using different values for the pct value of imagecopymerge or is there an alternative method which will do what I want to be done? It seems to me that the palette used in the top image is not merged with the palette used in the satellite image. Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FW: Merging two images (GD PNG)
Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Merging two images (GD PNG)
Albert wrote: Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. shit missed that sorry. question is where did you use then? Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: Merging two images (GD PNG)
Albert wrote: Jochem Maas wrote: imagecreatetruecolor() is probably what your after: http://php.net/imagecreatetruecolor Albert wrote: Notes: 1. When using imagecreatetruecolor the images turn black I did try imagecreatetruecolor() but then the images turn black. the output image resource you create should be created with $xxx = imagecreatetruecolor(1000,1000), you should call imagealphablending($xxx, true) on the output image resource after you create and before copying [which you are as far as I can tell], and you should use imagecopyresampled() to actually copy the image data into the final image (instead of imagecopy()). try this site: http://php.amnuts.com/ I use a very hacked up version of his image masking class to do similar things to what you want to do. Albert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: PATH_INFO/PATH_TRANSLATED
Can you help me for this problem Regards, Nilesh Narkhede -Original Message- From: Gabor Hojtsy [mailto:[EMAIL PROTECTED] Sent: Friday, September 16, 2005 9:34 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: PATH_INFO/PATH_TRANSLATED Hi Nilesh, Since your problem has nothing to do with webmastering of the php.net website, it does not belong in here Please contact php-general@lists.php.net (a mailing list) with support questions or see http://php.net/support for more support options. Regards, Gabor Hojtsy Infoton - Nilesh Narkhede wrote: I have problem when i use http://sitename.com/scripts/template.php/new/1. earlier same code was working with another server, but after transfering code to another server. I get error when I access this path http://sitename.com/scripts/template.php/new/1 it gives me error that URL not found. I have searched through internet I got answer that problem is with PATH_INFO PATH_TRANSLATED and I need to set cgi.fix_pathinfo=1. I have changed the php.ini which is in etc folder. But still the problem is not resolved. Can you help me in resolving problem. What settings to be done in server. Am I changing correct ini file I have got this path of ini file using phpinfo(). Regards, Nilesh Narkhede -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fw: Unsubscribe me
Please Unsubscribe me I don't wanna recieve many e-mails to my inbox. - Original Message - From: anshul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, July 06, 2005 11:22 AM Subject: Unsubscribe me Please Unsubscribe me I don't wanna recieve many e-mails to inbox -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fw: Unsubscribe me
http://www.php.net/unsub.php its at the bottom of each mail posted to the list. try reading next time... anshul wrote: Please Unsubscribe me I don't wanna recieve many e-mails to my inbox. - Original Message - From: anshul [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, July 06, 2005 11:22 AM Subject: Unsubscribe me Please Unsubscribe me I don't wanna recieve many e-mails to inbox -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: IBM PHP, Designer Track Training
FYI - RSVP if you plan on attending. - Very Special Meeting: IBM Presents their PHP Strategy to New York PHP RSVP Today, seats are limited: http://www.nyphp.org/rsvp.php All Attendees Must RSVP By Monday, June 27th. Join us this month as we hear from David Boloker, CTO of Emerging Technology in the IBM Software Group. Dave and his team will speak about IBM's PHP strategy, contributions, and upcoming products. The team from IBM will also discuss the recent Zend Technologies partnership and demonstrate some PHP applications and extensions that are in the works. This meeting promises to be a great opportunity to ask questions about IBM's PHP roadmap. The presenters will cover the following topics: IBM's PHP Strategy (David Boloker) * Why PHP * The Zend relationship * What are we doing and where are we going PHP Technologies and IBM (Stewart Nickolas) * PDO status and efforts * Web services Composite Applications using Mambo (Dan Gisolfi) * Building composite applications with open source components and frameworks Thanks to Daniel Krook and Platinum sponsor IBM for providing a great presentation space with seating for plenty. As a service to our community, New York PHP meetings are always free and open to the public. RSVP: http://www.nyphp.org/rsvp.php Designer Track Training Starts Monday, June 27th Reserve your seat for New York PHP's Designer Track, June 27 - 28. For complete details and to sign-up for this or other upcoming courses, visit http://www.nyphp.org/twoday or simply reply to this email with questions. Our Designer's Track was created especially for web developers with experience in HTML, Dreamweaver, Front Page, Microsoft Word, and other graphic and layout applications. No programming or systems background is expected, and instruction is hands-on with a live Linux server. Visit http://www.nyphp.org/twoday for the complete course outline and to see our other course offerings. Then join us for a very special meeting, where IBM's Innovative Technology leaders present what's on their horizon for PHP. --- New York PHP AMP Technology Supporting Apache, MySQL and PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FW: [nyphp] IBM's PHP Strategy - New York PHP June Meeting - Designer Training June 27th
FYI for those in the tri-state area. -Original Message- From: Hans Zaunere [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 2:50 PM To: [EMAIL PROTECTED] Subject: [nyphp-announce] IBM's PHP Strategy - New York PHP June Meeting New York PHP June Meeting -- When: June 28th, 2005 at 6:30pm *sharp* Where: 590 Madison Avenue, Room 1219 (12th floor) Post-Meeting: TGI Fridays at Lexington and 56th NEW RSVP POLICY: You must RSVP within 30 days of the meeting you will attend and must RSVP for every meeting. This means you likely need to RSVP! Please http://www.nyphp.org/rsvp.php to check your RSVP status. If there are any questions, contact us at http://www.nyphp.org/contact.php IBM's PHP Strategy Join us this month as we hear from David Boloker, CTO of Emerging Technology in the IBM Software Group. Dave and his team will speak about IBM's PHP strategy, contributions, and upcoming products. The team from IBM will also discuss the recent Zend Technologies partnership and demonstrate some PHP applications and extensions that are in the works. This meeting promises to be a great opportunity to ask questions about IBM's PHP roadmap. The presenters will cover the following topics: IBM's PHP Strategy (David Boloker) - Why PHP - The Zend relationship - What are we doing and where are we going PHP Technologies and IBM (Stewart Nickolas) - PDO status and efforts - Web services Composite Applications using Mambo (Dan Gisolfi) - Building composite applications with open source components and frameworks Thanks to Dan Krook and Platinum sponsor IBM for providing a great presentation space with seating for plenty. As a service to our community, New York PHP meetings are always free and open to the public. Come prepared with a business card to enter book raffles. When: June 28th, 2005 at 6:30pm *sharp* Where: 590 Madison Avenue, Room 1219 (12th floor) Post-Meeting: TGI Fridays at Lexington and 56th Join us after the meeting for good food and discussion! NEW RSVP POLICY: RSVP online at http://www.nyphp.org/rsvp.php Designer Track Training Seat Available -- We have a couple seats available in the upcoming training in June. If you'd like to attend see http://www.nyphp.org/contactedu and learn more at http://www.nyphp.org/content/training/twodaycourse.php PHP Turns 10 -- Thanks to all those who showed up for our informal get together on June 8th for PHP's tenth birthday. Lots of good development discussion was had! --- New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] FW: write to file, difficulty inputting data
On Tue, May 31, 2005 5:32 pm, mayo said: if (!$handle = fopen($filename, 'w')) { This will WIPE OUT the existing file, and write a *NEW* file, from 0, starting from scratch. So you'll never have anything but the LAST item. You could use a+ to append to the end of the file... But you *SHOULD* be using a database to avoid concurrency issues. You're going to have a MUCH better application if you store your data in the database, and it's EASIER than messing with a file. Only use a file if a database is absolutely forbidden by outside factors. Like badly-design homework assignments. Or not-very-smart pointy-haired-bosses. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php