Re: [PHP] A Strange Problem

2013-06-21 Thread tamouse mailing lists
ust don't know why after so many years this problem came up -- I never experienced it before -- AND when I am really up against it. > > Maybe someone smarter than me (open to many) will explain why it happened. > > Cheers, > > tedd > > _ > t...@sper

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread tamouse mailing lists
dapts to his tables and their relationships. It's a fair question, just one I don't have an answer to. There must be some kind of ORM for PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: limit access to php page

2013-05-30 Thread tamouse mailing lists
On May 30, 2013 8:10 AM, "Jim Giner" wrote: > > On 5/29/2013 9:38 PM, tamouse mailing lists wrote: > >> >> Okay, first off, your application *has* to have some entry point that >> *is* accessible to a browser; otherwise nothing will find it. >> >

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
t (in this case it's called pmwiki.php instead of index.php, but that's immaterial here). Pages in the wiki are given on the path, such as: http://www.pmwiki.org/wiki/PmWiki/PmWiki, which makes it bookmarkable and work in the browser history. Others may not; it all depends on what you want. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: limit access to php page

2013-05-29 Thread tamouse mailing lists
his browser and have it work. Depends on whether the redirect is by header or not, if it is via the Location header, then the browser has to be able to hit it. There is, though, a form of application architecture where everything is run through the index page, and it pulls things in via include/require as directed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit access to php page

