[PHP] testing my being subscribed

2008-08-20 Thread Govinda
am I subscribed? I had to check. The other (php-install) list just sent me emails (when I tried to post) saying I was abusing the system (even though I am sure I subscribed properly and received the email confirming that fact). -- PHP General Mailing List (http://www.php.net/) To

[PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Govinda
(.jpg) and their number is equal to the actual number of files in that dir (plus 2 - for the . and .. files). How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'? Thanks, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] newbie Q: How to say, if the fileNAME is equal to..., or better yet, if the fileNAME ends with '.jpg'?

2008-08-24 Thread Govinda
Should I send replies to just the list?, or is the etiquette to reply- to-all? fun? work? you must be new :-) new to PHP; could get boring after a long time with it, sure... but I have that 'coder's bug'... i.e. once fluent, then creatively solving problems is fun! okay enough jokes

[PHP] WHERE is syntax doc'ed for saying: if (expr1 *OR* expr2 *AND* expr3)

2008-08-24 Thread Govinda
I swear I am RTFM, but it's an art in itself (at first anyway)/ WHERE is the syntax doc'ed for saying: if (expr1 *OR* expr2 *AND* expr3) { ? I got *AND* to work with , but | does not seem to work for *OR* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] WHERE is syntax doc'ed for saying: if (expr1 *OR* expr2 *AND* expr3)

2008-08-24 Thread Govinda
I had been to that page, tried this: if (stripos(strrev($file), gpj.) === 0) || (stripos(strrev($file), fig.) === 0) || (stripos(strrev($file), gnp.) === 0) { (yes, Jochem, the regExp solution is best, but I am practicing things ;-) and got Parse error: syntax error, unexpected

[PHP] concatenating with . or ,

2008-08-24 Thread Govinda
easy to find our about concatenating with . in the docs... but not so with , what is the difference? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] concatenating with . or ,

2008-08-25 Thread Govinda
it must be related to something Maciek was showing in his excellent example, but I am too green to see. On Aug 25, 2008, at 7:48 AM, Thiago Melo de Paula wrote: Govinda, please, consider the following code: ?php $brandA = 'Porshe'; $brandB = 'Jaguar'; $testA = $branA . $brandB; //testA will have

Re: [PHP] concatenating with . or ,

2008-08-26 Thread Govinda
to thank people all the time for so many things. What to do? -G for 'gratitude' and Govinda Oone is a concatenated string, the other is arguments. Arguments are executed and output in order, whereas the concatenation causes the function calls to be executed first and then the echo to display

Re: [PHP] Manual Coding vs. CMS Systems

2008-08-28 Thread Govinda
(is Joomla a kind of wysiwyg editor? Does CMS mean content management system? ..like blog software?) I leave the commentary about CMS Systems/Joomla -vs.- hand-coding to the experts here who have had way more experience with both than I have... What I can offer may be considered OT or

Re: [PHP] casting static property

2008-08-31 Thread Govinda
On Aug 31, 2008, at 2:17 PM, Jochem Maas wrote: another tip: don't top post :-) does top post mean to puts one's reply text at the top of the email? People prefer it to be at the bottom? Personally I like the new text to be at the top so I don't have to scroll down to see the new part,

[PHP] switch case - to require the break statements seems strange to me

2008-08-31 Thread Govinda
Not that it is an issue, but just to understand the logic- Why do we have to use 'break' statements in each case? switch ($i) { case 0: echo i equals 0; break; case 1: echo i equals 1; break; case 2: echo i equals 2; break; } all 3 cases fire, even though $i only equals

[PHP] newbie - how to receive/iterate posted arrays

2008-09-01 Thread Govinda
argument supplied for foreach() Seems so simple, but I can't get it... What am I doing wrong? -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - how to receive/iterate posted arrays

2008-09-01 Thread Govinda
Thanks Diogo! , and other who replied! You nailed it (Of course! you would say.) I didn't reply sooner as we had a power out (just enough to get me to go to bed already ;-) -G On Sep 1, 2008, at 2:31 AM, Diogo Neves wrote: foreach($_POST['$tmbsToiterate'] as $value) {

[PHP] newbie - PHP escaping trigger happy

2008-09-01 Thread Govinda
circumstances it was designed for... but not now, and I don't know how to turn it off. Thanks, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - PHP escaping trigger happy

2008-09-02 Thread Govinda
of \'). magic_quotes_sybase = Off I go into webmin -- PHP and 'hand-edit' the PHP config file to convince myself that what I did should be recognized by Apache/PHP, and the textarea contents match. So, WHY is php still escaping my quotes? -Govinda On Sep 2, 2008, at 10:36 AM, [EMAIL PROTECTED

Re: [PHP] newbie - PHP escaping trigger happy

2008-09-02 Thread Govinda
On Sep 2, 2008, at 6:02 PM, Seung Park wrote: 1) did you restart the server to take advantage of the new settings? no. That was it. Solved. Sorry for what turned out to be OT. When we're that green, we don't know OT from T. 2) are you sure you're running the php.ini at all? (run

