Re: [PHP] _GET('name') truncates

2007-02-05 Thread Stut
ql parameter is truncated. Any help is appreciated!! If you really care then you need to sniff the traffic. Chances are that either the browser or server is truncating it. Oh, and please tell me you're not really doing that -Stut -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Server Stall

2007-02-06 Thread Stut
and I should go out and plant a tree. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server Stall

2007-02-06 Thread Stut
Sancar Saran wrote: Yes you are absolute right. Session was locked... Thanks for info :) No problem, but please include the list in replies especially when you're confirming a possible explanation. It helps improve the usefulness of the archives. -Stut On Tuesday 06 February 2007

Re: [PHP] PHP book reviewers wanted

2007-02-06 Thread Stut
t a jab between posters. Indeed. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] open_basedir

2007-02-08 Thread Stut
arate the directories with a colon." The manual exists for a reason, please use it. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] help with mysql connect error

2007-02-08 Thread Stut
Please include the list in replies. Tim McGeary wrote: Stut wrote: Tim McGeary wrote: I am new to this list today, so if I should be sending this to another specific PHP list, please let me know. I am getting the following error via the PHP web page I am building: Warning: mysql_connect

[PHP] Re: [PHP-DB] help with mysql connect error

2007-02-08 Thread Stut
Tim McGeary wrote: Please include the list in replies. Sorry, I meant to, but hit the wrong button. And I sent it to the wrong list!! Sorry folks. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Stut
le to read about them someplace. Nobody has asked the obvious question yet... why? If you're just looking for what's new in PHP5, this is probably not the best way to go about it. If there is another reason, if you tell us what it is we may be able to help you further. -Stut -- PHP

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Stut
Jim Lucas wrote: Stut wrote: Jim Lucas wrote: So, to my question. Does anybody have a place they can refer me to to find out about all the available classes in PHP5. Granted that I don't have all the various extensions loaded, so I don't have access to the various classes

Re: [PHP] php forcing a post??

2007-02-20 Thread Stut
t to a PHP script, rather than trying to intercept the request itself. Alternatively, do an AJAX request in the onsubmit for the form that does the PHP bit, and if the response is good, then post the form. -Stut -Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sen

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Stut
nd the graphics you might want to reconsider. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread Stut
ds mailing lists specifically for phpMyAdmin questions. Try the link below, which was found incidentally by typing "phpmyadmin mailing list" into Google. http://sourceforge.net/mail/?group_id=23067 -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]Transform a block of code in PHP

2007-02-23 Thread Stut
Helder Lopes wrote: how to transform a block of code in html to php?? HTML to PHP? You having a laugh? What are you actually trying to achieve? -Stut for example this, P.M.R. Leiria - Produtos para Mec. e Racionalização Informática, Lda. Av. Dr. Francisco

Re: [PHP] $_SERVER['PHP_SELF'] in a included file

2007-02-26 Thread Stut
? Sorry if I have posted this question in the past, its been a while since I last thought of this problem. __FILE__ will give you the path and filename of the current file. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SERVER['PHP_SELF'] in a included file

2007-02-26 Thread Stut
clive wrote: Thanks Vincent,Stut and Olaf. Thats __file___ is exactly what I needed :) now for another brain teaser for your collective brains, How does a function know what file it was called from. a.php includes functions.php in a.php we call function test(); which is declared in

Re: [PHP] get wikipedia content

2007-02-27 Thread Stut
follow their rules. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Stut
the email address and can control it a lot better. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] auction scripts?

2007-02-28 Thread Stut
http://ebay.com/ -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Stut
Marco Sottana wrote: which is the best framework ? pear or zend framework? Which is the best fruit? Apple or pear fruit? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Stut
Please include the list on replies. Marco Sottana wrote: potato Not really a fruit is it. Still, I'll take that to mean that you got my point. -Stut - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Marco Sottana" <[EMAIL PROTECTED]>

Re: [PHP] auction scripts?

2007-03-01 Thread Stut
cripts.com/PHP/Scripts_and_Programs/Auctions/index.html But bear in mind that you'll need to put stuff in place to cover all the legal issues raised by online auctions. The reason I recommended eBay is that they're set up to do this, but it's your funeral. -Stut

Re: [PHP] Re: Question on virus/worms