2013-05-29 Thread tamouse mailing lists
x page? > > Thank you! > Tim > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B Read through this page, and the other parts of the Session manual. Hopefully that will help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Sat, May 25, 2013 at 3:21 AM, tamouse mailing lists wrote: > On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists > wrote: >> On Fri, May 24, 2013 at 2:06 AM, Radek Krejča >> wrote: >>> {"result_ok":true,"result_message":null,"client_na

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
On Sat, May 25, 2013 at 3:14 AM, tamouse mailing lists wrote: > On Fri, May 24, 2013 at 2:06 AM, Radek Krejča wrote: >> {"result_ok":true,"result_message":null,"client_name":"Radek Krej\u010da"} > > How odd -- when i run that through js

Re: [PHP] json_decode mistery

2013-05-25 Thread tamouse mailing lists
sult_message":null,"client_name":"Radek Krej\u010da"} Decoded: object(stdClass)#1 (3) { ["result_ok"]=> bool(true) ["result_message"]=> NULL ["client_name"]=> string(13) "Radek Krejča" } PHP Version: 5.3.10-1ubuntu3.6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random

2013-05-23 Thread tamouse mailing lists
On Thu, May 23, 2013 at 3:51 PM, Last Hacker Always onpoint wrote: > Hey I need code for random number 1-30 for my site. function rand_from_1_to_30() { return 4; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread tamouse mailing lists
Back to the OP's request, Ken Pugh's "Interface Oriented Design" goes quite a long way in describing OO* and directly to the heart of why interfaces make so much sense as a way of designing your code. It does not show PHP examples, it tries to remain agnostic to language.

Re: [PHP] Re: Sync CSV files with MySQL Database.

2013-05-12 Thread tamouse mailing lists
and with the newest file, you'll just have the new records to import. Then keep the newest file to compare with the next newest one. If you want to keep things all pure PHP, you could easily come up with a similar operation in PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] undef func

2013-05-10 Thread tamouse mailing lists
evidently I have sucessfully gotten at least PHP to get working, but to >> connect to ODBC >> >> (this then would indicate that dynamical loading of libararies is not >> successful, but what...) >> >> man tnx for clues >> georg > > Did you uncomment

Re: [PHP] filesize question

2013-05-08 Thread tamouse mailing lists
ove offending code without removing the entire file... I don't know anything about joomla. > tamouse mailing lists wrote: >> >> On Tue, May 7, 2013 at 8:16 AM, Curtis Maurand wrote: >>> >>> Hello, >>> I'm feeding a filename to a php script on the c

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 9:42 PM, tamouse mailing lists wrote: > On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard > wrote: >> [snip]Globals being used in a function. [/snip] >> >> *smacks forehead* > > > > It bites me all the time, too. (Might be worth a refacto

Re: [PHP] Problems with array_push?

2013-05-07 Thread tamouse mailing lists
On Tue, May 7, 2013 at 4:28 PM, Jay Blanchard wrote: > [snip]Globals being used in a function. [/snip] > > *smacks forehead* It bites me all the time, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] filesize question

2013-05-07 Thread tamouse mailing lists
filename"); $contents = fread($handle, filesize($filename)); if (FALSE === $contents) die("Unable to read $filename"); return $contents; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate onfly PDF

2013-05-04 Thread tamouse mailing lists
/citw185/examples/pdf/ >> >> Everything is there. >> >> Cheers, >> >> tedd >> > AFAIK fpdf needs zlib and gd extensions. > gd extension is almost everywhere enabled as extension, however i'm not sur > zlib is enabled on most of servers... > > What do you think about that ? I would think zlib is even more ubiquitous than gd; it's used all over the place. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Load testing an app

2013-04-24 Thread tamouse mailing lists
ng the netsh calls so they're not part of your web application's stack, and make them an asynchronous part? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
After all this, the OP remains unenlightened. This is just a waste of time. "You are doing this wrong." "There are existing tools that do what your client wants." "A command line tool is not the same as the php library." are all met with "I don't want to learn, just tell me what isn't working." To

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
$_POST[ 'password' ]; > > # Connect to remote DB > > $LINK = mysql_connect( $host, $form_user, $form_pass ); > > And yes, my $host param is correct. > > Thanks, So, um, look at this gist: https://gist.github.com/tamouse/5430012 I know this never helps, but &#

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Sun, Apr 21, 2013 at 9:49 AM, Stuart Dallas wrote: > On 21 Apr 2013, at 15:46, tamouse mailing lists > wrote: > >> On Sun, Apr 21, 2013 at 9:12 AM, Tedd Sperling >> wrote: >>> On Apr 21, 2013, at 9:32 AM, Stuart Dallas wrote: >>>> However, a mor

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
on deaf ears. > > Some days you can help and some days you can't. > > Cheers, > > tedd There's the Zen saying "When the student is ready, the teacher appears." -- which to me says more about those attempting to teach than those attempting to learn. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
o have them come from a web form at all? What value is that providing at all? While it is certainly an interesting question as to why it doesn't work, if you have other things in your app to work on, just leave it and come back to it when you've time, if it's still that interesting. --

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread tamouse mailing lists
ing(47) "/~tamara/teststuffout/logger.php/one/two?a=true" ["PATH_INFO"]=> string(8) "/one/two" ["QUERY_STRING"]=> string(6) "a=true" Interestingly, it appears nothing reports #fragment... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
ase and then check the user_id and password before giving them >> authorization to private areas. >> >> Keep the private stuff private! >> >> Cheers, >> >> tedd >> >> _ >> tedd.sperl...@gmail.com >> http://sperling.com >> That is a great point -- I was thinking this was a private app, but you should never ever ever ever ever ever (x infinity) allow wild wild web access to your database like this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread tamouse mailing lists
This will be brief as I'm on a tablet... On Apr 19, 2013 5:53 PM, "dealTek" wrote: > > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting

Re: [PHP] mysql_connect noob question

2013-04-20 Thread tamouse mailing lists
gt; >>>> Sorry. The error displayed is: > >>>> > >>>> *Warning*: mysql_connect() [function.mysql-connect > >>>> <http://localhost/wservices/function.mysql-connect>]: Access denied > for > >>>> user ''@'ip70

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread tamouse mailing lists
>> t...@example.com >> Acme, Inc. >> 40**0002 >> 0118 >> >> >> Mary >> Smith >> 1234 Main St. >> Beverly Hills >> CA >> 90210 >> US >> Unit #2 >> >> >> SKU-123456 >> test product description >> abc >> 1 >> 5. >> 1. >> 7.00 >> 2.00 >> 1.00 >> 2.00 >> 1.00 >> sales >> 12345 >> >> >> SKU-123456 >> test 2 product description >> abc >> 2 >> 2.5000 >> 2. >> 7.00 >> 2.00 >> 1.00 >> 2.00 >> 1.00 >> sales >> 12345 >> >> >> >> >> >> >> >> >> >> >> -- >> Thanks, >> Dave - DealTek >> deal...@gmail.com >> [db-3] >> > > > -- > Thanks, > Dave - DealTek > deal...@gmail.com > [db-3] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-19 Thread tamouse mailing lists
$_POST[ 'password' ]; > > # Connect to remote DB > > $LINK = mysql_connect( $host, $form_user, $form_pass ); Please show the error you are getting from the mysql_connect > > And yes, my $host param is correct. > > Thanks, > > -- > PHP General Mailing List (http

Re: [PHP] Re: how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
$submenu define >>> outside the function >>> ... >>> } >>> >>> as it is included the function DisplayMenu should also have access to >>> $submenu array, no ? >>> >>> >>> >> basic php question. Variables withi

Re: [PHP] search array

2013-04-11 Thread tamouse mailing lists
rion('description', $cleanInput); > > // sort the results > //do a compound find with above two search conditions > $compoundFind = $fm->newCompoundFindCommand($layoutName); > $compoundFind->add(1, $findSerial); > $compoundFind->add(2, $findDesc); > $compoundFind->addSortRule('Serial #', 1, > FILEMAKER_SORT_ASCEND); > > // set skip and max values > $compoundFind->setRange($skip, $max); > > // run the search > $result = $compoundFind->execute(); I'm not familiar with them as one of the usual PHP database extensions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
ing about inserting it in real time in the client's browser, you want jQuery/AJAX for that, not php. (php can serve up the HTML in response to an AJAX request, though) > > thx. > > A. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

Re: [PHP] webform spam prevention

2013-04-04 Thread tamouse mailing lists
On Apr 4, 2013 3:57 AM, "Ashley Sheridan" wrote: > > Captchas are not very accessible. Not only do you often need a near super-human ability to identify the scrawl that's displayed, but if you can't actually see very well to start with (maybe your vision isn't perfect or you can't see at all) then

Re: [PHP] webform spam prevention

2013-04-03 Thread tamouse mailing lists
I'd love to learn how to do that WITHOUT A MOUSE On Wed, Apr 3, 2013 at 8:10 PM, jomali wrote: > On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists > wrote: >> >> These folks might have direction for you: http://textcaptcha.com/really >> >> (And my apologi

Re: [PHP] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread tamouse mailing lists
install.php> >- PHP-FPM Documentation <http://php-fpm.org/wiki/Documentation> > > This question was initially posted on stackoverflow: > > http://stackoverflow.com/questions/15773901/php-fpm-with-apache-2-4-forward-all-request-for-all-virtual-host > > Thank you for your help. > > Saludos, > José Nobile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] webform spam prevention

2013-04-03 Thread tamouse mailing lists
; > Jen Rasmussen > > Web Development Manager | Cetacea Sound Corp. > > 763-225-8465 | www.cetaceasound.com > > > P Before printing this message, make sure that it's necessary. The > environment is in your hands > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread tamouse mailing lists
bout giving feedback to the user. Seemed to me that was exactly what it was about. > Thanks, > Ash > http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread tamouse mailing lists
;> BR georg > > > And apparently new to html as well if you want to use frames still :) > Why not learn "just a little" css and html and develop something more > current that you won't be re-visiting down the road some time and changing? > > > -- > PHP Gen

Re: [PHP] PHP context editor

2013-03-15 Thread tamouse mailing lists
;> > GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 >> > >> >> >> > > > For Linux I quite like KATE, it's part of the KDE stuff. Netbeans is > great as a full-blown IDE, or Geany is quite nice if you need something

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread tamouse mailing lists
On Fri, Mar 15, 2013 at 4:00 PM, Ashley Sheridan wrote: > ** > On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: > > On Fri, Mar 15, 2013 at 3:55 AM, Peter Ford wrote: > > On 15/03/13 06:21, Jim Lucas wrote: > >> > >> On 3/14/2013 4:05 PM, Ma

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread tamouse mailing lists
; To make things clearer. I already have the frames since earlier and >> want to fill then again, so it is not at the "initial filling" of the >> frames >> at "creation". > > > You want one action to change the content in two frames? For that you'll &

Re: [PHP] rather a HTML Q; however 2-FRAME

2013-03-15 Thread tamouse mailing lists
hem; just that they won't validate). Leap the hurdle and start to look at Web 3.0 stuff with backbone.js, twitter's bootstrap, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-14 Thread tamouse mailing lists
On Mar 13, 2013 1:52 PM, "Ashley Sheridan" wrote: > > On Wed, 2013-03-13 at 19:24 +0100, Marco Behnke wrote: > > > Am 13.03.13 12:57, schrieb Gary: > > > ma...@behnke.biz wrote: > > > > > >> Do us all a favor abnd stay away from open source if you do not honor > > >> the work > > >> us wannabes pu

Re: FW: [PHP] Accessing Files Outside the Web Root

2013-03-14 Thread tamouse mailing lists
ntirely non-commercial domain, and I > > provide free hosting for other non-commercial genealogical works, > > primarily pages that are part of the USGenWeb Project, which is perhaps > > the largest of all non-commercial genealogical projects. > > > > readfile() is proba

Re: [PHP] Re: Populate input from another form

2013-03-08 Thread tamouse mailing lists
build hidden form elements on the fly for the form you want to submit, and * then programmatically perform the submit This seems interesting enough that I might do up a tutorial on it when I have some time. Maybe Tedd already has one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 5.4 Help

2013-03-06 Thread tamouse mailing lists
Suggestion: change this line: > ini_set("display_errors", "0"); to this: error_reporting(-1); ini_set('display_errors', true); ini_set('display_startup_errors', true); as a start to see what the failures actually are. If there are syntax errors in the PHP, they will still not be shown, you should vet the source by running it through php -l (lint) to ensure no syntax errors. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange Error calling method of wsdl based SOAP client

2013-03-06 Thread tamouse mailing lists
; Array) > #2 {main} > thrown in /home/toby/public_html/membersuite/- on line 115 > > > The whole store with source code is here: > > http://register.rcsreg.com/r2/membersuite > > Thanks for any help. I've been working on this > for over a month now

