Re: [PHP] Re: limiting

2012-10-10 Thread Govinda
ky. This is all logic, not luck. Luck is not enough to rely on in coding. There are many many people on this list who are feeling supportive of you... hoping you do not get discouraged, but do try again, and again. :-) -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Govinda
> [snip] > When posting, please try to write every bit of effort you had so far trying > to solve your problem. > > Besides that, please, don't feel sad or ignored or whatsoever if the answers > you've got wasn't satisfactory or doesn't came at all. As Matijn said, this > list isn't meant to b

Re: [PHP] Programmers and developers needed

2012-09-19 Thread Govinda
are to share your hosts file? ;-) Thanks, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this list less busy than it used to be?

2012-07-04 Thread Govinda
even more/better tools than ever with which to zero in on just the skill level (or topic) that we need/want to zero in on. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Govinda
> No postings for days. everyone RTFM? :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Injection

2012-06-08 Thread Govinda
ers can search all the pages (db data) of the "site" for that country (in that country's main language)? IOW form input that I cannot just force/sanitize to e.g. (english) alphanumeric (+ spaces), and I cannot just switch to using PDO without rewriting all the code in all

Re: [PHP] SQL Injection

2012-06-08 Thread Govinda
get a sense of the shelf life on legacy code (that relies on escaping) which I am not keen to have to re-write, for free, until I really must. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Injection

2012-06-08 Thread Govinda
neral) ... but just curious - can anyone demo a hack that effectively injects past mysqli_real_escape_string(), while using utf-8 ? It may just be a matter of time (or already?) before mysqli_real_escape_string is *proven* ineffective (w/utf-8) ... but here I am just attempting to gather fact

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Govinda
variable >> >> When just starting out, "Google is your friend". >> >> Or did I misunderstand your question? >> >> -Govinda Devang, Please keep replies on-list. Please post your replies at the bottom, past the older (snipped) content. Many here

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Govinda
ive+a+PHP+variable When just starting out, "Google is your friend". Or did I misunderstand your question? -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-02 Thread Govinda
ore details: > http://stackoverflow.com/questions/10843600/ For the archives / anyone following this thread: Thanks to the developer of HTMLpurifier, it was just fixed here: http://repo.or.cz/w/htmlpurifier.git/commit/f38fca32a9bad0952df221f8664ee2ab13978504 -Govinda -- PHP General Mailing Li

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Govinda
we got off list, without meaning to, it seems. Here are the last few posts in the thread: > >>> On Fri, Jun 1, 2012 at 12:46 AM, Govinda >>> wrote: >>>>> Perhaps you should spend some time looking for a better text editor >>>>> for your

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Govinda
is one: [snip]htmlpurifier-4.4.0\library\HTMLPurifier\AttrDef\CSS\Font.php ...and changed line 45 to this: //$lowercase_string = strtolower($string);//Govinda hack $lowercase_string = $string; but still no luck. >> Have you tried http://htmlpurifier.org/phorum/ and did you not

[PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Govinda
not want. The issue is that I need the input CSS's case to be left as the user input it (so that for example background image paths in that CSS do not break). more details, attempted fixes, etc.: http://stackoverflow.com/questions/10843600/ Thanks for any thoughts/tips of any kind -Govinda --

Re: [PHP] regexp novice

2012-05-17 Thread Govinda
> > FWIW - I couldn't find much in the way of tutorials on the meanings of the > various chars in regexp's. this helps alot: http://www.gskinner.com/RegExr/ you can paste your pattern (needle) in the top input, and hover over each char to see what it means in grep land. Paste your haystack

Re: [PHP] Converting date string to unix timestamp

2012-05-13 Thread Govinda
ur post, you can check (drill down) here: http://marc.info/?l=php-general -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP & Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Govinda
swer. You can train here or on stackoverflow.com, but anywhere you go, you will find the same situation, that you have to use baby steps (as necessary) - for your own learning, and to get any decent help. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Upcoming Outage: php.net

2012-04-13 Thread Govinda
>This coming Monday, 16 April, 2012, between the hours of 18:00 and > 20:00 EDT (22:00 to 00:00 GMT), the one of the primary php.net servers > will be undergoing a critical preventative maintenance operation. > [snip] thanks for the heads up! :-) -- PHP General Mailing List (http://www.php

Re: [PHP] php books

2012-04-10 Thread Govinda
ience with various languages from the "Head First" series. That series is generally really user friendly and makes it easy to dive in to the language covered by whichever book you choose. E.g.: http://www.headfirstlabs.com/books/hfphp/ HTH -Govinda -- PHP General Mailing List (http://w

Re: [PHP] Re: Got HTML5 History API + caching LICKED, I think,

2012-03-23 Thread Govinda
pecific question.. but by now people are wondering, what does this thread have to do with PHP? This is a list for PHP tips/tricks/questions, etc. Maybe there is an online service somewhere that connects people who want to trade expert technical critique? Thanks, -Govinda -- PHP General Ma

Re: [PHP] Pear Auth problem

2012-03-21 Thread Govinda
;); > } > } > ?> > > The example is located at: > http://pear.php.net/manual/en/package.authentication.auth.intro.php Karl, You'll want to turn on error reporting so you can start to get a peak into what is happening.. Do you know how to do that? (... so that you get more info. than just a blank page). -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql list to two-column list

2012-03-19 Thread Govinda
he HTML that mimics what you mocked up. If you get stuck with the HTML part of this task, then consult a good HTML list. If you get stuck with something specific to PHP, then ask again about that, here. Good luck, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Got HTML5 History API + caching LICKED, I think,

2012-03-16 Thread Govinda
ndset sometimes. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: looking for an array sorting function.. just not sure which one.. and how yet

2012-03-10 Thread Govinda
to Stephen too for your reply. I appreciate the points you made.. and why, I believe. (Even if I am not heeding them all just now) Thanks guys! -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] looking for an array sorting function.. just not sure which one.. and how yet

2012-03-10 Thread Govinda
d to this job.. and perhaps give me an example in pseudo code if that helps make it more clear in this case. Thanks! -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script execution after window close

2012-03-04 Thread Govinda
.. and what you have tried that is not working the way you thought it should. So far it is not clear enough to me anyway - to help. But that could be because of my shortcomings more than your post's shortcoming; I am not expert on many topics covered on this list, especially in the a

Re: [PHP] Script execution after window close

2012-03-04 Thread Govinda
> in factI really need to remove the file ( which will be created for > every access - making a copy from another location ). I can't leave that > file alone for ever in the user disk space! :( Fine, so delete it after a period of inactivity -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PDF Printing instead?

2012-01-05 Thread Govinda
>> Also try dompdf from digitaljunkies.ca. It allows you to pass an HTML doc to >> the code to provide a PDF > > I think in this case it should say "It doesn't work!". :) maybe this: http://code.google.com/p/dompdf/ -G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] array

2011-12-31 Thread Govinda
arrays where you generate your own custom keys, and those keys can be strings instead of numbers.) $arrParts = array('spark plug', 'rear-view mirror', 'steering wheel'); $arrFruits = array('apple', 'banana', 'orange'); To use the ar

Re: [PHP] Online Form Creation

2011-12-22 Thread Govinda
ata, then great! This is the right place to ask! But we need to see code you attempted, in order to know your level of understanding, and so be able to guide better. > I will follow your suggestion and submit my work. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dealing with this code $_POST['custom“]

2011-12-16 Thread Govinda
ot;ternary operator" in this page: http://www.php.net/manual/en/language.operators.comparison.php -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] offline practice

2011-12-10 Thread Govinda
ng else, please make it more clear. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sniping on the List

2011-11-15 Thread Govinda
> > You should have seen some of the lambasting that used to pass as > discourse back when this list had traffic. :] I have to (humbly) admit that I for one like it that this list has less traffic now because it gives the illusion that I am keeping up ;-) -Govinda -- PH

Re: [PHP] Friday Distraction

2011-10-21 Thread Govinda
oblems (for solving sake) wears off, then it seems to me that programming, as such, is no more interesting, in the end, than the stuff the code serves. What does truly uplifting/evolutionary code look like anyway? -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] starting php by asking basic questions

2011-10-16 Thread Govinda
x27;); ...will output this on the page in the browser: "Sun, 16 Oct 2011 11:28:31 -0400" Good luck, -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help Wth PHP

2011-10-10 Thread Govinda
at you need. Besides finding a suitable forum/list, just doing searches on Google will undoubtedly yield the answers you want, too. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Secure data management

2011-10-07 Thread Govinda
http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Secure data management

2011-10-06 Thread Govinda
the whole everything like you few experts here who really know exactly what everyone is talking about (or when they are just groping in the dark). -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-09-14 Thread Govinda
doing what work is called for. -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] notices nightmare - looking for a regex solution

2011-06-01 Thread Govinda
d code (hassle) to walk all your directories for affected files. - Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iPhone sadness

2011-05-31 Thread Govinda
rules are not open to debate or opinion (in the sense that the opinions do not affect the rules). On this topic the rule of this list is "do not top post". It anyone top posts they are ignorant of the rules, or choosing to ignore them. - Govinda -- PHP General Mailing Lis

Re: [PHP] Improve server HTTP GET server response - HTTP 1.1 ?

2011-04-26 Thread Govinda
ter it). How are you going to fix it if you do not even know what is the cause? -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email address syntax checker

2011-01-23 Thread Govinda
could actually play Civ-V which I just bought.. .. not to mention my business idea guaranteed to make a mint and be a ton of fun (if I had a year off to code it)... ;-) ---- Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email address syntax checker

2011-01-23 Thread Govinda
placement, $emailToCheck); if($emailChecker == 'theEmailAppearsValid') { //--theEmailLooksValid, so use it... } else { //--theEmailLooksBad, so do not use it... } Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Two forms on one page

2011-01-03 Thread Govinda
form to appear after inputting data, but *before* even submitting the first form? If that is the case, then you are talking about javascript and that is not PHP, and not related to the PHP lists. (Ask on a javascript (JS) list how to do that, or get an intro JS book.) Go

Re: [PHP] Two forms on one page

2011-01-03 Thread Govinda
show the 1st form: echo "this is form # 1"; echo ""; echo "Enter your date of birth, in mm/dd/yyyy format: "; echo ""; echo ""; echo ""; break; } ?> --- -Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] goto - My comments

2010-12-31 Thread Govinda
, if you start from the beginning. I'll be here all day today, and back on monday... to answer your posts. Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static content at runtime

2010-12-28 Thread Govinda
: publish static content.. and for the changing menu number, use Ajax instead of PHP include(s). Would that be any better? ...or maybe it is effectively the same "dynamic" burden in the end? -------- Govinda -- PHP General Mailing List (http://www.php.net/) To unsubscr

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

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

2010-12-21 Thread Govinda
f (out of Bcc). ---- 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-20 Thread Govinda
OK, understood. Here I am just asking about the code. I 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

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] PHPmailer.. best way to send to many recipients?

2010-12-18 Thread Govinda
't know if/when it will ever grow past 1,000. Govinda -- 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
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

Re: [PHP] PDO: good, popular?

2010-12-14 Thread Govinda
hing replaces integration 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] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-08 Thread Govinda
thanks for looking.. 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

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

2010-12-07 Thread Govinda
: echo "Hello {$_SERVER['PHP_AUTH_USER']}."; What am I missing? Thanks for your bothering to help with this, Govinda -- 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
s and then actually print that page from 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 fo

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

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

2010-12-03 Thread Govinda
feel would fit 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] Template engines

2010-11-09 Thread Govinda
. whatever they need. I am looking forward to getting to this level with PHP in coming months/years. I would not bother with a templating engine or any framework until I could have written it myself, if I had wanted.. whether or not I actually do, in the end. -Govinda -- PHP General Ma

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

2010-10-22 Thread Govinda
ld guess the way you are attempting to escape the non-alphanumeric chars is faulty. 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

Re: [PHP] work online

2010-10-18 Thread Govinda
im to serve someone(s) who need(s) whatever you can do .. and keep on trying to actually produce something they actually need.. Let money be the secondary+ consideration. That kind of service orientation to "work" opens all the doors. ---- Govinda govinda(DOT)webdnatalk(A

Re: [PHP] Google Calendar

2010-10-13 Thread Govinda
doc, then does that produce 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] Google Calendar

2010-10-12 Thread Govinda
tab 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] break out of

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" -- PHP General Mailing List (http://www.

[PHP] break out of

2010-10-11 Thread Govinda
echo ''."\n"; echo ''."\n"; echo ''."\n"; /*--- here is the ***MT*** block/include ---> ---*/ name="PageMoreNoCRLF"> echo ''."\n"; ech

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 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. He's the man when it

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

2010-08-07 Thread Govinda
mands on the command 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-06 Thread Govinda
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

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

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

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

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] dynamically naming PHP vars on the fly?

2009-08-05 Thread Govinda
Or how are you guys dynamically naming PHP vars on the fly? John Butler (Govinda) govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 (http://www.php

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

2009-08-04 Thread Govinda
but much more 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] Re: Dan Brown

2009-08-03 Thread Govinda
u are having one of these times Dan. 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

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

2009-08-02 Thread Govinda
uld only fire 3 times. I 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] 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 h

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

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

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 it

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
On Jul 18, 2009, at 6:36 PM, Adam Shannon wrote: On Sat, Jul 18, 2009 at 7:01 PM, Govinda 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 files with the

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

2009-07-18 Thread Govinda
et PHP tp 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] 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 i

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: $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] 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 things.

[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

[PHP] why is this SIMPLE elseif not firing?

2009-07-15 Thread Govinda
OR edited a client { echo ''."\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://www.php.net/unsub.php

Re: [PHP] I have an idea

2009-07-15 Thread Govinda
o play in the help menu - the "?" icon 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

Re: [PHP] I have an idea

2009-07-15 Thread Govinda
-7 I don't know... I use Mac when I have a choice.) -Govinda -- 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-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] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-12 Thread Govinda
On Sat, Jul 11, 2009 at 19:57, Govinda 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 stuff for m

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

2009-07-11 Thread Govinda
f. just the basics, all with respect to doing 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] 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 do

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

2009-07-11 Thread Govinda
You're looking at the documentation for mysqli_real_escape_string but using mysql_real_escape_string - notice the i in mysqli in the first function name. right. Thanks. p.s. what is a "resource" compared to a string? A resource is a variable type. See http://php.net/language.types.resource

[PHP] mysql_real_escape_string wants a string or a "resource"?

2009-07-11 Thread Govinda
tring for that 2nd param. Why 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] 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 = << 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: 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: http://www.php

  1   2   >