2007-03-02 Thread Stut
es PHP5 (I believe it's 5.2+) introduces the ability to turn off the ability to prevent this issue, but it's still badly written code. Stop blaming the tool, start blaming the mirror image and start learning how to code defensively. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question

2007-03-03 Thread Stut
the created date and last modified all together, if possible.. You want the stat() function: http://php.net/stat Seriously, how hard did you actually look? With my best regards With my limitless best wishes. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] question

2007-03-03 Thread Stut
may be a header that gives the last modified date, but there is no way to get the created date. For FTP you can use the ftp_mdtm() function to get the last modified date, but again there is no way to get the created date. Hope that helps. -Stut -- PHP General Mailing List (http://www.ph

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Stut
plain text using both methods. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload file

2007-03-04 Thread Stut
lp them by providing instructions, and validate what they've sent you in case they don't read them. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Stut
text. Your "encryption" mechanism is visible to the "bad guys", so all you've done is added an extra no-brainer hurdle for them to get over. At the end of the day the best way to secure data being transferred from client to server is to use SSL. -Stut On 3/4/07,

Re: [PHP] Array help

2007-03-04 Thread Stut
e, are you looking for a particular username or just want to load the whole list? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array help

2007-03-04 Thread Stut
nomical and I think you'd be surprised at how fast PHP can do this. Another option would be to break the single file in to several files, maybe one for each first character. That way you would limit the number of entries you need to check. Hope that helps. -Stut -- PHP General Ma

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-04 Thread Stut
able to find info to do it, I'm wondering if any such solution would be worth it. What do you think? If you can't join the tables together then they're not related, so you'll need to do separate DB calls. I'm not sure where the problem is here. -Stut -- PHP Gene

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-04 Thread Stut
Mike Shanley wrote: Stut wrote: I'm not sure what you mean by "extra indexing memory". The autonumber feature is simple in that MySQL just keeps track of the last ID used and increments it to get the next one. However, I don't think there is any overhead caused by deleted

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-04 Thread Stut
Please include the list in all replies. Mike Shanley wrote: Stut wrote: There is no "simple" way. But this question comes up fairly often, and the usual answer is that there's no need to fill the holes. Why do you think you need to fill the holes? If there is no good reason to

Re: [PHP] module and access rights

2007-03-04 Thread Stut
ed in there is no need to store the password. Simply store the username or other user details (but not the password) in the session - that's as secure as it's gonna get. *Never* store a password in a cookie. *Ever*. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] module and access rights

2007-03-04 Thread Stut
oblems, for example if the user is going through a proxy that might end up using a different IP from request to request. -Stut On 3/4/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/4/07, Stut <[EMAIL PROTECTED]> wrote: > > Alain Roger wrote: > > I would like to imple

Re: [PHP] module and access rights

2007-03-04 Thread Stut
to involve some piece of data being transferred from client to server, and can therefore be faked/shared by the client. Get over it. -Stut On 3/4/07, Alain Roger <[EMAIL PROTECTED]> wrote: Ok, but i would be very glad to know how can i REALLY authenticate the user. for example, user is

Re: [PHP] module and access rights

2007-03-04 Thread Stut
Tijnema ! wrote: On 3/4/07, Stut <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > Give your server a unique ID, and add that to your check string lets say > so you store in your cookie the username and the check string. > > example > $user = "tijnema&quo

Re: [PHP] module and access rights

2007-03-05 Thread Stut
o sum up, every page that needs the user to have logged in needs to check that a user has logged in, and redirect to the login page if not. Hope that makes it clear. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error in Script!!!

2007-03-05 Thread Stut
defining it? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing to an Object from a function

2007-03-05 Thread Stut
main script. This is something known as scope, and you really should know all about it: http://php.net/variables.scope In this particular case you can either user the $GLOBALS superglobal, or the global keyword. Both are covered on that manual page. -Stut -- PHP General Mailing List

Re: [PHP] session question

2007-03-05 Thread Stut
're not calling session_start. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] db query not working as expected

2007-03-07 Thread Stut
real_escape_string($magazine_path[2])."')"); -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class and subclass

2007-03-07 Thread Stut
ttp://dev.stut.net/php/ab.php I suggest you read up on classes and the syntax thereof in the manual - you're not getting it at the moment. Remember, PHP is not C++. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with script needed

2007-03-07 Thread Stut
lem and is used a lot as a university project or interview question. If you can't do it, be afraid!! http://dev.stut.net/php/fizzbuzz.php -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class and subclass