Re: [PHP] PHP Web Developer Opportunity

2013-03-06 Thread tamouse mailing lists
ison Garcia >> wrote: >> > -snip- >> > What are you offering? >> > >> > $2/hr. >> > >> > Oh, It's not Friday.. >> >> Is it more on Friday? >> >> Friday is the time for jokes on this list, right? For you, one dollar on Friday. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 5:55 PM, tamouse mailing lists wrote: > On Tue, Mar 5, 2013 at 12:42 PM, Barry Smith wrote: >> I know less about WordPress than I do about Joomla, but I did notice a >> template site that I cannot find any support for (cool templates) which >> sup

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-03-05 Thread tamouse mailing lists
c 704-497-4217 > e scs.bns...@gmail.com > > On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists > wrote: >> >> Have you considered setting this up in wordpress? >> >> > I'm not familiar with Charter as an ISP, or what they offer. I'm guessing

Re: [PHP] Re: Open form in new window

2013-03-05 Thread tamouse mailing lists
On Tue, Mar 5, 2013 at 8:37 AM, Jim Giner wrote: > On 3/4/2013 11:04 PM, tamouse mailing lists wrote: >> >> I would like to just take a step back and ponder what the user >> experience of this will be. Click a submit button, one of *many* as >> the OP says, and a new br

