Re: [PHP] IF stream lining

2011-07-14 Thread tamouse mailing lists
That's already pretty streamlined... On Jul 13, 2011 11:22 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Is there a way to stream line this: if ( ( $val with ) AND ( $val from ) ) { Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info

Re: [PHP] Dealing with multiple form submissions

2011-08-24 Thread tamouse mailing lists
On Wed, Aug 24, 2011 at 3:46 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I solved this issue with timestamps stored in the db with the submission. This seems like the one sure way to control it. Cookies can be denied, session can be reset, js methods can be noscripted, etc. -- PHP

[PHP] Dreaded Premature end of script headers

2011-08-25 Thread tamouse mailing lists
I'm encountering this on a script, but I can't figure out where it's actually failing. How do I debug this problem??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 2:17 AM, Кирилл bestestm...@gmail.com wrote: Actually i think you outputing something in script, before you use headers - there are several solutions: 1)make your headers functions at the top of your script 2)if there is no any output - you should look for invisible

Re: [PHP] Re: Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 7:41 AM, David Robley robl...@aapt.net.au wrote: tamouse mailing lists wrote: I'm encountering this on a script, but I can't figure out where it's actually failing. How do I debug this problem??? Look first for unclosed curly braces {} The script passes all syntax

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 8:03 AM, Stuart Dallas stu...@3ft9.com wrote: On 26 Aug 2011, at 06:56, tamouse mailing lists wrote: I'm encountering this on a script, but I can't figure out where it's actually failing. How do I debug this problem??? Make sure you have error_reporting set to E_ALL

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 8:06 AM, John Black s...@network-technologies.org wrote: On 26.08.2011 07:56, tamouse mailing lists wrote: I'm encountering this on a script, but I can't figure out where it's actually failing. How do I debug this problem??? What does you log say? The log says what

Re: [PHP] Re: Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 7:59 AM, Richard Riley rile...@googlemail.com wrote: tamouse mailing lists tamouse.li...@gmail.com writes: I'm encountering this on a script, but I can't figure out where it's actually failing. How do I debug this problem??? Depends on what you mean by script

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 1:42 PM, Geoff Shang ge...@quitelikely.com wrote: I put this into Google and got this: http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php#premature Yeah, I saw that too. I do know the mechanism that is happening. I just can't

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread tamouse mailing lists
On Fri, Aug 26, 2011 at 6:48 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Aug 26, 2011 at 1:42 PM, Geoff Shang ge...@quitelikely.com wrote: I put this into Google and got this: http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread tamouse mailing lists
On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings rob...@interjinn.com wrote: I'm a big fan of editors that work in the terminal. You'll get my emacs when you pry it out of my cold dead hands. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread tamouse mailing lists
On Tue, Sep 13, 2011 at 7:56 PM, James Yerge ja...@nixsecurity.org wrote: I'd have to go agree with the exception of s/emacs/vi/ :P invoke(EditorChoiceReligiousArgument); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread tamouse mailing lists
On Wed, Sep 14, 2011 at 11:52 AM, Paul M Foster pa...@quillandmouse.com wrote: BTW, my big beef with online editors is latency, and it's a *huge* problem, as far as I'm concerned. Ultimately this is why I wrote blog software for myself which requires you to compose and edit your posts locally,

Re: [PHP] XML enabled but not working

2011-09-15 Thread tamouse mailing lists
On Thu, Sep 15, 2011 at 3:20 PM, Matthew Pounsett m...@conundrum.com wrote: echo ? print xml_parser_create(''); ? | php Not anything to do with the problem, but you can just write: php -r print xml_parser_create(''); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Fwd: [PHP] Bug?

2011-09-15 Thread tamouse mailing lists
Hit reply instead of reply-all /o\ -- Forwarded message -- From: tamouse mailing lists tamouse.li...@gmail.com Date: Thu, Sep 15, 2011 at 4:39 PM Subject: Re: [PHP] Bug? To: Igor Escobar titiolin...@gmail.com On Thu, Sep 15, 2011 at 4:07 PM, Igor Escobar titiolin...@gmail.com

Re: [PHP] Re: Repetitive answers . . .