2007-03-08 Thread Stut
++ I hope that makes it clearer. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Classes in PHP5 || Puzzling Problem || Trying to Set $this->$name = $value

2007-03-08 Thread Stut
value of $this->foo. However, what I really need to have happen is for $this->$name = $val to be evaluated as $this->foo = 1; Works fine here: http://dev.stut.net/php/classvar.php What do you get? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Troubles from the newb again

2007-03-09 Thread Stut
Array keys must be a scalar value, that is to say a 'normal' value (essentially a string or a number). The object in $name probably has some unique value that represents that particular instance. Use that instead of the object itself. -Stut -- PHP General Mailing List (http://ww

Re: [PHP] Using array_search I get error

2007-03-11 Thread Stut
ay an array or am I using this wrong $array is a string, and array_search is expecting an array, so it's correct. Where did you get that "array"? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using array_search I get error

2007-03-11 Thread Stut
Richard Kurth wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 2:53 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] Using array_search I get error Richard Kurth wrote: This array comes from $_REQUEST of all data

Re: [PHP] help with script needed

2007-03-13 Thread Stut
see a couple more CPU cycles than have code I have to think about to figure out what it does, until it's a proven bottleneck. Except that you're not displaying the actual number when it's not divisible between 3 or 5, so that doesn't meet the spec. Sorry. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Stut
Todd Cary wrote: I would like to write a filter that takes the text "smith" or "SMith" and returns "Smith"; same for "ralph smith". Is the a good source on using filters this way? Thank you... You're welcome. -Stut -- PHP General Mail

Re: [PHP] Class and subclass

2007-03-13 Thread Stut
rn $this->__construct(); } } Zend Studio will parse that comment and it will then know what type of data it contains. This works for function docs too, where you can tell it what the types of the parameters are and that of the return value. -Stut -- PHP General Mailing List (http://

Re: [PHP] MYSQLyog

2007-03-20 Thread Stut
y use the 1st of these accounts. I am unable to connect remotely using SQLyog. We use SSH, and I attempted to do this with my firewalls turned off-still did not work. Any help would be greatly appreciated. The wildcard for the hostname is not * it's %. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MYSQLyog

2007-03-20 Thread Stut
Jochem Maas wrote: Stut wrote: Jonathan Kahan wrote: As part of PHP, I have downloaded a windows program called SQLyog which ^^ -> Yeah, but it's not really is it?!! is supposed to a free web program I can use to run against MYSQL located in a remote Linux server. My pr

Re: [PHP] MYSQLyog

2007-03-21 Thread Stut
Richard Lynch wrote: On Tue, March 20, 2007 3:24 pm, Jochem Maas wrote: Stut wrote: Jochem Maas wrote: Stut wrote: Jonathan Kahan wrote: ... The wildcard for the hostname is not * it's %. -Stut your being friendly today Stut, wassup with that ;-) New job. Too happy. anything we c

Re: [PHP] Random Unique ID

2007-03-21 Thread Stut
about doing this? 1) Not even slightly PHP related. 2) Why random? Incrementing not good enough for you? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Job Opportunity

2007-03-21 Thread Stut
* threading mechanism, and nobody can successfully argue that standards are a bad thing. It has nothing to do with Jim's setup. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Message threading (was Job Opportunity)

2007-03-21 Thread Stut
u shouldn't respect it. If I don't agree with murder being illegal does that make it right that I do it? Of course not, because people smarter than me decided that it should be. (Please note that this does not represent my opinion and is only being used as an extreme example). -Stut Jo

Re: [PHP] Re: Random Unique ID

2007-03-21 Thread Stut
[EMAIL PROTECTED] wrote: Stut writes: [EMAIL PROTECTED] wrote: I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions

Re: [PHP] Array Question

2007-03-25 Thread Stut
7;].$VM.$data->legs->leg[$k]['fNo'].$VM.$data->legs->leg[$k]['cr'].$VM.$data->legs->leg[$k]['miles'].$VM.$data->legs->leg[$k]['elapsed'].$VM.$data->legs->leg[$k]['meals'].$VM.$data->legs->leg[$k]['smoker&#

Re: [PHP] Re: newbie question about storing big5 codes into mysql-5.0.24a

2007-03-25 Thread Stut
SQL client. If it works there but not through mysqli_query() then you might have a case for asking here. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Stut
lternatively try the same script on the command line. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] combine empty and trim

