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
(.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
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
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:
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
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
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
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
(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
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,
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
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
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) {
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
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
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
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
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
, ;-)
-Govinda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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.
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
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
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
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
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
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
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
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
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
/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
);
--
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
.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
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
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
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
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
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
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
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
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
.
..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
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
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
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
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
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
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
-guide the OP, please correct me!
Govinda
govinda.webdnat...@gmail.com
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
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
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:
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:
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
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
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
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
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
have a choice.)
-Govinda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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)
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
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
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
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
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
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
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,
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
do my RTFM; can someone just give me a good point in the right
direction.
Thanks!
John Butler/(Govinda)
govinda.webdnat...@gmail.com
. 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
satisfying is contributing to someone
getting good at this stuff, even if at a humble pace.
John Butler (Govinda)
govinda.webdnat...@gmail.com
...
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
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
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
.)
Govinda
govinda.webdnat...@gmail.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
? 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
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
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
{
...
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
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
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
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
.
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
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
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
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
with this,
Govinda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.. 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
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
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
.
Govinda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$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
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
).
Govinda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
... 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 - 100 of 148 matches
Mail list logo