Re: [PHP] [opinions] Ashop Commerce

2007-05-03 Thread Stut
. -Stut - Original Message - From: Stut [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, May 03, 2007 12:16 PM Subject: Re: [PHP] [opinions] Ashop Commerce Ashop Commerce sucks. The product is anti-productive, badly written and riddled with potential exploits that may expose

Re: [PHP] Re: Tag Cloud (WAS Deviation? Distribution? OT?)

2007-05-03 Thread Stut
tag, count(1) as popular from entry_tag group by tag order by popular desc, tag limit 100 -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Stut
a certain amount of characters, the text is always cut down. I use this: HEADER(Location:.$data[rurl].?error=.$error.$parameter); Is there a way to redirect the user to the form and fill in large text? http://php.net/session -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Tag Cloud (WAS Deviation? Distribution? OT?)

2007-05-03 Thread Stut
Richard Lynch wrote: On Thu, May 3, 2007 10:00 am, Stut wrote: Richard Lynch wrote: $query = select tag, popular from (select tag, count(*) as popular from entry_tag group by tag order by popular desc limit 100) as p order by tag; I'm no expert, and I have no way to test

Re: [PHP] Split string

2007-05-02 Thread Stut
as being more efficient (half the strpos calls)... $pos = min(strpos($myString, ), strpos($myString, ,)); Alternatively you could use split to break the string into the two parts, which is probably more efficient... list($part1, $part2) = split('[ ,]', $myString); -Stut -- PHP General Mailing

Re: [PHP] Split string

2007-05-02 Thread Stut
Stut wrote: Alternatively you could use split to break the string into the two parts, which is probably more efficient... list($part1, $part2) = split('[ ,]', $myString); Oops, this should have a third parameter... list($part1, $part2) = split('[ ,]', $myString, 2); -Stut -- PHP General

Re: [PHP] Split string

2007-05-02 Thread Stut
($answer); Will give more than 2 parts for strings containing both or multiples. Now please irradiate your hands. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpbb / sessionid nightmare

2007-04-30 Thread Stut
Brad Sumrall wrote: Does anyone know what this _utma _utmb _utmc _utmz stuff is? Obviously it is not a php standard. Obviously it is what is actually controlling my sessions? These come from Google services (analytics, adsense, etc), they have nothing to do with your sessions. -Stut -- PHP

Re: [PHP] Re: posting variables to parent frame

2007-04-27 Thread Stut
that makes the king look good! People are easily turned off something, and not being able to read the text on a site, or having to battle against a poor user experience for the sake of a pretty design will easily prevent your site from being a success. -Stut -- PHP General Mailing List (http

Re: [PHP] Parsing CSV files

2007-04-27 Thread Stut
decent patches with open arms. A wiki would (IMHO) lead to a general and rapid degradation in the quality of the documentation. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing CSV files

2007-04-27 Thread Stut
Tijnema ! wrote: On 4/27/07, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: Maybe the PHP site itself should be Wiki-fied so that we could just go in ourselves and fix the errors. I don't see that happening any time soon though There's nothing stopping you submitting patches

Re: [PHP] Parsing CSV files

2007-04-27 Thread Stut
Tijnema ! wrote: On 4/27/07, Stut [EMAIL PROTECTED] wrote: Tijnema ! wrote: On 4/27/07, Stut [EMAIL PROTECTED] wrote: Daniel Brown wrote: Maybe the PHP site itself should be Wiki-fied so that we could just go in ourselves and fix the errors. I don't see that happening any time soon

Re: [PHP] No mail() function

2007-04-27 Thread Stut
it looks for the sendmail binary. If it can't find it the mail function will not be included. That's probably what happened here. I suggest you run configure again and check the output for mail-related issues. If you need further assistance, email the install list. -Stut -- PHP General Mailing

Re: [PHP] problem with shared object file

2007-04-26 Thread Stut
dynamic loading fails? Is it possibly due to different glibc versions? Does the lib reference other libs? I believe that if referenced libs can't be found it'll report that error. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: everything printed suddenly has blue text, as if were a link

2007-04-26 Thread Stut
daft. You should be using span tags here, not the deprecated font tags. -Stut Dave Goodchild wrote: View the source, you have this: font color=blue which is not closed, therefore everything after it will be blue. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: everything printed suddenly has blue text, as if were a link

2007-04-26 Thread Stut
Tijnema ! wrote: On 4/26/07, Stut [EMAIL PROTECTED] wrote: Tijnema ! wrote: On 4/26/07, Al [EMAIL PROTECTED] wrote: font.. is depreciated and shouldn't be used anyhow. Use styles instead. I use combination of both :) style type=text/css font.grey { color: grey; } /style font class

Re: [PHP] Uploaded file

2007-04-26 Thread Stut
: http://php.net/features.file-upload [yes, it's called the manual] -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: posting variables to parent frame

2007-04-25 Thread Stut
Richard Lynch wrote: Maybe he's thinking FRAMESET??? My comment would still stand. Frames are not obsolete, and there are (very few) legitimate uses for them. -Stut On Tue, April 24, 2007 9:39 am, Stut wrote: Al wrote: iFrames are obsolete and only IE handles them. I don't even know

Re: [PHP] script timeout

2007-04-25 Thread Stut
ob_end_clean and output the header/body to return the HTTP error code you want. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] script timeout

2007-04-25 Thread Stut
Stut wrote: Henning Eiben wrote: Tijnema ! wrote: I have a small sample-application, that uses smarty for the presentation layer. Unfortunately I might encounter script-timeouts (not necessarily from smarty, could also be the DB-connection or something). In this case I would like to return

Re: [PHP] Result problem

2007-04-25 Thread Stut
[] = $row_record['id']; Problem 3: You need to read up on some basic PHP syntax. This is just about the most basic problem you could have. The PHP manual should help you here. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: posting variables to parent frame

2007-04-24 Thread Stut
away any time soon. Use css div tags instead. They don't do the same thing, not by a long shot. -Stut Hans wrote: Hi there, I'm trying to post variables to a parent frame, I'm working from a page that is in an iFrame. However, I don't know how to accomplish this. I tried target='top

Re: [PHP] secure alternative to HTTP_REFERER

2007-04-24 Thread Stut
it if the hashes match. However, this is very easy to get around, so I suggest you consider why you think you need this level of checking. Assuming you're properly validating and escaping all input coming from outside the app, IMHO this type of security should not be needed. -Stut -- PHP

Re: [PHP] Re: posting variables to parent frame

2007-04-24 Thread Stut
to other problems. But to get back to the point, the iframe tag will not be obsolete until the HTML spec says so, and at the time of writing it does not. -Stut Stut wrote: Al wrote: iFrames are obsolete and only IE handles them. I don't even know if IE7 does. Well that's just a complete

Re: [PHP] Re: posting variables to parent frame

2007-04-24 Thread Stut
FYI: Every time I reply to you I get a bounce back saying your email address ([EMAIL PROTECTED]) does not exist. It's starting to get annoying. -Stut Stut wrote: Al wrote: Provide an example of an iFrame that will work on all modern browsers and that can't be done with DIVs or OBJECTS I

Re: [PHP] echo or print ?

2007-04-21 Thread Stut
on the functionality and usability of your code rather than insignificant details like this. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do I pass a variable with header?

2007-04-21 Thread Stut
be absolute not relative. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo or print ?

2007-04-21 Thread Stut
Tijnema ! wrote: On 4/21/07, Stut [EMAIL PROTECTED] wrote: Tijnema ! wrote: There is a difference, echo is slightly faster. code used for benchmark: ? $start = microtime(TRUE); for ($i=0; $i10; ++$i) { print ABC; } echo sprintf(With print ($i): %0.3f\n,microtime(TRUE) - $start

Re: [PHP] echo or print ?

2007-04-21 Thread Stut
more worthy of your time. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] echo or print ?

2007-04-21 Thread Stut
Tijnema ! wrote: On 4/22/07, Stut [EMAIL PROTECTED] wrote: Tijnema ! wrote: But what else would you use a lot in your code? all commonly used things (like while, if, echo, etc) are just (nearly) as fast as their alternatives (for, print, etc). Other functions (like file/stream) might

Re: [PHP] define() an array?

2007-04-20 Thread Stut
] ) 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 you need to use it. -Stut -- PHP General

