Re: [PHP] Unsetting a header

2007-10-22 Thread Stut
ll. What I meant was that you know the churn rate of your pages, so put in sensible expiry headers based on that info. But the better way to solve it is to edit the Apache configuration to stop it putting the headers in in the first place. Why can't you do that? -Stut -- http://stut.net/

Re: [PHP] problem with foreach

2007-10-22 Thread Stut
ora Linux. Any help? Turn notices on. You will then get lots of notices about the use of an undefined constant "option". You should be using $_POST['option'] instead - notice the quotes. Your HTML should really have double quotes around the attributes but that's be

Re: [PHP] problem with foreach

2007-10-22 Thread Stut
Robert Cummings wrote: On Mon, 2007-10-22 at 18:07 +0100, Stut wrote: Adam Williams wrote: I have an html page with checkboxes: Modern Mississippi Civil Rights MilitaryHistory and mailform2.php containing: echo "you selected: "; /* line 81 */ foreach ($_POST[opt

Re: [PHP] PHP Oracle Ebook Request.

2007-10-23 Thread Stut
PROTECTED]). NOTE: I would prefer the E-Book Version if it is Available. Thanks. Darren. AFAIK this title is not available electronically, but it's readily available from Amazon or any other reputable bookseller. Is there a particular reason why you want it electronically?

Re: [PHP] PHP Oracle Ebook Request.

2007-10-23 Thread Stut
Please include the list in replies. Dare Williams wrote: Dear Stut, Thanks for your message, With regard to your message, the main reason why I want it Electronically is because, Am a PHP Student Who has no enough Cash to buy from Amazon or any bookseller and more over, the book is not

Re: [PHP] cant send mail

2007-10-25 Thread Stut
allow the machine you're running PHP on to send mail. This is not a PHP problem - speak to your mail server administrator. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executing PHP

2007-10-25 Thread Stut
IIS. I'm assuming b/c I do this that I am using the php.exe. Thoughts? I've searched the PHP manual, but have had no luck. You're not running any exe file. IIS uses php5isapi.dll instead of an exe file - they essentially do the same job but the dll is designed to be loade

Re: [PHP] cant send mail

2007-10-26 Thread Stut
t the place to find it. -Stut -- http://stut.net/ - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Diana" <[EMAIL PROTECTED]> Cc: Sent: Friday, October 26, 2007 1:48 AM Subject: Re: [PHP] cant send mail Diana wrote: Using windows XP, when

Re: [PHP] Executing PHP

2007-10-26 Thread Stut
Philip Thompson wrote: On 10/25/07, Stut <[EMAIL PROTECTED]> wrote: Philip Thompson wrote: Hi. Feel free to tell me this is a "duh" question. I don't know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server

Re: [PHP] Threads

2007-11-01 Thread Stut
that the majority of PHP usage is in the context of web requests. There are a great many issues the crop up when you consider adding threading to an Apache module, and I'm sure the same is true of most of the other SAPIs. Hope that helps. -Stut -- http://stut.net/ -- PHP General Mailing

Re: [PHP] Function return

2007-11-02 Thread Stut
the date in the format I want. :) Client-side limits are not an effective defense against dangerous inputs. Server-side validation is a must regardless of any client-side checking that goes on. -Stut -- http://stut.net/ On 11/2/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On 11/2/0

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
rself some time by not having mysql rebuild the indexes, if any exist, after each insert statement. Indeed, but bear in mind that there is a limit on the size of queries MySQL will accept. Look up the MySQL max_packet_size for details. -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
afan pasalic wrote: Stut wrote: Jim Lucas wrote: afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I would perform multiple inserts @ a

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
afan pasalic wrote: Stut wrote: afan pasalic wrote: Stut wrote: Jim Lucas wrote: afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Stut
] someone knows some way to put this to work?? i wanna send 'table.name' and receive in php 'table.name'! I don't know for certain but that's likely happening because a period is not valid in a PHP variable name. One alternative would be to use table[name] instead.