2011-09-16 Thread tamouse mailing lists
On Thu, Sep 15, 2011 at 8:31 PM, Joshua Stoutenburg jehoshu...@gmail.com wrote: // I hope everyone finds this more humorous than offensive. My baboon is offended. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What would you like to see in most in a text editor?

2011-09-16 Thread tamouse mailing lists
On Wed, Sep 14, 2011 at 5:07 PM, Jonesy gm...@jonz.net wrote: On Wed, 14 Sep 2011 14:08:09 +0100, Richard Quadling wrote: On 14 September 2011 13:18, Tim Streater t...@clothears.org.uk wrote: On 14 Sep 2011 at 12:40, Richard Quadling rquadl...@gmail.com wrote: On 14 September 2011 01:23,

Fwd: [PHP] Help on number matching function

2011-09-17 Thread tamouse mailing lists
Notice: This communication, including attachments, may contain information that is confidential. It constitutes non-public information intended to be conveyed only to the designated recipient(s). If the reader or recipient of this communication is not the intended recipient, an employee or

[PHP] Installing extensions

2011-09-18 Thread tamouse mailing lists
I'm having a bit of trouble installing PHP extensions. I have the following in php.ini: extension_dir = .:/usr/local/lib/php/extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626 In /usr/local/lib/php/extensions/no-debug-non-zts-20090626, i have the following: -rwxr-xr-x 1 root

Re: [PHP] Installing extensions

2011-09-18 Thread tamouse mailing lists
On Sun, Sep 18, 2011 at 4:22 PM, Gregor Mitzka gregor.mit...@online.de wrote: Why don't you use MacPorts? There you can extension in a quite simple way. Gregor Mitzka I DID use MacPorts! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing extensions

2011-09-18 Thread tamouse mailing lists
On Sun, Sep 18, 2011 at 4:36 PM, Benjamin Hawkes-Lewis bhawkesle...@googlemail.com wrote: On Sun, Sep 18, 2011 at 8:21 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: I'm having a bit of trouble installing PHP extensions. I have the following in php.ini:  extension_dir = .:/usr

Re: [PHP] Installing extensions

2011-09-20 Thread tamouse mailing lists
On Mon, Sep 19, 2011 at 9:03 AM, Daniel Brown danbr...@php.net wrote:    You have to add the extensions to your php.ini file, Yeah, did that, still not working. and - if using them on the web - remember to restart Apache. Using lighty and fastcgi. -- PHP General Mailing List

Fwd: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
Forgot to include list... -- Forwarded message -- From: tamouse mailing lists tamouse.li...@gmail.com Date: Wed, Sep 28, 2011 at 4:06 PM Subject: Re: [PHP] Curl cost To: muad shibani muad.shib...@gmail.com On Wed, Sep 28, 2011 at 3:28 AM, muad shibani muad.shib...@gmail.com wrote

Re: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
On Wed, Sep 28, 2011 at 4:06 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Sep 28, 2011 at 3:28 AM, muad shibani muad.shib...@gmail.com wrote: what are the costs of using PHP Curl to show another websites on my site as stumbleon do .. traffic, memory or what? If you use

Re: [PHP] using passthru or system() even and passing the $_FILES array

2011-09-28 Thread tamouse mailing lists
On Wed, Sep 28, 2011 at 10:52 AM, Jim Lucas li...@cmsws.com wrote: On 9/28/2011 12:07 AM, Anton Heuschen wrote: $command = '/usr/bin/php -f /var/www/details/Write.php '.$email.' '.$actionDate.' '.$files.' php.log'; system($command,$return); At this point I would suggest that you echo

Re: [PHP] Problem with code...

2011-10-06 Thread tamouse mailing lists
On Thu, Oct 6, 2011 at 7:28 PM, Jason Pruim li...@pruimphotography.com wrote: Have a question about this block of code I'm not seeing anything immediately standing out as a problem. Sometimes... It is dropping the last $mailmessage line... The payment method in the actual email it

Fwd: [PHP] Problem with code...

2011-10-06 Thread tamouse mailing lists
On Thu, Oct 6, 2011 at 7:28 PM, Jason Pruim li...@pruimphotography.com wrote: Have a question about this block of code I'm not seeing anything immediately standing out as a problem. Sometimes... It is dropping the last $mailmessage line... The payment method in the actual email it