Re: [PHP] Join The Team

2008-10-06 Thread Govinda
On Oct 6, 2008, at 12:00 AM, Hemant Patel wrote: Hi...ALL... With Regads, Hemant Patel Namaste Hemant :-) (I as in Uttar Kashi for 7 years.) I am sure you all are quite aware of this, but in India 16,000,000 is written 160,00,000. -Govinda -- PHP General Mailing List (http://www.php.net

Re: [PHP] searching by tags....

2008-10-15 Thread Govinda
much benign and useful help makes us wanna be newbies cringe. I would be tempted to say the same if someone said harsh things towards you guys, except that you'd beat me to your own defense. ;-) -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] logic for grabbing what we need from user-input addresses for AVS?

2008-10-18 Thread Govinda
, ;-) -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] logic for grabbing what we need from user-input addresses for AVS?

2008-10-19 Thread Govinda
On Oct 18, 2008, at 11:10 PM, Robert Cummings wrote: On Sat, 2008-10-18 at 22:56 -0600, Govinda wrote: To cut down on fraudulent orders, our cc processor (whatever we call them), to enable Address Verification System (AVS), ... The docs make this clear that they want: The numeric

[PHP] 2 successive commands in one shell_exec?

2008-10-20 Thread Govinda
the script in that dir. like these 2 successive commands in terminal: cd $MyPath ./MyOtherCGI.cgi It seems initially clear at lease how to do either one of those terminal commands from within shell_exec, but not *both*. How do I get both commands in there? Sorry if my Q is too green -Govinda -- PHP

Re: [PHP] take me off the list

2008-11-03 Thread Govinda
On Nov 3, 2008, at 6:37 AM, Jochem Maas wrote: Sort out who you are and the world might start to make sense. that deserve's it's own T-shirt :) -Stut LOL! :-) That knowledge has earned more than a T-shirt! It is Eternal; written in modern and ancient scripture since time immemorial.

[PHP] OT? my own posts are invisible to me. How to decloak?

2008-11-03 Thread Govinda
Hi all this may be a matter of settings on my own software, and so OT for this list, but I have sincerely looked more than once and still can't find it, so I ask? Does anyone know why can't I ever see my own posts to this list (or another list I subscribe to)? I want to. -Govinda

Re: [PHP] OT? my own posts are invisible to me. How to decloak?

2008-11-03 Thread Govinda
That's a combination of the list software configuration and Gmail. Thanks a lot guys. Looking forward to more interaction here in coming weeks as I gradually/hopefully shift more of my time into PHP from other software. -G -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] It's Sunday, and I'm bored...

2008-11-09 Thread Govinda
Being sunday, I don't feel too shy to ask: What are you guys all referring to? My best guess is some version control software that regulars here seem to all know about. Maybe I need to get me some of that... several times lately I dove into thick hairy code and got neck deep and then with

Re: [PHP] It's Sunday, and I'm bored...

2008-11-09 Thread Govinda
On Nov 9, 2008, at 12:28 PM, Richard Heyes wrote: Subversion, or svn for short. Helps you maintain code bases. Far better than regular backups (though by no means a replacement). I looked it over briefly and it looks smart for serious collaborated efforts.. but i ask - is anyone finding

