d see if the results are different.
Thanks for the help.
Tim
"Tim Greenleaf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a search page that creates a dynamic table of results from MS SQL
> Server. The table created
g wrong?
Here's my setup:
Apache 1.3.12
PHP 3.0.18
Sun Solaris
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;t all
that enlightening.
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've been trying to add an extra
feature to the form - sending an email to the admins if the form doesn't
get entered into the database, but even when I take the email part out its
still giving this error message.
Any ideas?
Thanks
-Tim
Hi,
Just wanted to thank you for your responses ... I solved my header problem
- I wasn't using the full address (I left out the http:// bit)
Thanks again ... must be working at 3.30am thats not so good for the brain ...
-Tim
--
PHP General Mailing List (http://www.php.net
the case above but the
connection isn't.
This may not have anything to do with your problem but it's something that
tripped me up when
I started doing OOP stuff in PHP.
Tim Ward
www.chessish.com <http://www.chessish.com>
--
From: Nick Wilson [SMTP:[EMAIL
();
echo("");
echo(" Footer();
echo("");
echo("");
}
}
you get the idea
Tim Ward
www.chessish.com <http://www.chessish.com>
--
From: Wilbert Enserink [SMTP:[EMAI
What about storing them in database or (below root) flat files?
Tim Ward
www.chessish.com <http://www.chessish.com>
--
From: serge gedeon [SMTP:[EMAIL PROTECTED]]
Sent: 29 May 2002 14:35
To: [EMAIL PROTECTED]
Subject: Global var
If you just want the number of seconds in each month then ...
function SecondsInMonth($month, $year)
{ return mktime(0,0,0,$month + 1, 1, $year) - mktime(0,0,0,$month, 1,
$year);
}
... works, although you may need to play around with the is_dst parameter to
fine tune it.
Tim ward
nternal
Server Error.
My site is using Apache 1.3.12 and PHP 3.0.18, any thoughts on how I might
get this to work?
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Time() returns unix timestamp (which is GMT), date() is interpreting that
according to the local time zone.
Tim Ward
internet chess at www.chessish.com <http://www.chessish.com>
--
From: Justin French [SMTP:[EMAIL PROTECTED]]
Sent: 21 February 2002
Forgive me if I'm treating pseudo as real but surely
print "";
should be
print "";
same goes for the array element in the sql statement
Tim Ward
Internet chess www.chessish.com <http://www.chessish.com>
--
From:
that will work on an older version of PHP
such as 3.0.16?
I'd be eternally grateful for any prompt replies as its already 2.38am and
my deadline is 9am :P
Thank you
-Tim Thorburn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
content management system I'm working on.
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
as
the subject the search and replace was performed on the string "array".
Tim Ward
Internet chess www.chessish.com <http://www.chessish.com>
--
From: Michael Crowl [SMTP:[EMAIL PROTECTED]]
Sent: 25 February 2002 22:01
To: [EMAIL PROTE
arlier then make the startdate blank, etc.
Tim Ward
Internet chess www.chessish.com <http://www.chessish.com>
--
From: Craig Westerman [SMTP:[EMAIL PROTECTED]]
Sent: 25 February 2002 19:32
To: Lerp
Cc: [EMAIL PROTECTED]
Subject: RE
This is really an html issue. HTML will only text wrap (in a compliant
browser) on white space. If you want a server side solution to solve this
you'll need to break up long words with a space or line-break.
Tim Ward
Internet chess www.chessish.com <http://www.ches
Hi,
Consider yourself lucky - my hosting company is still using 3.0.16. Even
though at least once a month I complain about this bitterly (the client has
already paid several years in advance so moving is not in the cards).
They tell me that there are major security issues with PHP version 4 a
...
Data for 1 items returned:
dn is: uid=tim,ou=subdept,o=dept,dc=myorg,dc=com
first cn entry is: Tim Tom
first email entry is: [EMAIL PROTECTED]
first createTimestamp entry is:
first userPassword entry is:
Closing connection
why can't i see the createTimestamp and userPassword bcos i d
I haven't experienced this myself, but I'd have thought that if you're
propagating the session via the URL rather than a cookie then it won't get
added if the page isn't parsed. If it's not passed on just once it's lost.
Tim Ward
Internet chess www.ch
}
I think you'll find the field you want is something like "Tables_in_dbname".
Tim Ward
www.chessish.com <http://www.chessish.com>
--
From: Ron Clark [SMTP:[EMAIL PROTECTED]]
Sent: 26 February 2002 21:02
To: [EMAIL PROTECTED]
Apache 1.3.12 and PHP 3.0.16 with MySQL 3.22.32
Thanks in advance,
-Tim
";
echo "ADD A RECORD";
} elseif ($delete) {
// delete a record
$sql = "DELETE FROM ai_data WHERE id=$id";
$result = mysql_query($sql);
e the addslashes() command, or if I don't need it,
should I not use it?
Thanks again,
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
here is nothing left over - and vice versa.
Is it not possible to do two things with the same form data?
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi - I'm a major newbie.
- I have a file that pulls an include into a for a user to edit
- before pulling the include, I'd like to open it and check it's value
- if the include's value is exactly equal to the string:
Hello World
then I want to overwrite that string with nothing; close the inc
"
");
echo($author."");
echo("(". count[$ids] .") [");
foreach ($ids as $id) echo($id); // need something a bit fancier
here, but you get the idea
echo("]\n");
}
Tim Ward
Internet chess www.chessish.
Surely an empty string is == false.
In fact I'd be interested if anyone can come up with a situation where !$x
doesn't return the same as empty($x)
i.e. can anyone get a value of $x such that !$x !== empty($x)
Tim Ward
Internet Chess www.chessish.com <http://www
abase that
are DATE formatted.
Is it even possible to have a PHP search engine search a site that is mixed
with MySQL and static pages?
Thanks
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot;
... if you mean sort all records but don't sort past the first letter then
"SELECT ..., LEFT(lastname, 1) AS lastname_first ... ORDER BY
lastname_first" or you might even be able to do " ... ORDER BY
LEFT(lastname, 1)" you'll have to experiment with t
ng I'm not
allowed to do.
I think I've got the Fluid Dynamics search engine working fairly well now -
its not perfect, but it'll do until I can come up with something better.
Thanks
-Tim
At 11:39 AM 3/13/2002 +0100, you wrote:
>David Robley wrote:
>>PHP from around 4.05 ha
The line you've marked prints the "value" attribute of $a->b->a, which is a
pointer to the base object ($a). You have just changed the "value" attribute
of this to 11 and it prints 11 ... what's wrong?
Tim Ward
Internet Chess www.c
Try ...
If ($result = ...)
{ ...
...
} else echo(mysql_error());
I always do querying like this anyway (without the error echo in live stuff
obviously)
Tim Ward
Internet Chess www.chessish.com <http://www.chessish.com>
--
From: Daniel Negron/KBE
ield as $key => $val)
{ echo "$key : $val |";
}
echo("");
}
}
Tim Ward
Internet Chess www.chessish.com <http://www.chessish.com>
--
From: Kevin Stone [SMTP:[EMAIL PROTECTED]]
$HTTP_ENV_VARS["HTTP_USER_AGENT"] contains this info if it's been sent
Tim Ward
Internet Chess www.chessish.com <http://www.chessish.com>
--
From: R'twick Niceorgaw [SMTP:[EMAIL PROTECTED]]
Sent: 21 March 2002 17:06
Why in a scalar? Why not pass the array through, i.e.
Foreach($test as $element)
{ echo("");
}
Tim Ward
Internet Chess www.chessish.com <http://www.chessish.com>
--
From: Fabian Krumbholz - 2k web solutions
[SMTP:[EMAIL PROTECTED]]
Sent
vailable as variables in the php page the form submits to
(the action property of the form tag, which can be the same page).
Tim Ward
Internet Chess www.chessish.com <http://www.chessish.com>
--
From: Denis L. Menezes [SMTP:[EMAIL PROTECTED]]
Sent: 0
That's not quite right,
if (!$result = mysql_query($sql, $db))
{ echo "Query failed";
} else
{ if (!$row = mysql_fetch_row($result))
{ echo "No records found.";
}
}
Tim Ward
Internet Che
Why not just use an if instead of a while? This way you test for a result
and get it at the same time
If ($array = mysql_fetch_array($result))
{ foreach($array as $key=?$value) echo("$key=?$value");
} else echo("sorry didn't get anything");
Tim Ward
Internet Che
On Tue, 2001-10-23 at 15:34, Gary wrote:
> On sending a large number of newsletters out, how would you stop php
> from timing out if you do not have access to the .ini file?
http://www.php.net/manual/en/function.set-time-limit.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
e actual information instead of just "phpcredits()". I have
tried with $credits = phpcredits(); and placed the $credits in the line
above, but that seemed to echo it to my console then send the number 1
through the socket.
Any help on this would be greatly appreciated :)
Tim
--
That seems to just give me the first line, of:
PHP Credits
but nothing else after that. Any ideas? :)
Tim
"James Cave" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> There is some source code on the php.net site which capt
That is, using a socket, that it gives me the one line. echo'ing it gives
the whole thing.
Tim
"Tim Ballantine" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That seems to just give me the first line, of:
> PHP Credits
They're just there ...
If the link is
Then in yourpage.php ...
echo($yourvar);
the only way you may go wrong with this is with scoping, $yourvar isn't
available in a function inside yourpage.php.
Tim Ward
--
From: Clint Tredway [SMTP:[EMAIL PROTECTED]]
new Error();
...
}
}
at the end of the day, both these are ways of getting around the
lack of multiple inheritance
Tim Ward
--
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: 24 October 2001 22:45
To: [EMAIL PROTECTED]
Subject: P
see below for comments
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:
ion");
while ($array = Mysql_fetch_array($result)) $values[] = $array;
...
you van then do ...
foreach($values as $row)
{ echo(" {$row["field1"]}, {$row["field1"]}, {$row["field1"]}");
// or whatever you want to do
}
Tim Ward
--
Your query is invalid, hence $test is false rather than a result set. I
usually do if ($test = mysql_db_query( ... )) to trap this. Don't put quotes
around table or field names, in your case 'Port$p' should be just Port$p and
'Port$p'.date just Port$p.date.
Tim
1. $telefono is an array (as has already been pointed out) so you need
to reference an element
2. you're never actually setting the property in the constructor, your
constructor lines should be:
$this->telefono = array("Teléfono","Phone"
Can somebody PLEASE help me with this problem I'm having.
This is a script to search the web. It sends the parematers "q,c & i" to the
"SeacrhHippo" server using the fopen function. When the script executes the
following error messages are displayed:
Warning: php_hostconnect: connect failed in /
left one empty");
that's quicker, unless you need the values in a hash list for some other
reason.
Tim
--
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: 20 November 2001 22:10
To: [EMAIL PROTECTED]
Subject: How do I convert from perl to ph
Hi,
I'm having some new troubles pulling information out of a MySQL database.
The page I'm currently working on has a simple form, that asks the user to
select a month and year from two dropdown menu's then forwards their
choices on to a new page which displays community events for the chosen
detailed display works perfectly.
How can I get both the basic and detailed event listings working at the
same time?
Thanks
-Tim
";
echo "";
echo "Event: ";
echo "";
echo ($myrow["EventName
or anything ... just one of those things that
would be nice.
Thanks again
-Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
llow you to
access the original element.
foreach($array as $key1=>$value1)
{ foreach($array as $key2=>$value2)
{ $array[$key1][$key2] = "fred";
}
}
Tim
http://www.chessish.com <http://www.chessish.com>
--
From: Darren Gamble [SMTP:[EMAI
Yes, use a combination of file and string (or regex) functions to scan the
file for the string you want.
Tim
--
From: Deron [SMTP:[EMAIL PROTECTED]]
Sent: 07 December 2001 02:21
To: [EMAIL PROTECTED]
Subject: "trigger" words
How about wrapping the "@file(...);" in an "if(file_exists(...)) {...}"
Doesn't seem to give an error at all , even without the @. I've tested this
on non-existant domain names and with my firewall internet connection
blocked.
Tim
http://www.chessish
Chinchillas are fluffy, and I don't think anyone is using them for their
logo.
--
From: Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]]
Sent: 10 December 2001 16:58
To: PHP
Subject: [PHP] Logo proposal
Hello world of php-programmers!
<http://www.php.net/manual/en/ref.session.php> .
Tim Ward
www.chessish.com <http://www.chessish.com>
--
From: Tomasz Jachimczak [SMTP:[EMAIL PROTECTED]]
Sent: 20 December 2001 14:53
To: [EMAIL PROTECTED]
Subject: Help with Sessions - Should b
'] is
therefore lees ambiguous and so safer (and may even be a nano second
faster).
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
>
'] is
therefore lees ambiguous and so safer (and may even be a nano second
faster).
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
>
Collect your email anytime and anywhere with http://www.centralinbox.co.uk,
if you register you can check upto 5 email accounts, allowing you to read
your emails and attachments as well as sending email with attachments.
Their is also a calendar that you can enter important dates so you don't
miss
erver I have to quit
and restart my browser.
madness!!!
It's like php just refuses to allow connections from that browser after this
command is run???
I've no idea where to begin trouble shooting this one. I've tried everything
I can think of and I'm out of ideas. So
if (isset($url) && isset($text))
{ $fp = fopen("file.txt", "w");
$anothervar = fputs($fp, "$text", "r+");
$anothervar = fclose($fp);
}
echo "";
echo "";
echo "";
echo "";
echo "&
Here is a post from a few months ago that has an idea about your question:
Tim
__
Quick answer: Nothing, if it works.
Which browser supports it?
Anthony
-Original Message-
From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED
he's right, but what about using the onclick event of the image to store a
value in a hidden field (I haven't tried this but there's no reason to think
it won't work)
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect o
how about keeping the images off of the root and getting php to create
copies just for the request. I haven't really thought this through, but it
sounds plausible.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
seudo code)
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
> From: Paulson, Joseph V. "Jay" [mailto:[EMAIL PROTECTED]]
> Sent: 29 Mar
nyone thinks they can help but needs better details ask me some specific
questions and I'll try and answer them as best I can.
Thank,
-Tim Churchward
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
i have a file with something like this which I include at the top of every
page ...
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
>
SHOW COLUMNS FROM tablename
is the MySQL query
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Message-
> From: Steve Werby [mailto:[EMAIL PRO
your ORDER BY, for an exact imnput, an exact match will always show first.
haven't tried this at all but seems sound sql.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
ot;);
if (is_dir($ddPath . $ddFile)) sitemap($ddPath . $ddFile .
"/");
};
closedir($dhandle);
echo("");
};
just call it by passing in the path to the directory you want to list and
it'll give you a full listing below that point
will
vary. I'm not sure quite what your problem is or whether this will fix it
but it should help the form work as intended.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-discl
you can't nest foreach as you should be able to. Ecah foreach is supposed to
have it's own pointer in the array, but it doesn't ... this is a known bug.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of thi
all the javascript cares about is the page after it is sent by php. browse
the page and view source will show you what the problem is.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail
another good way is to use an associative array $session[] as your only
session variable, that way you don't need to worry abopout session variables
overwriting local or vice versa, so $value as a session variable becomes
$session["value"]
Tim Ward
Senior Systems E
manual says that the foreach creates it's own pointer which
it obviously doesn't.
I can't remember what I was trying to do when I found this, it might have
been writing a recursive function
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in
ered the information as a confirmation that we
received their message.
Here is a sample of the script I'm using:
I've spoken to the hosting company, they say they will not provide any
assistance to PHP script related problems. They are running on Solaris
servers with PHP 3.0.16.
Thanks
-Tim
Hi,
I searched the archives for this.
For debugging purposes, I want to see a list of the included files on a page in HTML
comments.
PHP_SELF and HTTP_SERVER_VARS["SCRIPT FILENAME"] only returns the name + path of the
file calling the included files.
I want each included file to contribute i
Hi,
I searched the archives for this.
For debugging purposes, I want to see a list of the included files on a page in HTML
comments.
PHP_SELF and HTTP_SERVER_VARS["SCRIPT FILENAME"] only returns the name + path of the
file calling the included files.
I want each included file to contribute i
;ll design the site in UD, and any scripting that it
won't handle (and even some that it will) I'll use a text web editor such
as HotDog or Homesite to add the necessary code.
I'm also looking forward to the day UD supports PHP :)
Thanks
-Tim
have you viewed the source? - could be something to do with the semi-colons
or, more likely, what addslashes($data_data) evaluates to.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail
Hi,
Working on a site that needs some billing information. Once upon a time
done in ASP where we had the option to use the FormatPercent command - is
there an equivalent command within PHP?
Using PHP 3.0.16
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
Check the permissions on the files in /proc, which is where uptime gets its
info from, most likely.
You could probably even read the pseudo-file '/proc/loadavg' as 'nobody'
directly from PHP given the appropriate file permissions.
- Tim
http://www.phptemplates.org
>
Hi Ted,
There is an installer available for free that will painlessly install apache, php, and
mysql on your windows system.
Good tool for trying out stuff locally or hosting an intranet application on a windows
box.
PHPTriad available from www.phpgeek.com
Can't praise it enough.
Tim Mc
nl2br(). Translating \n to would need str_replace() or some sort of reg
exp function. Two carriage returns will be interpreted as which is
actually what html does with the tag anyway.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this
are you sure it has not been deleted. If you check to see what's in it and
it doesn't exist you'll get the answer that it contains a null value (same
as any other non-exitsant variable). Did you do a foreach to check what is
actually in the array?
Tim Ward
Senior S
plain text. I'm sure I've
seen reference to this problem somewhere but can't remember (or find) where
it was. Can anyone out there help?
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-
That sounds like a unix answer, I should probably have said that my web
server is NT running Apache.
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html
> -Original Mess
is it possible to create an image on a website and then to replace colors or
parts of this image with another color?
imagine we have a left and a right part. they're both white at the
beginning. now i randomly choose a color and now the right part becomes
green and the left part red...
is it pos
t familiar with the internals of any image format.
hope this helps,
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: "Tim Taubert" <[EMAIL PROTECTED]>
To: "PHP Mailingliste" <[EMAIL PROTECTED]>
Sent: 2001. július 1. 18:11
Subject: [PHP] Replacing c
hey ryan try something like this
mail("[EMAIL PROTECTED]", "Quote Request", $message, "From:
[EMAIL PROTECTED]\nX-Mailer: PHP/" . phpversion());
hope this helps
cya tim
---------
Tim Taub
mh..
this worked successfully... don't have any other ideas..
bye tim
-
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
-
-Ori
don't know any bugs but could be helpful if we could see your code...
but.. maybe you think we shouldn't see it ;)
Tim Taubert
---------
Tim Taubert | [EMAIL PROTECTED] | http://www.shogu
yes there is one
$HTTP_REFERER
but it isn't supported by all browsers...
bye Tim
-
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.c
i'm getting this like you...
only unreadable messages..
-
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
-
-Original Message-
lol you're right :)
-
Tim Taubert | [EMAIL PROTECTED] | http://www.shogunat.com/rg/
-
-Original Message-
From: Don Read [mailto:[EMAIL PROT
i think that you can't attack php code because it's a server side scripting
language...
just with *echo*(and others) you send some code to the browser... i guess
it's secure ;)
Tim Taubert
-----
Tim Taubert | [
yes i had this problem too... it's easier to rename your .inc files to
.inc.php3 ... so nobody can see your code but the output maybe null or some
crazy code... but it's not your php code...
Tim Taubert
---------
T
you're totally right.. look at this
http://www.ssw.uni-linz.ac.at/Teaching/Lectures/Sem/2000/Alexander/source.ph
p3?url=/etc/passwd
*no comment* and not my site...
Tim Taubert
-
Tim Taubert | [EMAIL PROTECTED] |
501 - 600 of 1118 matches
Mail list logo