Re: [PHP] People's misbehavior on the list
PHP Developer wrote: some people don't remove the Re: prefix when answering to the questions It opens a new topic on the list and that's not appropriate . Thank ya Any email client that uses the presence or absence of a Re: header to decide if posts are related is severely broken. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] People's misbehavior on the list
Danial Rahmanzadeh wrote: hey, I use Gmail but i have the same problem. Whoever said Gmail was a good mail client?! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why is the default value for arg_separator.output ''?
On Wed, 20 Apr 2005, Tom Rogers wrote: You can set this with arg_separator.output in php.ini That doesn't really answer why the choice was made to default to what not only shouldn't be the default, but should probably be illegal altogether. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why is the default value for arg_separator.output ''?
Richard Lynch wrote: Why in the world should we be forced to follow your narrow-minded so-called standard? :-) Hint: smileys indicate that you're joking. If you're joking, I don't get what's humorous -- please explain. If you're making a serious point but trying to have the rhetorical equivalent of no offense, but... you should probably know that any time someone says no offense, but... they really mean to offend but get off scot-free. Furthermore, the as separator pre-dates amp; by *years* and billions of lines of code could be affected by altering the default. So, really, Backwards Compatibility alone makes this a no-brainer default value of: So default behaviors should never change?! Absurd. you should be notified that they are changed, and should have a mechanism to configure for the previous behavior... but they have to be allowed to change as standards do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] parsing question ('010.000.080.001' == `10.0.80.1`) how to be 'true'?
Galkov Vladimir wrote: Two tables have diferent standarts to hold IP adresses: first: 045.012.001.002 003.000.123.231 123.230.101.080 second: 45.12.1.2 3.0.123.231 123.230.101.80 Are you aware that these don't mean the same thing? Leading zeroes mean an IP address quad is in octal. If you enter 045.012.001.002 you're actually saying 37.10.1.2... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem with the function mssql_list_tables()
John W. Holmes wrote: From: Roger B.A. Klorese [EMAIL PROTECTED] How do you do the equivalent of mysql_list_tables() in PHP when running against a SQL Server database? Ah... I assume there's no SHOW TABLES query in MSSQL? Isn't there a system table in each database that you can query for the table names? I was translating (or rather, untangling the bogus auto-translation), not asking. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem with the function mssql_list_tables()
John W. Holmes wrote: From: German [EMAIL PROTECTED] Hello, it wanted to know how as profit to supplant the function mysql_list_tables() for SQL server server or like the tables of one db of SQL server in php... It has no idea what you just said. How do you do the equivalent of mysql_list_tables() in PHP when running against a SQL Server database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] password protect a pdf
I'm trying to password protect an online PDF file. I know how to use PHP to pw protect a webpage, but what would be the best way to protect access to a nonwebpage file? Stick it in its own directory and use htaccess... Or password-protect it when you generate it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Using date() with the function fileatime() doesn't return accurate timestamp...
Oh I understand now. There is a different between fileatime(), filectime() and filemtime(), with a letter 'a', 'c' or 'm'... The one with the m is what work with Unix/Linux.. Um, they all work with Unix/Linux -- they just mean different things. Atime is the time a file was last accessed. Mtime is the time the contents of a file were last modified. Ctime is the time the metadata about a file -- length, owner, permissions, times -- were last updated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pass output of php scripts through command line programor cgi
Sorry, but what command line are you talking about? He didn't say he'd like to execute his PHP scripts from a shell prompt. He said that he'd like the output of his PHP scripts to be filtered before httpd outputs them. on the commandline you need to have the php executable on your path...then run php -f [filename] so php -f index.php that will do it for you. -- Ray On Sat, 2004-01-17 at 05:44, Paul William wrote: Hi, I want to run the output of all the php scripts running on my apache server through a command line or CGI program. I do not want to modify any of the php scripts.Has anyone done this? Is this possible? For example (this is a stupid example and I am not using it for this): The output of index.php is: html ... /table /body /html then that output is run through addfooter (a command line script) which results in: html ... /table br/bThe footer is inserted here./b /body /html Then apache outputs the above html. Any ideas? Thanks Paul -- .''`. Paul William : :' :Debian admin and user `. `'` `- Debian - when you have better things to do than fixing a system -- 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
RE: [PHP] How to use PHP to view the file permision???
Um, not sure what this meant with the fileperms() function. I have file permission as -rw-r--r-- or 644 and when using hte fileperms() funciton, it spitted a result as 33188. If you know what it is then I'm all ear! 33188 (base 10) == 0x100644 (base 8). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add Reply-To to this list(s)
you don't need special privs to use another mail program. Actually, given the fact that the other products you're talking about are POP or IMAP clients, and most Exchange-based companies allow only MAPI clients (specifically Outlook and the Outlook Web Access client), that could easily be considered special privs. And why on earth should I care about Exchange anyway? But that's only if you need Exchange-specific features; Exchange also talks to real mail clients via IMAP and POP3. Not by default -- only if you *want* to enable other clients (which will not be able to access full Exchange functionality). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add Reply-To to this list(s)
This is simply impossible. This list is propagated to places other than the mailing list (ie. news.php.net) So? What negative impact would a Reply-To: header have on a newsgroup? It doesn't affect followups... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add Reply-To to this list(s)
Have you tried other popular mail clients like those from Eudora or even Netscape/Mozilla? Neither Eudora nor Mozilla support RFC2369 headers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add Reply-To to this list(s)
I'm using the browser but not the email and news client so I'm not sure but I just came across this: (Pls. check under subheading Mailing lists.) http://www.opera.com/support/tutorials/opera/m2/folders/?test=pop And, umm... PHP in Opera looks great. ;) Yes, but: - the IMAP implementation is minimal at best - they don't implement any List-* capability *except* for categorization -- no reply-to-list or help or subscribe/unsubscribe I installed it, was underwowed by the second issue above, and removed it after five minutes because of the first. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add Reply-To to this list(s)
One problem is that people, like you did now, forget to delete the non list address. That makes me get two mail with the exact same content - one from the list and another directly to me. That is very irritating. To you, irritating. To me, preferable -- one copy, the list one, goes into my list folder to be filed away, and the other stays in my inbox so I see discussions I'm participating in without having to read all of the traffic. A decent list manager would be configurable to let you say whether or not you should be sent a list copy if you're already in the headers for a personal copy -- putting the burden where it belongs, on the software, and the choice where it belongs, with you (one way) and me (the other). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
How can you possibly test, in a conditional, the return value of the return statement itself when it has no value to return and even causes the current scope to exit IMMEDIATELY?? Per the logic, if it returns immediately, isn't the value irrelevant? That is, assuming that the truth of the first clause short-circuits evaluation of the second one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
I would say the real issue at hand here is that the return statement is not a fucntion, but rather a language construct, thus it cannot be used as a function unless explicitly stated as so. The reason a parse error is occurring is because this particular construct has no support for being used in the given context. It would be like dropping in any other language construct suddenly such as a { or @ where it is not understood. Given that die() and exit() works just means they have been given support for this context. Sounds to me that if it looks like a function, quacks like a function, etc., only a broken language definition would treat it differently from a function... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] or return problem
Generally it doesn't look like a function since you can do: return 'foo' which has no parenthesis. True enough. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Making a Session Longer
RCVD_IN_OSIRUSOFT_COM (0.6 points) RBL: Received via a relay in relays.osirusoft.com [RBL check: found 4.131.92.216.relays.osirusoft.com.] X_OSIRU_OPEN_RELAY (2.9 points) RBL: DNSBL: sender is Confirmed Open Relay You might want to check your email server. Its listed as an open relay and your messages are getting logged as spam :( You might want to fix your Spamassassin configuration to reflect that fact that relays.osirusoft.com has been taken out of action and is no longer valid, and that to encourage people to make the fix, the failure mode is that every IP address returns a positive. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] captcha WAS Please visit my php program
Exactly what is the purpose of this? Let me clarify. I know that it's supposed to prevent computers from submitting forms automatically because they cannot read the graphic, but what I don't understand is in what cases this is useful? Not being able to auto-subscribe to mailing lists in order to spam, for one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: RE: [PHP] PHP Editor - which to use?
you can create so-called assistants... You can create a loop that asks in a table how many rows and columns do you want in that table. Then you can have it create the table with all your favorite default table settings, but while it is generating it, you could have it prompt you for any additional settings that you would like to have in the new table. That doesn't explain what internal scripting is. Do you mean that edit sessions are scriptable, using its own script interpreter? Or do you mean something else entirely? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: RE: [PHP] PHP Editor - which to use?
I guess you could call them helper scripts libraries. Example would be: You can program a script to create a switch statement and then have it prompt you for the number of case statements to add in and if you want them to break; or not. Things like that. Short cuts if you will.. Well, if those scripts are taking input and telling the editor what to do, they're exactly what I said: a scripting language within the editor. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] fopen() || Execute read file as php page; not plain text
Because I need to write $include_path content to file; not display it in the browser... Then you're not INCLUDEing it inline to the source, are you? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP|Con insane pricing
Yea its not bad if you dont have a life outside of programming and/or computers if you have kids or other responsibilities then all of a sudden 500$ becomes a very large issue as thats a months groceries or what not... heh yea the average salary is 50K but then when the government takes 40% (if your canadian) that is not a whole lot I'm sure that, like most conferences and trainings, the assumption is that people will attend who are either employed in the subject area -- in which case they need to get their employers to ante up -- or are independent contractors in the subject area -- in which case they need to treat it as a legitimate business expense for tax purposes. It's not a friends of PHP sci-fi con... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Correct Coding
Could you explain a little better why this would make things better? I don't understand how this would improve things. Concerning the $Task == Add, I'd like to make a comment. It can be a wise decision to compare your variables with strings like: if (Add == $Task) This can help preventing typo's like: if ($Task = Add) $Task = Add (typo'd for $Task == Add) would assign the value, clearly not your intent. Add = $Task would be an illegal assignment to a constant, so your error would be detected. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Server-side script identified as IE
umm. yes. I know that. the problem is the 1 site I want to pull news from has a robots.txt file which is preventing the script from working and I wanna get past that. Umm, yes, they put that there because they don't want you to, didn't they? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] help with email problem
From: Mike Morton [mailto:[EMAIL PROTECTED] How does the legislation prevent that? As long as people publish their email addresses - they are public domain and will be treated as such - do you want to stop mass snail mailings mailings as well? As long as people publish their information it is going to be used/abused - that is the nature of these people. How does it prevent non-US companies from harvesting lists of addresses from websites, WHOIS directories, etc.? It doesn't. How does it prevent US companies from doing so? It doesn't, but it does place the burden of proof on them that the addresses were come by as a result of direct correspondence with the recipient. How does it affect foreign remailers for US clients? It, plus the other clauses of the bill, make it possible to go after the US business that is the beneficiary of the spam or harvesting. I personally am against spam - but my address is in the public domain - there is nothing that says they cannot take it - and just because the US makes a law against it does not make it wrong in the rest of the world. That is something that the US has seemed to forgotten in the last few years. But this is getting too WAY far off topic now - enough from me ;) Much of the rest of the world is actually stricter on these points than the US. The EU, for instance, is about to require opt-in marketing, while the US has only been making noises about opt-out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] help with email problem
Be real - the legislation is a waste of time and money and will never be enforced or enforcable. Too many 'anonymous' countries willing to take money for server hosting in the world. Yes, but they're taking money *from* American companies, for the most part. You don't have to punish the remailers if you prevent them from having anything to remail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] help with email problem
and how will this be enforced. waste of legislation imo. The same way any law is: by filing criminal charges after the fact. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed
From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 2:22 PM I thought that's what the Web server was supposed to do. Well, that flies in the face of the filter-pipeline model, doesn't it? One program, one job. The web server should do the right thing in the face of a malformed request. The idea that something blocks malformed requests from reaching the web server isn't a bad one at all. It ought to be an unnecessary one, but that's different. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP should know my data!
From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 3:07 PM To: John Manko; PHP General Subject: RE: [PHP] PHP should know my data! Color me ignorant... Isn't ignorant the color they dropped from the rainbow? Red, Orange, Yellow, Green, Blue, ignorant, violent? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Changing numbers
From: justin gruenberg [mailto:[EMAIL PROTECTED] Subject: Re: [PHP] Changing numbers Curt Zirzow wrote: * Thus wrote zavaboy ([EMAIL PROTECTED]): I have the following numbers: 12.400 666.75 23 369.2 3.234 How can I make them have at least 2 decimal places? So, they will output: 12.40 666.75 23.00 269.20 3.234 Thanks in advance! What I dont understand is that your examples are not consitant. You want 2 or more decimal positions, so as if there are more than 2, to leave what exists. But your first example, you truncate the last 0. Is that a typo, or intentional? What's so hard about this? He wants two or more *significant* positions preserved. Show to at least two decimal places, trailing zeroes truncated beyond the 2nd decimal place. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Changing numbers
From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 2:45 PM To: Roger B.A Klorese Cc: 'justin gruenberg'; 'Curt Zirzow'; 'PHP-General' Subject: Re: [PHP] Changing numbers I am not sure what he is after, but I don't think it has to do with significant figures (if that is what you meant). If that was the case, 12.400 should remain 12.400. Trailing zeros to the right of a decimal are significant. Perhaps. But he's saying that, for his purposes, they're not -- if anything to the right of the last shown zero existed, it would be reflected in the output. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Segfault on 4.1.2 on RH 7.2
Yes, yes, I know it's ancient -- but it's also what's out there for RPMs, and if I need to go to source I will, but for now... One single installation of gallery on our site -- a HUGE one -- consistently kills PHP. Here's a trace -- any useful info here? #0 chunk_realloc (ar_ptr=0x40349300, oldp=0x8343c78, oldsize=137641080, nb=344) at malloc.c:3563 #1 0x402959e2 in __libc_realloc (oldmem=0x8343c80, bytes=340) at malloc.c:3390 #2 0x08123a1b in _erealloc () #3 0x0810d232 in url_adapt_ext_ex () #4 0x080c6130 in session_adapt_uris () #5 0x08074dee in php_ub_body_write_no_header () #6 0x080744a2 in php_body_write () #7 0x0806cd78 in php_printf () #8 0x0806d00f in php_error_cb () #9 0x081333ac in zend_error () #10 0x08123b51 in _erealloc () #11 0x0810d232 in url_adapt_ext_ex () #12 0x080c6130 in session_adapt_uris () #13 0x08074dee in php_ub_body_write_no_header () #14 0x080744a2 in php_body_write () #15 0x0806cd78 in php_printf () #16 0x0806d00f in php_error_cb () #17 0x081333ac in zend_error () #18 0x08123b51 in _erealloc () #19 0x0810d232 in url_adapt_ext_ex () #20 0x080c6130 in session_adapt_uris () #21 0x08074dee in php_ub_body_write_no_header () #22 0x080744a2 in php_body_write () #23 0x0806cd78 in php_printf () #24 0x0806d00f in php_error_cb () #25 0x081333ac in zend_error () #26 0x0812378e in _emalloc () #27 0x08137c9b in zend_hash_index_update_or_next_insert () #28 0x08109d6d in php_var_unserialize () #29 0x0810a46c in php_var_unserialize () #30 0x0810a46c in php_var_unserialize () #31 0x0810a46c in php_var_unserialize () #32 0x0810a46c in php_var_unserialize () #33 0x0810a741 in zif_unserialize () #34 0x0815ab3a in execute () #35 0x0815ad33 in execute () #36 0x0815ad33 in execute () #37 0x0815ad33 in execute () #38 0x0815fe67 in execute () #39 0x08133798 in zend_execute_scripts () #40 0x0806ebf6 in php_execute_script () #41 0x0806c53c in main () #42 0x40230657 in __libc_start_main (main=0x806ba50 main, argc=2, ubp_av=0xbfffeca4, init=0x80689d4 _init, fini=0x81653e0 _fini, rtld_fini=0x4000dcd4 _dl_fini, stack_end=0xbfffec9c) at ../sysdeps/generic/libc-start.c:129 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Segfault on 4.1.2 on RH 7.2
Curt Zirzow wrote: Roger B.A. Klorese [EMAIL PROTECTED] wrote: Yes, yes, I know it's ancient -- but it's also what's out there for RPMs, and if I need to go to source I will, but for now... hmm.. yeah you might want to upgrade to a newer version. Well, yes. But I'm afraid of the upgrade cascade -- it's not an easy thing to shift from RPMs to trying to keep lots of source in sync. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php