[PHP] piecing together basic knowledge of paypal nvp api PHP - to work together

2008-12-01 Thread Govinda
me what you have done with this. I have so much homework to do I would like to start with what will actually solve my issues now rather than read the whole library just to complete this assignment. Thanks, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Last working day of a month

2008-12-04 Thread Govinda
you need a process with a few simple steps. 1. find the last day of the month, this is quite easy ... google gives answers as does the manual. e.g.: http://lutrov.com/blog/php-last-day-of-the-month-calculation/ 2. determine if this is a week day. if yes go to step three else 'roll the

Re: [PHP] Increase your monthly income!

2009-04-09 Thread Govinda
Quite frankly, I asked myself that same question earlier but I thought Dan was in charge of such stuffs. He's been very quiet on a lot of things lately. Hey guys, does anyone know where Dan's been? i'm guessing he's gone on a short course or maybe AWOL. pretty sure he has answered this

Re: [PHP] I need ideas for things to code

2009-04-27 Thread Govinda
clients, etc.? Doesn't have to be free, but maybe there already is some great stuff out there that is? -Govinda On Apr 24, 2009, at 5:00 PM, Andrew Hucks wrote: I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any

[PHP] point me to functions to parse the URL? (best one for *this* job?)

2009-06-25 Thread Govinda
want: $myfolder=default I am playing with $_SERVER['PATH_TRANSLATED'], .. what function will parse that best? I need to also account for when the URL does not have an in-between dir/, nor a filename in it, e.g.: domain.com/ (then again $myfolder=default) TIA! -Govinda -- PHP General Mailing

[PHP] why is this shell_exec() failing to execute my shell to create a symlink?

2009-06-27 Thread Govinda
/prebrthirdCMD= $thirdCMDhr; ? is not producing the symlink that I think it should. (?!?) (neither in the dir/ where this script lives, nor in the testDir/ where I am actually trying to create it, on the fly. Server is not in safe mode. Govinda govinda.webdnat...@gmail.com

[PHP] symLink Test also failing. (then is it a permissions issue? - also see my previous post about shell_exec failing)

2009-06-27 Thread Govinda
); -- returns: symLinkTest=bool(false) -- the amex_cid.gif' file is definitely there in the testDir/ dir. ?? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Govinda
.I want to change it to index.php. I realize this is really basic stuff, but I can't find it in my cPanel. Can someone point me to this? -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Govinda
If you have mod_rewrite installed - put the following in your .htaccess file: RewriteEngine on RewriteRule ^index\.html$ index.php [L] That will cause index.php to be called when index.html is requested. If you want it to forward to index.php then use [R] instead of [L] If you want all

Re: [PHP] generally, where in cPanel can one set the default page to load?

2009-07-02 Thread Govinda
On Jul 2, 2009, at 11:40 AM, Daniel Brown wrote: On Thu, Jul 2, 2009 at 13:38, Govindagovinda.webdnat...@gmail.com wrote: I must not have mod-rewrite installed (I am 98% uneducated about apache/server admin). I will save your post though MIchael, for when I get more to that level.. you

[PHP] is there a way to get more info about *why* the initial (DB PEAR) connect to db is failing?

