Re: [PHP] Questions about $_SERVER

2010-08-28 Thread Tamara Temple
Sorry, forgot to include the mailing list email when I replied to this originally... On Aug 28, 2010, at 8:28 PM, tedd wrote: Sorry for not making sense. But sometimes you have to confirm the players (both server and remote) in communications. Try this -- place this script on your site:

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-11 Thread Tamara Temple
Rather than repeating all that code, I suggest the following: -- select type -- $_POST['hidSubmit'] == TRUE && $_POST['type'] == "meeting") ? "selected" : '' ?> $_POST['hidSubmit'] == TRUE && $_POST['type'] == "event") ? "selected" : '' ?> For a month selector, try: $months = a

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-11 Thread Tamara Temple
The debate on client-side vs. server-side form validation is ongoing. Client-side is more responsive, and attempts to keep bad data from ever reaching your application, but relies on javascript being enabled. Since this is something easily turned off by users, one can't always rely on it to

[PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-11 Thread Tamara Temple
I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table, i.e., the form has filled in values from the existing table entry. Now, suppose they click on 'submit' without making any changes in the form. (Perhaps, say, ra

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-12 Thread Tamara Temple
On Sep 11, 2010, at 12:14 PM, Jason Pruim wrote: On Sep 11, 2010, at 12:39 PM, Tamara Temple wrote: Rather than repeating all that code, I suggest the following: [snip] That's actually what I'm trying to get away from. I was hoping to do it all in HEREDOC syntax. I've always

[PHP] Re: How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 11, 2010, at 10:46 PM, Shawn McKenzie wrote: It could however be a problem if there is a BOT or something that continually submits to your page. In that case (and in general) I would recommend using a form token that helps guard against this. I've seen this on some sites, but I'm un

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 11, 2010, at 9:27 PM, viraj wrote: On Sat, Sep 11, 2010 at 10:22 PM, Tamara Temple > wrote: I have a general question and am looking for best practices. Is it worth the overhead of passing along the previous values in the table in hidden fields so that fields can be checked to

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread Tamara Temple
Sounds like there are some security concerns here. On Sep 12, 2010, at 11:32 AM, tedd wrote: I have a client who wants his employees' access to their online business database restricted to only times when he is logged on. (Don't ask why) I do wonder why, though. Perhaps this is an opportuni

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 12, 2010, at 3:34 PM, Robert Cummings wrote: On 10-09-11 12:52 PM, Tamara Temple wrote: I have a general question and am looking for best practices. Suppose I present a user with a form for editing an entry in a table, i.e., the form has filled in values from the existing table entry

Re: [PHP] How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Tamara Temple
On Sep 12, 2010, at 4:28 PM, Robert Cummings wrote: On 10-09-12 05:19 PM, Michael Shadle wrote: On Sun, Sep 12, 2010 at 2:12 PM, Tamara Temple> wrote: Ok, but how do you detect if a field changes? The specific implementation between application and data storage is probably moot until

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread Tamara Temple
On Sep 12, 2010, at 4:48 PM, tedd wrote: At 4:05 PM -0500 9/12/10, Tamara Temple wrote: Sounds like there are some security concerns here. On Sep 12, 2010, at 11:32 AM, tedd wrote: I have a client who wants his employees' access to their online business database restricted to only

Re: [PHP] Could this be a bug?

2010-09-13 Thread Tamara Temple
This isn't to answer your question, but... On Sep 13, 2010, at 5:16 PM, Camilo Sperberg wrote: function my_error_handler($errno = '0', $errstr = '[FATAL] General Error', $errfile = 'N/A', $errline = 'N/A', $errctx = '') { global $clean_exit; if(empty($clean_exit)) { ini_set('memory_limit'

Re: [PHP] What other languages do you use?

2010-10-08 Thread Tamara Temple
On Oct 8, 2010, at 12:30 PM, Nathan Rixham wrote: As per the subject, not what other languages have you used, but what other languages do you currently use? Perl, Ruby, Javascript, Sh, C. Planning on picking up Python. I guess it may also be interesting to know if: (1) there's any parti

Re: [PHP] Re: strtotime

2010-10-17 Thread Tamara Temple
On Oct 17, 2010, at 12:58 AM, John Taylor-Johnston wrote: According to this, I'm 44 not 45 :)p $birthday = '1965-08-30'; //calculate years of age (input string: -MM-DD) function birthday ($birthday){ list($year,$month,$day) = explode("-",$birthday); $year_diff = date("Y") - $year;

Re: [PHP] Re: strtotime

2010-10-17 Thread Tamara Temple
On Oct 17, 2010, at 2:34 PM, John Taylor-Johnston wrote: Here is another nifty piece of code I found. How does this work? What is 31556926? Number of second in a year? (31556926 / (24 * 60 * 60) yields 365.2421...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Questions from a Newbie

2010-10-17 Thread Tamara Temple
On Oct 17, 2010, at 1:22 PM, Ethan Rosenberg wrote: At 01:41 AM 10/17/2010, Tommy Pham wrote: > I cannot get the following to work. In my Firefox [Iceweasel] browser, I > enter the following URL: [w/ the http] Whenever you get a blank screen running a php application, the place to look i

Re: [PHP] Questions from a Newbie

2010-10-17 Thread Tamara Temple
} Then, reopen the connection with the new data base: $cxn = new mysql($host, $user, $password, "test22"); Then the following code will work. Tamara Temple -- aka tamouse__ tam...@tamaratemple.com "May you never see a stranger's face in the mirror.&quo

Re: [PHP] Re: strtotime

2010-10-17 Thread Tamara Temple
On Oct 17, 2010, at 9:57 PM, Tommy Pham wrote: -Original Message- From: Tamara Temple [mailto:tamouse.li...@gmail.com] On Oct 17, 2010, at 2:34 PM, John Taylor-Johnston wrote: Here is another nifty piece of code I found. How does this work? What is 31556926? Number of second in a

[PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from within PHP? I've searched the web site for logging functions, but cannot find any. -- PHP General Mailing List (http://www.ph

Re: [PHP] Is there a way to write to the php error log from a php script?

2010-10-22 Thread Tamara Temple
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote: On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote: I'm trying to log some data for debugging and don't have use of the standard output to do so. I'd like to write the info to the php error log. Can this be done from w

Re: [PHP] Watermark with GD

2010-10-29 Thread Tamara Temple
On Oct 29, 2010, at 2:44 PM, Gary wrote: "Adam Richardson" wrote in message news:aanlkti=kenxt7yewrztcm4+hyifrlqhozxse7ufmq...@mail.gmail.com... On Fri, Oct 29, 2010 at 3:05 PM, Gary wrote: I am trying to get the watermark to work, however I am having a problem in that the image is being cal

Re: [PHP] Watermark with GD

2010-10-30 Thread Tamara Temple
On Oct 30, 2010, at 9:31 AM, Gary wrote: "tedd" wrote in message news:p06240800c8f1d19b9...@[192.168.1.2]... At 3:05 PM -0400 10/29/10, Gary wrote: I am trying to get the watermark to work, however I am having a problem in that the image is being called from a database (image sits in imag

Re: [PHP] Watermark with GD

2010-10-31 Thread Tamara Temple
On Oct 31, 2010, at 7:29 AM, Gary wrote: Thanks for the reply, here is a link to the code of the page. http://www.paulgdesigns.com/detailcode.php Ok, that was pretty messy code. But what I could glean from it is this. (See your code at http://pastie.org/1262989). Line 238: width="auto">c

[PHP] Fwd: Mail delivery failed: returning message to sender

2010-10-31 Thread Tamara Temple
Is this something I need to worry about?? Is my mail sending some malware?? Begin forwarded message: From: Mail Delivery Subsystem Date: October 31, 2010 7:37:54 PM CDT To: Tamara Temple Subject: Mail delivery failed: returning message to sender This message was created automatically by

Re: [PHP] updating sub-request parameters

2010-11-02 Thread Tamara Temple
On Nov 1, 2010, at 9:21 AM, Daniela Floroiu wrote: hi, I need to make an apache sub-request like: virtual('.../script.php?param1=val1¶m2=val2...'); where the parameters are different from the parameters of the original request. I tried to set param1 and param2 in $_GET, $_REQUEST, $_SERVE

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-02 Thread Tamara Temple
se anything else is either harder to use, not as secure or both. I don't think you understand. I got that bounce back from a response I sent to this list from one of my gmail accounts. My message did not originate from my personal domain. See here: From: Tamara Temple To: PHP General

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-02 Thread Tamara Temple
On Nov 1, 2010, at 7:43 AM, Daniel P. Brown wrote: On Sun, Oct 31, 2010 at 21:06, Tamara Temple wrote: Is this something I need to worry about?? Is my mail sending some malware?? No, you're safe in this case. (reason: 550 This message contains ma

[PHP] Pros/Cons of using mysqli prepared statments

2010-11-04 Thread Tamara Temple
I'm wondering what the advantages/disadvantage of using prepared statements with mysqli are. I'm used to using the mysqli::query and mysqli::fetch_assoc functions to deal with retrieving data and bulding my sql statement in php code. Tamara Temple -- aka tam

Re: [PHP] Pros/Cons of using mysqli prepared statments

2010-11-04 Thread Tamara Temple
On Nov 4, 2010, at 6:36 AM, Jay Blanchard wrote: [snip] If you have a query in your PHP code, which you are going to be executing a lot, even if you are using prepared statements, you can go one further by creating a stored procedure. Now the SQL server will only ever need to compile the statem

Re: [PHP] Updating a GET variable

2010-11-09 Thread Tamara Temple
On Nov 9, 2010, at 2:47 PM, Marc Guay wrote: What's wrong with just putting the url parameters in the link that you know you need, one by one? I have a footer that I include on every page and would like it to adapt to whatever situation it finds itself in. Is your suggestion, to do the fol

Fwd: [PHP] Updating a GET variable

2010-11-09 Thread Tamara Temple
Begin forwarded message: From: Tamara Temple Date: November 10, 2010 12:05:32 AM CST To: PHP General Subject: Re: [PHP] Updating a GET variable On Nov 9, 2010, at 2:47 PM, Marc Guay wrote: What's wrong with just putting the url parameters in the link that you know you need, one b

Re: [PHP] Updating a GET variable

2010-11-10 Thread Tamara Temple
On Nov 10, 2010, at 8:58 AM, Marc Guay wrote: foreach($_GET as $k => $v) $qs[$k] = URLDecode($v); $qs['lang'] = 'en'; echo 'Flip'; Hi Tamara, Thanks for the tips. Do you see any advantage of this method over using a small POST form besides the styling problems I'll run into trying to make t

Re: [PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Tamara Temple
On Nov 10, 2010, at 8:08 PM, Daevid Vincent wrote: http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to "1" !!!

[PHP] use of ini vs include file for configuration

2010-11-11 Thread Tamara Temple
I'm curious what the lists' opinions are regarding the use of an .ini file versus an include configuration file in PHP code are? I can see uses for either (or both). To me, it seems that an .ini file would be ideal in the case where you want to allow a simpler interface for people installing

Re: [PHP] Retrieving function values

2010-11-14 Thread Tamara Temple
On Nov 14, 2010, at 9:12 PM, Ron Piggott wrote: I am writing a custom function and I need to be able to retrieve 3 values from it. To return multiple values, you have to return an array: return array($var1, $var2, $var3); Then at the calling site, you retrieve them with a list co

Re: [PHP] Re: String manipulation

2010-11-14 Thread Tamara Temple
On Nov 14, 2010, at 4:48 PM, Ron Piggott wrote: Warning: strpos() [function.strpos]: Offset not contained in string Shouldn't you check the length of the string before giving it the offset? From: a...@ashleysheridan.co.uk $pos = (strpos(' ', $string, 76))?strpos(' ',$string, 76):str

Re: [PHP] database design in a survey/poll system

2010-11-17 Thread Tamara Temple
On Nov 17, 2010, at 7:42 AM, 肖晗 wrote: I plan to design a small survey/poll system similar to polldaddy . And I have some confusion in designing the database for the multiple/ single choice questions. Of course, it is possible to use one table to store the question tit

Re: [PHP] How to protect the source code.

2010-11-19 Thread Tamara Temple
On Nov 19, 2010, at 3:39 PM, Hans Åhlin wrote: Does any one know if there is any way for me to protect my source code without the requirement of a extension being installed on the server? i.e encryption, obfusicator, script library, compile the code. Perhaps it's just me, but I'm completely m

Re: [PHP] Problem with functions and arrays...

2010-11-21 Thread Tamara Temple
On Nov 20, 2010, at 5:31 PM, Jason Pruim wrote: Maybe it's just me, but using the name of a global as a function parameter just seems like a bad idea. Yes, you can do it. Should you? I think not. Especially, as, you are passing it a scalar below and treating it here like the global arra

Re: [PHP] Can't find existing file

2010-11-25 Thread Tamara Temple
On Nov 25, 2010, at 8:07 AM, Richard Quadling wrote: I prefer PICNIC. So you can now have a Senior Picnic or a Kiddies Picnic and it all sounds quite pleasant. Ok, I give, what's a PICNIC? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Tamara Temple
On Nov 25, 2010, at 6:07 PM, Da Rock wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command), & $matches) it looks like you're failing to account for the newline that comes back in a command execution. Add trim() around the exec() call and try again. -- PHP General Mailing Li

Re: [PHP] preg_match fails to resolve variable as a subject

2010-11-26 Thread Tamara Temple
On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wrote: On 26 November 2010 00:07, Da Rockl...@herveybayaustralia.com.au> wrote: preg_match("/(\d{1,3})(\.)$/", exec($mixer . ' ' . $command),& $matches) Can you ... var_dump(exec($mixer . ' ' . $command));

Re: [PHP] PHP Add +1 mysql updates by 2?

2010-11-26 Thread Tamara Temple
On Nov 26, 2010, at 8:36 PM, Richard West wrote: Hey guys, I've never run into this before. I have a field in mysql for page views. So I pull out value and do +1 to new value - after UPDATE SET it has incremented by 2? $val = $row['a_downloads'] ; $new_val = $val+1; mysql_query("UPDATE cb

Re: [PHP] preg_match fails to resolve variable as a subject

2010-12-02 Thread Tamara Temple
On Dec 2, 2010, at 11:33 PM, Da Rock wrote: On 11/29/10 09:10, Richard Quadling wrote: On 27 November 2010 04:45, Da Rockl...@herveybayaustralia.com.au> wrote: On 11/27/10 13:51, Tamara Temple wrote: On Nov 26, 2010, at 7:28 PM, Da Rock wrote: On 11/27/10 00:57, Richard Quadling wr

Re: [PHP] code quest

2010-12-04 Thread Tamara Temple
On Dec 4, 2010, at 2:15 PM, Kirk Bailey wrote: The hound barks, but does not yet properly hunt, and we need to bring home the bacon. OK, here is the current code: '.include('./'.$d.'/desc.txt') ;#.''.PHP_EOL; } } ?> the url again, to view the results, is http://www.howlermonkey

Re: [PHP] code quest

2010-12-04 Thread Tamara Temple
the page and see what I mean. This is not in the code, and it's not in the source file. Link: http://www.howlermonkey.net/dirlisting.php I hope this dialog is proving at least mildly interesting to the remainder of the list as an educational exercise. Tamara Temple wrote: On Dec 4

Re: [PHP] All records not displaying...

2010-12-19 Thread Tamara Temple
On Dec 19, 2010, at 9:46 AM, Gary wrote: I have an issue that the first record in a query is not being displayed. It seems that the first row in alphabetical order is not being brought to the screen. I have run the query in the DB and it displays the correct result, so it has to be in

Re: [PHP] Problem with Include

2010-12-19 Thread Tamara Temple
On Dec 19, 2010, at 10:43 AM, Bill Guion wrote: In an effort to clean up some code, I tried taking four lines out of 6 or 7 programs and putting them into an include file. The file structure is Root data clubs.php include fmt.inc Originally, clubs.php had the following code: Th

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Tamara Temple
On Dec 28, 2010, at 2:11 PM, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters. Users should not be copy-pasting passwords or usernames. Do not com

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Tamara Temple
On Dec 28, 2010, at 10:28 PM, Joshua Kehn wrote: On Dec 28, 2010, at 6:28 PM, Paul M Foster wrote: On Tue, Dec 28, 2010 at 03:11:56PM -0500, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pas

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Tamara Temple
On Dec 29, 2010, at 7:27 PM, Mujtaba Arshad wrote: craphound.com/images/xkcdwrongoninternet.jpg Least you could do is give Randall the love, instead of Cory :) http://xkcd.com/386/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for telephone numbers

2010-12-30 Thread Tamara Temple
On Dec 29, 2010, at 6:12 PM, Ethan Rosenberg wrote: I would like to have a regex which would validate that a telephone number is in the format xxx-xxx-. http://lmgtfy.com/?q=regex+to+validate+US+phone+numbers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Tamara Temple
On Dec 31, 2010, at 12:41 AM, Joshua Kehn wrote: On Dec 31, 2010, at 1:26 AM, Tamara Temple wrote: On Dec 28, 2010, at 2:11 PM, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Tamara Temple
On Dec 31, 2010, at 12:41 AM, Joshua Kehn wrote: On Dec 31, 2010, at 1:31 AM, Tamara Temple wrote: 20? child's play. How about 250+ randomly generated passwords and username combinations? Why do you randomly generate 250+ usernames and passwords?? I generate unique pairs for the va

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-30 Thread Tamara Temple
t get keylogged, cause I am that pro" but whatever, just don't force people to enter passwords, no one appreciates it. On Fri, Dec 31, 2010 at 1:26 AM, Tamara Temple > wrote: On Dec 28, 2010, at 2:11 PM, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue wit

Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP

2012-07-27 Thread Tamara Temple
JeffPGMT wrote: > Please correct me if I'm wrong and IMAP is available (maybe a known config > issue?) > > Mac OSX 10.7, Using the pre-installed Apache & Php, IMAP is not installed, > pulled out my Apple for this server OS. I don't know if it is, but something below seems very odd to me: > $

Re: [PHP] Re: Differences

2012-10-05 Thread Tamara Temple
On Thu, 2012-10-04 at 18:06 -0400, Jim Giner wrote: > I've read thru 9 responses to the OP and not one of you mentioned that > the code presented is problematic in itself. Very forgiving, but > perhaps someone should have suggested that he post "actual code" when > looking for help in the futur

Re: [PHP] Friday - Return of Brain Teasers

2012-10-05 Thread Tamara Temple
On Fri, 2012-10-05 at 22:50 +0200, iostream wrote: > If you want to execute some code... > > I'm sure you've all heard of the new "goes to" operator by now, but I > hope it might be new to somebody. > >$i = 10; >while ($i --> 0) { // while $i goes to 0 > echo $i ."\n"; >} Okay,

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-31 Thread Tamara Temple
Tedd Sperling wrote: > On May 29, 2013, at 5:53 PM, Ashley Sheridan > wrote: > > Sometimes when all you know is regex, everything looks like a nail... > > > > Thanks, > > Ash > > > > There are people who *know* regrex? Well, not *biblically*, but yeah, I do. -- PHP General Mailing List

Re: [PHP] limit access to php page

2013-05-31 Thread Tamara Temple
Camilo Sperberg wrote: > On 30 mei 2013, at 05:05, Paul M Foster wrote: > > > On Wed, May 29, 2013 at 08:51:47PM -0400, Tedd Sperling wrote: > > > >> On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: > >> > >>> Hello list, > >>> > >>> I've created an authentication page (index.php) that logs in

Re: [PHP] Has this always been the case?

2013-05-31 Thread Tamara Temple
Richard Quadling wrote: > Hi. > > Both > > class Oddity{ > public $var = 'a' . 'b'; > } > ?> > >From http://www.php.net/manual/en/language.oop5.properties.php: "This declaration may include an initialization, but this initialization must be a constant value--that is, it must be able to be

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. All good. > I have in > /etc/php5/mods-available/curl.ini > ; configuration for php CURL module > ; priority=20 > extension=curl.so Have you enabled the extension as well

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Tamara Temple
Farzan, I don't have a direct answer to your question, but I work a lot with a wiki application called PmWiki that does something very similar to what you are doing. Their instructions for using "clean urls" such as http://example.com/blog/2 (only in their syntax) can be seen here: http://www.p

Re: [PHP] URL Rewriting

2013-06-01 Thread Tamara Temple
Silvio Siefke wrote: > On Wed, 22 Jun 2011 17:50:49 -0400 Daniel P. Brown wrote: > > > Has someone a Link with Tutorials or other Information? > > > > Not entirely sure what you're asking here, or how you (or the > > nginx folks) expect it to relate to PHP. Do you mean that you want to > > u

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > It is interesting.. that when I switch to English language for > Moodle installation ( on the web interface ), then I get not this error, > but if I switch back to Hungarian language for installation, I get it > again. I am completely unfamiliar with Moodle, have no idea what

[PHP] sorry for the blast from the past

2013-06-01 Thread Tamara Temple
Sorry for replying to a message from 2011 -- for some reason I had a whole bunch of PHP messages suddenly show up in my inbox from the past. I generally don't check the year of an unread message in my inbox, as I try to keep inbox-zero. Anyway, carry on! -- PHP General Mailing List (http://ww

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > Csanyi Pal wrote: > >> It is interesting.. that when I switch to English language for > >> Moodle installation ( on the web interface ), then I get not this > >> error, but if I switch back to Hungarian language f

Re: [PHP] URL Rewriting

2013-06-02 Thread Tamara Temple
Daniel Brown wrote: > Studying archaeology now, Tam? ;-P Always been a huge fan. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] browser rendering

2013-06-02 Thread Tamara Temple
georg wrote: > Possibly this issue is for other fora, which you might direct me, anyways; It's actually an HTML question. But most PHPers do a lot of HTML, too, it turns. out. :) > I have been dablling making my own little webpages, however having > gotten a nice > result jon fireforx, I realize

Re: [PHP] Re: How to enable cURL php extension on Debian Wheezy?

2013-06-02 Thread Tamara Temple
Csanyi Pal wrote: > Tamara Temple writes: > > My ../apache2/conf.d directory is a symlink to the ../conf.d > > directory. This might indeed be the problem. > > Yes. > My system was Debian Squeeze and I just upgraded it to Debian > Wheezy. Some configuration files a

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tamara Temple
Tedd Sperling wrote: > On Jun 8, 2013, at 3:00 PM, Ashley Sheridan wrote: > dealTek wrote: > > > >> I can see the basic need for a table prefix in a case where you may use > >> one mysql database for several projects at once so as to distinguish > >> tables per project like... > >> > >> -snip-

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tamara Temple
Julian Wanke wrote: > A database for each client? Isn't that over-powered? If you have 1000 > clients, you would loose the overview over your databases... I believe what is being talked about is one DB per application install -- 'client' can be a way-overloaded term. > > Am 08.06.2013, 21:46 U

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tamara Temple
Julian Wanke wrote: > Facebook has 1,11 Billion Accounts. If we divide this through 1000 > members per data team member they need 1 Million data team mebers, > each of them has a salary which I would say is about 2000$. > That means they have to pay 2 Billion US$ (!) per month to the data > team

Re: [PHP] Detect and Redirect Mobile Users

2013-06-15 Thread Tamara Temple
Ford, Mike wrote: > (someone else wrote:) > > $browser = get_browser(null, TRUE); > > if (isset($browser['ismobiledevice']) && ($browser['ismobiledevice'] == > > TRUE)) { > > $isMobile = TRUE; > > } > > else { > > = FALSE; Mike's remarks below notwithstanding, I think something fell off

Re: AW: AW: [PHP] PHP is Zero

2013-06-15 Thread Tamara Temple
BUSCHKE Daniel wrote: > Why is PHP doing that? I know it works as designed and I know it is > documented like this but that does not mean that it is a good feature, > does it? So lets talk about the question: Is that behaviour awaited by > PHP software developers? Is that really the way PHP should

Re: [PHP] LightBox click detection

2013-06-15 Thread Tamara Temple
Tedd Sperling wrote: > It's Friday so I am allowed to ask odd questions. W00T! Friday! > Here's the problem -- I need to count the number of times a user activates a > LightBox -- how do you do that? > > Here's a LightBox Example: > >http://www.webbytedd.com/c2/lightbox/ > > All the jav

Re: [PHP] LightBox click detection

2013-06-15 Thread Tamara Temple
Marc Guay wrote: > $('.lightbox-image-class').click(function(){ > $.post('ajax.php', {click: true}); > }); Do javascript DOM events stack? If they do, this is definitely the simplest way to go. If they don't, you need to capture the previous click handler and call it. -- PHP General Maili

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Tamara Temple
Daniel Pöllmann wrote: > I have some files in a directory - some are uploaded via ftp and some other > are created by a php script. > > Scandir just finds the uploaded files, but none of the created files. > I can't run chown() because the server is part of shared hosting. Please show code and o

Re: [PHP] json stream filter

2013-06-22 Thread Tamara Temple
Markus Staab wrote: > first post on the list, so please bare with me ;-) No, I'm getting nekkee with you... :) > we are handling a lot of cache files in our apps and use json to persist > those contents on the filesystem, because it seems to be the fastest > possible way to read/write files with

[PHP] Thread-Hijacking (was: Re: [PHP] Fwd: Is it possible???)

2013-06-25 Thread Tamara Temple
Maciek Sokolewicz wrote: > Please please please please don't do this! Please Please Please Do Not Hijack Threads. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with variables

2013-06-28 Thread Tamara Temple
Fernando A wrote: > I am working with php and codeigniter, but I have not yet experienced. > I need create a variable that is available throughout system. > This variable contains the number of company and can change. > as I can handle this? Hi, Fernando, welcome. I'm just a little unsure what y

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-28 Thread Tamara Temple
Tedd Sperling wrote: > On Jun 27, 2013, at 8:47 PM, Paul M Foster wrote: > > > On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote: > > > >> holes in sequence of auto increment happen using transaction for > >> insert new record but you don't commit transaction itself > >> it seems that the

Re: [PHP] Web dev, DB and "proper db design".

2013-07-04 Thread Tamara Temple
On Jul 4, 2013, at 8:02 AM, Jim Giner wrote: > On 7/4/2013 6:42 AM, Richard Quadling wrote: >> Hi. >> >> I've just had a conversation regarding DB, foreign keys and their benefits. >> >> I was told "I've never worked on a web application where foreign keys were >> used in the database". >> >>

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Tamara Temple
On Jul 18, 2013, at 12:28 PM, Daniel Brown wrote: > On Thu, Jul 18, 2013 at 3:08 PM, php colos wrote: >> Hello world! >> >> I'm trying to learn PHP ( first programming language that I learn) and >> I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), >> 'getting good with PHP'

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tamara Temple
On Jul 18, 2013, at 6:53 PM, Joshua Kehn wrote: > Could also use jquery instead True, but it's good to see the bare javascript as well in a demo. > > Best, > > -Josh > ___ > http://byjakt.com > Currently mobile > > On Jul 19, 2013, at 4:08, Tedd Sperling wrote: >

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Tamara Temple
On Jul 22, 2013, at 1:19 AM, Karl-Arne Gjersøyen wrote: > Hello again. > I have this this source code that not work as I want... > > THe PHP/HTHML form fields is generated by a while loop and looks like this: > > " required="required"> > > > the php source code look like this: > if(!empty($

Re: [PHP] /tmp/directory

2013-07-22 Thread Tamara Temple
On Jul 22, 2013, at 10:20 AM, Tedd Sperling wrote: > Hi gang: > > I should know this, but I don't. > > Where is the /tmp/ directory? > > You see, I have a client where his host has apparently changed the /tmp/ > directory permissions such that old php/mysql scripts cannot write to the > /tm

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Tamara Temple
On Jul 26, 2013, at 4:18 AM, Karl-Arne Gjersøyen wrote: > Below is something I try that ofcourse not work because of rsosort. > Here is my code: > --- > $lagret_dato = $_POST['lagret_dato']; >foreach($lagret_dato as $dag){ > >$dag = explode("/", $dag); > rs

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Tamara Temple
augh, apologies; i didn't see all the other replies…. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Just passing this along: Free Book

2013-08-02 Thread Tamara Temple
O'Reilly has a free download, apparently through a company called SAVVIS. No affiliation, just passing this along… http://go.savvis.net/paas You give them some contact info, and you get a download link. Nothing is actually checked to see if the info you fill in is real or not. (cross-posted: r

Re: [PHP] fpdf problem?

2013-08-09 Thread Tamara Temple
On Aug 9, 2013, at 10:50 AM, Jim Giner wrote: > I've been using fpdf to create pdf files for my site. All has been well for > over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I > try to print one of these pdfs created by my php scripts. > > The pdf files that I create

Re: [PHP] Finally....

2013-08-16 Thread Tamara Temple
On Aug 16, 2013, at 10:58 AM, Marc Guay wrote: > Those Belgacom emails were the only thing keeping me from a crushing > loneliness - undo! I'll place a forward on my other spam… -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how old is this version of PHP?

2013-08-17 Thread Tamara Temple
Looking into a problem for someone who is using Godaddy Shared Web Hosting (I know..), I noticed the version tag reported by phpinfo is: PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Just how old is this version of PHP?? -- PHP General Mailing List (htt

Re: [PHP] how old is this version of PHP?

2013-08-17 Thread Tamara Temple
On Aug 17, 2013, at 6:26 PM, Camilo Sperberg wrote: > On 16 aug. 2013, at 19:17, Tamara Temple wrote: > >> Looking into a problem for someone who is using Godaddy Shared Web Hosting >> (I know..), I noticed the version tag reported by phpinfo is:

Re: [PHP] exec and system do not work

2013-08-25 Thread Tamara Temple
On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg wrote: > Dear List - > > I'm lost on this one - > > This works - > > $out = system("ls -l ",$retvals); > printf("%s", $out); > > This does - > > echo exec("ls -l"); > > This does not - > > if( !file_exists("/var/www/orders.txt")); > { > $ou

Re: [PHP] exec and system do not work

2013-08-26 Thread Tamara Temple
On Aug 26, 2013, at 1:41 PM, Ethan Rosenberg wrote: > On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: >>> Tamara Temple hat am 26. August 2013 um 08:33 >>> geschrieben: >>> >>> >>> >>> On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread Tamara Temple
On Aug 26, 2013, at 2:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### >$original_url = "/autologin.php"; >$username = "ajay"; >$password = "garg"; >

Re: [PHP] Apache's PHP handlers

2013-09-22 Thread Tamara Temple
On Sep 19, 2013, at 9:14 AM, Arno Kuhl wrote: > Arno: If you can request that file using a web browser, and it gets executed > as PHP on your server then there is an error in the Apache configuration. > > Easy test: create a file in a text editor containing some PHP ( phpinfo(); ?> would be eno

Re: [PHP] filesize() fails on file and works on it's copy (same permissions, same directory)

2013-09-23 Thread Tamara Temple
On Aug 13, 2013, at 3:00 AM, Michał Kochanowicz wrote: > Hello > > I've got a file, which can't be checked with filesize(). I copy it (with > permissions) and then I can filesize() the copy. This is same directory, > permissions are same. I don't understand what's the difference. Can you help

Re: [PHP] Apache

2013-09-23 Thread Tamara Temple
On Sep 23, 2013, at 1:36 PM, Domain nikha.org wrote: > Better solutions? One I have used, and continue to use in Apache environments, is place uploads only in a place where they cannot be executed by turning off such options and handlers in that directory. This is *in addition* to untainting

  1   2   3   >