Re: [PHP] Problem with input name, how can i use . (dot) in a name of a input type text?

2007-11-05 Thread Stut
Jochem Maas wrote: Stut wrote: Jônata Tyska Carvalho wrote: Im having a big problem because the name of one input type text that is ' table.name' in my html, becomes 'table_name' in php, it is a kind of bug?? =S in PHP we have: $_POST["table_name"]

Re: [PHP] Cannot send a hyperlink

2007-11-10 Thread Stut
se them. For example a quick glance at http://php.net/function.mail reveals that you have the parameters in an almost completely wrong order. And please tell me you're not really setting the to address directly from an external variable with verifying that it's just an email address a

Re: [PHP] Cannot send a hyperlink

2007-11-10 Thread Stut
ail, when I put $headers in, the function quits working all together.) That's because it's in the wrong place. Did you even look at the manual like I suggested in my previous message? I hope this helps explain where my head is! My advice to you is to get a beginners book on bas

Re: [PHP] Re: functions versus includes

2007-11-12 Thread Stut
portant than most performance issues you can imagine. Performance optimisation should be driven by performance problems. Write your app, test it, find bottlenecks and then optimise those. Time spent saving 0.001 seconds per request is better spent elsewhere. -Stut -- http://stut.net/ &qu

Re: [PHP] How to query google pagerank from PHP

2007-11-12 Thread Stut
mvh wrote: I found some code in perl at CPAN how to do that in PHP anyone know ? give a clue pls Port the Perl code. Won't be too hard. Where's the Perl code? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scrape?

2007-11-12 Thread Stut
ng on what page you're looking at you can get a variety of formats including XML, CSV and TSV. Not sure if you can get at it without going through the login process. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scrape?

2007-11-12 Thread Stut
Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut <[EMAIL PROTECTED]> wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to extract data from it? If it can be done, then how would one do it? Not really PHP-rela

Re: [PHP] Scrape?

2007-11-12 Thread Stut
Daniel Brown wrote: On Nov 12, 2007 12:26 PM, Stut <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: On Nov 12, 2007 12:20 PM, Stut <[EMAIL PROTECTED]> wrote: tedd wrote: I have a Google Analytics account covering one of my web sites and I was wondering if it's possible to ext

Re: [PHP] file_exists

2007-11-14 Thread Stut
g. If you still can't see a problem let me know! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_exists

2007-11-15 Thread Stut
asn't. Take this for example $page = $_GET['page']; if (file_exists ("$page.php")) { include ("$page.php"); } ?> I really hope this is not a piece of production code. If it is then you might want to think very hard about what it's doing. If y

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread Stut
t;.$eol; $headers .= "Content-Transfer-Encoding: 8bit".$eol.$eol; $body = "http://www.zoneofsuccessclub.com\";>link \n"; mail($email, $subject, $body, $headers); You should not have a mime boundary in your headers. Why not use PHPMailer? All this (apparently) compli

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread Stut
#x27;re on right now. Seriously. -Stut -- http://stut.net/ -Original Message----- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 9:46 AM To: Brad Cc: 'Daniel Brown'; php-general@lists.php.net Subject: Re: [PHP] Cannot send a hyperlink Brad wrote: Begi

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread Stut
Daniel Brown wrote: On Nov 15, 2007 11:10 AM, Stut <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: On Nov 15, 2007 9:41 AM, Brad <[EMAIL PROTECTED]> wrote: Beginning with $headers .= "--".$htmlalt_mime_boundary.$eol; It starts to read it as text and not html?? Could

Re: [PHP] IDE

2007-11-15 Thread Stut
he freakin' archives. This topic has been covered numerous times over the past week or so. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread Stut
ant note" below... THIS CODE IS NOT SECURE. It's easily used as a mail relay script, so please don't use it in production or $DEITY will kill a bunch of kittens. -Stut -- http://stut.net/ -----Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, November

