Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread tamouse mailing lists
Are you looking to use sockets? That's the only thing I can think of when you speak of binding to an ip address/port... http://php.net/manual/en/book.sockets.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fwd: [PHP-DB] Prepared Statements - Search

2012-09-13 Thread tamouse mailing lists
Crud, forgot to include list. -- Forwarded message -- From: tamouse mailing lists Date: Thu, Sep 13, 2012 at 10:31 PM Subject: Re: [PHP-DB] Prepared Statements - Search To: erosenb...@hygeiabiomedical.com On Thu, Sep 13, 2012 at 7:09 PM, Ethan Rosenberg, PhD wrote: > D

Re: [PHP] PHP Threading on Windows

2012-09-13 Thread tamouse mailing lists
in32_create_service(array( > 'params' => __FILE__." install", > 'service' => 'Name_of_the_service', > 'display' => 'Name of service to be displayed in the service list' > )); > > Any windows php developers

Re: [PHP] bucle while for to msqyl

2012-09-16 Thread tamouse mailing lists
On Sun, Sep 16, 2012 at 5:08 PM, El Ale... wrote: > > $conexion = mysql_connect("localhost", "usuario", "123456"); > mysql_select_db("probando", $conexion); > > function updateNumero() { > > $queEmp = "SELECT n FROM numero WHERE n LIKE 1"; > $resEmp = mysql_query($queEmp, $conexion) o

Re: [PHP] Re: PHP Bounce messages

2012-09-21 Thread tamouse mailing lists
not that I mail that often) just to the > list, if possible. Why would I do anything else? I believe Lester is referring to the behaviour of the Reply-To: field sent by the list serv, which is the sender's address. Some other listservs put the list reply address in Reply-To: -- PHP General Ma

Re: [PHP] Day after Friday

2012-09-23 Thread tamouse mailing lists
Leaps and bounds of illogic. > > This is just another example of how administration makes decisions. It would > be nice if administration decisions were made with respect to "what is best > for the student" as compared to this type of nonsense. > > Cheers, > > tedd > > _ > t...@sperling.com > http://sperling.com Oh, Administrators!! The bane of teachers everywhere. The anti-teacher. Maybe you could slip a little PHP in on the Java kids... :) Unfortunately, I have no Java list resources... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread tamouse mailing lists
ts, etc… again, > use the right tool for the job. When all you have is a hammer, everything is > a nail. Build a toolbox. ;-) > > From: AmirBehzad Eslami [mailto:behzad.esl...@gmail.com] > Sent: Monday, September 24, 2012 12:47 PM > To: Daevid Vincent > Cc: PHP General Mailing

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread tamouse mailing lists
the phpMyAdmin package that allows an attacker to > arbitrarily execute code on a server hosting the exploitable package. > Obligatory (not intentionally self-serving) social media link here: > > https://twitter.com/oidk/status/250688002005811200 > Signal boosting..

Fwd: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-26 Thread tamouse mailing lists
Crikey, forgot to include the list. -- Forwarded message -- From: tamouse mailing lists Date: Wed, Sep 26, 2012 at 1:57 AM Subject: Re: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file To: edward eric pedersson On Fri, Sep

Re: [PHP] Responding to an XML data post

2012-09-27 Thread tamouse mailing lists
t; site > > If it's an actual postback, they should've given you an API > endpoint for you to do a cURL post back to their side. If not, and > they're just expecting an XML response, it could be that your XML is > improperly formatted. > > -- > > Network

Re: [PHP] generate a thumbnail with imagick and place a logo on top