Re: [PHP] Server Side Include translator as PHP functions

2011-10-11 Thread tamouse mailing lists
On Sat, Oct 8, 2011 at 10:36 AM, Complex complex.confus...@gmail.com wrote: Can you please tell me if there's already a set of PHP functions for translating SSI commands to PHP? I'm looking to do two things -- one difficult, one easy -- using PHP on a hosted server. I can't believe that this

Re: [PHP] Server Side Include translator as PHP functions

2011-10-11 Thread tamouse mailing lists
On Sun, Oct 9, 2011 at 12:36 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Oct 9, 2011, at 11:41 AM, Complex wrote: Tedd, The crucial detail you're lookign for is my lack of choice or control in the matter, for all sorts of reasons that are actually quite stupid but not possible for

Re: [PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70

2011-10-14 Thread tamouse mailing lists
On Thu, Oct 13, 2011 at 5:08 PM, Daevid Vincent dae...@daevid.com wrote: #include stdio.h int main() {       printf(R.I.P. Dennis Ritchie: 1941-2011\n);       return 0; } http://www.networkworld.com/news/2011/101311-ritchie-251936.html dmr--; /* :-( */ -- PHP General Mailing List

Re: [PHP] starting php by asking basic questions

2011-10-16 Thread tamouse mailing lists
On Sun, Oct 16, 2011 at 10:34 AM, Govinda govinda.webdnat...@gmail.com wrote: i want to learn php and i do not know much and my english is also limited.isthere anyone who can explain me php by most simple example,like explainig to a child,something like this:if you put this symbol or writing,

Re: [PHP] Seeking strategy/algorithm for maintaining order of records

2011-10-16 Thread tamouse mailing lists
In Sat, Oct 15, 2011 at 7:57 PM, Stephen stephe...@rogers.com wrote: I am building a site for my photography. Cool! The photographs are displayed by category. The category table has a field for order In my control panel I want to be able to change the order of the categories by changing

Re: [PHP] Seeking strategy/algorithm for maintaining order of records

2011-10-20 Thread tamouse mailing lists
On Sun, Oct 16, 2011 at 2:26 PM, Jim Giner jim.gi...@albanyhandball.com wrote: tamouse mailing lists tamouse.li...@gmail.com wrote in message news:cahuc_t8icx4y4mca05rrgzopv4ze7hwsndaiyjjmdvbambv...@mail.gmail.com... In Sat, Oct 15, 2011 at 7:57 PM, Stephen stephe...@rogers.com wrote: \label

Re: [PHP] Friday Distraction

2011-10-23 Thread tamouse mailing lists
On Fri, Oct 21, 2011 at 12:38 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Oct 21, 2011, at 12:27 PM, Daniel Brown wrote:    I'll get this week's Friday distraction kicked off here with something shared with me by a Facebook friend.  If you're on Facebook, try this.  It's pretty sweet

Re: [PHP] Friday Distraction

2011-10-23 Thread tamouse mailing lists
On Sat, Oct 22, 2011 at 12:22 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: Personally, I find little interest in the new social media. In addition, I often find it annoying and even presumptuous of people who post things and in-turn expect me to acknowledge and respond to their post. It's

Re: [PHP] Friday Distraction

2011-10-23 Thread tamouse mailing lists
On Fri, Oct 21, 2011 at 4:27 PM, Christopher Lee ct...@ucensys.com wrote: This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the

Re: [PHP] Exporting large data from mysql to html using php

2011-10-24 Thread tamouse mailing lists
On Mon, Oct 24, 2011 at 7:50 PM, Jason Pruim li...@pruimphotography.com wrote: I have about 89 million records in mysql... the initial load of the page takes 2 to 3 minutes, I am using pagination, so I have LIMIT's on the SQL query's... But they just aren't going fast enough... What I would

Re: [PHP] array_unique by id multi-dimensional array

2011-10-27 Thread tamouse mailing lists
On Thu, Oct 27, 2011 at 10:31 AM, Tontonq Tontonq root...@gmail.com wrote: i have an array like  [0] = Array ( [likes] = 113091  [name] = blabla  [access_token] = AAABZCTx [id] = 188206217874932 )  [1] = Array ( [likes] = 113091 [name] = blabla [access_token] =   AAABZCTz [id] =

Re: [PHP] Placing the masterpassword

2011-11-03 Thread tamouse mailing lists
On Tue, Nov 1, 2011 at 8:24 AM, Florian Müller florip...@hotmail.com wrote: Hi all I got a little question about a good application design in PHP. If I use a mysql connection for example, I have to store my mysql-password somewhere in the code. If it's just in the mysql-class, that's not

Re: [PHP] What's the problem with this PHP code?

2011-11-04 Thread tamouse mailing lists
On Fri, Nov 4, 2011 at 2:52 AM, shiplu shiplu@gmail.com wrote: On Fri, Nov 4, 2011 at 1:47 PM, Sophia red_an...@techno-info.com wrote: Here is the PHP code: ?php $panka =   c:can-it-rock-    :the-boat-of- :love-  ; $pankb = preg_split(':',$panka); It should be

Re: [PHP] php sqlite

2011-11-06 Thread tamouse mailing lists
On Sat, Nov 5, 2011 at 3:33 AM, saeed ahmed mycomputerbo...@gmail.com wrote: i want to start with php sqlite.which  light weight versions should i download?i have win xp sp3. I though sqlite came bundled... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Google Search Appliance and PHP

2011-11-06 Thread tamouse mailing lists
On Thu, Nov 3, 2011 at 10:11 AM, Gates, Jeff gat...@si.edu wrote: I am a newbie in PHP. I need to create a search using Google's Search Appliance for a site I'm designing but don't have the slightest idea on how to do it. Because I want to incorporate the site's design into the search

Re: [PHP] pcre little problem

2011-11-08 Thread tamouse mailing lists
On Mon, Nov 7, 2011 at 5:54 AM, Richard Quadling rquadl...@gmail.com wrote: On 4 November 2011 16:52, QI.VOLMAR QI qi.vol...@gmail.com wrote: i have this part of code that works with DOMDocument: public function translateNFeXML(NFE $nfe_factory) {        $inf_adic =

Fwd: [PHP] delete and recreate

2011-11-10 Thread tamouse mailing lists
Hoisted on me own petard, as it were. Meant this to go to OP and list, not Jim. -- Forwarded message -- From: tamouse mailing lists tamouse.li...@gmail.com Date: Thu, Nov 10, 2011 at 3:25 AM Subject: Re: [PHP] delete and recreate To: Jim Lucas li...@cmsws.com On Wed, Nov 9

Re: [PHP] checking dates not working

2011-11-10 Thread tamouse mailing lists
On Thu, Nov 10, 2011 at 4:35 PM, Marc Fromm marc.fr...@wwu.edu wrote: I have this bit of code to see if a date is greater or equal to a set date. echo(date(m/d/Y,strtotime($jobs_effective_start)));// displays entered date of 01/03/2012 echo(date(m/d/Y,strtotime(WSOFFBEGIN))); // displays set

Re: [PHP] json_encode confusion

2011-11-10 Thread tamouse mailing lists
On Thu, Nov 10, 2011 at 11:24 AM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Nov 10, 2011 at 5:42 PM, Jim Lucas li...@cmsws.com wrote: On 11/10/2011 6:45 AM, Bastien Koert wrote: Morning all, I've been having some fun with converting a text data file import into a json object for storage.

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 1:38 AM, Ron Piggott ron.pigg...@actsministries.org wrote: Does anyone know what variable the e-mail message is assigned within the context of “Pipe To A Program”?  Is there a way to find out?  I can’t figure this out. What I have tried so far is below: ===

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 5:12 AM, Ron Piggott ron.pigg...@actsministries.org wrote: I used your code and it still didn't work.  Would you show me what you put in for your Pipe To A Program settings? What I used is: Rules: To Contains customer service e-mail address Action

[PHP] question about best practice for coding sql statements

2011-11-12 Thread tamouse mailing lists
I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to view the SQL statement, and also if there's an error,

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 7:01 AM, Stephen stephe...@rogers.com wrote: While I am not a big fan of OOP, I do like PDO, and recommend its use. Right -- I wasn't actually inquiring about how to access a data base, merely the pactice of using a variable for the SQL -- In your example, you are doing

Re: [PHP] Novice MySQL problem

2011-11-13 Thread tamouse mailing lists
On Sun, Nov 13, 2011 at 3:43 PM, drive view drivev...@gmail.com wrote: I'm a novice to MySQL and am currently facing the following difficulty. I'm trying to update a table with a row of data the primary key of which is an ID which I believe is an auto incrementing serial number.  My first

Re: [PHP] Sniping on the List

2011-11-15 Thread tamouse mailing lists
On Tue, Nov 15, 2011 at 12:12 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: PS: I know it's not Friday, but this question came up in class yesterday and I thought maybe all of you might like to guess why null is Wednesday? Wait.. What?? $ php -r 'echo date(l,NULL),\n;' Wednesday Cos: $

Re: [PHP] differences in between these env. variables

2012-01-11 Thread tamouse mailing lists
On Wed, Jan 11, 2012 at 5:49 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Jan 12, 2012 at 12:26 AM, Haluk Karamete halukkaram...@gmail.com wrote: I've grouped these env variables, each group returns the same values is there a difference? which ones do you use? which ones should I not use

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread tamouse mailing lists
On Thu, Jan 12, 2012 at 7:16 PM, Haluk Karamete halukkaram...@gmail.com wrote: Again, coming from ASP background, I'm trying to minimize the typing for most needed functionalities.. in asp, to set a session var, you go %session(age)=90% and to output it, you just go %=session(age)% in php,

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread tamouse mailing lists
On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete halukkaram...@gmail.com wrote: I agree... that was just a wild idea! :) Let's forget about it! What's a good PHP programming editor you'd recommend on a mac for starters? (Remember to bottom post.) My favourite on the Mac is TextMate, but it's

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread tamouse mailing lists
On Thu, Jan 12, 2012 at 8:52 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete halukkaram...@gmail.com wrote: I agree... that was just a wild idea! :) Let's forget about it! What's a good PHP programming editor you'd recommend on a mac

Re: [PHP] if http_referer is not reliable then how do we ...

2012-01-19 Thread tamouse mailing lists
On Tue, Jan 17, 2012 at 2:34 AM, ma...@behnke.biz ma...@behnke.biz wrote: You should not write the recipients email address in a hidden form, but instead read it from a config file. This way you can make sure, that no one alters it. Although this won't stop anyone from using the mailform.

Re: [PHP] sessions and expirations and isolations

2012-01-19 Thread tamouse mailing lists
On Tue, Jan 17, 2012 at 5:17 PM, Haluk Karamete halukkaram...@gmail.com wrote: This brings the question to the following; WHEN DOES THE SERVER KNOW THAT A USER IS REALLY GONE OR HE CLOSED HIS BROWSER? Just addressing this quesiton -- you are correct that the browser does not tell the

Re: [PHP] questions about $_SERVER

2012-03-09 Thread tamouse mailing lists
On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote: On 13 Feb 2012, at 06:28, Rui Hu wrote: How PHP sets variables in $_SERVER, say, $DOCUMENT_ROOT? What should I know if I want to modify $_SERVER myself? Once your

Re: [PHP] Function mktime() documentation question

2012-03-10 Thread tamouse mailing lists
I'm just a bit baffled why this isn't a standard library function. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] questions about $_SERVER

