Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Micah Gersten
Andrew Ballard wrote: > On Tue, Apr 21, 2009 at 8:34 AM, Grega Leskovsek wrote: >> provided I want to store hash of a password in MySQL ... Using MySQL, >> the whole check can be achieved with a SQL query, since the MD5 >> function is provided as part of the database query language ... >> Can I us

[PHP] Re: $_GET verses $_POST

2009-04-12 Thread Micah Gersten
Ron Piggott wrote: > How do I know when to use $_GET verses $_POST? > > Is there a pre defined variable that does both? > > Ron > One of the things usually left out of this discussion is the actual intended use for each of these. I submit the following 2 reference links: http://www.w3.org/TR/h

Re: [PHP] Re: Anyone know of a project like Redmine written in PHP?

2009-03-18 Thread Micah Gersten
mike wrote: > On Wed, Mar 18, 2009 at 1:22 PM, Micah Gersten > > >> OP asked for PHP. Trac is python and Redmine is Ruby. They've added >> twitter support, VCS support, and wiki support lately and are working on >> the major 1.2 upgrade now. > > i am th

Re: [PHP] Re: Anyone know of a project like Redmine written in PHP?

2009-03-18 Thread Micah Gersten
mike wrote: > On Wed, Mar 18, 2009 at 8:30 AM, Jan G.B. wrote: >> Mantis is a pain in the a*** (for non technical persons). > > +1 > > had some annoying bugs, too. > > it's only really a bug tracker last i checked anyhow. > > trac or redmine is more what would be beneficial. OP asked for PHP.

[PHP] Re: Anyone know of a project like Redmine written in PHP?

2009-03-17 Thread Micah Gersten
mike wrote: > http://www.redmine.org/ > > Looks pretty useful; I want one in PHP though. > > Anyone? Mantis Bug Tracker has some of the features you are looking for: http://www.mantisbt.org/ -- Micah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread Micah Gersten
scubak1w1 wrote: > Hello, > > Banging my head against this one... > > Briefly: > - I have two forms on the same page > - both forms are: action="" > method="post" > - both forms gave unique ids > - both forms have a hidden file of the type name="_add_new_module_details" value="1" /> which i

[PHP] Replies to list - Was (Re: [PHP] PHP 5.2.9 - 5.2.9-1 and curl)

2009-03-12 Thread Micah Gersten
Jochem Maas wrote: > > we use Reply-All because hitting Reply doesn't reply to the list but > to the OP ... and discussions should generally stay on the list. This is true unless you're reading the list as a newsgroup. :) -- Micah -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Re: PHP Frameworks