2012-10-03 Thread tamouse mailing lists
https://dl.dropbox.com/u/13712643/Case_Study1.jpg > <http://95.119.206.251/Case_Study1.jpg> > > The code I have produced so far: http://pastebin.com/74CYC972 > <http://pastebin.com/74CYC972> > > Thank you for your help. > > All the best, > Andreas Have you trie

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
name($row['MLS_No']); When your loop contains nothing but the return $filename, it doesn't matter how many entries are in your array, you are telling the function to return with the first one in the array, no matter what. If you modify it thusly: function completeImageFilename($

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
doing things incorrectly. If you do try to make things work this way and it actually works, you have gotten lucky, but are still doing it incorrectly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 10:03 PM, tamouse mailing lists wrote: > On Wed, Oct 3, 2012 at 9:57 PM, David McGlone wrote: >> Absolutely. I also think I learned that return can also work like echo if the >> code is written correctly. > > > No, no, no. Return does NOT do the

Re: [PHP] Re: limiting

2012-10-09 Thread tamouse mailing lists
> Cheers -- Tim >> > > Thanks Tim! Should have mentioned the URL indeed. > Don't forget that if you want to find the manual page for a function fast, try > http://www.php.net/ > where is the name you're looking for, so for example > for return, you could use

Re: [PHP] Re: limiting

2012-10-10 Thread tamouse mailing lists
gt;>>>> time I *had* to use Pascal as that was the only option, I simply put a >>>>> 999: >>>>> label at the end of the function and did goto 999 wherever I wanted to >>>>> do a >>>>> return. Simples! >>>> >>>> >>>> goto was the thing that got on my nerves. Even to this day I hate that >>>> word >>>> with a passion. >>>> >>>> >>> >>> >>> I think most people do, all but BASIC purists! >>> >> >> Not really, goto can safe you a mess. In some situations it's much >> easier and cleaner to use something like goto cleanup; at each error >> case, instead of duplicating the cleanup code all over again (Closing >> sockets, or in languages like C, freeing memory). >> >> - Matijn >> > haven't used a goto or go in 30 years. > > It's the whence command that will get you every time (aka "comesfrom"). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread tamouse mailing lists
a public list. Likewise, if you can point me to a source >>> >>> of >>>> >>>> quickly absorbable research on the subject. I frankly don't know how >>> >>> I'd >>>> >>>> google such a thing. >>>> >&

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread tamouse mailing lists
On Sun, Oct 14, 2012 at 10:48 AM, Jim Giner wrote: > On 10/14/2012 1:10 AM, tamouse mailing lists wrote: >> >> This just dropped in my inbox the other day from Smashing #69: >> >>> 2. PHP The Right Way >>> >>> If you are developing for the Web, the

Re: [PHP] foreach

2012-10-16 Thread tamouse mailing lists
n you are done with the current result set: $result->closeCursor(); (not all dbms drivers have this limitation, but defensive coding is defensive.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach

2012-10-17 Thread tamouse mailing lists
ou could be looking for a lot of trouble. > I skipped mysqli entirely and went straight to PDO when it became available. This might be the source of your bias. That said, I use PDO now all the time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Table help needed

2012-10-19 Thread tamouse mailing lists
.$row[field1]."".$row[field2]."".$row[field3]."< > /TD> > } > Echo ""; > } Surprised no one else has jumped on the "Don't use mysql anymore" thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
a@caesar:~$ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
e >> to collect it. >> >> Alternatively, and this is the most simple way; since you're asking people >> for their country and such, simply also ask them about their timezone. Don't >> bother automating and putting a heck of a lot of time into hard to realize >> solutions, when you can ask a very simple and easy-to-answer question to the >> browser instead. :) >> >> - Tul >> > > Don't forget that some countries have DST, and some don't. And those > that have DST, all use different dates.. So in to keep a static > database you would also need to have DST info from all countries. > > - Matijn Using the standard labels in /usr/share/zoneinfo should be able to avoid having to keep track of who is and isn't in DST, *provided* you find a way to map the user's address to one of those files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:18 PM, Karl DeSaulniers wrote: > On Oct 21, 2012, at 5:11 PM, tamouse mailing lists wrote: >> Using the standard labels in /usr/share/zoneinfo should be able to >> avoid having to keep track of who is and isn't in DST, *provided* you >> fi