Re: [PHP] Re: Open form in new window

2013-03-04 Thread tamouse mailing lists
nding, I am urging the OP to consider their users. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Not counting my own page visits

2013-03-04 Thread tamouse mailing lists
sterly Love. >> >> > > > Not just that, but if you set a cookie, you won't be able to retrieve it > in the same script I believe. It's only available in the $_COOKIES array > once you refresh the page, as that's when the super global is populated > from the cookie data that the browser sends. > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > Same script *invocation*. The cookie gets set when the response is sent back to the client. If the client calls the same script again, that cookie then uploaded. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Joining fixed text to a SUBJECT variable

2013-03-02 Thread tamouse mailing lists
ase, nothing. The way this is set up, the following would be proper setup: $AdditionalParms = "From: \"$Name\" <$EmailAddress>\r\n"; Then: $success = mail ($EmailTo, $Subject, $Body, $AdditionalParms); The escaped quotes around $Name allow for such things as non-alnum

Re: [PHP] Introduction ... !

2013-03-02 Thread tamouse mailing lists
#x27;t really call yourself old until that's pooping and cramping... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Holding "datetimes" in a DB.

2013-03-01 Thread tamouse mailing lists
world in different timezones, then it would be easier to interchange data. > Otherwise, stick with ur local timezone and it will save you a lot of > unneeded timezone conversions probably. > > - Matijn This may be just me, but I've always preferred my servers, database, and such

Re: [PHP] Introduction ... !

2013-03-01 Thread tamouse mailing lists
it > will likely be the same again. No guarantees, but all it takes is a > bit of fostering of the community to return it to a decently-vibrant > forum. > > -- > > Network Infrastructure Manager > http://www.php.net/ > > -- > PHP General Mailing List (http://ww