2012-03-10 Thread tamouse mailing lists
On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Mar 9, 2012, at 10:20 PM, Jim Giner wrote: tamouse mailing lists tamouse.li...@gmail.com wrote in message news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com... On Mon, Feb 13, 2012 at 2:39 PM

Re: [PHP] Getting knotted with quotes encoding - (one possible solution)

2012-03-19 Thread tamouse mailing lists
On Sun, Mar 18, 2012 at 10:19 PM, Tamara Temple tamouse.li...@tamaratemple.com wrote: On Tue, 13 Mar 2012 16:35:44 +0200, Arno Kuhl a...@dotcontent.net sent: From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 13 March 2012 03:25 PM To: a...@dotcontent.net;

Re: [PHP] Parse errors

2012-03-19 Thread tamouse mailing lists
On Sun, Mar 18, 2012 at 2:18 PM, Tim Streater t...@clothears.org.uk wrote: On 18 Mar 2012 at 17:46, Simon J Welsh si...@welsh.co.nz wrote: This is expected. The error doesn't occur to the second file is included, so everything in the first included file is parsed and run before execution is

Re: [PHP] questions about $_SERVER

2012-03-19 Thread tamouse mailing lists
On Sat, Mar 10, 2012 at 7:43 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote: On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: That's correct, but to access those variables outside of their scope