Re: [PHP] file_exists

2007-11-15 Thread Stut
le is in the right directory. I suggest you read the code I posted again. -Stut I meant if $page evaluates to "/home/stut/phpstuff/inc/../../../../../../../../../../../../home/evil-user-home-dir/evil-payload.php" which it does not. However I don't think your if (substr($page, 0,

Re: [PHP] file_exists

2007-11-15 Thread Stut
ot;$page.php"); } ?> I really hope this is not a piece of production code. If it is then you might want to think very hard about what it's doing. If you still can't see a problem let me know! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] file_exists

2007-11-15 Thread Stut
requested page to the given directory. If anyone can see any way around that I'd be interested in hearing about it. -Stut -- http://stut.net/ Good points about (.php, evil-payload, and evil-payload.php?). Although I'll defer to a security expert, your modification looks good

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread Stut
hat's probably going to confuse the hell out of you so I won't mention it. D'oh! * This code is not secure. It's trivial to inject headers (and a body too) into the message. You should be validating that $_REQUEST['email'] is a valid email address and just a vali

Re: [PHP] Foreach question

2007-11-15 Thread Stut
$counter++; } -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread Stut
g from a null-pointer exception between the chair and keyboard. Usually abbreviated to PEBKAC if I'm not mistaken. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_exists

2007-11-16 Thread Stut
tedd wrote: At 11:06 PM + 11/15/07, Stut wrote: The realpath function will reduce your definition of $page to "/home/evil-user-home-dir/evil-payload.php" $expecteddir is set to "/home/stut/phpstuff/inc" The if takes the first strlen($expecteddir) characters of th

Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread Stut
remove them they would remove a way for their users to introduce new people to the service. Removing that ability wouldn't make sense to me. It might make more sense if they changed the wording, but the feature does no harm and so is definitely worth them keeping it in. -Stut -- http://stut

Re: [PHP] Gmail Account Invites (Want One?)

2007-11-16 Thread Stut
Daniel Brown wrote: On Nov 16, 2007 9:47 AM, Stut <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: On Nov 16, 2007 9:36 AM, tedd <[EMAIL PROTECTED]> wrote: At 5:00 PM -0500 11/15/07, Daniel Brown wrote: Yay! I got to say my stupid thing for the day. Last I had even l

Re: [PHP] bank query and curl

2007-11-17 Thread Stut
nd yourself getting blocked from the banks site if you make too many failed requests. You may want to pick another site while you learn how curl works. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bank query and curl

2007-11-19 Thread Stut
Zoltán Németh wrote: 2007. 11. 17, szombat keltezéssel 23.15-kor Stut ezt írta: [EMAIL PROTECTED] wrote: WHY! Would you even want to pull that data first off? It would be out dated as of the next transaction anyway. Secondly if you can curl the data from the server, and get your account

Re: [PHP] bank query and curl

2007-11-19 Thread Stut
## SysWatch End # -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Saturday, November 17, 2007 5:15 PM To: [EMAIL PROTECTED] Cc: 'Ronald

Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Stut
f the site traffic is high. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut
$subject = 'Your free book!'; $body = 'http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click ME" Here is your FREE autopilot book'; "Click ME" indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ?> Try the veal. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut
. I get that from helping people and mocking those I think deserve it. If you don't like it feel free to ignore me or add me to your kill list, but don't ask me to stop. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 1

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut
assistance on methods to solve my issue would be duly appreciated! Once again... my reply contained everything you needed to get your code to work properly. Please read it again. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut
Brad wrote: Well, since http://forums.hostmysite.com/about1171.html states $headers .= "CC: [EMAIL PROTECTED]"; Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for doing it, I am assuming that all this key wording on google is not going to and the problem

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut
rs = 'bcc: '[EMAIL PROTECTED]'; This should work. However, because you're assigning this to $headers rather than concatenating it you're trampling over the From line above. BTW, Bcc usually has a capital letter. Probably wouldn't cause any problems but has the pote

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut
aders and use them. There is a note regarding when this was added for Windows on the mail manual page. -Stut -- http://stut.net/ -----Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:18 PM To: Brad Cc