Re: [PHP] Close enough to Friday...

2013-03-01 Thread tamouse mailing lists
On Thu, Feb 28, 2013 at 9:59 PM, Adam Richardson wrote: > On Thu, Feb 28, 2013 at 10:19 PM, tamouse mailing lists > wrote: >> >> Congratulations on ditching the Dreamweaver Templates! >> >> Now, as to preprocessing: how does this benchmark out? Have you >>

Re: [PHP] Close enough to Friday...

2013-02-28 Thread tamouse mailing lists
;m trying to save some money and I don't want to upgrade to the next > version :) > > Happy Friday! > > Adam > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Congratulations on ditching the Dreamweav

Re: [PHP] Stupid question

2013-02-27 Thread tamouse mailing lists
On Wed, Feb 27, 2013 at 2:42 AM, Sebastian Krebs wrote: > 2013/2/27 tamouse mailing lists >> Well, *I* have a stupid question: is $lhv =& expr the same as $lhv = &expr >> ?? > > Yes :) Because an operator "=&" doesn't exists, thus the l

Re: [PHP] Arrays

2013-02-26 Thread tamouse mailing lists
different per specialservice. >>> >>> TIA, >>> >>> Best, >>> >>> Karl DeSaulniers >>> Design Drumm >>> http://designdrumm.com >>> >>> >> >> This will never work. Your last array will always overwrite your previous >>

Re: [PHP] Stupid question

2013-02-26 Thread tamouse mailing lists
w{'product_Quantity'}, $_u_id); >> $_getSubTotal += $_pdetail->_subTotal; >> $_counter++; >> } >> } >> >> I'm getting: Call to undefined method MDB2_Error::fetchrow() >> >> anyone have any ideas? Can I not pass a database handle to a f

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-02-26 Thread tamouse mailing lists
alls footer. > > Does that structure make sense? > > Are there gotchas, things to "verify" and "watch out for" that you have run > into doing similar projects? > > As a past for this design procedure, I worked on a "sales agent" site years > ago that did a similar "build each page dependent on logged.in.user" ... > but the control for this project is not logged.in.user in this project... > the control is page.being.built . > > Thank you for the input, and any links to online articles that I should > probably read, or topics that I should make sure I understand completely in > php. > > Peace, > -- > Barry Smith > c 704-497-4217 > e scs.bns...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Big File Upload how to catch stream

2013-02-25 Thread tamouse mailing lists
stream and handle > it ? > I've looked at the rfc1867.c file implementation and it seems that this is > where the memory goes really up. Is there a way we could change this ? > > Kind Regards > Wim Maybe look at http://stackoverflow.com/questions/10961538/uploading-very-la

Re: [PHP] File Upload MultiPart

2013-02-24 Thread tamouse mailing lists
ream and handle > it ? > I've looked at the rfc1867.c file implementation and it seems that this is > where the memory goes really up. Is there a way we could change this ? > > Kind Regards > Wim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, vi

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-02-22 Thread tamouse mailing lists
;t want to do > this, but she insists. If I put their articles into a ./articles/ > directory, and give them the extension .article, I can set up a Windows > Explorer folder shortcut to the ./articles/ directory, and install > Notepad+ on her computer, and define .article to only

Re: [PHP] parsing select multiple="multiple"

2013-02-21 Thread tamouse mailing lists
ed to trigger an error message when the coder forgot to use the > double equal sign (==) in the statement. I haven't adopted it yet, but I > think that's the sole reason for it. Basically you can't make an assignment > (=) to a constant or some non-variable target. That sound

Re: [PHP] parsing select multiple="multiple"

2013-02-20 Thread tamouse mailing lists
On Tue, Feb 19, 2013 at 1:02 PM, John Taylor-Johnston wrote: > > tamouse mailing lists wrote: >>> >>> >I hate arrays. :D >> >> Here's a small snippet showing how it works, I hope: >> >> foreach ($DPRpriority as $item => $value) { >&

Re: [PHP] phpinfo()