Re: [PHP] Getting knotted with quotes encoding - (one possible solution)

2012-03-20 Thread tamouse mailing lists
On Mon, Mar 19, 2012 at 10:43 AM, Arno Kuhl a...@dotcontent.net wrote: -Original Message- From: tamouse mailing lists [mailto:tamouse.li...@gmail.com] Sent: 19 March 2012 10:28 AM To: php-general@lists.php.net Subject: Re: [PHP] Getting knotted with quotes encoding - (one possible

Re: [PHP] Thinking out loud - a continuation...

2012-03-24 Thread tamouse mailing lists
On Sat, Mar 24, 2012 at 7:41 AM, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: On Mar 23, 2012, at 11:24 PM, Robert Cummings wrote: On 12-03-23 05:41 PM, Jay Blanchard wrote: [-- DELETED GARBAGE --]  :) I just realized... I've been stuck in a thinking rut. I latched onto one

Re: [PHP] Mime Mail problem

2012-03-28 Thread tamouse mailing lists
On Wed, Mar 28, 2012 at 3:53 PM, Alexis phplis...@antonakis.co.uk wrote: Actually Fatih, I have also been playing around with the PEAR mimemail option and have just got that to work, so will not be pursuing this problem any further, but thank you very much for the time you spent helping me.

Re: [PHP] Re: Uploading and creating an email attachment, WITHOUT aDB on server