2009-03-08 Thread Micah Gersten
stent Systems > chetan_r...@persistent.co.in | Cell: +91 94033 66714 | Tel: +91 (0832) 30 > 79014 > Innovation in software product design, development and delivery- > www.persistentsys.com > > > > -Original Message- > From: Micah Gersten [mailto:news.php@mic

[PHP] Re: PHP Frameworks

2009-03-08 Thread Micah Gersten
HallMarc Websites wrote: > First time caller; long time listener.. > > > > I have been looking at various PHP MVC frameworks; Limb3, Symphony, Mojavi, > Navigator, WACT, etc. > > I'm looking for any input anyone might have regarding which framework seems > to be the most promising? > > >

[PHP] Re: Database Abstraction Class

2009-03-08 Thread Micah Gersten
Shawn McKenzie wrote: > Micah Gersten wrote: >> Michael A. Peters wrote: >> >>> Anywhoo, that being said, does anyone have a suggestion for a good >>> database abstraction class? >>> >>> Preferably one that already has decent support for several

[PHP] Re: Database Abstraction Class

2009-03-08 Thread Micah Gersten
Michael A. Peters wrote: > Anywhoo, that being said, does anyone have a suggestion for a good > database abstraction class? > > Preferably one that already has decent support for several open source > databases? Try Doctrine: http://www.doctrine-project.org/ >From the website: What is Doctrine?

Re: [PHP] syntax

2009-02-24 Thread Micah Gersten
all to do with php. >> >> http://dev.mysql.com/doc/refman/5.0/en/datetime.html >> http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html >> > > $query .= " WHERE stamp < ".(time()-7*3600*24); > Using something like that is disastrous for D

Re: [PHP] Having Trouble With Session Variable in Query Statement

2009-02-23 Thread Micah Gersten
> id=$_SESSION['thisid']"; >> > > Don't single quote values inside array brackets when the whole > expression is in double quotes. You've got: > > "... $_SESSION['thisid']"; > > Do this instead: > > "... $_SESSION[thisid]"; > > Paul > Better off doing this so you don't get into the habit of not using quotes around array params: "... {$_SESSION['thisid']}"; See this: http://us2.php.net/manual/en/language.types.string.php#language.types.string.parsing Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com

Re: [PHP] php validate user password

2009-02-09 Thread Micah Gersten
e problem isn't the uniqueness of the passwords, but rather the uniqueness of the hash. The solution is to use another hash that does not have the same collision issues. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Micah Gersten
; [pthomp...@pthompson scripts]$ php --ini > Configuration File (php.ini) Path: /etc > Loaded Configuration File: /etc/php.ini > > Thoughts on what's happening would be awesome! Thanks in advance. > > ~Philip > Run this to find out which ini file is being parsed: php

Re: RES: [PHP] Mutiple SQL request

2009-02-04 Thread Micah Gersten
g the InnoDB engine, the Primary Key is stored in the secondary index, so specifying it explicitly is unnecessary. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MicroSlow Software (was: Re: Hidden costs of PHP arrays?)

2009-01-29 Thread Micah Gersten
er with every release. PHP, Apache, MySQL, and Linux always improve their newer builds for speed whenever possible. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Micah Gersten
Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote: > > >> Paul M Foster wrote: >> > > > > >>> Please show me how *without Javascript* and *only with PHP* you can >>> change the content on a pa

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Micah Gersten
Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > > >> Paul M Foster wrote: >> >>> >>> In case this has yet to be answered to your satisfaction... >>> >>> Your page will *have* to reload

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Micah Gersten
tely not true. You can make the button call a PHP script with AJAX and just update the textbox. Check out: http://xajaxproject.org Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dirty Button

2009-01-25 Thread Micah Gersten
t; > tedd > What about an onChange javascript function that checks all the boxes that need input. Call it whenever any of the inputs change and in the onSubmit for the form, check it again. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP Gener

Re: [PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Micah Gersten
a single process can address more than 2.5 - 2.7 GB of RAM. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing HTML href-Attribute

2009-01-18 Thread Micah Gersten
Depending on the goal, using the base tag in the head section might help: http://www.w3.org/TR/REC-html40/struct/links.html#h-12.4 Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Edmund Hertle wrote: > Hey, > I want to "parse" a href-attr

Re: [PHP] Security question

2009-01-15 Thread Micah Gersten
d safe. >> >> Thanks, >> V >> >> > > Thanks V > So if I store the hash in the db, and in the session var then I should be > resonably safe provided I salt the hash prior to storing it? > > > > Yes, but don't use md5. There are lookups available to help someone crack it. Try sha1: http://us3.php.net/sha1 Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] switch vs elseif

2009-01-13 Thread Micah Gersten
break; > > case ($my->getChild()->hasEatenBeans()): > // something > break; > } > > evil ... but it works. > > > > This is a misuse of the switch statement. Switch is meant to compare values to a single variabl

Re: [PHP] Re: Unique Object Instance ID..?

2009-01-10 Thread Micah Gersten
Can you use something like APC to cache the instance variable so that it's persistent across different sessions? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Nathan Rixham wrote: > Colin Guthrie wrote: >> 'Twas brillig, and Nathan Rixha

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Micah Gersten
er drives are more expensive as they are of higher quality than consumer disks. They require a lot more MTBF than your normal hard drive at your local computer store. Also, if you waste 1GB in 1 column, imagine how much wasted space there is in the whole DB. Thank you, Micah Gersten onShore Networ

Re: [PHP] (auto) session expire

2009-01-06 Thread Micah Gersten
any standard way to fix it? > > Why are you setting the session max lifetime on the server to 60 * your timeout? Set it to your timeout and the server will get rid of the session. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Micah Gersten
> only take up it's real space of string(4). > > it' may seem like a small amount of space but when you have 8 > char(255) columns in a table with 10 million rows you'd noticed the > difference considerably. Actually string(4) in a varchar(100) will take up 5 bytes, b

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Micah Gersten
character). > > Maybe you're thinking of char, which is limited to 255 characters. > You're referencing the 5.1 manual. In the 5.0 manual it says that VARCHAR was extended to 65535 in 5.0.3, so you're statement is not entirely correct, nor was Stuart's. That's why I

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Micah Gersten
interaction it seemed like the place to ask. Thanks in advance, and have a > great day! > > Frank > > > > As nice as the guys on the list are, this will be most accurate: http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html Thank you, Micah Gersten onShore

Re: [PHP] A beginner´s question

2009-01-04 Thread Micah Gersten
Vicente wrote: >> >> > > eps, sorry.. Micah Gersten is right. You will need the echo among > them. > > > > > Yep, but you caught the quotes mix-up. :) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com