2013-02-20 Thread tamouse mailing lists
On Wed, Feb 20, 2013 at 1:31 PM, Stuart Dallas wrote: > -Stuart > > -- > Sent from my leaf blower > -- Did you get the 4G model, or is this just the WiFi version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread tamouse mailing lists
e", 'selected' => false), array('name' =>"Alarms", 'selected' => false)); echo "Initial value of DPRpriority:\n"; foreach ($DPRpriority as $item => $value) { echo " ".$item.": ".$value['name']." selected: ".$value['selected']." \n"; } echo "\n"; if (count($_POST) > 0) { // something was posted: echo "\$_POST:\n"; var_dump($_POST); echo "\n"; echo "Items selected:\n"; foreach ($_POST['DPRType'] as $item) { $DPRpriority[$item]['selected'] = true; echo "".$item.": ".$DPRpriority[$item]['name']."\n"; } echo "\n"; echo "Final value of DPRpriority:\n"; foreach ($DPRpriority as $item => $value) { echo " ".$item.": ".$value['name']." selected: ".$value['selected']." \n"; } echo "\n"; } ?> $value) { ?> > (gist link: https://gist.github.com/tamouse/4982630 ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing select multiple="multiple"

2013-02-18 Thread tamouse mailing lists
ance / > Medical > 4. Crimes Against > Property > 5. Accidents / > Traffic Problems > 6. Suspicious > Circumstances > 7. Morality / > Drugs > 8. Miscellaneous > Service > 9. Alarms >

Re: [PHP] OOP to run sequential SQL queries?

2013-02-17 Thread tamouse mailing lists
; while an experience PHPer might be able to do the same procedurally. It doesn't mean either one is better than the other. Only putting it into play and actually measuring it will do that. Stumbling over how best to do something is very often less optimal than just implementing and seeing for yourself. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-09 Thread tamouse mailing lists
sing Apache as a general purpose server, nginx+php-fpm is really ideal for large scale php applications. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Integer

2013-02-01 Thread tamouse mailing lists
On Fri, Feb 1, 2013 at 11:27 PM, tamouse mailing lists wrote: > On Fri, Feb 1, 2013 at 10:40 PM, Ron Piggott > wrote: >> In the following the “2.” means a moderator response and “25” is the account >> # of the moderator. >> >> > >> $author = 2.000

Re: [PHP] Integer

2013-02-01 Thread tamouse mailing lists
27;2.00025',$matches)) { php { $author = Array('account' => $matches[2], 'response' => $matches[1]); php { } php > // else handle error if need be php > var_dump($author); array(2) { ["account"]=> string(2) "25" ["response"]=> string(1) "2" } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web User Management

2013-01-30 Thread tamouse mailing lists
> > > 2 Any thoughts, lessons learned from more senior programmers, I'm >> fairly >> > > new with PHP. >> > >> > Think about security issues like encrypted transfer of passwords, >> sessions >> > hijacking, sql injection, sessions without cookies and stuff like that. >> > I'd recommend Symfony, or, well Drupal, even, depending on what you've got to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread tamouse mailing lists
the permissions on client.py to make sure it as well as the requisite paths to get to the script are readable and executable by the user running your webserver, or alternatively, your php scripts if running something like fcgi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread tamouse mailing lists
On Fri, Jan 18, 2013 at 9:26 PM, tamouse mailing lists wrote: > On Fri, Jan 18, 2013 at 9:43 AM, Daniel Brown wrote: >> On Fri, Jan 18, 2013 at 10:33 AM, KISE wrote: >>> Paul Dragoonis, >>> >>> Actually it wont work i did tried it before, if the dir end wit

Re: [PHP] Re: [PHP-DEV] new FTP function

2013-01-18 Thread tamouse mailing lists
t; } Haven't played with ftp functions at all, but wondering what if you gave it dirname($currentDir) instead of $currentDir? (Still have to do the trailing '/'-ectomy) $list = ftp_nlist($conn, dirname($currentDir)); untested, just a thought. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP programming a members only access site

2013-01-13 Thread tamouse mailing lists
hacker news to see what sorts of exploits are out there in the world. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread tamouse mailing lists
forward, better ways should not have been found. Maybe you want to do your computing using pebbles, too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear Page2

2013-01-05 Thread tamouse mailing lists
generate different flavours of (X)HTML, it may not be worth going the full-programmatic route like Page2 does. Internationalization is a pretty complex thing in and of itself (language preference detection, message catalog management, localized formatting, etc) that to also make the other parts of