Re: [PHP] PHP Text Messaging

2007-04-20 Thread Stut
phone number can only exist on one carrier at any given time, so the bounces just go to /dev/null. Speaking on behalf of ISPs around the world, please don't do that. Take the time to figure it out and do it properly. Don't pollute the internet with more pointless emails. -Stut -- PHP General

Re: [PHP] serialize an object

2007-04-19 Thread Stut
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
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] isset

2007-04-17 Thread Stut
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. ;) -Stut -- PHP General Mailing List (http

Re: [PHP] isset

2007-04-16 Thread Stut
: 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['var'] = and isset

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 says it is set. Because

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 still says it is set

Re: [PHP] secure login

2007-04-15 Thread Stut
as 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] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 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-13 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. -Stut -- PHP

Re: [PHP] PHP editor

2007-04-13 Thread Stut
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. -Stut -- PHP General Mailing List (http

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 that you should always look on the bright

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Stut
? 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
more work, but the result 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
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
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 best option. -Stut Stut

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

2007-04-11 Thread Stut
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 List (http

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 Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
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
diminishing audiences? Cheers, Rob. Uhm, blind people can't even view your page :P I think you mean visual impaired people :) Yes they can... http://www.webaim.org/articles/visual/blind.php -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
that they *can* be faked. 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
, 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.php.net/) To unsubscribe, visit: http

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
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 General Mailing List

Re: [PHP] Submitting as POST. Why?

2007-04-07 Thread Stut
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. -Stut -- PHP General Mailing List (http

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 URLs on the page

Re: [PHP] MD5 bot Question

2007-04-07 Thread Stut
, 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 List (http://www.php.net

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] 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] gethostbyname () uses old DNS server

2007-03-26 Thread Stut
server. Alternatively 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
['_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] Array Question

2007-03-25 Thread Stut
that as a key. This however does not work. It will work if they are all unique. If you have any duplicates they will overwrite previous assignments. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-03-25 Thread Stut
for asking here. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 can do

Re: [PHP] Random Unique ID

2007-03-21 Thread Stut
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
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 Jochem: I think I'm over it now! -Original Message- From: Stut

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] MYSQLyog

2007-03-20 Thread Stut
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 problem

Re: [PHP] help with script needed

2007-03-13 Thread Stut
, 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? ?php $txt = ralph SMith; $txt = ucwords(strtolower($txt)); ? Thank you... You're welcome. -Stut -- PHP

Re: [PHP] Using array_search I get error

2007-03-11 Thread Stut
, 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] Re: Troubles from the newb again