Re: [PHP] Re: A beginner´s question

2009-01-04 Thread Micah Gersten
Micah Gersten wrote: > Nathan Rixham wrote: > >> Eduardo wrote: >> >>> Hi, I am Eduardo, a new PHP programmer and an old Cobol veteran. >>> I know that >>> $tastes=$_POST["tastes"]; moves the content of "tastes" from >

Re: [PHP] Re: A beginner´s question

2009-01-04 Thread Micah Gersten
gt;> >> How do I move the content of $tastes to X of >> echo "\n"; >> ? >> >> Thanks, Eduardo >> > > echo "\n"; > > echo "this is how you echo a " . $variable . " in a string"; > While that is true, that&#

Re: [PHP] IE Problem Detecting Post Variables

2009-01-03 Thread Micah Gersten
Ashley Sheridan wrote: > On Fri, 2009-01-02 at 18:06 -0500, Andrew Ballard wrote: > >> On Fri, Jan 2, 2009 at 1:15 PM, Micah Gersten wrote: >> >>> You might want to consider the button element which allows you to >>> display images, but doesn't s

Re: [PHP] IE Problem Detecting Post Variables

2009-01-02 Thread Micah Gersten
You might want to consider the button element which allows you to display images, but doesn't send back coordinates. Instead it sends a preset value. http://www.w3.org/TR/html401/interact/forms.html#h-17.5 Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com

Re: [PHP] Question about version control.. sorta..

2008-12-31 Thread Micah Gersten
don't have anything against Linux or Mac, they're great >> systems. But I have my reasons for running Windows. >> > > There's definitely a Gui for CVS. TurtleCVS IIRC. Presumably there's > one for SVN. > > TortoiseCVS and TortoiseSVN on Windows

Re: [PHP] system() Question

2008-12-31 Thread Micah Gersten
Nathan Nobbe wrote: > > > On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten <mailto:mi...@onshore.com>> wrote: > > Nathan Nobbe wrote: > > good point dan, and just to add further clarification, thats b/c the > > function specifies $return_var

Re: [PHP] IE Problem Detecting Post Variables

2008-12-31 Thread Micah Gersten
uot;Default Theme" id="style1" > value="default" /> > src="himages/switch-button-default.gif" title="Alternate Theme" > id="style2" value="alternate" /> > > > > Any thoughts? > How is this being submitted

Re: [PHP] =.='' what wrong ? just simple code, however error.

2008-12-31 Thread Micah Gersten
http://us3.php.net/manual/en/function.number-format.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com LKSunny wrote: > i need accuracy, how to ? > > Thank You. > > "Per Jessen" > ¼¶¼g©ó¶l¥ó·s»D:gjg4fk$58...@saturn.

Re: [PHP] PHP telnet server

2008-12-31 Thread Micah Gersten
for the basic idea on how a MUD server would be > implemented in PHP. > > Thanks in advance for anything, > > Luke Slater > How about AJAX and sessions instead of having TCP sockets? http://xajaxproject.org/ Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system() Question

2008-12-28 Thread Micah Gersten
for this to be frowned upon. What you are referring to is the old PHP4 style of explicit pass-by-reference in function usage which is frowned upon. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Phpmyadmin password

2008-12-16 Thread Micah Gersten
It flance wrote: > Hi, > > I lost phpmyadmin password. Is there anyway to recover it? > > Thank you > > PHPMyAdmin uses MySQL's internal authentication. Log into your MySQL server and reset your password. http://dev.mysql.com/doc/refman/5.0/en/resetting-permissi

Re: [PHP] runtime access to static variable

2008-12-16 Thread Micah Gersten
ck this out: http://us2.php.net/manual/en/language.oop5.static.php It actually won't work until 5.3.0 when they add late static binding. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good PHP book?

2008-12-15 Thread Micah Gersten
O'reillys Learning PHP 5: http://oreilly.com/catalog/9780596005603/index.html Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com jeffery harris wrote: > Hi guys/gals. I'm a first time user. Does anyone know of a good php book? > > >

Re: [PHP] Re: Foreign Keys Question

2008-12-11 Thread Micah Gersten
tidy without having to put the > structure in your code all over the place. > > Col > Why would you want to delete the instructors when deleting the student? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://ww

Re: [PHP] Dates and Mysql

2008-12-10 Thread Micah Gersten
> > I'm assuming you meant get records one week less than the current system timestamp. date('Y-m-d G:i:s', strtotime('1 week ago')); Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A MySQL Question

2008-12-08 Thread Micah Gersten
German Geek wrote: > On Tue, Dec 9, 2008 at 2:46 PM, Micah Gersten <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Robert Cummings wrote: > > On Tue, 2008-12-09 at 00:16 +, Nathan Rixham wrote: > > > >> Ashley Sheridan wr

Re: [PHP] A MySQL Question

2008-12-08 Thread Micah Gersten
Robert Cummings wrote: > On Mon, 2008-12-08 at 19:46 -0600, Micah Gersten wrote: > >> Robert Cummings wrote: >> >>> On Tue, 2008-12-09 at 00:16 +, Nathan Rixham wrote: >>> >>> >>>> Ashley Sheridan wrote: >>>&g

Re: [PHP] A MySQL Question

2008-12-08 Thread Micah Gersten
s and a universe is created via a big light show... does it > matter? Can it be perceived? Is this just a proverbial pandrödinger's > box? You can't implement the bigbang() function if you don't exist. > > Cheers, > Rob. > The function doesn't say who's doing the creating, it just checks for the existence of the universe. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Objects and Arrays Conversion

2008-12-02 Thread Micah Gersten
object to array, the same thing applies: http://us2.php.net/manual/en/language.types.array.php $array = (array) $object; Not sure if these are PHP 5 only or not. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about corrupt db?

2008-12-01 Thread Micah Gersten
his locally on my box and on > the live server. > > thanks > terion > > Have you checked the PHP error logs? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array/iteration issue!!

2008-11-27 Thread Micah Gersten
pt['name']; > foreach( $dept['classes'] as $className ) > { > echo "$collegeName, $deptName, $className\n"; > } > } > } > > ?> > > Cheers, > Rob. > This is actually a much smaller da

Re: [PHP] Re: anchor name on URL

2008-11-18 Thread Micah Gersten
m waiting for the day when Firefox starts using Google's V8 scripting > engine! > > > Ash > I'd rather all the engines follow the W3C standards so that you just have to make sure your web page is compliant. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] while question

2008-11-17 Thread Micah Gersten
Jay Blanchard wrote: > [snip] > ...foreach... > [/snip] > > You could also use a for loop if you wanted to count; > > for($i = 0; $i < count($array); $i++){ >echo $i . "\n"; > } > > > This is not good because you are calling count every

Re: [PHP] mySQL query question

2008-11-13 Thread Micah Gersten
-type-overview.html http://dev.mysql.com/doc/refman/5.0/en/data-type-defaults.html Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Michael S. Dunsavage wrote: > okay I want to pull an integer from a database called confirm_number, > add 1 and repost it back to t

Re: [PHP] Strange results

2008-11-13 Thread Micah Gersten
o " & self::mciInput & ""; >echo 'stage 2'; > if ( $fpType == self::mciInput ) { > echo 5; > array_push($this->maInput, new $fpName); > echo 'it\'s done'; >} >} > > > The Call: > >