2007-03-26 Thread Stut
trim($_POST['_createcategory']) : ''; if (empty($_POST['_createcategory'])) { Still not pretty but slightly better in that you can cleanse your data before you hit logic. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forking doesn't work on php 5.2.1? OT

2007-04-02 Thread Stut
Jochem Maas wrote: 'they' never tell anyone, but once in a while one of us drones gets lucky and figures out there is 'life beyond the list' ;-) You want me to do what with who now? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDF: error

2007-04-05 Thread Stut
Mário Gamito wrote: $data = readfile($full); The readfile function does not return the contents of the file. I suggest you RTFM: http://php.net/readfile -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Stut
delete link uses javascript to ask the user for confirmation. The accelerator happily goes through these links, helpfully pre-fetching them for you. This is fine for the edit links, but the delete links cause the website to delete your entire blog. Oops. Hope that's made it clear.

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Stut
Robert Cummings wrote: On Sat, 2007-04-07 at 11:10 +0100, Stut wrote: These implied "rules" have existed since HTTP was invented, and when you think about it they make a lot of sense. They also get emphasized by the existance of so-called web accelerators that simply pre-fetch UR

Re: [PHP] MD5 & bot Question

2007-04-07 Thread Stut
every time, but without letting that client know something is different. It really really really can't be done. Something needs to be visually different, therefore something in what the client gets needs to be different. Do you see why it's not possible now? -Stut -- PHP General Mailing

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
question is... not unless your code is exploitable to allow the user to arbitratily set session variables. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MD5 & bot Question

2007-04-09 Thread Stut
> and the cracker would use that :) Yep, like I said to Tedd before... kinda need multiple forms of captcha tailored to particular special needs audiences. Visual is good for pretty much all but the blind. Blind people can use audio captcha. Beyond that... is it worth the cost to target dimini

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
ed. Sessions live only on the server making them a lot more secure, but by no means completely secure. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
re HTTP headers, nothing more, nothing less. The minimum "tool" you need is telnet. If you're writing web applications and don't know that, please take the time to read the HTTP spec, and then the cookie spec. Google for them. -Stut -- PHP General Mailing List (http://www.ph

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
how it would be illegal to modify cookies that are in MY computer. As with most things these days it probably breaches the DMCA. But frankly speaking, if doing that works then the developers of the application, and by extension the company, deserve everything they get. -Stut -- PHP Gener

Re: [PHP] uk date to mysql date and back again

2007-04-10 Thread Stut
that format... $indate = '10/04/2007'; $outdate = implode('-', array_reverse(explode('/', $indate))); And back... $indate = '2007-04-10'; $outdate = implode('/', array_reverse(explode('-', $indate))); -Stut -- PHP General Ma

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread Stut
ng to suggest things like that please explain the dangers. By using $_REQUEST you cannot be sure where a particular variable came from. This is less important with $_REQUEST than it was with register_globals, but it's still important to note for new users. -Stut -- PHP General Mailing

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
done? Zip 'em and ship 'em. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread Stut
t will be that much better. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Stut
If not, your statement oozes a lack of understanding concerning indexes and general database optimization. If that's the case, start Googling. Now. Before you write any more code. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
You could probably craft an evil web page that kicks off the MP3 download in an iframe, polls that frame for completion using Javascript, and when it's done start the next one. But that's evil, like I said earlier. From both usability and KISS points of view, zipping 'em is your be

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread Stut
tedd wrote: this ain't the bad old days. That's debatable! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread Stut
tedd wrote: At 7:41 PM +0100 4/12/07, Stut wrote: Yes you'll need to put in a bit more work, but the result will be that much better. -Stut Sorry Stut -- I know you know this, but it's more work to NOT use css. Not when you have a pre-made table-based layout already. -St

Re: [PHP] PHP editor

2007-04-13 Thread Stut
sure hope not. Editors should never be written in scripting-languages in my opinion. So you have an issue with every web-based CMS on the planet? IMHO it doesn't matter what language/tool/technology is used to write software, as long as it does the job and meets customer requirements.

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread Stut
Richard Lynch wrote: On Fri, April 13, 2007 1:20 am, Stut wrote: tedd wrote: this ain't the bad old days. That's debatable! Damnit! Now I've got that "These are the good ol' days" song stuck in my head, and it's your fault! :-) Hey, don't forget t

Re: [PHP] secure login

2007-04-15 Thread Stut
encryption. MD5 is not encryption, it's a checksum. By all means use it as an example, but please be aware that it is not particularly secure and could open your site to attacks. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset

2007-04-16 Thread Stut
;" is set I use this combination a lot: if ( isset($_GET['something']) && !empty($_GET['something']) ) { // do something here with $_GET['something'] } The isset is a pointless waste of cycles. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset

2007-04-16 Thread Stut
tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still says it is set. Because $_REQUEST[&#

Re: [PHP] isset

2007-04-16 Thread Stut
Jim Lucas wrote: Stut wrote: tedd wrote: At 4:08 PM +0100 4/16/07, Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it still say

Re: [PHP] isset

2007-04-16 Thread Stut
Robert Cummings wrote: On Mon, 2007-04-16 at 09:27 -0700, Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Richard Kurth wrote: What do you do when isset does not work? If I send data in a $_REQUEST['var'] like if (isset($_REQUEST['var'])) { } Put var has no data it

Re: [PHP] isset

2007-04-17 Thread Stut
ls" information you all seem to know so much about, it is very interesting and i'd like to add it to some of my "late night" reading if possible :) Just guessing, but I'd say probably the source code. That's where most of the internals of PHP are documented.

Re: [PHP] serialize an object

2007-04-19 Thread Stut
w can i fix this? Pass. I know you can specify member variables to be saved in __sleep(), so I guess that would be one possible workaround. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "register_argc_argv" directive

2007-04-19 Thread Stut
ed by having a php.ini setting to turn the dang things *OFF*?... I seem to recall the theory behind it is that it saves some pointless parsing when running a SAPI that won't use them. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] define() an array?

2007-04-20 Thread Stut
ve] ) And isn't "mixed" of any type? No. The value of a constant must be a scalar, i.e. a string or a number. So it is "mixed", but does not allow all types. If you really want to you can serialise your array into the constant, but that will incur a cost whenever

