Re: [PHP] errors not showing

2012-05-19 Thread tamouse mailing lists
On Sat, May 19, 2012 at 11:16 PM, Tim Dunphy wrote: > Hello Simon, > >  Thanks for your response. > >  However I still can't seem to get errors to show up. > > [dunphy@localhost:~/jf-current] #cat /private/etc/php.ini | grep -e > error_reporting -e display_errors > ; display_errors > ; error_repor

Re: [PHP] regexp novice

2012-05-18 Thread tamouse mailing lists
On Thu, May 17, 2012 at 3:37 PM, Jim Giner wrote: > ok - finally had to come up with my own regexp - and am failing. > > Trying to validate an input of a time value in the format hh:mm, wherein > I'll accept anything like the following: > hmm > hhmm > h:mm > hh:mm > > in a 12 hour format.  My prob

Re: [PHP] Converting date string to unix timestamp

2012-05-13 Thread tamouse mailing lists
On Fri, May 11, 2012 at 8:46 PM, Karl DeSaulniers wrote: > On another note, just curious why I keep getting your responses, but don't > get the emails that I post. > Anyone else having trouble with the list like that? That is how the mailing list works. You don't see the messages you send. -- P

Re: [PHP] Best practice question regarding set_include_path()

2012-05-10 Thread tamouse mailing lists
On Thu, May 10, 2012 at 1:50 PM, admin wrote: > > > -Original Message- > From: Al [mailto:n...@ridersite.org] > Sent: Thursday, May 10, 2012 11:44 AM > To: php-general@lists.php.net > Subject: [PHP] Best practice question regarding set_include_path() > > For my applications, I've been usin

Re: [PHP] code deployment through php

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 5:23 AM, rene7705 wrote: > On Wed, May 2, 2012 at 11:47 AM, rene7705 wrote: > >> I can't use anything like git on my shared hoster. But I suppose I could >> use something like git at home, and use a sync script like I posted in my >> OP on the shared hoster. >> >> >> > Mayb

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9:12 PM, Ron Piggott wrote: > I need to access a FUNCTION I programmed within a different FUNCTION.  Are > these able to be passed like a variable?  Or are they able to become like a > $_SESSION variable in nature?  How am I able to do this? > > I am essentially programmin

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 PM, Jim Giner wrote: > But the OP says "function is defined inside a different function".  Your > theories to a solution don't fit that problem. [snip] > But the OP says "function is defined inside a different function".  Your > theories to a solution don't fit that pro

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread tamouse mailing lists
Please put replies at BOTTOM On Fri, May 4, 2012 at 9:24 PM, Brian Dunning wrote: > How would you launch that from PHP? > > On May 4, 2012, at 6:11 PM, tamouse mailing lists wrote: > >> Is there any need to use PHP with this at all? If it's already in SQL, >> ca

Re: [PHP] get content rss feed

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 7:00 AM, Doeke Wartena wrote: > I try to get the content from the following rss feed > http://www.adafruit.com/blog/feed/ > > I want to store it in a database in order to use it for a school assignment. > If i look in my browser to the feed then i see content and description

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 11:37 PM, EPA WC wrote: > Hi List, > > I am trying to write a crawler to go through web pages at > http://www.freebookspot.es/CompactDefault.aspx?Keyword=. But I am not > quite familiar with how asp uses _doPostBack function with the "next" > button below the book list to ad

Re: [PHP] PHP & Emacs

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 7:43 AM, Gerardo Benitez wrote: > Hi Mihamina, > > I think that a few number of people use Emacs to write Php, in fact for > proffesionals porpuse the people use a IDE for Php, like Netbeams, Eclipse > PDT or Zend Studio. > > Regards, > Gerardo > > On Wed, May 2, 2012 at 8:2

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9:12 PM, Ron Piggott wrote: > I need to access a FUNCTION I programmed within a different FUNCTION.  Are > these able to be passed like a variable?  Or are they able to become like a > $_SESSION variable in nature?  How am I able to do this? > > I am essentially programmin

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) 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 and time. I do

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 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 PHP with this at all

