> -Original Message-
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]
> >> Obviously, the "knowledge s*ckers" will not provide any valuable
> >> feedback. Actually some of them even come in public just
> to b*tch that
> >> I require them to login to download my stuff. Some even threat to
Perhaps the better solution is to move to a somewhat... newer O/S? :) I
have a P3-450 that I do testing on, using PHP, ASP, and mySQL and it's run
both Windows XP Pro and Windows 2000 Server at various times. If all you're
doing is serving up webpages, that doesn't suck up much in the way of
reso
A thought I had is to set up a simple script on the server that, when
executed, pops the time/date/IP into a file (or database) whenever the page
is accessed (this won't work for a yes/no, since there is always going to be
a yes answer, and the lack of an answer will indicate no... but it's hard to
If I understand what you're trying to do correctly, I would have the form
action come back to the same page, where verification is done. At the top,
you could have a big "if the page has been submitted, execute this code"
section where it does verification of the data. If the data is ok, it can
d
- Original Message -
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
> > I can\ only assume that it does work ok with a linux-based
> > webserver or it wouldn't be in there. In fact, if I put in is_file()
> > instead of !is_dir, it returns nothing at all.
>
> That code wont work on a un
This will work, with several caveats since the purpose is not known...
read())
{
if (!is_dir($filename))
{
clearstatcache();
$extension = substr($filename,-4);
$realext = strstr($extension, ".");
if ($realext <> "")
{
echo $realext."\n";
}
}
}
$dir->close();
?>
Give this a go:
";
while($row < 3)
{
$row++;
echo "";
while($col < 5)
{
$col++;
echo "Row ".$row." Column ".$col."";
}
$col = 0;
echo "";
}
echo "";
?>
Hope that helps,
Marc
- Original Message -
From: "Thomas Edward Lawrence" <[EMAIL PROTECTED]>
To: <[EMAIL PROT
Hi Paul,
Try this out.
function duration($amount)
{
$seconds = $amount % 60;
if ($seconds < 10) { $seconds = "0".$seconds; }
$minutes = (($amount - $seconds) / 60) % 60;
if ($minutes < 10) { $minutes = "0".$minutes; }
$hours = ($amount - ($minutes * 60) - $seconds) / 3600;
$duration = $hou
This probably isn't strictly a PHP question, but I beg the indulgence of those who
know mySQL as well...
I have a result array grabbed from a mysql table. Is there a quick way to randomize
the order that the rows fall into the array instead of "as they are extracted from the
table" order?
Tha
heheh... Thank you, Ignatius and B.A.T. I guessed there had to be a simple
way.
(V)
- Original Message -
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
> > BTW there is a nice MySQL Windows mailing list.
>
> I wouldn't say that. Some of the authers there really need a lay... ;)
>
>
Windows 2000 Professional (I'm assuming this is what you meant by
workstation version) can have IIS installed, as well. You can follow the
instructions supplied with PHP on how to set up IIS. It really just
involves careful placement of the php.ini file and setting up the site to
parse PHP files.
lt;[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 8:18 AM
Subject: Re: [PHP-WIN] Re: Newbie Q
> Well, I want my php script to put the TITLE of a html page to the name of
> the directory the script is in.
>
> /Gabbah
>
> "H Marc Bower" <[EMAIL PROTECTED]> skr
Um... the file in which you put that command should be there... :)
What is the purpose for knowing the directory name? Maybe there is
something else you can tell us that will get you the answer you're looking
for.
(V)
- Original Message -
From: "Gabriel_k" <[EMAIL PROTECTED]>
> What if
I know this isn't the mysql area... but many of you seem very knowledgeable in this
area and I would appreciate your input...
What kind of field setup should I create if I want a field which will, essentially
hold several distinct items, but never a set number of them? I am going to be
selecti
It's almost definitely not an IE issue, given how php works. When you do a
View...Source what do you see? You could try stopping and starting IIS to
see if that has any effect.
When you say you are unable to view any php code in IE, I assume you mean
from your own webserver...?
(V)
- Origi
I read the next line in the manual to determine what the issue was - using windows I
can only go back to 01 jan 1970. My bad, I should have read a little further. If
anyone does have a nice little workaround for this for windows, though, I'd appreciate
it. The date is coming out of a mysql da
I'm having a bit of an issue using the date function... it isn't cooperating with any
dates before... sometime in 1970. I guess this is date 0 for unix, if I'm not
mistaken. However, dates before this time are throwing an error at me:
Warning: unexpected error in date() in D:\wwwroot\vvf\osh
- Original Message -
From: "jsWalter" <[EMAIL PROTECTED]>
> I am trying to use DB.php, but I am getting htis error...
>
> Fatal error: main(): Failed opening required 'DB.php'
> (include_path='.;c:\php4\pear')
>
> I can't find this path defined *anywhere*
I have no idea where it gets this,
Using an UPDATE statement in mysql you can make any number of changes to the
record at one time. What I've done in the past is read in all the fields
from a record, on the webpage displayed the fields that are editable, then
sent all of the variables back through as an update. You'll need to read
Does it work with Netscape? I find it odd that the browser would have
anything to do with this, really.
(V)
- Original Message -
From: "Leonardo Javier Belén" <[EMAIL PROTECTED]>
HI all!
I am facing a problem thanks to the so-called powerful IE on Windows.
I'm trying to generate PD
t; $output['address'],
> 'name' => $output['name']);
> }
>
> assuming, of course, that your database column names are 'address' and
> 'name'.
>
> This should work, but I may have borked something up on the name base
Well... I can usually puzzle myself through these things, but I figured
it's time to ask the list. :) It may be a simple thing that I'm missing,
but here's what I have.
The structure that I'm trying to modify is as follows:
$to = array(
array(
What output *are* you getting?
(V)
"db" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> i've seen a lot of posts about this, but none helped. i've broken the
script
> down to its simplest components and still no luck.
>
>
> IF(!isset($_get['i'])) {
>
> $i = 1;
>
> }
>
> echo
Is there a way (preferrably using php... but if javascript is necessary and some kind
soul knows how I will use it) to have a form auto-submit when a field is 'full'? I
want to be able to scan barcodes of a set length and have a form be automatically
submitted to store the information in the d
Am I correct in assuming that $sql[] is the result of a mysql_fetch_array
(or similar call)? If so, you shouldn't need the " in $sql["date"].
(V)
- Original Message -
From: "Davy Obdam" <[EMAIL PROTECTED]>
> $entry_date = date('l, d F Y H:i:s','$sql["date"]');
> echo $entry_date;
>
> Bu
Here it is... it was from Court Shrock. Not sure if this is the same
situation you're in or not, but it might help.
Sorry to bother everyone...found the causeSMTP on IIS5 doesn't bind
to 127.0.0.1 by default. Changed php.ini to use the ip address of its
interface and the everything worked.
I haven't noticed this myself, but I believe I read another post about
this - it's something to do with XP (or 2000... don't remember which the
poster was commenting on) not having a proper mapping of the sendmail to
localhost. I don't remember what he did to solve it, but I'm sure you could
find
I know it isn't supposed to be necessary, but when using the CGI version of
php I have had to reboot the server (not just start/stop services) before
when adding php to a new site. Give that a try.
(V)
- Original Message -
From: "David Hollister" <[EMAIL PROTECTED]>
To: "'Saci'" <[EMAIL
Check the MySQL Manual on page 329 - it might give you some good insight
into the server tuning that might be required. If you aren't using mysql,
then it might give you a lead at least on things to check with whatever
database you *are* using.
(V)
- Original Message -
From: "R.S. Herhu
>From the PHP Manual, Chapter 7 (String Type):
Note: It is no problem for a string to become very large. There is no
practical bound to the size of strings imposed by PHP, so there is no reason
at all to worry about long strings.
It doesn't help solve the problem, but it should put you at ease a
I had a page that was working perfectly, then I had to reinstall XP. I saved my
php.ini file, and copied back on once the O/S was set up again. Now the form data
won't post at all. It's a page that the action points back to itself on, and using
$variablename where variablename is the name tag
31 matches
Mail list logo