Re: [PHP] mail sent but not received?!

2004-06-25 Thread Stut
On Fri, 25 Jun 2004 11:08:26 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote: > Since the result of the mail() returned is 1, the message should have been > delivered fine. but I did not get anything. Where can I look for more > clues of what the problem might be, like possible log, or turn on som

Re: [PHP] textarea/display question...

2004-07-20 Thread Stut
or similar to find them). > ps.. to you guys who said that the doesn't have a value=''.. it > does... Erm, no, it doesn't. -- Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] apache content negotiation and $_GET

2007-08-13 Thread Stut
n it's Apache that's throwing it away. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpinfo problem

2007-08-13 Thread Stut
- it tells you important stuff like that. -Stut -- http://stut.net/ Chris wrote: You probably just have short_open_tags set to Off in your php.ini file. If so, either turn it On, or change the file to be: Chris Rick Knight wrote: I have just installed PHP-5.2.3 on my Kubuntu Feisty box.

Re: [PHP] QuickTime question

2007-08-15 Thread Stut
pluginspage="http://www.apple.com/quicktime/download/"; controller="true" autoplay="true" height="153" width="321"> I'm sure there are lots of tutorials on the web regarding the details - I just nicked this code from http://www.apple.com/trailers/fox/thesimpsonsmovie/trailer1_small.html -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] QuickTime question

2007-08-15 Thread Stut
tedd wrote: At 4:32 PM +0100 8/15/07, Stut wrote: tedd wrote: Given: http://www.webbytedd.com/bb/ice/ How can I play the movie inside the page instead of going to another page? I know that I could use phpclasses, but that seems an overkill. I think something like this -- $file_source

Re: [PHP] XML editors

2007-08-15 Thread Stut
Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... I tend to use Visual Studio for this sort of thing since I usually have it open anyway. -Stut -- http://stut.net/ -- PHP Ge

Re: [PHP] XML editors

2007-08-15 Thread Stut
I assume this comment was aimed at the list and not just me. Kelvin Park wrote: Stut wrote: Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... I tend to use Visual Studio for this

Re: [PHP] for loop inside a switch

2007-08-16 Thread Stut
or ($i = 0; $i < 21; $i++) $faqs[] = 'faq'.$i; if (in_array($q, $faqs)) echo $faq1; -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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