[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 wrote: > Weekly subject wise lecture schedule, subject wise / faculty wise. > > > On Sun, Apr 22, 2012 at 12:02 PM, tamouse mailing lists > wrote: >> >> On Fri, Apr 20, 2012 at 7:00 AM, Vinay Kannan wrote: >> >

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

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

Fwd: [PHP] sms class

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

Re: [PHP] Re: Email Antispam

2012-04-18 Thread tamouse mailing lists
On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay 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 want the ema

Re: [PHP] sms class

2012-04-18 Thread tamouse mailing lists
On Tue, Apr 17, 2012 at 2:08 PM, DZvonko Nikolov 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 Mailing List (http

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 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 Mailing List

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 wrote: > On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists > wrote: >> >> Anyone have a quick-and-dirty way to check $_REQUEST keys that is >> case-insensitive? >> >> -- >> PHP General Mailing List (htt

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

2012-04-13 Thread tamouse mailing lists
Can someone explain the following to me: /Users/tamara/Sites/gallery/lib/common/t/dirGuWOLW is a directory /private/var/folders/pI/pIx-p0mhH5eEQ64yAiDQmE+++TI/-Tmp-/fileC7Rnzg is a directory Why isn't the second tempnam using the directory path I pass to it? The strange thing I notice is th

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

2012-04-07 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 1:55 PM, Maciek Sokolewicz 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 > mailinglist-noise. > > - Tul plus

Re: [PHP] image inventoryer

2012-04-07 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 10:35 PM, Kirk Bailey wrote: > > > Image inventory of this directory > > body { margin-left: 10; margin-right: 10%; } > body {background-attachment:fixed;} > A:link, A:visited,  A:active { text-decoration:none; } > A:hover { text-decoration:underline; } > .justify{text-al

Re: [PHP] image inventoryer

2012-04-06 Thread tamouse mailing lists
On Thu, Apr 5, 2012 at 10:04 PM, Kirk Bailey 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 you to write PHP. The p

Re: [PHP] foreach

2012-04-06 Thread tamouse mailing lists
On Thu, Apr 5, 2012 at 3:15 PM, Ethan Rosenberg 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 greatly if they wer

Re: [PHP] learning resources for PHP

2012-04-05 Thread tamouse mailing lists
On Wed, Apr 4, 2012 at 6:16 AM, Bastien wrote: > > > Bastien Koert > > On 2012-04-03, at 10:39 PM, Tim Dunphy 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 and I've >> decided that

Re: [PHP] Variable representation

2012-04-02 Thread tamouse mailing lists
On Mon, Apr 2, 2012 at 4:34 AM, Maciek Sokolewicz 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 $GLOBALS['image_'.$i]; > > Both are p

Re: [PHP] Variable representation

2012-04-01 Thread tamouse mailing lists
On Mon, Apr 2, 2012 at 12:20 AM, tamouse mailing lists 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 Mailing

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 Sun, Apr 1, 2012 at 10:52 PM, Ron Piggott 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( $row['image_3'] ); > $image_

Re: [PHP] PHP ISSUE!!!

2012-04-01 Thread tamouse mailing lists
On Sun, Apr 1, 2012 at 11:03 PM, Karl James 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 > > The database t

Re: [PHP] whats wrong

2012-04-01 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 6:36 AM, Maciek Sokolewicz wrote: > On 31-03-2012 10:29, tamouse mailing lists wrote: >> >> On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed >>  wrote: >>> >>> i have made a php script with a tutorial helpi dont know where is a >&

Re: [PHP] whats wrong

2012-03-31 Thread tamouse mailing lists
On Sat, Mar 31, 2012 at 1:45 AM, saeed ahmed 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 unixy systems) on a c

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 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 escaped, can still b

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

2012-03-30 Thread tamouse mailing lists
On Fri, Mar 30, 2012 at 7:05 AM, David OBrien 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 wrote: > >> Hi. >> >> I have a script that uses imagemagick's convert command on the commandlin

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 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($sTex

Re: [PHP] DateTime wierdness

2012-03-29 Thread tamouse mailing lists
2012/3/29 Martín Marqués : > El día 29 de marzo de 2012 14:14, David OBrien 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', strtotime($data)) == $data) { >>         retur

[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 wrote: > On Thu, Mar 29, 2012 at 1:17 PM, tamouse mailing lists > wrote: >> On Thu, Mar 29, 2012 at 9:57 AM, Rikin Parekh wrote: >>> Hi Guys, >>> >>> Given below is a PHP script. Can someone

[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 wrote: > On Thu, Mar 29, 2012 at 9:57 AM, Rikin Parekh 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,

[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 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 the flow? > > T

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 wrote: > > > rene7705 wrote: >> On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford > 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 enough for

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 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 dangerous to do so? Y

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 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 CV as; for example > I ca

Re: [PHP] Mime Mail problem

2012-03-28 Thread tamouse mailing lists
On Wed, Mar 28, 2012 at 3:53 PM, Alexis 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. > > Alexis > > > On 28/03/

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 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 >> solution that works well

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 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 possi

Re: [PHP] questions about $_SERVER

2012-03-19 Thread tamouse mailing lists
On Sat, Mar 10, 2012 at 7:43 PM, Tedd Sperling wrote: > On Mar 10, 2012, at 3:53 PM, tamouse mailing lists wrote: >> On Sat, Mar 10, 2012 at 9:37 AM, Tedd Sperling >> wrote: >>> That's correct, but to access those variables outside of their scope (such &g

Re: [PHP] Parse errors

2012-03-19 Thread tamouse mailing lists
On Sun, Mar 18, 2012 at 2:18 PM, Tim Streater wrote: > On 18 Mar 2012 at 17:46, Simon J Welsh 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 >> halted. > > Simon, > > Thanks fo

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 wrote: > On Tue, 13 Mar 2012 16:35:44 +0200, Arno Kuhl sent: > >> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] >> Sent: 13 March 2012 03:25 PM >> To: a...@dotcontent.net; php-general@lists.php.net >> Subject: Re: [PHP] Getting knotted wi

Re: [PHP] questions about $_SERVER

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

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-09 Thread tamouse mailing lists
On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling 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 script start

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 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 application when it closes. What

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 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. Cannot emphasiz

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 wrote: > On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete > wrote: >> I agree... that was just a wild idea! :) >> Let's forget about it! >> >> What's a good PHP programming editor you'd reco

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 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 not $free. (It's als

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 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, you've go

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 wrote: > On Thu, Jan 12, 2012 at 12:26 AM, Haluk Karamete > 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 for the purposes listed below >>

Re: [PHP] Sniping on the List

2011-11-15 Thread tamouse mailing lists
On Tue, Nov 15, 2011 at 12:12 PM, Tedd Sperling 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: $ php -r 'echo date("

Re: [PHP] Novice MySQL problem

2011-11-13 Thread tamouse mailing lists
On Sun, Nov 13, 2011 at 3:43 PM, drive view 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 > question is how to c

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 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 this as well, which f

[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] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 5:12 AM, Ron Piggott 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" > /usr/local/bin/php /path/to/e

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 1:38 AM, Ron Piggott 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: > > === > #!/usr/local/bin/php -q > >

Re: [PHP] json_encode confusion

2011-11-10 Thread tamouse mailing lists
On Thu, Nov 10, 2011 at 11:24 AM, Matijn Woudt wrote: > On Thu, Nov 10, 2011 at 5:42 PM, Jim Lucas 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. >>> >>> I have a

Re: [PHP] checking dates not working

2011-11-10 Thread tamouse mailing lists
On Thu, Nov 10, 2011 at 4:35 PM, Marc Fromm 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 date of 0

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 Date: Thu, Nov 10, 2011 at 3:25 AM Subject: Re: [PHP] delete and recreate To: Jim Lucas On Wed, Nov 9, 2011 at 1:44 PM, Jim Lucas wrote: >

Re: [PHP] pcre little problem

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

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 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 results page I

Re: [PHP] php sqlite

2011-11-06 Thread tamouse mailing lists
On Sat, Nov 5, 2011 at 3:33 AM, saeed ahmed 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: http://www.php.net/unsub.php

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 wrote: > On Fri, Nov 4, 2011 at 1:47 PM, Sophia wrote: > >> Here is the PHP code: >> >> >> > >> >> $panka = "   c:can-it-rock- >>    :the-boat-of- >> :love-  "; >> >> $pankb = preg_split(':',$panka); >> > > It should be preg_split('/:/', $panka); Maybe just

Re: [PHP] Placing the masterpassword

2011-11-03 Thread tamouse mailing lists
On Tue, Nov 1, 2011 at 8:24 AM, Florian Müller 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 that good, > becaus

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

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 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 like to do, is pull t

Re: [PHP] Friday Distraction

2011-10-23 Thread tamouse mailing lists
On Fri, Oct 21, 2011 at 4:27 PM, Christopher Lee 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 original. Any > other

Re: [PHP] Friday Distraction

2011-10-23 Thread tamouse mailing lists
On Sat, Oct 22, 2011 at 12:22 PM, Tedd Sperling 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 like walking > down

Re: [PHP] Friday Distraction

2011-10-23 Thread tamouse mailing lists
On Fri, Oct 21, 2011 at 12:38 PM, Tedd Sperling 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 (and safe for wo

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 wrote: > "tamouse mailing lists" wrote in message > news:cahuc_t8icx4y4mca05rrgzopv4ze7hwsndaiyjjmdvbambv...@mail.gmail.com... > In Sat, Oct 15, 2011 at 7:57 PM, Stephen wrote: > > \Category One > > > > I would

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 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 the values in

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 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, in your php >> scri

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 wrote: > #include > > 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 (http://www.ph

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 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 *me* to chang

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 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 hasn't already been done

Fwd: [PHP] Problem with code...

2011-10-06 Thread tamouse mailing lists
On Thu, Oct 6, 2011 at 7:28 PM, Jason Pruim 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 sends... Can you see if the l

Re: [PHP] Problem with code...

2011-10-06 Thread tamouse mailing lists
On Thu, Oct 6, 2011 at 7:28 PM, Jason Pruim 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 sends... Can you see if the l

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 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 $command be

Re: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
On Wed, Sep 28, 2011 at 4:06 PM, tamouse mailing lists wrote: > On Wed, Sep 28, 2011 at 3:28 AM, muad shibani 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 curl

Fwd: [PHP] Curl cost

2011-09-28 Thread tamouse mailing lists
Forgot to include list... -- Forwarded message -- From: tamouse mailing lists Date: Wed, Sep 28, 2011 at 4:06 PM Subject: Re: [PHP] Curl cost To: muad shibani On Wed, Sep 28, 2011 at 3:28 AM, muad shibani wrote: > what are the costs of using PHP Curl to show another websi

Re: [PHP] Installing extensions

2011-09-20 Thread tamouse mailing lists
On Mon, Sep 19, 2011 at 9:03 AM, Daniel Brown 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 (http://www.php.net/) To unsu

Re: [PHP] Installing extensions

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

Re: [PHP] Installing extensions

2011-09-18 Thread tamouse mailing lists
On Sun, Sep 18, 2011 at 4:22 PM, Gregor Mitzka 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

[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 roo

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 o

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 wrote: > On Wed, 14 Sep 2011 14:08:09 +0100, Richard Quadling wrote: >> On 14 September 2011 13:18, Tim Streater wrote: >>> On 14 Sep 2011 at 12:40, Richard Quadling wrote: On 14 September 2011 01:23, tamouse wrote: > On Tue, Sep 13, 2011 at 3:35

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

2011-09-16 Thread tamouse mailing lists
On Thu, Sep 15, 2011 at 8:31 PM, Joshua Stoutenburg 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

Fwd: [PHP] Bug?

2011-09-15 Thread tamouse mailing lists
Hit reply instead of reply-all /o\ -- Forwarded message -- From: tamouse mailing lists Date: Thu, Sep 15, 2011 at 4:39 PM Subject: Re: [PHP] Bug? To: Igor Escobar On Thu, Sep 15, 2011 at 4:07 PM, Igor Escobar wrote: > Anyone can explain this? > > https://gist.g

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 wrote: >> echo "" | 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: 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 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, and then *upload*

<    1   2   3   4   >