Re: [PHP] Pear Page2

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 8:18 PM, Silvio Siefke wrote: > Is there something similar to Pear/Page2 module, that can working with HTML5? Would phptal be of use? http://phptal.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 4:25 PM, Sebastian Krebs wrote: > 2013/1/4 tamouse mailing lists > >> On Fri, Jan 4, 2013 at 1:56 AM, Sebastian Krebs >> wrote: >> > 2013/1/4 tamouse mailing lists >> >> Bit operators are not comparing values, they're CO

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 1:56 AM, Sebastian Krebs wrote: > 2013/1/4 tamouse mailing lists >> Bit operators are not comparing values, they're COMBINING values. > > Technically spoken they're comparing bits, whereas boolean operators does > the same, but treaten every

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread tamouse mailing lists
stead of fopen and fread, I have simpler code and > PHP evaluates the embedded variables in $markup without any need to use > string functions. While using the *_once works in many cases, if you're doing a mass mailing kind of thing, you want to use the standard include/require so you c

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread tamouse mailing lists
o a group of users, just slick as anything. include does basically just what your print_greeting function does less the actual printout, but using php variables instead of a str_replace. Also, this way the templates can be stored elsewhere, outside the actual code base if need be. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread tamouse mailing lists
al data base bits in the data base itself. But you can see how complex it gets. At any rate, I hope you have a fair bit of experience in building dynamic internet sites already, this is not going to be easy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-22 Thread tamouse mailing lists
101 s[15] : ' ' 32 s[16] : 'd' 100 s[17] : 'o' 111 s[18] : 'w' 119 s[19] : 'n' 110 s[20] : ' ' 32 s[21] : 't' 116 s[22] : 'o' 111 s[23] : ' ' 32 s[24] : 't' 116 s[25] : 'h' 104 s[26

Re: [PHP] Noobie starting to learn OOP for databases needs help

2012-12-17 Thread tamouse mailing lists
alues where you won't sent it through prepare/execute/bind, and just suck in the value and return it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Sat, Dec 15, 2012 at 11:22 AM, Jim Giner wrote: > On 12/15/2012 8:29 AM, tamouse mailing lists wrote: >> >> On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: >>> >>> >>> Thanks for all the posts. After reading and googling all

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Sat, Dec 15, 2012 at 11:21 AM, Jim Giner wrote: > On 12/15/2012 8:26 AM, tamouse mailing lists wrote: >> >> On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: >>> >>> >>> Thanks for all the posts. After reading and googling all

Re: [PHP] Formatting -- defining sections of code

2012-12-15 Thread tamouse mailing lists
;, since it's easy to search for). But it occurs to me to > wonder; IS there a standard for this? Most likely, the programming > world being what it is, there either isn't one or there are lots of > competing standards, but I'd be interested to know... > > Tha

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
On Dec 15, 2012 7:29 AM, "tamouse mailing lists" wrote: > > > On Dec 13, 2012 4:50 PM, "Jim Giner" wrote: > > > > Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is: > > > > Create two macr

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
rint' the .doc as a pdf instead of using the Word's "File,Save as", the resulting pdf is only 70kb. Might need a new macro!) > PDF might be better looking than this, but how big is an HTML doc exported from Word? > Thanks again! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

Re: [PHP] storing & searching docs

2012-12-15 Thread tamouse mailing lists
ly 5kb in .txt format. (actually, if I 'print' the .doc as a pdf instead of using the Word's "File,Save as", the resulting pdf is only 70kb. Might need a new macro!) > > Thanks again! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

Re: [PHP] Session ?

2012-12-07 Thread tamouse mailing lists
me problem with a missing session var. Is > there a corresponding line I need in the 'called' script? And does it > matter where this line is place within the script? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/un

Re: [PHP] how to read emails with php

2012-12-05 Thread tamouse mailing lists
ment ) with >>> >> php >>> >> i use imap_php but its wont connect to host >>> >> what should i do? >>> >> thanx >>> >>> > >>> >Start by finding out why it won't connect. Check the logs on the >>> > server

Re: [PHP] Re: shared memory on php servers?

2012-12-05 Thread tamouse mailing lists
On Tue, Dec 4, 2012 at 7:02 AM, Alessandro Pellizzari wrote: > Il Tue, 04 Dec 2012 11:49:22 +0100, rene7705 ha scritto: > >> I'm wondering, what's the fastest way to put a large and deep array() >> structure in shared memory on a PHP server? > > Using MongoDB

  1   2   3   4   5   >