Re: [PHP] PECL HTTP Extension

2008-11-13 Thread Micah Gersten
Perhaps you should try the PECL list: [EMAIL PROTECTED] Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Rui Quelhas wrote: > Since i'm not obtaining any kind of response from people o first answered > me. I guess is better to talk through here. &g

Re: [PHP] PECL HTTP Extension

2008-11-12 Thread Micah Gersten
se from you. > > If you could just provide me with a more specific Leopard tutorial > tha would be great. > > Giving an antecipated "thank you" for any kind of answer. > > Regards, and keep up the good work! > > Rui Quelhas > Is that extensions directory in y

Re: [PHP] Re: pdt-2.0 error

2008-11-12 Thread Micah Gersten
ou ask? tried to google it yet ? That's where... > > - Tul > > PDT is a plugin for the Eclipse Platform. The Zend people made a special PDT 2.0 All-in-one build, that's why I said the zend list. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pdt-2.0 error

2008-11-12 Thread Micah Gersten
Try the zend list: [EMAIL PROTECTED] Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com András Csányi wrote: > Hi all! > > I don't know which is the right place to make an bugreport. > I installed on my linux desktop the pdt-2.0 all-in-one bu

Re: [PHP] PHP Startup: Unable to load dynamic library

2008-11-12 Thread Micah Gersten
gt; You should try Xampp then. http://apachefriends.org They've segregated the apache config files to make things easier. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents urlencode spaces: yeah right?

2008-11-10 Thread Micah Gersten
special characters, such as spaces, > you need to encode the URI with urlencode(). > > WTF?!?! > How do I get FAILS(1) and FAILS(2) to work, in light of FAILS WTF(1) > and FAILS WTF(2)? > > Have you tried to output the result of urlencode and paste the whole thing in a browser to make sure that it works? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP - Web/list Question...

2008-11-09 Thread Micah Gersten
Robert Cummings wrote: > On Sun, 2008-11-09 at 12:26 -0600, Micah Gersten wrote: > >> Stut wrote: >> >>> On 9 Nov 2008, at 18:14, Robert Cummings wrote: >>> >>>> On Sun, 2008-11-09 at 18:00 +, Stut wrote: >>>>

Re: [PHP] PHP - Web/list Question...

2008-11-09 Thread Micah Gersten
; Seriously? You'd rather use sessions than explode, modify and implode > an array of numbers on each request? You really see that as a valuable > developer time-saver? > > The mind boggles, but as I've said before and probably will again it's > always a personal choice, I'm just suggesting alternatives. > > -Stut > Also, by storing the information server side, there is less of a chance of the user tampering with the data. Storing stuff in the session also saves on network bandwidth of sending and retrieving the data with each request. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP - Web/list Question...

2008-11-09 Thread Micah Gersten
ndreds of items I'd either go with a > persisted GET var or a cookie. No need to drag server-side storage > into this. > > -Stut Server side storage is meant to be used. The session was one of the greatest things that PHP has given to the web programming world. It should not be feared. Also, why clutter up someone's machine with stuff held in a cookie? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: strtotime

2008-11-08 Thread Micah Gersten
strtotime works fine > > in PHP5 strtotime gives a result of 19700101 when the data entered was > strtotime("20080950") > > What does "work fine" mean? "20080950" isn't normal, so what is the expected result? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random number generator

2008-11-06 Thread Micah Gersten
designed to do what > their name suggests. > > Software testing requires repeatability, and this includes random number > generation. > > Without knowing how PHP seeds the generator it is difficult to predict what > it will do. > > I still think taking the last digit of the cu

Re: [PHP] Random number generator

2008-11-06 Thread Micah Gersten
; footer. Each footer is the same right now except I have numbered them > for testing. > > As I refresh the page, I get footer10 almost always with an > occasional 2 or 4 here and there... > > http://www.weisd.com/store2/WINHD-9022.php > > > Which PHP version are you

Re: [PHP] find a word in a string

2008-11-05 Thread Micah Gersten
http://php.net/strstr Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: > is the a php function to find a word in a string and report back that > it was found > -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: 答复: [PHP]COOKIE or coding