Re: [PHP] two small issues with php mail

2007-11-20 Thread Stut
place, but are parsed by PHP, PHP < 4.3 only supported the Cc header element and was case-sensitive). So if you're using >= 4.3.0 on Windows the Bcc header will be parsed. For unix-based servers where mail uses sendmail the Bcc header is supported by that and therefore does not need to b

Re: [PHP] two small issues with php mail

2007-11-20 Thread Stut
= 'Your free book!'; $body = 'href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click ME" Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ?> I've tested this on a pretty standard install of PHP 5.1.1, and it works, bcc and all. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two small issues with php mail

2007-11-20 Thread Stut
Jim Lucas wrote: Stut wrote: Brad wrote: '.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol; $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.&

Re: [PHP] two small issues with php mail

2007-11-20 Thread Stut
Børge Holen wrote: OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Concurrency in a multi-user environment

2007-11-21 Thread Stut
ow Note that step 4 actually contains a copy of all the steps again, but before you start you update the stored copy with the latest data you fetched in step 2. Locking is bad, m'kay! Hope that makes sense. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Concurrency in a multi-user environment

2007-11-21 Thread Stut
Stut wrote: Don Proshetsky wrote: I'm been googling to see if I can find information on how programmers handle concurrency in a multi-user PHP/MySQL environment. Here's a snippet of my app. I have a form where users can maintain client information such as Name, Address, teleph

Re: [PHP] quicktime new window php

2007-11-23 Thread Stut
kNish wrote: How is it possible to have a hyper link open a new quicktime window You can't guarantee it because it's a client-side decision that you have no control over. You basically link to a file and the browser decides what app to open it with. You don't get a choice.

Re: [PHP] Nested include/require not working in 5.2

