Have you verified that the mail settings in your php.ini are correct?
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA
necessarily have any correlation to the contents of the result
set -- it'll only return false if there's an error in your query (and a
query can be error-free and still not return data).
For what you're doing, you'll probably want to take a look at
mssql_num_rows().
---
Mark Roedel
or directories
in question.
http://httpd.apache.org/docs/mod/core.html#allowoverride
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA
-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 04, 2002 10:36 AM
To: Mark Roedel
Cc: PHP General
Subject: Re: [PHP] How do I get htaccess files to take effect?
Thanks for the reply Mark,
I am fairly new to this :) Here is a snippet
much of an issue it really needs to be, though. Are
you running into people who are surprised that your programs won't work
on their server? (Could this mean that you need to take a look at how
clearly the requirements are communicated?)
---
Mark Roedel | A modern US Navy cruiser now
still end up with my previous version
of the PHP binary. A 'make clean' (and, sometimes, an 'rm
/usr/local/apache/libexec/libphp4.so') followed by another make/make
install is usually enough to set this straight.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer
at your own risk.
It looks as if the function has, in fact, been renamed to
socket_strerror() for versions of PHP = 4.1.0, although the same
warning apparently applies.
---
Mark Roedel | You know, Hobbes, some days even
Systems Programmer| my lucky rocketship underpants
LeTourneau
.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA | -- John Powell
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
I vaguely remember there being something about this in the user notes at
http://php.net/eval
If I remember correctly, it was something along the lines of adding a ?
to the beginning of your string, and a ? to the end.
---
Mark Roedel | Blessed is he who has learned to laugh
/guestbook.php on line
112
Where is your $database variable getting its value?
---
Mark Roedel | Nothing in life is so bad that it cannot be
Systems Programmer| made much, much worse by the addition of
LeTourneau University |lots of spikes and razors.
Longview, Texas, USA
into your function as parameters or declared as
global).
Specifically, in your case, the $db variable referenced in your
mysql_query() call doesn't appear to have a value that's local to this
function.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer
://dig and PHP, see the
Search This! article at
http://www.devshed.com/Server_Side/PHP/Search_This/ It's written for
PHP3, but as I recall everything worked pretty much the same when I
moved from PHP3 to PHP4.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems
...
What version of phpBB? I know there were a number of security fixes in
the last few releases (current looks to be 1.4.4)...
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University
the formats
instead.
Does anyone have any idea why, and any idea what I can do to rectify
this? TIA! :)
Perhaps a quick re-read of the date_format() section of
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
is in order? (Hint: the % characters mean something.)
---
Mark Roedel
?)
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA | -- John Powell
--
PHP General Mailing List (http://www.php.net
the file in that same directory.
Try changing the fopen line to
$fd = fopen(test/$file,r);
Or
$fd = fopen(/home/d5051/public_html/test/$file,r);
---
Mark Roedel | The most overlooked advantage to owning a
Systems Programmer| computer is that if they foul up there's
variables from inside a
function.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA| -- John Powell
--
PHP
, $y, $x2, $y2, $color)
(Also in your other function definition.)
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA | -- John
but when I load php4.0.6 it won't run.
Does it give you any messages when it fails to run? Put anything useful
in your Apache error logs?
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University
.
If they're not there, I believe your copy of PHP will need to be rebuilt
to get them.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA
happen.
but when i echo the sql string and copy and paste it
in my mysql client window, the update happens like it
should!
After the update fails, does an 'echo mysql_error()' tell you anything
useful?
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer
what circumstances it will do so...it might
only do it, for example, if you insert a NULL value (which is not the
same as an empty string). If not, you could try using the now()
function in your insert query instead of specifying a '$date' value.
---
Mark Roedel | Blessed is he who has
what circumstances it will do so...it might
only do it, for example, if you insert a NULL value (which is not the
same as an empty string). If not, you could try using the now()
function in your insert query instead of specifying a '$date' value.
---
Mark Roedel | Blessed is he who has
If I'm remembering right, Sybase would prefer to see this as
Problem Title : Doesn''t work
(That is, a single-quote within a string that you're passing off to
Sybase should be escaped by another single-quote, not by a slash.)
---
Mark Roedel | Blessed is he who has learned to laugh
] = ;
It means, in this case, that it doesn't think that $errorMsg is an
array.
And that, in turn, makes me think that you've probably already done
something with the $errorMsg variable...perhaps assigned it a string
value?
---
Mark Roedel | Blessed is he who has learned to laugh
the );
And since the ? on that line ends the current code block...
/*print( ?php print( 'aaa' ); ? );*/
?
...then these two lines would not be processed by PHP at all, but would
be passed to the browser as text.
So it appears to me it's working as documented, if not 100%
intuitively...
---
Mark Roedel
with a set of default values that get used if it
doesn't see a php.ini in the directory that it was expecting, or if a
particular option isn't specified in the file that's there.
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he
just
below, it says that it is undefined:
if(!submit) {
Try changing this to
if (!$submit) {
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview
be using $decode_str instead of $encode_str in the
first line of this function?
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA
=$HTTP_SERVER_VARS[HTTP_REFERER];
echo $foo;
?
For me it is printing the blank value.
That's what I'd expect, if you're running that script directly. The
referrer variable generally only gets a value if you reached the script
by clicking on a link.
---
Mark Roedel | Blessed is he who
anybody knoes if this will be fixed soon? Is
there another source for the ODBCSocketServer server?
http://odbc.sourceforge.net/
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained
, be recreated if you publish
your site again using FrontPage.)
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA | -- John Powell
the output I get when I run the apxs that came
with Apache 1.3.20. Are you really *really* sure you're pointing to the
right copy of apxs?
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University
digits is a common
value...Never trust floating number results to the last digit, and never
compare floating point numbers for equality. If you really need higher
precision, you should use the arbitrary precision math functions or gmp
functions instead.
---
Mark Roedel | Blessed is he
who might be able to do something about it.)
---
Mark Roedel | Blessed is he who has learned to laugh
Systems Programmer| at himself, for he shall never cease
LeTourneau University | to be entertained.
Longview, Texas, USA | -- John Powell
--
PHP General
release. The
first PHP4 Beta came out July 19th, 1999; the 4.0.0 release was May
22nd, 2000; and the current (4.0.6) release was June 23rd, 2001.
---
Mark Roedel ([EMAIL PROTECTED]) | There cannot be a crisis next week.
Systems Programmer / WebMaster | My schedule is already full.
LeTourneau
to match what you're describing...
---
Mark Roedel | This is the perversity of software. It
Systems Programmer| is *always* more complex than you
LeTourneau University | anticipate, even when you know this and
Longview, Texas, USA | compensate for it. --Robert Martin
--
PHP
themselves, not in losing their contents.
If that's what you're referring to, see bug#11362 - per Zeev, the
current CVS (as well as PHP 4.0.7 when it's released), has changed to a
behavior that should be more likely to do WhatTheScriptProgrammerMeant
in most cases.
---
Mark Roedel ([EMAIL PROTECTED
-Original Message-
From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 2:19 PM
To: Mark Roedel
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] 3rd include
You're right. It is not discuessed there. My memory served me
incorrectly.
In index.php (the file
-Original Message-
From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 3:14 PM
To: Mark Roedel
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] 3rd include
If a file is included from within a function, this would limit the
variable cope of this file
projects here with good results.
You can pick up a copy from the contrib downloads at mysql.com.
---
Mark Roedel ([EMAIL PROTECTED]) | There cannot be a crisis next week.
Systems Programmer / WebMaster | My schedule is already full.
LeTourneau University | -- Henry
problems with statements:
I have:
[stuff snipped]
IT DOESNT WORK!
In what way doesn't it work? Do you get an error message (if so, what
does it say?) or just not the result you were expecting?
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer
)...
---
Mark Roedel | The most overlooked advantage to owning a
Systems Programmer| computer is that if they foul up there's no
LeTourneau University | law against whacking them around a little.
Longview, Texas, USA | -- Owen Porterfield
--
PHP General Mailing
this on July 31st, that
means your mktime call was trying to build timestamps for February 31st
(which is actually in March), April 31st (actually in May), and so on.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already
functions for you
to use.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full.
LeTourneau University ||-- Henry Kissinger
--
PHP General Mailing List (http://www.php.net
going to be
expecting a single file in response to a single request...)
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full.
LeTourneau University ||-- Henry Kissinger
echo
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 10:42 AM
To: Mark Roedel; Php-General
Subject: Re: [PHP] Syntax Eyes
I have a row in sql that is binary data (a jpeg)
I need to echo that data to a table on the web page in the form
a
little chat with your server admins.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full.
LeTourneau University ||-- Henry Kissinger
--
PHP General Mailing List (http://www.php.net
));
Unless my counting skills have gone downhill lately, this line has more
)'s than ('s.
---
Mark Roedel ([EMAIL PROTECTED]) | There cannot be a crisis next week.
Systems Programmer / WebMaster | My schedule is already full.
LeTourneau University | -- Henry Kissinger
information on what you did.
My first thought, though, would be to take a closer look at your query
to see if you're perhaps filtering out more than you expected. Perhaps
if you posted that, along with whatever parts of your source code seem
relevant...
---
Mark Roedel ([EMAIL PROTECTED
bet is going to be to get a copy
of Sharity or Samba installed and mount the remote-machine resources so
that you can treat them as local resources.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full
might be able to look over your code and see
the results of running it?
---
Mark Roedel | The most overlooked advantage to owning a
Systems Programmer| computer is that if they foul up there's no
LeTourneau University | law against whacking them around a little.
Longview, Texas
that...)
If what you're really looking for is whether there were any rows
returned by the query, then you'll want to look into the
mysql_num_rows() function.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full
)
An assignment operation will return the value that was assigned.
Thus, if we have
if ($sql = mysql_query($query_string))
and the mysql_query call returns a non-false value, the entire
expression will evaluate to true.
---
Mark Roedel | The most overlooked advantage to owning
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 1:36 PM
To: Mark Roedel; php-general
Subject: Re: [PHP] sql query successful
What about when DELETING from a table??? It always returns true.
Example...the highest ID in this table
in the directory where PHP is installed. That should, I
think, give you most of the information you need to get started.
---
Mark Roedel ([EMAIL PROTECTED]) | There cannot be a crisis next week.
Systems Programmer / WebMaster | My schedule is already full.
LeTourneau University
write the new data out to the file
3rd request:
script displays textarea with updated contents
So...I'd expect the answer is to make sure you're updating the file
*before* you look at its contents.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems
classes for POP3 interaction using PHP's socket
functions at
http://px.sklar.com/section.html?section_id=10
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full.
LeTourneau University
accordingly.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full.
LeTourneau University ||-- Henry Kissinger
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
a
simple case of the web browser collapsing whitespace when displaying an
HTML page? (Hint: view source is your friend when you're wanting to
see exactly what the output of your script was.)
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 5:08 PM
To: Mark Roedel
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Best Practice-HTML In Database
Yes, I will need to provide searching capabilities.
Basically, I'm creating
presented at
http://www.php.net/manual/en/ref.filesystem.php
If you're just wanting something quick and simple, you might find the
file() function particularly useful.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My
, and that
your copy of PHP is configured properly to be able to locate it.
---
Mark Roedel ([EMAIL PROTECTED]) || There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full.
LeTourneau University ||-- Henry Kissinger
--
PHP
) in the database ?
or
2) Insert a URL in the database field, that points to the
HTML page?
why?
Will you ever want to do database-ish things with the contents of the
page? (Allow somebody to search for words or phrases in the body, for
example?)
---
Mark Roedel ([EMAIL PROTECTED
his within .htaccess?
I've tried everything and all I ever get is an Internal Server Error
when the .htaccess file is in place... :/
I've found that my web server's error logs usually say interesting and
useful things when i get an "Internal Server Error" message. Any clues
there?
---
which I wish to merge, but I want to
EXCLUDE duplicate values.
Any suggestions, as my numerous attempts have proved
unsuccessful.
I expect my approach would probably be to merge the two arrays together,
then call array_unique() on the result.
---
Mark Roedel ([EMAIL PROTECTED
""
If you've got asp-style tags enabled in your PHP configuration (see
http://www.php.net/manual/en/configuration.php#ini.asp-tags for more
info) then the syntax turns out to be just the same (see
http://www.php.net/manual/en/language.basic-syntax.php for more info on
that.)
---
Mark Roed
++;
results in $str storing the value "b".
It's
$str = "z";
$str++;
that results in "aa" being stored in $str.
(This behavior was, in fact, what started the thread you replied into.)
---
Mark Roedel ([EMAIL PROTECTED]) || "There cannot be
-Original Message-
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:12 AM
To: Mark Roedel
Subject: RE: [PHP] Why does it work this way?
Because "z"+1 turns out to be "aa" (which, if you ask me,
makes about as much sense as any of the a
;Master" values. However, they can be overridden by configuration
settings made in location-specific sections of your web server config
(for a particular virtual server or group of directories) or (if
allowed) in .htaccess files throughout your directory tree.
---
Mark Roedel ([EMAIL
freetds.org), and then configuring PHP
"--with-sybase"
---
Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full."
LeTourneau University ||-- Henry Kissinger
--
for each copy of the site by using
php configuration directives in the relevant sections of your
httpd.conf.
---
Mark Roedel | "I know the answer! The answer lies within the
Systems Programmer| heart of all mankind! The answer is twelve?!?
LeTourneau University | I thin
in
your query to specify what information you'd like displayed from a
date/time field, and how you'd like it presented.
---
Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full."
LeTourneau
. Because we sometime
move the website from unix to windows and back. So, it is more
reliable that way.
If you're using the odbc functions, then what's the purpose of FreeTDS?
---
Mark Roedel| "A wise man once told me that everything in
Systems Programmer | life is either a l
74 matches
Mail list logo