2008-11-05 Thread Micah Gersten
you want to see the +, the use this: http://us3.php.net/urlencode Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Zhao chunliang[chunliang.zhao] wrote: > First thanks for Todd 's help > > I do have some questions. > > 1.Open t

Re: [PHP] removing text from a string

2008-11-05 Thread Micah Gersten
> Yep, with a regex, it's real easy (untested code): > > > $fileData = file_get_contents("text,txt"); > $newFileData = preg_replace('/^\d+?\.\s?(.*$)/m','/$1/', $fileData); > file_put_contents("newfile.txt", $newFileData); >

Re: [PHP] removing text from a string

2008-11-05 Thread Micah Gersten
;; >> >> $fp = fopen($filename, "r") or die ("Couldn't open $filename"); >> if ($fp) >> { >> while (!feof($fp)) >> { >>$thedata = fgets($fp); >>//Do something to remove the "1. " >>$findme=" "; >>$pos=strpos($thedata,$findme); >>$thedata_fixed=trim(substr($thedata,$findme)); >> //print the modified line and \n >>echo $thedata_fixed."\n"; >> } >> fclose($fp); >> } >> ?> >> >> See, no regex needed and no matter the size of the '##. ' it will always >> find the first " " and then chop it from there to the end, then you trim it >> up and you get the text. >> >> Wolf >> >> > Thats a lot of code when a couple of lines and a regex will do ;) > > > Ash > www.ashleysheridan.co.uk > > > Yep, with a regex, it's real easy (untested code): Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reaching network share with libssh2 functions

2008-11-04 Thread Micah Gersten
Have you turned on error logging? What code are you using? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jacob Overgaard wrote: > > Thanks, Micah > > I can access the share when I log directly in to the windows machine > with a bash

Re: [PHP] basic php question...

2008-11-04 Thread Micah Gersten
foo.php without passing them to it. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com bruce wrote: > hi guys...foo > > i've got a button that i want to select, and i want the app to process some > logic, and then return the user to the page. m

Re: [PHP] Reaching network share with libssh2 functions

2008-11-04 Thread Micah Gersten
If it's a permissions issue, it's related to Windows. Is it a user share or a system share? Can you access the shares when you log directly into the windows box? Have you tried command line ssh to see if it's specifically related to the PHP library? Thank you, Micah Gersten o

Re: [PHP] PHP Auth

2008-10-30 Thread Micah Gersten
Steve Marquez wrote: > Greetings, > > What is the best way to create authentication for MySQL info displayed > on PHP pages. > > Thanks, > Best is relative. How many users do you expect? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.co

Re: [PHP] CREATE question

2008-10-30 Thread Micah Gersten
AFAIK, the query commands just pass the query to the DB engine. The DB decides whether or not to execute. You need special permissions in mssql and mysql to create things. I don't know about informix. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: > On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote: > >> Waynn Lue wrote: >> >>>> With MySQL, you can change the DB from query to query with >>>> mysql_select_db. The alternative as I stated in my last post is

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
nstead of just using the database name in the query. However, this should not be that expensive. Yes, connections should be available for the whole script if you don't destroy them. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: > On Wed, 2008-10-29 at 19:57 -0500, Micah Gersten wrote: > >> Ashley Sheridan wrote: >> >>> On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote: >>> >>> >>>> Ashley Sheridan wrote: >>>&

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: > On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote: > >> Ashley Sheridan wrote: >> >>> On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: >>> >>> >>>> Ashley Sheridan wrote: >>>&

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: > On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: > >> Ashley Sheridan wrote: >> >>> On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: >>> >>> >>>> Ashley Sheridan wrote: >>>&

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: > On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: > >> Ashley Sheridan wrote: >> >>> On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: >>> >>> >>>> Waynn Lue wrote: >>>> >>

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
y > time (as you only have to wait for one connection to be made rather than > two) > > > Ash > www.ashleysheridan.co.uk > > Generally you want separation of data. MySQL doesn't have a problem accessing another DB on the same server with the same connection. Also, how would database convergence use less memory? . Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex validation

2008-10-28 Thread Micah Gersten
How is anything but your webserver decrypting the $_POST data? PHP should get it after that as is. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com VamVan wrote: > SSO process: > > $_POST the Email Address and password > > Get Authenticated,

Re: [PHP] Regex validation

2008-10-28 Thread Micah Gersten
What are you talking about with a cookie and an E-Mail address? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com VamVan wrote: > Yeah, I understand that its allowed in RFC. But unfortunately I use > SSO layer which decrypts the Cookie to get email a

Re: [PHP] Regex validation

2008-10-28 Thread Micah Gersten
Keep in mind that ereg will disappear with PHP 6. You might want to use the preg functions: http://www.making-the-web.com/2007/09/21/becoming-php-6-compatible/ Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com VamVan wrote: > Thank Guys, > > I at

Re: [PHP] Regex validation

2008-10-28 Thread Micah Gersten
uot;,",",":",";","~","..",".@","@."}; > > I want to a pregmatch for these characters on my whole email address and if > match is found I need to return false. > > Thank you > > If your trying to filter

Re: [PHP] clean data

2008-10-27 Thread Micah Gersten
In that case, I suggest you look to the MySQL lists for tips on handling data coming in. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com blackwater dev wrote: > Yes, I agree but the code I am inheriting doesn't use abstraction > unfortunately.

Re: [PHP] clean data

2008-10-27 Thread Micah Gersten
Are you using MySQL abstraction? That's the easiest way to control what data goes into your DB in a central place. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com blackwater dev wrote: > I have a project now where we would like to properly remove

Re: [PHP] clear a mysql table

2008-10-25 Thread Micah Gersten
> or die(mysql_error()); > > > or do I need to loop through all records? or is there a better solution? > > How can I get the database size? > > bye > > R. > > Perhaps you should not have search engines index your calendar. Thank you, Micah Gersten onShore

Re: [PHP] Information on Cookies

2008-10-19 Thread Micah Gersten
Don't use cookies, use sessions. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ben Stones wrote: > I've read a few videos on cookie security and it makes sense that people can > modify cookie values which is a problem I'm trying

Re: [PHP] Best way to recieve image from url?

2008-10-19 Thread Micah Gersten
If you're using file_get_contents, why aren't you using file_put_contents? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Nitsan Bin-Nun wrote: > Hi, > I have this function: > > > function saveImageFromUr

Re: [PHP] New to PHP

2008-10-13 Thread Micah Gersten
The problem with bottom posting is that if you follow the conversation, you have to scroll to find the new content. I guess if you trim and bottom post it's not so bad. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Wolf wrote: > By Bottom Posting

Re: [PHP] Setcookie()

2008-10-12 Thread Micah Gersten
The question is, why aren't you using a session variable instead of cookies? That's one of the greatest features of PHP. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ben Stones wrote: > What I mean is I cannot use setcookie, I need to

Re: [PHP] Re: template usage

2008-10-12 Thread Micah Gersten
The problem with smarty is that they are still using PHP4 as their main language so they cannot take advantage of speed improvements in PHP5. So, my suggestion is that if you're stuck with PHP4, go with smarty, otherwise, find another engine that's up to date. Thank you, Micah Gerst

Re: [PHP] Variable Variables and Super Global Arrays

2008-10-12 Thread Micah Gersten
I mean that it is open for hacking if you pass a variable name through a URL. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com daniel danon wrote: > What do you mean? > > On Sun, Oct 12, 2008 at 5:40 PM, Micah Gersten <[EMAIL PROTECTED] >

Re: [PHP] Variable Variables and Super Global Arrays

2008-10-12 Thread Micah Gersten
That's fine as a test, but you never want to get a variable name from a URL in practice. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Heyes wrote: >> $varname = "\$_SERVER['REMOTE_ADDR']"; >> $varvalue

Re: [PHP] Manipulating strings

2008-10-07 Thread Micah Gersten
Then you'll need this as well: http://us.php.net/manual/en/function.strlen.php **strpos** ( $text , '' <http://us.php.net/manual/en/language.pseudo-types.php#language.types.mixed>, strlen($text)/2 ); Will give you the position. Use str_replace to insert your ad. Tha

  1   2   3   >