Re: [PHP] Free LAPP stack

2012-10-21 Thread tamouse mailing lists
ow much is needed for the data base? or? If you are looking to embed a small, low-volume web server+database+php, you could look at using lighttpd+fastcgi+php+sqlite3. ... and let the flames commence! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-25 Thread tamouse mailing lists
h is the > same as calling system on its parameter. > > ie: > `ls -l` > is equal to writing > shell_exec('ls -l') > > ( http://www.php.net/manual/en/language.operators.execution.php ) I have "lost" the backtick operator so many times, I've stopped using it, using shell_exec instead. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: list of places to learn programming online

2012-10-30 Thread tamouse mailing lists
Fascinating. This kicked off the spam blocker On Tue, Oct 30, 2012 at 7:38 PM, tamouse mailing lists wrote: > This just hit my inbox from another source. I haven't had any time to > vet the list, but here is the link to the post: > > < thenextweb DOT com/dd/2012/10/21

Re: [PHP] ZendCodeAnalyzer oddity

2012-10-31 Thread tamouse mailing lists
1.2.2 > > thnx, > Christoph I'm not sure why ZendCodeAnalyzer would think that's an error. Maybe try: ${var}::factory(); and see if it still dislikes it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating an Advanced Form

2012-11-02 Thread tamouse mailing lists
those things, try echoing out the $sqlSearch string to see how that ends up looking. You may be surprised. Other than that, there is so much wrong here I don't quite know where to begin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pear Mail - Trap for errors?

2012-11-14 Thread tamouse mailing lists
ame,'password' => $password)); I'd suggest putting a check here to see if $smtp is a PEAR::Error object as well: if (PEAR::isError($smtp)) { echo ("" . $smtp->getMessage() . ""); // die or return or skip the next part, whatever } else { > $mail = $smtp

Re: [PHP] Pear Mail - Trap for errors?

2012-11-16 Thread tamouse mailing lists
085385 for test output and code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread tamouse mailing lists
er, perhaps. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread tamouse mailing lists
On Sat, Nov 17, 2012 at 3:13 PM, Sebastian Krebs wrote: > 2012/11/17 Andrew Ballard > >> On Nov 16, 2012 10:24 PM, "tamouse mailing lists" >> wrote: >> > Just a tad obscure for someone coming along >> > later >> >> Without knowing

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread tamouse mailing lists
me time, with examples known in software engineering, user interface design, and even real-world objects, It's been in the Patterns wiki for ages: http://c2.com/cgi/wiki?PrincipleOfLeastAstonishment . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables with - in their name

2012-11-18 Thread tamouse mailing lists
encapsulate the variables in braces? > > Thanks, > Ash > http://www.ashleysheridan.co.uk > > Agreed. >From http://www.php.net/manual/en/language.variables.basics.php : "Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores." The ${var} circumvents this (somewhat), but in the case above, it would be better to avoid the dashes and use underscores. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] globbed includes?

2012-11-19 Thread tamouse mailing lists
On Nov 18, 2012 3:03 PM, "Adam Richardson" wrote: > > On Sun, Nov 18, 2012 at 3:29 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > > There are certain times I'd like to include all files in a given > > directory (such as config

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
f code, I wonder if no one thinks it's such a big deal to just write it over and over again. Basically it's handled pretty much entirely in SQL rather than PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 4:09 PM, tamouse mailing lists wrote: > On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini wrote: >> Hello, >> I am going to write a PHP page to allow the client to upload a CSV file and >> assign each column to one or more fields of a mysql table. Q

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 4:11 PM, tamouse mailing lists wrote: > On Tue, Nov 27, 2012 at 4:09 PM, tamouse mailing lists > wrote: >> On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini wrote: >>> Hello, >>> I am going to write a PHP page to allow the client to upload

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

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] 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] 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] 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
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] 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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 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] 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: 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: 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: [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] 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] 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] 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

<    1   2   3   4   5   >