Re: [PHP] need insights on encrypting and uploading ASCII file using PHP

2007-07-29 Thread Stut
here between Lab and upload, or between your receipt and stuffing it into your tables? It's possible they want it digitally signed so they can verify the source. SSL won't help here. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
a game of tennis. Can we please leave it alone now and get back to making something worthy of being copied? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
aling. PS: I said I wouldn't get back into this argument, but your claims are just absurd. In my opinion so are yours. This is not an issue of morality, it's a simple issue of language. Think about this... if I were to be accused of copyright theft, surely I've stolen the

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
. The punishments for stealing are very different to those for copyright infringement. If they were the same thing then surely the potential punishments would be the same? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
x27;d send them back to school to start again. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading registry values

2007-07-30 Thread Stut
does this. "Crash": The COM extension (http://php.net/com) should let you do that in essentially the same way ASP does. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
tedd wrote: At 5:46 PM +0100 7/30/07, Stut wrote: tedd wrote: But, the importance here is one of euphemism. Calling the act of stealing something more palatable, such as copyright infringement, simply makes it easier to do. Conversely, calling the act of copyright infringement something

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
. Then there is no truth in anything for all things are based on perception. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
Robert Cummings wrote: On Mon, 2007-07-30 at 20:23 +0100, Stut wrote: tedd wrote: At 2:30 PM -0400 7/30/07, Robert Cummings wrote: Ownership is an illusion... What you have may be taken away at anytime by the state (be it your own state or a victorious state that just subjugated your previous

Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Stut
regardless of your beliefs. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Authentication

2007-07-31 Thread Stut
Dan Shirah wrote: Correct Stut, I want transparent authentication, but I also want to have the currently logged in user name pulled so I can use it for tracking purposes. My application deals with very sensitive company information and I want to pull the username for tracking purposes. I have

Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Stut
tedd wrote: At 8:53 PM +0100 7/30/07, Stut wrote: tedd wrote: > >Don't expect that only one living > >entity can envision such a permutation. Don't expect anyone with our limitations to be capable to determine the truth of that statement. The phone was independe

Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Stut
Ryan A wrote: Yes, but that's why it's called faith. My point was that it makes no sense to try and prove or demonstrate anything using God because the existance of God itself cannot be proven or demonstrated. Stut, There will be a demonstration of god's existance in

Re: [PHP] Problem with filemtime

2007-07-31 Thread Stut
open file"); fwrite($fh, "Data Goes Here"); fclose($fh); $new_last_modified = filemtime($csv_file); The data returned by filemtime is cached. Use clearstatcache to clear the cache (http://php.net/clearstatcache). -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] subtitute of mysql_error()

2007-08-01 Thread Stut
t;not work anymore"? The code above is perfectly valid. Incidentally, there is no need to put a single variable in quotes - all this does is cause extra pointless work for the PHP engine. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I'm prepared to feel like an idiot... But I just simply need the answer :)

2007-08-01 Thread Stut
prints out the standard phpinfo screen.. and I don't think I should have to write it differently to make it run from the command line right? Sounds like you're not using tags to surround your code. Without those PHP will simply output the content of the file rather than "running&qu

Re: [PHP] Question about passing date in sql...

2007-08-01 Thread Stut
d is therefore not being executed. But, as someone else pointed out, you should be using the PHP date function to get the date from within PHP. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail function

2007-08-02 Thread Stut
l using the mail($to, $subject, $message, $headers); function. I wonder what's wrong. Please help, i'm new to php. Please review the Runtime Configuration section of http://uk.php.net/mail and make sure you've told php.ini about your mail server. -Stut -- http://stut.net/

Re: [PHP] Premature Ajax-ulation

2007-08-03 Thread Stut
ere is no difference, you still need to do all the validation on every request whether it's AJAX or not. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downloading PHP 521

2007-08-03 Thread Stut
WyleySam wrote: Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every link I clicked on at http://www.php.net/ took me to 523, which I don't want. http://museum.php.net/php5/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Stut
ience customer service from both can be pretty shoddy or excellent depending on the day of the week and the phase of the moon. My advice is that if it's between the two, go with GoDaddy - you won't get any less for your money than you would with NetSol. -Stut -- http://stut.net/ -- PHP

Re: [PHP] Adding to time having a timestamp

2007-08-05 Thread Stut
are 86400 seconds in a day. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Saving

2007-08-06 Thread Stut
ext; end; That looks a lot like Delphi not PHP. I'm assuming that means you're using that freaky Delphi for PHP thing in which case you'll have better luck on their mailing list(s). -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] How to implement a plugin system?

2007-08-06 Thread Stut
l of security. Otherwise you could open yourself up to security issues because the user could instantiate any class in your system. -Stut -- http://stut.net/ "Borokov Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hey Hamza, require_once($chosenPlugin . '

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Stut
ince I use it to connect with the old mysql_connect stuff and it works just fine... What am I missing? Are you trying to use mysqli with PHP4? Either way you can probably get rid of the error by putting an & between the = and the new. -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
as a tld, but I cannot see it listed http://www.iana.org/root-whois/index.html What are you actually trying to achieve? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
ll ccTLDs are sub-divided. http://dev.stut.net/php/domain.php http://stut.be/ -Stut -- http://stut.net/ "Kevin Waterson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the dom

Re: [PHP] javascript in or in ?

2007-08-07 Thread Stut
rk. I think you meant VB6. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, h

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
and .be are not split in that way. Hope that answers your question. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Stut
e development. Other people will always be more devious than you are when it comes to trying to break your code. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Kevin Waterson wrote: This one time, at band camp, Stut <[EMAIL PROTECTED]> wrote: Which brings me back to my earlier question of why would you want to do this? I can't think of any reason, but then again it is getting late. I would like to prevent registration of emails f

Re: [PHP] Problems in php

2007-08-07 Thread Stut
ing is at least showing errors and warnings, and ideally notices too. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: get domain component from email

2007-08-08 Thread Stut
Richard Lynch wrote: On Tue, August 7, 2007 6:21 pm, Stut wrote: Kevin Waterson wrote: I would like to prevent registration of emails from certain domains that abuse a forum. eg: foo.uy7f564d8d6d.com These domains are registered by the thousands by spammers and because they use dyndns it is

Re: [PHP] get domain component from email

2007-08-08 Thread Stut
domains were still SLDs, but where a TLD wasn't available for registration under the ccTLD format for the respective country. This is just terminology, but to make it clear... .co.uk is a ccTLD not an SLD and .uk is *not* a TLD. The IANA website has lots of info on this stuff. -Stut -- http

Re: [PHP] Re: get domain component from email

2007-08-09 Thread Stut
Richard Lynch wrote: On Wed, August 8, 2007 4:26 am, Stut wrote: Completely agree. It's like banning someone from a pub based on the clothes they were wearing the last time you saw them. Yeah, one drunk abusive chick in a little black dress could get EVERY gal in a little black dress b

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Stut
ine at 102.5... var_dump($userValues['afterDark']); What type is that variable? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Access parent property from child

2007-08-09 Thread Stut
Suprie wrote: function getDB() { return $this->$db; } There should not be a $ before db. It should be $this->db. That's why PHP is telling you the property is empty... because it is. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.p

Re: [PHP] Segmentation fault on PHP CLI

2007-08-09 Thread Stut
ns without this problem. Is PHP on the production server the same old version? I would start by upgrading your development server to the latest version as you may be hitting a known bug that's already been fixed. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Stut
x27;afterDark'] == 0 ) {// passes Add a line at 102.5... var_dump($userValues['afterDark']); What type is that variable? Don't have to do a dump, I know its a tinyint(1), not null, default 0 That would be the type in the database, not the type of that variable at

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Stut
but without knowing why you think you need to do this it's not possible to help any further. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string as file

2007-08-10 Thread Stut
Robert Cummings wrote: On Fri, 2007-08-10 at 16:28 +0100, Stut wrote: Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: Does ph

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Stut
Daniel Brown wrote: On 8/10/07, Stut <[EMAIL PROTECTED]> wrote: If PHP thinks something might be wrong it will tell you. Why on earth would you want to ignore it? You think you're smarter than PHP? Really? Okay, Stut, let's not make Friday the official "Flame Dan Bro

Re: [PHP] Getting a 'newline' out of a string

2007-08-10 Thread Stut
the newlines of course were there aswell... So... How can I get rid of these?! - I just want them gone! Is it even possible under windows? ^^ First of all look at http://php.net/nl2br which does exactly what you're trying to do. Second try this... $string = str_replace("\r\n"

Re: [PHP] Running a server process

2007-08-10 Thread Stut
Tijnema wrote: On 8/10/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: On 8/10/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: On 8/10/07, Richard Heyes <[EMAIL PROTECTED]> wrote: That is it works with just me using the site. I am wondering how this would effect

Re: [PHP] Running a server process

2007-08-10 Thread Stut
Tijnema wrote: On 8/10/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema wrote: On 8/10/07, Richard Heyes <[EMAIL PROTECTED]> wrote: That is it works with just me using the site. I am wondering how this would effect performance if say 500 people were executing this php function aro

Re: [PHP] string as file

2007-08-10 Thread Stut
Rick Pasotto wrote: On Fri, Aug 10, 2007 at 02:19:29PM +0100, Stut wrote: Rick Pasotto wrote: On Thu, Aug 09, 2007 at 03:25:27PM -0500, Greg Donald wrote: On 8/9/07, Rick Pasotto <[EMAIL PROTECTED]> wrote: Does php have a facility similar to python's stringIO? What I'm

Re: [PHP] help with ming library

2007-08-10 Thread Stut
, whatever) since changing php.ini? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Stut
Robert Cummings wrote: On Fri, 2007-08-10 at 11:48 -0400, Daniel Brown wrote: On 8/10/07, Stut <[EMAIL PROTECTED]> wrote: I get an email from each server containing the contents of the error log from the previous day and my first task each day is to go through that and track do

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Stut
th would you want to ignore it? You think you're smarter than PHP? Really? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Stut
Daniel Brown wrote: On 8/10/07, Stut <[EMAIL PROTECTED]> wrote: Bad Dan *slap*. Ignoring notices may be detrimental to your health and/or well-being. Better to initialise it with a default if it has not been set in the request. if (!isset($_GET['order'])) $_GET['order&#

Re: [PHP] Friday morning brain farts....

2007-08-10 Thread Stut
ithout first being instantiated or defined. No biggie, just put this at the head of your code: ini_set("error_reporting",E_ALL & ~E_NOTICE); Bad Dan *slap*. Ignoring notices may be detrimental to your health and/or well-being. Better to initialise it with a default if it has not been set in t

Re: [PHP] manual vs. meta refresh

2007-08-10 Thread Stut
my e-mail and website address have changed from wncc.edu to wnc.edu. Then you might want to change the from address in your mail client! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string as file

2007-08-10 Thread Stut
ts with preg_match rather than executing a string. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Stut
the file is not UTF-8 extended characters will not be displayed correctly when it's displayed as UTF-8. Try removing that meta tag and see what the browser makes of the file by guessing. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Running a server process

2007-08-10 Thread Stut
am to a service, I think you need to compile it as a service from source code, but as I mentioned in my first post, and you mentioned here too, you also need to add support for a socket server in your program. Sockets in PHP are easy ;) http://www.firedaemon.com/ But you're right, you'd need

Re: [PHP] php.ini of PHP 5.2.3

2007-08-11 Thread Stut
works (because the system directory is by default in the systems PATH), it is not recommended. This extension requires the following files to be in the PATH: libeay32.dll" -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match_all to match tags

2007-08-11 Thread Stut
;s not valid HTML and won't get displayed correctly in most browsers. -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 note on php.net

2007-08-11 Thread Stut
note where on php.net? -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 note on php.net

2007-08-12 Thread Stut
tself, were a container for the session vars. Looking at the source in head for that function[1] it would appear to fail if a session has already been started, in which case equizcion's comment would be wrong. If the OP is concerned about it I suggest they try it and see what happens.

Re: [PHP] What's is the needed configuration to enable SOAP?

2007-08-12 Thread Stut
it cannot make a connection to the target server. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] very strange behavior.... incomplete query performed