2007-11-27 Thread Stut
script. For example... include dirname(__FILE__).'/config.php'; There are other ways to handle this. The one I tend to use is to change include_path to contain the root directory for your scripts. That way you can reference all include files as relative to that directory without worryin

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
.. they all go to the same URL to log in, but you don't need to pass things like database names between sites via the browser (which is insecure). -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
Jason Pruim wrote: On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses a database and displays the in

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Stut
ibility in everything I do now. Anyway, that's why I avoid using 'sessions' wherever possible - IMHO there are better ways to achieve the same goal for most applications. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Stut
Jason Pruim wrote: On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Stut
Jason Pruim wrote: On Nov 28, 2007, at 12:07 PM, Stut wrote: Jason Pruim wrote: One of the things I have in a session variable, is a search function through the database, and then an export to excel option. Would I be better to store that in a cookie rather then a session variable? Not

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Stut
tput which turns that tiny time into a negligible time. Worry about the structure and maintainability of your app rather than thinking about how fast it is. Once you have the app doing something useful you can start to think about how to make it do it quickly. -Stut -- http://stut.net/ -- PHP Ge

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Stut
Jo chem baas wrote: Stut wrote: Jochem Maas wrote: [EMAIL PROTECTED] wrote: I got different portions of code only used for certain purposes (who don't ;-)?). But what, in your opinion (better: in your experience) would be the best regarding script-performance: Putting each code-portion

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Stut
Jochem Maas wrote: Stut wrote: Jo chem baas wrote: Stut wrote: Jochem Maas wrote: [EMAIL PROTECTED] wrote: I got different portions of code only used for certain purposes (who don't ;-)?). But what, in your opinion (better: in your experience) would be the best regarding script-perfor

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Stut
Jochem Maas wrote: Stut wrote: Jochem Maas wrote: Stut wrote: Jo chem baas wrote: ^- wtf happened here? :-) it's quite funny if you know dutch :-) Pass. Looking back it looks like it happened one of the times I replied. Didn't do it on purpose, honest! ;) Whethe

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Stut
Robert Cummings wrote: On Thu, 2007-11-29 at 12:13 +, Stut wrote: Not ;). There is no such thing as a compile-time definition in PHP. There certainly is... function file_put_contents ( \$filename, \$data, \$flags=0, \$context=null

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Stut
ee the harm in calling it on every invocation. AFAIK a call to extension_loaded is pretty cheap, but if you really feel the need to cache it between requests the best place to store it would be in a file on the server. However, I'd expect a stat on that file will be more expensive than calling

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Stut
utting it in the session will survive a rebuild of PHP to add/remove modules and a restart of the web server. It's probably not likely to happen but that could seriously break your application. However this is just my opinion. You're free to implement your application in whatever way

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Stut
ts. Always a good argument. I couldn't care less what your domain name is, you're still advocating a poor choice IMHO. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Stut
only thing they contain? If so try adding more text. It's also worth noting that this score comes from a system that's capable of learning: http://en.wikipedia.org/wiki/Bayesian_spam_filtering -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Just to confirm...

2007-12-18 Thread Stut
hours. Depends on the nature of the failure. Some will cause a bounce to be generated immediately. Others will cause delivery to be retried periodically for a while and then generate a bounce. Some mail servers generate delivery delay warnings (usually after 4 hours). -Stut -- http://st

Re: [PHP] Select Box CSS

2007-12-18 Thread Stut
#c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. -Stut -- http://stu

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Stut
ALS instead makes it clear to anyone looking at the code that you're dealing with a global variable. What I would say is that just because you can use global variables in this manner it doesn't mean they're not evil and IMHO they really should be avoided at all costs. I&#x

Re: [PHP] Just to confirm...

2007-12-19 Thread Stut
l IE browsers since the beginning of time have sent a user agent containing "mozilla". -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-19 Thread Stut
Zoltán Németh wrote: 2007. 12. 19, szerda keltezéssel 10.25-kor Richard Lynch ezt írta: On Wed, December 19, 2007 10:14 am, Stut wrote: Richard Lynch wrote: On Wed, December 19, 2007 4:13 am, Sancar Saran wrote: I want know to you opinions about using $GLOBALS directly. like $GLOBALS

Re: [PHP] Change case of HTML tags

2007-12-20 Thread Stut
>')",$s); Nice use of the 'e' modifier, but would it not be safer to use this? $s = preg_replace('/<(.*)>/U', strtolower("<$1>"), $s); This way the arbitrary html is not executed? You can't do it that way. The strtolo

Re: [PHP] Which file called the function?

2007-12-20 Thread Stut
lled it. I know I can get the information from debug_backtrace but I figured there might be a better/easier way. There isn't. The backtrace is the only thing that can get the call stack. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is there any Open Source Mailing List Manager that works good

2007-12-20 Thread Stut
27;d still take Mailman over it any day of the week and twice on Christmas day! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-21 Thread Stut
Richard Lynch wrote: On Wed, December 19, 2007 11:22 am, Stut wrote: well, if you have a long and complex function declaration which begins with global $whatever, and then all over the function $whatever is used, some dozens of lines later when looking for something in the code you might not

Re: [PHP] email authentication

2007-12-22 Thread Stut
this under Windows of some variety? This is not a PHP problem. The mail server PHP is configured to use (see php.ini) requires authentication. The built-in mail function doesn't support that so you'll need to use something like PHPMailer (Google for it). -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail system

2007-12-30 Thread Stut
e for you. Have a go, then come back if you have problems. The manual will help, as will Google. There's a good chance someone has already done this, so I'd start with Google. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: SV: [PHP] Mail system

2007-12-30 Thread Stut
you feel that's harsh, but that's the way it is. -Stut -- http://stut.net/ -Ursprungligt meddelande- Från: Stut [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2007 21:46 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: [PHP] Mail system mattias wrote: If i run cour

Re: SV: SV: [PHP] Mail system

2007-12-30 Thread Stut
mattias wrote: Yes but i are newbie in php I think i should use php exec but i dont know no more GOOGLE GOOGLE GOOGLE GOOGLE GOOGLE http://postfixadmin.sourceforge.net/ was the first result I got. Seems to fit the bill from where I'm sitting. -Stut -- http://stut.net/ -Ursprun

Re: [PHP] mysql date question

2008-01-03 Thread Stut
Adam Williams wrote: select date_format('contract.length_start', '%m-%d-%Y') as length_start from contract where user_id = 1; This has nothing to do with PHP, but the first parameter to date_format should not be in quotes. -Stut -- http://stut.net/ -- PHP Genera

Re: [PHP] PHPInfo - the application

2008-01-09 Thread Stut
never the best starting point when you know what you are looking for! Did you actually read my email? The subject is a rather good hint too. Do you mean phpsysinfo? http://phpsysinfo.sf.net/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Stut
ate a secure site with register_globals enabled, but it needs to be done with due care and attention. The same goes for globals. They are not inherently evil but they are easily abused so you need to be careful when you use them. -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Stut
aster than a socket connection to the local SMTP server. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calling java within php setup?

2008-01-15 Thread Stut
Janet N wrote: I've wrote a Basic java within php, but I get error: "Fatal error: Class 'Java' not found. What am I missing? Can I import java in php? Have you installed it? From the manual page for the Java extension... "This » PECL extension is not bundled w

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Stut
thing that comes from the form and ends up in the email headers needs to be checked in this way. The answer to your question is "only if you can define the format precisely enough". -Stut -- http://stut.net/ ""Javier Huerta"" <[EMAIL PROTECTED]> wrote i

Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-19 Thread Stut
is reason. If you were stupid^Wnaive enough to use an "important" email address that's your problem. And no, I won't remove your address from the recipient list. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-20 Thread Stut
lect. If you can't understand that then there is indeed no point in continuing the conversation. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-20 Thread Stut
On 20 Jan 2008, at 18:02, David Powers wrote: Stut wrote: You seem unable to accept that you are the one that put your email address out there for anyone to collect. If you can't understand that then there is indeed no point in continuing the conversation. I do understand it. What I o

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Stut
lobals. No I don't care. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] are email address could be spammed

2008-01-24 Thread Stut
I do. I still have the choice between Thunderbird (IMAP) or Webmail (Gmail), and I still have a complete archive of all my mail since 1996. I have no complaints at all. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about functions

2008-01-24 Thread Stut
ctions are internal to PHP, there is no way to address them from a web page. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Stut
avoid, if possible. Why? What exactly do you think you're saving by not putting the instance in a variable? I can't think of one good reason to do this. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Stut
On 29 Jan 2008, at 20:08, "Nathan Nobbe" <[EMAIL PROTECTED]> wrote: On Jan 29, 2008 3:02 PM, Stut <[EMAIL PROTECTED]> wrote: Why? What exactly do you think you're saving by not putting the instance in a variable? I can't think of one good reason to do this. it

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Nathan Nobbe wrote: On Jan 29, 2008 7:27 PM, Stut <[EMAIL PROTECTED]> wrote: Personally I'd use a static method in this instance. thats what i recommended. If you need to create an instance of the class you can do so in the static method and that way it will get destroyed when t

Re: [PHP] How can I do this -- method chaining

2008-01-30 Thread Stut
Jochem Maas wrote: Stut schreef: Nathan Nobbe wrote: On Jan 29, 2008 7:27 PM, Stut <[EMAIL PROTECTED]> wrote: Personally I'd use a static method in this instance. thats what i recommended. If you need to create an instance of the class you can do so in the static method and t

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