2012-03-28 Thread tamouse mailing lists
On Tue, Mar 27, 2012 at 8:33 AM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Also note: checking file extensions has nothing to do with security; relying on such a crude technique to work is a very very bad idea. It also limits the possible formats that people would like to send their

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-28 Thread tamouse mailing lists
On Tue, Mar 27, 2012 at 5:47 AM, rene7705 rene7...@gmail.com wrote: Yea, i'm quite sure I want to develop on Windows 7. Ubuntu still has quircks when it comes to using 3 monitors on a single system, as far as I know. I just like windows 7 a lot better at the moment. And how would it be

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-28 Thread tamouse mailing lists
On Tue, Mar 27, 2012 at 7:24 AM, Curtis Maurand cur...@maurand.com wrote: rene7705 wrote: On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford p...@justcroft.com wrote: On 27/03/12 12:13, rene7705 wrote: hey, I just read the rsync man page for the first time, and while it sure looks simple

[PHP] Re: [PHP-DB] Flow of PHP testClass

2012-03-29 Thread tamouse mailing lists
On Thu, Mar 29, 2012 at 9:57 AM, Rikin Parekh riki...@gmail.com wrote: Hi Guys, Given below is a PHP script. Can someone help me with the output of the code. According to my understanding the output should be 3, 50, 20, 10. Can someone elaborate on the same and provide me an explanation on

[PHP] Re: [PHP-DB] Flow of PHP testClass

2012-03-29 Thread tamouse mailing lists
On Thu, Mar 29, 2012 at 1:17 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Thu, Mar 29, 2012 at 9:57 AM, Rikin Parekh riki...@gmail.com wrote: Hi Guys, Given below is a PHP script. Can someone help me with the output of the code. According to my understanding the output should

[PHP] Re: [PHP-DB] Flow of PHP testClass

2012-03-29 Thread tamouse mailing lists
On Thu, Mar 29, 2012 at 1:30 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Thu, Mar 29, 2012 at 1:17 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Thu, Mar 29, 2012 at 9:57 AM, Rikin Parekh riki...@gmail.com wrote: Hi Guys, Given below is a PHP script. Can someone

Re: [PHP] DateTime wierdness