2009-07-03 Thread Govinda
Error: connect failed Any advise to find out WHY this is failing? (Note: I am fairly new to PHP, and brand spanking new at anything db- related with PHP.) thanks, Govinda -- P.S. I realize this had probably been covered countless times (best step by step advice how to troubleshoot the first

[PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
within the root of my virtual server. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 2:33 PM, Govinda wrote: I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that ?php include '/somedir/somefile.php'; ? would include somefile.php living in somedir regardless from where

[PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 2:33 PM, Govinda wrote: I am confusing myself reading the docs just now. i.e.: include_path basename() and dirname() I had thought from many months ago that ?php include '/somedir/somefile.php'; ? would include somefile.php living in somedir regardless from where

Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 4:17 PM, Michael A. Peters wrote: I use $includeArray[]=/usr/share/pear; $includeArray[]=/some/other/path; $includeArray[]=/yet/another/path; $incPath = impode(':',$includeArray); ini_set(include_path,$incPath); is that ^ something one can generally set on a

Re: [PHP] Re: best way to properly build an include path *regardless* from where I am calling the include?

2009-07-05 Thread Govinda
On Jul 5, 2009, at 6:15 PM, Shawn McKenzie wrote: AFAIK, include '/somedir/somefile.php'; looks for that specific file in that specific path because you gave an absolute path. Well, that is what I wanted. So I tried this: include '/MY_inc_php/GovBC_php_functions.inc'; but that fails. So I

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Govinda
. ..lucky me this is such a generous and compassionate group of people here. Thanks again -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Govinda
On Jul 6, 2009, at 9:24 AM, Daniel Brown wrote: On Mon, Jul 6, 2009 at 11:04, Govindagovinda.webdnat...@gmail.com wrote: Kim, this is exactly what I was looking for. I had been over $_SERVER in the docs.. but somehow missed that basic obvious param. Thanks! And now I'll throw a

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Govinda
I want something that will work for calling an include from any file that lives n levels deep. That's where you have to define a variable (or constant) that tells the system where the web root is located, and then use that to determine where you are in relation to that. For example: ?php

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Govinda
I'm not sure how this could be made simpler. $site_root = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR; Call that in any file in the root of *your* web directories, and you have what is essentially the document root for *your* site. Presumably, you know the *relative* directories of all

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Govinda
in terms of nourishing ability... in nourishing the subtle feeling of those around us. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysterious f character appearing. Why??

2009-07-09 Thread Govinda
could be causing this? ??? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Govinda
problem was solved, it was just a simple typo and sometimes all it takes is a fresh pair of eyes. The confusing part comes in when it prints to the screen and your mind looks in that area of the code and finds nothing because it actually somewhere else and because it is outside of a tag the

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Govinda
-guide the OP, please correct me! Govinda govinda.webdnat...@gmail.com

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Govinda
believe the original poster was Govinda. yes, look for posts with this subject line: Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include? (just don't ask me to explain everything that those good souls were trying to teach me in those posts.. I

[PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-10 Thread Govinda
How do I get basename(__FILE__) or htmlentities($somevar) to be evaluated in a heredoc? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-10 Thread Govinda
On Jul 10, 2009, at 6:34 PM, Zareef Ahmed wrote: heredoc was there to work with the strings... why you want to use functions into that? I'm lazy. Like to type less. ;-) But now I know. Thanks guys. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Govinda
On Jul 11, 2009, at 11:26 AM, Eddie Drapkin wrote: $foo = EOT $bar[hello] EOT; what does EOT stand for? (I realize that string can be anything.. but I am just asking what EOT means to everyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Govinda
is it complaining to me? p.s. what is a resource compared to a string? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_real_escape_string wants a string or a resource?

2009-07-11 Thread Govinda
For the longest time, we were having a problem in the docs where some mirrors were erroneously redirecting references to mysqli_real_escape_string() to mysql_real_escape_string(). Should all be fixed now (and certainly is on the US2 mirror). In my case, I had somehow got the idea that the

[PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-11 Thread Govinda
it from PHP. What are you guys using to dump 'everything-you-always-wanted-to-know- about-your-table'? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-12 Thread Govinda
On Sat, Jul 11, 2009 at 19:57, Govindagovinda.webdnat...@gmail.com wrote: I have been using PEAR's tableInfo() to remind myself about the columns in the table.. but now I want to see as much data as possible about the table and its contents *without* using PEAR. (I.e. just using built in

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-13 Thread Govinda
I have this code: $db_billing=mysqli_connect(localhost,metheuser,mypass,billing); if (mysqli_connect_error()) { die(Can't connect: . mysqli_connect_error()); } mysqli //$dbname = 'billing'; $sql = SHOW TABLES; $result = mysql_query($sql); // line 53

Re: [PHP] I have an idea

2009-07-15 Thread Govinda
have a choice.) -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I have an idea

2009-07-15 Thread Govinda
in the sky on the top right. Let me know how it goes! Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Govinda
a client, OR edited a client { echo 'input name=EditExistingClient type=submit value=Edit This Client'.\n; } what ridiculously simple thing am I missing? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: why is this SIMPLE elseif not firing?

2009-07-15 Thread Govinda
nevermind.. sorry for the noise. It was my if clause that was firing too much, and never even reaching that elseif. -G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Govinda
I realize this is after the fact, but... The above does not indicate WHAT it is set too. Just that it is set. it could be set to /null/, FALSE, or 0 and they would all return false, and fail, in your if condition later on. I understand. I appreciate your taking the time to explain

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-15 Thread Govinda
Better late then never! :) I played around with your code tonight and got this working on a test server: ?PHP $db_billing = mysql_connect($DBHOST, $DBUSER, $DBPASS) or die(Could not connect: .mysql_error()); $db_selected = mysql_select_db($DB, $db_billing); if(!$db_selected)

Re: [PHP] Scope of Variables and use of global and this-var

2009-07-16 Thread Govinda
On Jul 15, 2009, at 3:28 PM, tedd wrote: My way -- every time I open a database, I do so by including the configuration.php file that holds the logon/password et other data to connect with the database. When I'm done with what I want from the database, I close it. If one does not close

[PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
process all .html files in this and in any new subdirectory(ies) that I will make. Can someone point me to what I need to pay attention to? Thank you -Govinda Govinda govinda.webdnat...@gmail.com

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
On Jul 18, 2009, at 6:36 PM, Adam Shannon wrote: On Sat, Jul 18, 2009 at 7:01 PM, Govinda govinda.webdnat...@gmail.com wrote: Hi all, ..sitting here thinking this is so easy, and I must have been over this already in the past.. but it is eluding me just now.. I can't figure out why

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
Just add this to your root .htaccess AddType x-mapp-php5 .html Thanks Adam. But still no luck. I did add that line to the .htaccess file in my doc root, but my file.html in subdir/ is still not being parsed by PHP. ?? Try to put that same line of .htaccess into the sub directory. Your

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
You do realize that PHP does not parse HTML files, right? The web server does that. In fact, the web server also parses PHP files, using a different library. I understand. I just was saying it that way. Actually I rarely think too deeply about that specifically, but now that you pointed

[PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Govinda
i never used x-mapp-php5, but most of a forums say it is specific to 1and1 hosting service. php recommends application/x-httpd-php http://us2.php.net/manual/en/install.unix.apache2.php try adding AddType application/x-httpd-php .html in your root htaccess hmmm. Darn! I just did try what

Re: [PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Govinda
Generally, if a file has a .html extenstion, then it should really just contain html. .php extensions are meant for php code containing html. File extension has absolutely no bearing at all on the contents of the file. There's valid reasons to not expose what's what under the hood,

Re: [PHP] need to get .html files parsed by PHP. -- WAS: why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Govinda
Most security issues have nothing to do with the programming language and everything to do with the code. Just because facebook uses the .php extension certainly does not mean their code has no security holes and even if it's clean it certainly doesn't mean your code will be secure. Stuart I

[PHP] newbie: how to return one iteration *per unique date (DAY!)* in a timestamp column?

2009-08-02 Thread Govinda
do my RTFM; can someone just give me a good point in the right direction. Thanks! John Butler/(Govinda) govinda.webdnat...@gmail.com

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Govinda
. Hang in there! Sounds like you are. :-) Hats off to you. And best wishes, of course! -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Govinda
satisfying is contributing to someone getting good at this stuff, even if at a humble pace. John Butler (Govinda) govinda.webdnat...@gmail.com

Re: [PHP] OUCH (RESOLVED)

2009-08-05 Thread Govinda
... Peace and Happy Wednesday Terion :-) nice! In the end, I imagine that if it was all taken away suddenly and for good, that we'd all miss the real people here more than any of the rules, logics, and practicalities of getting paid work done.. -- PHP General Mailing List

Re: [PHP] dynamically naming PHP vars on the fly?

2009-08-05 Thread Govinda
You can use variable variables ... You can make more complicated statements with this technique. $var1 = 'apple'; ${ 'Fruit_' . $var1 } = 'organic'; echo $Fruit_apple; // here you are thank you all 3, for your help! That was just what I wanted! -Govinda -- PHP General Mailing List (http

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-06 Thread Govinda
Others have mentioned variable variables. While I have used those, I tend to prefer arrays: $var1 = 'apple'; $fruits[$var1] = 'organic'; echo $fruits[$var1]; /Nisse ah, yes, I see that too, now. Thanks for reminding me about arrays. (You must be quite adept at arrays. ) (And to give you

[PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread Govinda
.) Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread Govinda
? This kind of thing is all new to me. I need to see some sample code to even start to get an idea. Thanks for your (all) time, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-07 Thread Govinda
line? (If I said that right.) Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-09 Thread Govinda
On Aug 6, 2010, at 8:28 PM, Daniel P. Brown wrote: On Fri, Aug 6, 2010 at 19:53, Govinda govinda.webdnat...@gmail.com wrote: can you elaborate? This kind of thing is all new to me. I need to see some sample code to even start to get an idea. Hopefully Tedd will notice this thread

[PHP] break out of ?php... midway thru' an if { } statement ?

2010-10-11 Thread Govinda
{ ... Govinda govinda(DOT)webdnatalk(AT)gmail(DOT)com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] break out of ?php... midway thru' an if { } statement ?

2010-10-11 Thread Govinda
If I understand the question correctly, I think the answer is yes. great!! Next time I will save myself so much time! Thank you guys! -G Alternative syntax for control structures http://php.net/manual/en/control-structures.alternative-syntax.php -- PHP General Mailing List

Re: [PHP] Google Calendar

2010-10-12 Thread Govinda
before the heredoc closing identifier on the same line. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google Calendar

2010-10-13 Thread Govinda
a parse error or a fatal error? ..and will that script ever reach end of file? Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php imap_search fails for subject strings which have apostrophe

2010-10-22 Thread Govinda
. Can you please show the code you are using to do the escaping? Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] desire your recommendation for our specific HTML - PDF project

2010-12-03 Thread Govinda
the need here, then *please advise*! Thanks! -Govinda Govinda govinda(DOT)webdnatalk(AT)gmail(DOT)com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] desire your recommendation for our specific HTML - PDF project

2010-12-05 Thread Govinda
Govinda, Have you/your team consider using pure CSS (using media screen print) for formatting? This may save you from having to deal with PDF (extra codes - slower performance, extra steps in save then print, extra storage space just for temp save, etc... ) since they only need

Re: [PHP] desire your recommendation for our specific HTML - PDF project

2010-12-05 Thread Govinda
different browsers and see what you get. Does your page's data cells (now printed on paper) exactly line up with the Avery template which you modeled after? Are the tests from different browsers producing the exact same printout? -Govinda For the font size, you should use pt also - 10 or 11 pt

[PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-07 Thread Govinda
with this, Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-08 Thread Govinda
.. I did find out with the help of the host.. that the issue was because PHP was running in fastcgi mode instead of apache module mode. Now it is behaving as expected. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO: good, popular?

2010-12-14 Thread Govinda
of one's own thorough understanding. Govinda govinda(DOT)webdnatalk(AT)gmail(DOT)com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How does one reply to messages on this list?

2010-12-16 Thread Govinda
of the subtleties in how the list send copies to whom, and why. Your Q, and the replies.. clarified much. Thank you! -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPmailer.. best way to send to many recipients?

2010-12-18 Thread Govinda
. Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with Include

2010-12-19 Thread Govinda
$file_name= basename($_SERVER['PHP_SELF']); $last_modified = filemtime($file_name); print(This page last modified ); print(date(m/j/y, $last_modified)); you need to wrap the contents ^^^ of the include file with ? php ? Govinda -- PHP General Mailing List (http

[PHP] Re: PHPmailer.. best way to send to many recipients?

2010-12-20 Thread Govinda
mean does it make any difference in terms of code reliability whether I loop on $mail- Send() -versus- looping on/concatenating the Bcc addresses? Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHPmailer.. best way to send to many recipients?

2010-12-21 Thread Govinda
). Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2010-12-28 Thread Govinda
... And yes, I'm the OCD geek with such passwords. Dotan, that is great! You made a dry topic hilarious! (on top of the practical points you make.) Thanks! Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >