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

2008-12-01 Thread Govinda
can just tell 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 unsubscri

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 dat

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 q

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

2009-04-27 Thread Govinda
lling 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 thi

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

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

2009-06-27 Thread Govinda
. (?!?) (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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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
echo var_dump($symLinkTest); -- 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
ow is the standard "index.html".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 .htm

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, Govinda 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 gave a good lead. You&#x

[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
t;getMessage()); } is returning: "Can't connect: DB 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 coun

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

2009-07-05 Thread Govinda
. -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 would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it

[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 would include somefile.php living in somedir regardless from where in the site structure I am calling it. Now it

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

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
e, coming from other languages/ environements where I was more expert. ..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, Govinda 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 monkey wrench into the

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:

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 y

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

2009-07-09 Thread Govinda
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
hing other than very simple straightforward HTML and PHP. There is no PHP at that point in the file.. and no errors or problems where the PHP does lay, but what could be causing this? ??? Govinda govinda.webdnat...@gmail.com -- PHP General Mailing List (http://www.php.net/) T

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
me! Govinda govinda.webdnat...@gmail.com

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Govinda
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 assimil

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

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

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

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

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

[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

[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 things.

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

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

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 it

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

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

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

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

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

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

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

[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] 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.

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

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

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

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

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

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

[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

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

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

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

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

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

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

  1   2   >