2012-03-29 Thread tamouse mailing lists
2012/3/29 Martín Marqués martin.marq...@gmail.com: El día 29 de marzo de 2012 14:14, David OBrien dgobr...@gmail.com escribió: actually this would work well ... compare what they send with the output of the formatdate function checkDateTime($data) {     if (date('Y-m-d H:i:s',

Re: [PHP] Watch out for automatic type casting

2012-03-29 Thread tamouse mailing lists
On Thu, Mar 29, 2012 at 12:19 PM, Stuart Dallas stu...@3ft9.com wrote: On 29 Mar 2012, at 17:57, Arno Kuhl wrote: I found automatic typecasting can be a bit of a gotcha. $sText = this.is.a.test.text; if ( $pos = strpos($sText, test) !== FALSE) {                echo  substr($sText, 0,

Re: [PHP] securing a script that exec()s

2012-03-31 Thread tamouse mailing lists
On Fri, Mar 30, 2012 at 7:05 AM, David OBrien dgobr...@gmail.com wrote: Find a way to do it using PHP's imagemagick extensions http://php.net/manual/en/book.imagick.php On Fri, Mar 30, 2012 at 5:56 AM, rene7705 rene7...@gmail.com wrote: Hi. I have a script that uses imagemagick's convert

Re: [PHP] securing a script that exec()s

2012-03-31 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 1:37 AM, rene7705 rene7...@gmail.com wrote: escapeshellcmd() seems simplest. It might be if all you care about are shell meta characters, and admittedly it will save you from someone entering rm -rf / in your input field. But dealing with generic user input, even

Re: [PHP] whats wrong

2012-03-31 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed mycomputerbo...@gmail.com wrote: i have made a php script with a tutorial helpi dont know where is a error.please have a look Before you actually run code in a browser, check your syntax with php -l (for lint, the old command to check C syntax on

Re: [PHP] whats wrong

2012-04-01 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 6:36 AM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 31-03-2012 10:29, tamouse mailing lists wrote: On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmedmycomputerbo...@gmail.com  wrote: i have made a php script with a tutorial helpi dont know where

Re: [PHP] PHP ISSUE!!!

2012-04-01 Thread tamouse mailing lists
On Sun, Apr 1, 2012 at 11:03 PM, Karl James karlja...@tampabay.rr.com wrote: Is anyone online at the moment. I need help with a phpmyadmin table issue. I get a critical error when I try to upload images From the web portal admin page. I can send you a screen shot and allow you access to

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
On Sun, Apr 1, 2012 at 10:52 PM, Ron Piggott ron.pigg...@actsministries.org wrote: Hi Everyone: I am assigning the value of 4 images to variables following a database query: $image_1 = stripslashes( $row['image_1'] ); $image_2 = stripslashes( $row['image_2'] ); $image_3 = stripslashes(

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
Ugh, gmail mangled the code there. Here's a pastebin of the response which is better formatted: http://pastie.org/3712761 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
On Mon, Apr 2, 2012 at 12:20 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: Ugh, gmail mangled the code there. Here's a pastebin of the response which is better formatted: http://pastie.org/3712761 Sweet. I spent so long on my reply, two others snuck in before me. :) -- PHP General

Re: [PHP] Variable representation

2012-04-02 Thread tamouse mailing lists
On Mon, Apr 2, 2012 at 4:34 AM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: Usually if you think you need to use eval: think again. In this case, it again holds true. Instead of doing what you do, you can also reference the variable as: echo ${'image_'.$i}; or echo

Re: [PHP] learning resources for PHP

2012-04-05 Thread tamouse mailing lists
On Wed, Apr 4, 2012 at 6:16 AM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-03, at 10:39 PM, Tim Dunphy bluethu...@gmail.com wrote: Hello list,  I am quite sure that you've heard this question at least a few times before. :) But I have been dabbling a bit in PHP for years

Re: [PHP] foreach

2012-04-06 Thread tamouse mailing lists
On Thu, Apr 5, 2012 at 3:15 PM, Ethan Rosenberg eth...@earthlink.net wrote: I know I am missing something fundamental - but I have no idea where to start to look. It's really difficult to figure out what you're asking. Your code snippets and associated output seem all jumbled up. It would help

Re: [PHP] image inventoryer

2012-04-06 Thread tamouse mailing lists
On Thu, Apr 5, 2012 at 10:04 PM, Kirk Bailey kbai...@howlermonkey.net wrote: jim, I am a novice at this language as I said. And were people this nice to you when YOU asked beginner questions? When I ask beginner questions, I spend time doing my homework first. This list is not a class to teach

Re: [PHP] image inventoryer

2012-04-08 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 10:35 PM, Kirk Bailey kbai...@howlermonkey.net wrote: html head titleImage inventory of this directory/title style TYPE=text/css body { margin-left: 10; margin-right: 10%; } body {background-attachment:fixed;} A:link, A:visited,  A:active { text-decoration:none; }

Re: [PHP] Re: Watch out for automatic type casting

2012-04-08 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 1:55 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 07-04-2012 16:37, Bogdan Ribic wrote: [snip] Bogdan, you are reviving a thread over a week old, and repeating what 4 other people have already stated. Please don't do that, it just results in

[PHP] tempnam() not working as expected...

2012-04-13 Thread tamouse mailing lists
Can someone explain the following to me: ?php $d=tempnam(.,dir); /* create a temp named file */ unlink($d); /* unlink it because we're going to make it a directory */ mkdir($d,777,true); /* make the directory */ echo $d is . (is_dir($d)?'':'NOT'). a

Re: [PHP] case-insensitive $_REQUEST,$_GET,$_POST keys?

2012-04-13 Thread tamouse mailing lists
On Fri, Apr 13, 2012 at 12:22 PM, David OBrien dgobr...@gmail.com wrote: On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Anyone have a quick-and-dirty way to check $_REQUEST keys that is case-insensitive? -- PHP General Mailing List (http://www.php.net

Re: [PHP] tempnam() not working as expected...

2012-04-18 Thread tamouse mailing lists
On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);                /* make the directory */ Try using mkdir($d, 0777, true); Herein, my friends, lies the problem. Silly me, using a DECIMAL number (777) instead of an OCTAL number (0777). -- PHP General

Re: [PHP] sms class

2012-04-18 Thread tamouse mailing lists
On Tue, Apr 17, 2012 at 2:08 PM, DZvonko Nikolov dzvo...@yahoo.com wrote: I need a class that sends sms messages to list of numbers. I'm quite new to that issue, so I need to know what I need more. Thanks in advance. If this is very low volume, would using email-sms work? -- PHP General

Re: [PHP] Re: Email Antispam

2012-04-18 Thread tamouse mailing lists
On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He literally wants the addresses visible on the sight?  [...] Yes, they want the addresses visible and clickable on the website. They have contact forms, but they also

Fwd: [PHP] sms class

2012-04-19 Thread tamouse mailing lists
-- Forwarded message -- From: DZvonko Nikolov dzvo...@yahoo.com Date: Thu, Apr 19, 2012 at 5:10 AM Subject: Re: [PHP] sms class To: tamouse mailing lists tamouse.li...@gmail.com if this is simple, yes

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread tamouse mailing lists
Maybe this will make the syntax errors stand out more: http://dl.dropbox.com/u/571329/Screenshots/Picture%209.png -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread tamouse mailing lists
On Thu, Apr 19, 2012 at 2:17 PM, Steven Staples sstap...@mnsi.net wrote: -Original Message- From: Silvio Siefke [mailto:siefke_lis...@web.de] Sent: April 19, 2012 3:11 PM To: php-general@lists.php.net Subject: Re: [PHP] SqLite INSERT want not write On Thu, 19 Apr 2012 14:57:04 -0400

[PHP] Re: [PHP-DB] School timetable in php

2012-04-22 Thread tamouse mailing lists
On Sun, Apr 22, 2012 at 1:41 AM, Vinay Kannan viny...@gmail.com wrote: Weekly subject wise lecture schedule, subject wise / faculty wise. On Sun, Apr 22, 2012 at 12:02 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Apr 20, 2012 at 7:00 AM, Vinay Kannan viny...@gmail.com

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 6:36 PM, Brian Dunning br...@briandunning.com wrote: I have a script that downloads a 267MB SQL file (it creates and loads a MySQL database). Any idea how to do this? Obviously I'm not going to get a file that size into memory to loop through. Is there any need to use

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 AM, Terry Ally (Gmail) terrya...@gmail.com wrote: Google works in Javascript extensively - not a language with which I have in-depth experience hence my reason for asking for PHP solution. For example the following will get me a JSON output with the distance in Kms

  1   2   3   4   >