2007-08-12 Thread Stut
r is) might still timeout, but these values are a lot higher.. :) And if that is the case I would strongly recommend that you turn display_errors on and set error_reporting to E_ALL, at least for that script or if this is a development server do it in php.ini. -Stut -- http://stut.net/ --

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Stut
m the PHP side check here: http://php.net/com. For the actual interface to scanners I suggest you Google. Sounds like a fun project, enjoy. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Stut
Arno Kuhl wrote: Stut, that's an interesting point you raised. I know it's moving off the original topic, but when you say "by no means limited to being used on a server never mind on a web server", what is it that interprets the code and where does the output go to, or th

Re: [PHP] page redirecting

2006-06-28 Thread Stut
OST method instead of GET for redirecting that page. Does any one have an idea?? Stick it in then session - that's what it's there for. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Stut
Jay Blanchard wrote: /dev/null comes to mind. /dev/null came to my mind once. Not really sure what happened after that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downloading page

2006-06-30 Thread Stut
e code contact the website in question and ask them nicely. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread Stut
be privileged information. In fact you will break the law if you read it. When you hear the sirens please don't run. If you do run we'll still get you but we'll be mighty pissed off when we do. And you never want to piss us off. You have been warned. Have a nice day ;) -Stut --

Re: [PHP] Functions

2006-06-30 Thread Stut
tutorial, read it and then start again. You may have better luck after you understand how PHP works. You may also want to look in the PHP manual for the documentation for the functions you are using above, and also at the section on functions. Everything you need is there - absorb it.

Re: [PHP] arrays

2006-07-10 Thread Stut
'][$i].""; echo "O3 : ".$oarray['blah3'][$i].""; } This is not the way the array is arranged. Switch your indices around so it's like so... echo "O1 : ".$oarray[$i]['blah1'].""; echo "O2 : ".$oarray[$i][&

Re: [PHP] Debugging Log

2006-07-12 Thread Stut
utions floating around. - -Stut -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEtTvgP9na3/DT5jQRAoD1AJ9CJDHTpgTJ6e+Kact0bIarlKYXPwCgs2QB raWCYaDcLjfwWG3dTCsnhH8= =4ozG -END PGP SIGNATURE- -- PHP G

Re: [PHP] Multiple sessions

2006-07-12 Thread Stut
g to access your site on the same machine at the same time? If it is likely (although I don't see how) then you need to design your session data as an array keyed on the username, but that would be very insecure. In short are you trying to solve a perce

Re: [PHP] Multiple sessions

2006-07-12 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Austin Denyer wrote: > Stut wrote: >> I'm confused as to why you need a solution to this 'problem'. How likely >> is it that you'll have 2 users trying to access your site on the same >> machine at the same ti

Re: [PHP] Debugging Log

2006-07-12 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: > On Wed, 12 Jul 2006 19:13:53 +0100 > Stut <[EMAIL PROTECTED]> wrote: >> Michael B Allen wrote: >>> What is the standard method of logging debug info? Should I just fopen >>> a file for appe

Re: [PHP] Debugging Log

2006-07-12 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael B Allen wrote: > Thanks for the tip dipshit. Maybe I'm in a sensitive mood, but that was uncalled for. Michael, meet /dev/null, I hope you live happily ever after. - -Stut -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (G

Re: [PHP] Image submit with mouse over

2006-07-15 Thread Stut
as I > had hoped. (Against all odds, maybe I should add.) Ok, so you've already had the "this is not a JS list" reply, so I won't bother with that, but... Have you ever considered the possibility that onmouseover and onmouseout work in an input element? Have you tried looking

Re: [PHP] Escape Chars for MS Exchange/Outlook

2006-07-20 Thread Stut
e email takes it literally and keeps it in the > message instead of giving me the desired effect. > > This Lead came from an Info Call\r\rDate: 20060720\rName: \rReferral: Home > Buyers Seminar\rTelephone: 1-123-4567\rLoan Officer: Dave Boxer\r > > How can I get the CR that I

Re: [PHP] parse text file

2006-07-23 Thread Stut
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe Wollard wrote: > Use the file() function, it will read a file then return each line as > a new element in an array. > http://php.net/file This will not read the file "one line at a time". Try http://php.net/fgets. - -Stut >

Re: [PHP] fopen: space character in filename

2006-07-28 Thread Stut
aces aren't your problem here, the \'s are. You need to escape them... fopen ("X:\\Dont Talk\\About\\My Momma\\please.txt", "x"); -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] All active variables?

2006-08-01 Thread Stut
of searching the PHP site later... http://php.net/get_defined_vars -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-02 Thread Stut
Jochem Maas wrote: Stut wrote: Jochem Maas wrote: I'll have it ready for you next week, what kind of license do you want? One license to kill to go please. 006.5 your lic is in the post. and while I'm at it can I port an obscure OS to the hardware of y

Re: [PHP] Re: PHP Frameworks - Opinion

2006-08-02 Thread Stut
Jochem Maas wrote: I'll have it ready for you next week, what kind of license do you want? One license to kill to go please. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending data to persistent process stdin

2006-08-05 Thread Stut
ocket and the daemon passes them to the running mpg123. IMHO option 1 would be a lot more stable than option 2, but both should work quite well. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending data to persistent process stdin

2006-08-05 Thread Stut
Ville Mattila wrote: > Stut kirjoitti: >> 1) Find out how to create a named pipe and start mpg123 to take its >> input from that named pipe. Your PHP scripts can then write commands to >> that pipe. >> > > Thanks Stut, rather good idea... I tried following comm

Re: [PHP] shebang line drive me nuts.

2006-08-07 Thread Stut
g in the script are DOS not UNIX - have you been editing the file on Windows and then uploading it? Easiest way to check is to open the file with vi and check for ^M on the end of the lines. If it's there, remove it from the first line and try again. -Stut -- PHP General Maili

Re: [PHP] shebang line drive me nuts.

2006-08-07 Thread Stut
afe. alas no joy. There are only 2 other possibilities I can think of... 1) PHP CLI is not installed correctly 2) The mount you are executing it on is mounted noexec -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session array

2006-08-07 Thread Stut
s counting and outputting a session array there is nothing special about them - they are the same as any other array variable. This means you can use foreach, print_r, var_dump, etc on them. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a quick one - case insensitive string comparison

2006-08-10 Thread Stut
Ross wrote: I want to get a positive resuly comparing Apple with aPPLE or CaR with car anyone know if there is a built in php function? http://php.net/strcasecmp -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating custom superglobals

2006-08-14 Thread Stut
beginning of a function definition. No, PHP does not allow userland to create superglobals. However, all global variables can be accessed through the $GLOBALS superglobal. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] login script

2006-08-15 Thread Stut
username and password you get from the browser - this is a massive security hole. See http://php.net/mysql_real_escape_string about that one. As far as securing the password goes, the most common approach is to store the MD5 hash in the DB. What you want is something like this... -Stut

Re: [PHP] Capturing System output

2006-08-15 Thread Stut
ly massive security hole you're building? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Stut
David Tulloh wrote: echo "".$string{0}."".substr($string, 1); I could be mistaken, but I seem to remember reading somewhere that using that syntax to access characters in a string has been removed from PHP6. I suggest you use $string[0] instead. -Stut -- PHP Genera

Re: [PHP] Shopping cart

2006-08-22 Thread Stut
Ryan A wrote: Maybe APC (August php cart :D ) How about SPECS - Simple [PHP|Pluggable] E-Commerce System. I have a few thoughts about this idea and will put something together later today. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Stut
ngs. The way you're doing it will work but it's probably not very efficient. This is what I use... $valid = (strcmp($needle, substr($haystack, 0, strlen($needle))) == 0); -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange situation when saving a file

2006-08-30 Thread Stut
Unfortunately, due to the lead shield that surrounds all PHP code I cannot see it from here. I suggest your next step would be to remove said shield by emailing the relevant parts to the list. Then we may be able to bring our collective skills together to assist in solving your problem.

Re: [PHP] Not using cached version

2006-08-30 Thread Stut
you could modify the URL so it doesn't have the ?. I do this using the Apache MultiViews option and a URL similar to /image/123.gif. That actually runs /image.php which pulls the REQUEST_URI server variable apart to get the required image. Do both and you should be good for all browsers.

Re: [PHP] Strange situation when saving a file

2006-08-30 Thread Stut
html, is that right? What email client are you checking the email with? Does it allow you to view the raw email? Does it look right? If all else fails I think your best bet is to contact the author of the class. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strip slashes from beginning and end of string in one expression

2006-08-31 Thread Stut
the second parameter. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sendmail_from

2006-09-07 Thread Stut
s [EMAIL PROTECTED] - see example 3 on the PHP manual page for mail. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if statement with or comparison (newbie)

2006-09-09 Thread Stut
user to send you dodgy data... if its source is outside your control you need to handle it accordingly no matter how unlikely you think it is that it will be changed between you setting it and getting it back. Data from any of the superglobals should be treated the same - trust none of them

<    4   5   6   7   8   9   10   11   12   13   >