2007-03-09 Thread Stut
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://www.php.net/) To unsubscribe, visit

Re: [PHP] Class and subclass

2007-03-08 Thread Stut
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
, 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] db query not working as expected

2007-03-07 Thread Stut
Ed Curtis wrote: mysql_query (INSERT INTO tmphitsmag (magazine) VALUES ('$magazine_path[2]')); Replace that with this... mysql_query (INSERT INTO tmphitsmag (magazine) VALUES ('.mysql_real_escape_string($magazine_path[2]).')); -Stut

Re: [PHP] Class and subclass

2007-03-07 Thread Stut
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
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] module and access rights

2007-03-05 Thread Stut
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
are you 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
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 (http

Re: [PHP] session question

2007-03-05 Thread Stut
. -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
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
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, *Stut* [EMAIL PROTECTED] mailto

Re: [PHP] Array help

2007-03-04 Thread Stut
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
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 Mailing List (http://www.php.net/) To unsubscribe, visit: http

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

2007-03-04 Thread Stut
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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 records. If you can

Re: [PHP] module and access rights

2007-03-04 Thread Stut
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 unsubscribe, visit: http

Re: [PHP] module and access rights

2007-03-04 Thread Stut
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 implement a module access rights in my web application. Basically after

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 logged

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; $server_unique_key = w#$#%#54dfa4vf4w5$2!@@$w

Re: [PHP] question

2007-03-03 Thread Stut
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: http://www.php.net

Re: [PHP] question

2007-03-03 Thread Stut
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.php.net/) To unsubscribe, visit: http

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

2007-03-02 Thread Stut
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] 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

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