On Friday 23 February 2001 17:02, Jeff wrote:
> Is there better performance/speed instantiating an array with a
> specified size and then adding elements versus adding elements to an
> array with no size?
Uh, you can't specify the size when instatiating an array ...
--
Christian
On Friday 23 February 2001 19:27, Don Johnson wrote:
> Yup. Go figure.
>
> Don Johnson
>
> > It works if you execute only the SELECT (without the UPDATE) ?
> >
> > Christian Reiniger
> > LGDC Webmaster (http://sunsite.dk/lgdc/)
> >
> > On Friday 23
uery and check the order)?
Perhaps you can also post the actual code..
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...1000100011010101101010110100111010113...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
> anyone help me with this?
Well, I prefer preg_* :)
$mystring = preg_replace ('/<.*/', '', $mystring);
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...1000100011010101101010110100111010113...
--
PHP General Mailing List (http://www.ph
e else already said, addslashes () is the tool of choice
for the way in, and for he way out you don't need to do anything.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"The number of Unix installations has grown to 10, with more expected."
-- The Unix Program
our question, but I hope that some
part of the above answers it...
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"The number of Unix installations has grown to 10, with more expected."
-- The Unix Programmer's Manual, 2nd Edition, June 1972
--
PHP General
t set.
=> isset () should be used.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"The number of Unix installations has grown to 10, with more expected."
-- The Unix Programmer's Manual, 2nd Edition, June 1972
--
PHP General Mailing List (http://www.php.net/)
To un
.
>
> man, this is like the thread that will not die. isset() will return
> true for an empty string, which is not what he wants. the right thing
> to do is use
>
> if((isset($var))&&($var!=""))
I never said *only* isset() should be used :)
--
Christian Reiniger
me
> configuration, don't work in my machine, everytime he say 1.
Well, you never change $c, so it of course always says 1
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...1000100011010101101010110100111010113...
--
PHP General Mailing List (http://www.php.net/
to let the *browser* preserve the string
(and not e.g. parse the "<" as start of a tag).
htmlentities () ist the function of choice then...
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"use the source, luke." (obi-wan gnuobi)
--
PHP General Mailing List
s "is set"? Is it
> "introduced to the global namespace"?
"introduced to the *current* namespace"
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"use the source, luke." (obi-wan gnuobi)
--
PHP General Mailing List (http://www.php.net/)
To
int of heart.
> I can't think of any more, but that's mostly because I consider shared
> memory "too tricky for me" and have never played with it...
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
--
PHP General Ma
ned), file() and (my personal favourite) readfile() are the
functions of choice
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
the filesystem functions:
rename () (or safer: copy()+unlink())
unlink()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
CPU not found. retry, abort, ignore?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
\n\n";
> $mailBody= "Below is the link you can click on, \n\n";
> $mailBody .= "Please Click href=\"www.php.net\">Here to view the request
> details"; $mailHeaders = "From: [EMAIL PROTECTED]\n";
> mail($mailTo, $mailSubject, $m
h on a dedicated machine):
* Normal data
* Session data
* evtl. Cached pages / parts
> each of which should be able to be backed up to a floppy. Not all
If each part fits on a floppy, forget it. For these sizes it'n not worth
the effort (and can, in fact, slow down things)
--
Christian
n FROM_UNIXTIME()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has."
- Margaret Mead
--
PHP General Mailing List (http://www.php.net/)
just adds unneccessary overhead. If it's some file you don't
know the contents of, don't include it (that would mean executing
arbitrary code on your server)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers that men do not think.
path, i.e.
/usr/local/apache/htdocs/common.php or
/home/httpd/mydomain/common.php
Writing include ('phorum/common.php') will work in your setup
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers that men do not think.
- Adolf Hitler
--
PHP General
On Thursday 01 March 2001 13:19, you wrote:
> I'd like to include an inc file once a button id cliked!
You can only request a new page. Period.
PHP runs on the server, button clicks are evaluated on the client
(browser).
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
d.
Ahhh. You want to use the mcrypt functions or simply crypt() ?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.
- Edsger W. Dijkstra
--
PHP General Mailing List (http://www.php.net/)
To
; referer is not from your host then don't process the form.
> Of course this can be faked quite easily if this person knows
> what (s)he doing.
And it would prevent people who don't sent Referrer headers from using
the form
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/
On Friday 02 March 2001 06:21, you wrote:
> Hello,
>
> Are there any good examples of producing embedded javascript code in a
> php file?
sglfjh s
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the mind; its teaching should, t
t's straight out of the PHP Cookbook. What do I need to tell
> them to correct the problem?
Depends on what errors you get. "I can't create or manipulate jpegs"
isn't particularly helpful...
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBO
one, but where are we right now?)
Look at the headers of one of the messages. They contain a line of the
form
X-From_: [EMAIL PROTECTED]
The 42156 in there is the message number
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the mind; its teaching
h this characteristics.
Add a primary key. now. Accesses without that will be painfully slow.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"These are the people who proudly call themselves "hackers" --
not as the term is now abused by journalists to mean a computer
cr
Write GIF image data to browser
> foreach ($img as $val){
> echo $val;
> }
Try
echo pack ('c*', $img);
Or if that doesn't work:
foreach ($img as $val) {
echo pack ('c', $val);
}
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...100
strator in PHP (Tying
> > in with some open source mailing list software)?
> > Ideally, something like egroups (now groups.yahoo.com). I just want
> > to be able to easily administrate (or have other people administrate)
> > mailing lists. I have access to my own server (linux
; notice the single quote ' missing. And that WORKED!!!
> It displayed the right value in the next PHP page.
> Unfortunately there's another problem. it only
> DISPLAYED the right value...but when it adds the value
> in the database...it adds with the plus + sign. i.e.,
> it
On Monday 05 March 2001 17:29, you wrote:
> I'm using a variable!
> >
Well, you *still* need to have quotes around it:
> >Make sure you have quotes around the value.
> >
> >
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...to paraphrase
>
> I'm I missing something here ?
Check whether register_globals is set to "on"
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...to paraphrase Churchill, while representative democracy may be
terrible, it's still the best system that large corporation
variable?
Hmm, try
preg_match_all ('/]+>([^<]+)<\/a>/', $Subject, $Matches);
$Matches [0] [1],
$Matches [1] [1],
$Matches [2] [1]
etc
will contain the text afterwards.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power informati
ady done
this). Often this can drastically cut down on code size (a cleanup I did
recently roughly halved code size) while improving clarity and
maintainability
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our han
rvey/data/index.html
might also provide some info, and with
http://uptime.netcraft.com/up/graph you can look at some popular sites
yourself
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our hands
these days.
- Securit
; source, then you can use this:
>
> exec("mp3123 -y -Z --all 1>/dev/null/ 2>&1 &");
better add "nohup" to that:
exec("nohup mp3123 -y -Z --all 1>/dev/null/ 2>&1 &");
> well that simply puts the stdout and stderr in the
> sa
Does anybody know how to realise this?
Write a custom browser for this and tell all your visitors to use it.
Seriously - you can't control how the browsers buffer the received data,
when they render it etc.
That said - make sure that PHP output buffering is off
--
Christian Reiniger
LGDC Web
ot completely mistaken, so there
shouldn't be a problem
> sleep(1);
>}
>return;
Your compiler should throw an error here - main is declared as "int" but
doesn't return a value
> }
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those w
bligated to use VIM,
My personal favourite is fte. Its only problem is that it doesn't have
real PHP highlighting, but I got used to switching between HTML and C
mode...
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are bigots,
those who cannot,
ws without performing a second
> SELECT in this format:
look for mysql_num_rows ()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Drink wet cement. Get stoned.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
t; notebook being too slow :)
(granted - that computer here runs on Linux without any GUI, but still...)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.
- /. posting discussing the lik
>
> $title
> ";
One reason why I don't like the "echo" route: I lose the syntax
highlighting for the HTML that way. String constants should be
highlighted as, well, string constants normally, but when they contain
HTML code t
On Saturday 13 January 2001 00:36, jeff fitzmyers wrote:
> The code below does not work. What could be causing
> Please enter user name here:
>
Pull out your favourite HTML documentation and read again through the
discussion of the tag
--
Christian Reiniger
LGDC Webmas
[$i]);
Read again through the getlastmod() docs. That function returns the
modification time of the *currently executed PHP script*.
Use filemtime() instead and it will work
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Install once, run forever. Linux.
--
PHP General Mailin
7;, '', $Address);
// strip leading/trailing whitespace
$Address = trim ($Address);
// check for basic form
return preg_match ('/^[^@]+@[\w-]+(\.[\w-]+)+$/', $Address);
}
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software
On Tuesday 16 January 2001 09:30, Vlad wrote:
> Hi all!
> How can I check (in PHP code) if the target browser supports image
> displaying or not?
PHP manual/misc. functions/get_browser()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers that m
y posted a solution for this (complete,
working source code) some time ago.
Here it is:
Date: Fri, 5 Jan 2001 18:08:51 +0100
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it
eky in th 0.1% range.
Look at bigger optimizations first, then benchmark and if it still is too
slow (and only then) optimize further.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka&
ove works for:
> [b]bold text[/b]
>
> But does not work for:
> [b]bold text
> w/ newline[/b]
add a "s" modifier to the expression and
=>
$pattern = "/\[b\](.*)\[\/b\]/Uis";
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
On Thursday 18 January 2001 23:05, Noel Akins wrote:
> Question 2:
> Is there a way for php to detect the cpu speed of a users computer?
If you're on a Linux machine you can read /proc/cpuinfo and pick out the
speed entry.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lg
the heck do you build a dynamic site without URL variables,
> cookies, or POST variables?
Search phpbuilder.com for an article called "Writing dynamic pages with
search engines in mind" or so.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compair
; ?>
>
> http://mysite.com/Yarns/"> Yarns
Read
http://www.phpbuilder.com/columns/tim19990117.php3
Basically you create "virtual directories", e.g. a PHP script named
"Yarns" which simply include()s your one "real" script.
--
Christian Reiniger
LGDC Webm
27;, file($url));
>
> Probably about the same either way...
Perhaps. In an earlier version of PHP I had a problem where the above
code (fopen...) read *more* than the page length. I.e. the page was e.g.
20k big and the fread appended ~5k of junk to it.
--
Christian Reiniger
LGDC We
got the --with-apxs switch to ./configure
Also , try doing a
strip --strip-unneeded libphp4.so
afterwards
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offence.
- Edsger W. Dijkstra
On Thursday 25 January 2001 21:06, H. Wade Minter wrote:
> Does anyone have a good idea on how to split after a certain number of
> words?
Attached is code that semi-intelligently limits strings to a certain
number of characters. Perhaps that helps you.
--
Christian Reiniger
LGDC Web
floating-point value
instead of as string)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"use the source, luke." (obi-wan gnuobi)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Friday 26 January 2001 22:35, Giancarlo wrote:
> > how many elements i can insert in an array?
> thank you!
I'd say up to 2^31 or until your memory is full (which is likely to occur
earlier)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can ha
"
=> MySQL already provides functions for that.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can handle computers, and many do.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
, and *then* you echo the returnvalue
of phpinfo () (an integer).
So the output generated by your version will have some little number at
the end.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
(A)bort (R)etry (P)retend this never happened ...
--
PHP General Mailing
> include the filename.
It does, except it does not??
> 3. How can I turn on directory browsing? I am receiving a Forbidden
> error whenever there isn't a default document in a directory.
search for "Options " in your apache configs and add an "Inexes" to
h octect
> stream ? will they turn up right ?
Usually yes, but you should use the proper MIME type for them
(image/jpeg, image/png, image/gif etc) just to be sure
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast." (Linus Torvalds about Linux
mply too intelligent - it recognizes that
all addresses are the same and only sends it once :)
Usually this is desired behavior
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"World domination. Fast." (Linus Torvalds about Linux)
--
PHP General Mailing List (http://w
On Tuesday 30 January 2001 17:26, Markus H. Maussner wrote:
> is there a PHP function wich translates from Mac to PC ?
Look for the "Recode" extension
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...to paraphrase Churchill, while representative democracy ma
of $modifiedVariable.
What about using normal pass-by-value and returning the result?
function MyFunc ($SomeVal)
{
$SomeVal += 42;
return $SomeVal;
}
echo MyFunc ($StrangeVal);
Anyway - functions that get their parameters by reference and modify them
can cause much trouble, so better b
On Wednesday 31 January 2001 19:35, SED wrote:
> Probably some of you are laughing while reading this :) But I have seen
> the word "foo" used so many time (in programming) from different
Read
http://www.tuxedo.org/~esr/jargon/html/entry/foo.html
for a detailed explanation :
> link I'm passing - basically the HTML for the text box is getting
> parsed together with the HTML for the passed link and the results
> are messed up.
I think you want to use htmlentities ():
echo "" .
htmlentities ($Content) . "";
--
Christian Reinig
On Thursday 01 February 2001 23:40, Karl J. Stubsjoen wrote:
> What is the purpose of the SPRINTF in this instance?
>
>
> SPRINTF("SELECT
> equence,prodnum,childdesc,onhand,openorders,avlallocate,bakorder,webpri
>cing FROM prodaval");
There isn't any. Remove
tely suffices :)
The most important thing here should be to *not* install a GUI, simply
because nobody will sit at that machine anyway and running GUIs consume
too much of your precious RAM.
SuSE, Debian or perhaps Red Hat should be fine for this.
--
Christian Reiniger
LGDC Webmaster (http://
TED['from_email'] .
>'>';
Your problem here is that $POSTED['from_email'] is
"[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>" instead of
"[EMAIL PROTECTED]"
Also note that "mailto:" is a HTML-ism and has no place in mail
On Friday 02 February 2001 12:24, Martin A. Marques wrote:
[\t is tab?]
> > > yes (depending)
> >
> > On what?
>
> It depends on the charset you use.
No. the return value of ord('\t') may differ depending on the charset,
but '\t' itself always is
> property that starts with an _underscore should be considered a private
> property, and one would hope that your UML tool could be configured to
> understand that.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search
rowser requires more
resources than a apache+PHP+mysql in such a scenario. And don't forget
that you have to sit in front of the development (client) box all day and
getting a decent graphics card for a 486 is *hard*
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
A - Amer
ntry'] == "Select your country" etc
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has."
- Margaret Mead
--
PHP General Mailing List (h
mply use brackets to specify the evaluation order:
SELECT * FROM table
WHERE (username = '$username' AND password = '$password') AND
(site = 'theirsite' OR site = 'all')
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt
.h
/usr/include/linux/errno.h
If not, install the kernel-headers or kernel-source package
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has.&
nt - CGI is an interface specification, PHP is
a programming language. You can use PHP via CGI :)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has.&q
On Saturday 03 February 2001 22:03, Thomas Weber wrote:
> I have solved the problem. But now i have another problem:
>
> Look at this screenshot: http://electic.hn.org/tunix.gif
The webserver doesn't send a proper Content-Type: Header.
--
Christian Reiniger
LGDC Webmaster (htt
t;one" => "value", "two" => "value"]);
foo () is declared to take a reference to a variable. This only works
with "real" variables, not the temporary ones returned from array() etc.
Modify it to
function foo ($hash) {
and it will work
--
C
seconds, plus 1-1.5s for DB
queries, output generation etc (yes, I do cache such heavy pages. just
took that as example)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, i
much assume you don't), use normal pass-by-value. In PHP4 that's
just as fast as pass-by-reference (read
http://www.zend.com/zend/art/ref-count.php)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
d
On Sunday 04 February 2001 19:23, phpLover wrote:
> Thanks for your answerm but what does eregi_replace() do?
Exactly the thing that's written in the documentation for it :)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science,
e documentation for "printf". You want to use sprintf() here.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny..."
- Isaac As
while he's on holiday for 3 weeks, who cares? (Sorry Rasmus :)
If some machine at a hosting company shows glitches while the only admin
is sick, things will be very bad for the hosted people/companies.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting p
#x27; => [http://www.google.com/'],
> img(['src' =>
> 'http://www.google.com/images/title_homepage4.gif', 'alt' => 'Visit
> Google!', 'border' => '0'])
> );
>
> */
So it basically boils
ted_data = mcrypt_ecb (MCRYPT_TWOFISH, $key, $input,
> MCRYPT_ENCRYPT);
>
> print "The CypherText in TWOFISH ECB is ".bin2hex
> ($encrypted_data)."\n";
>
> $encrypted_data = mcrypt_cbc (MCRYPT_TWOFISH, $key, $input,
> MCRYPT_ENCRYPT);
>
> print "
setting via web using PHP scripts. I am working on
> RedHat 6.2 using apache as my web server.
Perhapy Webmin could help you?
http://www.webmin.com/webmin/
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our h
o it in PHP), and now want to know how to change the settings
of X. Correct?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our hands
these days.
- Securityfocus on probing 3600 hosts for known problems in 3 we
> > Hi
> > My
> > Names
> > is
> > Sam Rose
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That's funny...&q
x {
$this->n = new $y;
}
function z {
$this->n->test();
}
var n;
}
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "E
> I tried various versions of ../ and ../../ without success.
Set the include_patz in php.ini and include everything relative to that
path
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
(A)bort (R)etry (P)retend this never happened ...
--
PHP General Mailing List (http://www
Perhaps a more "generous" setup would be even better though:
AddType application/x-httpd-php .html .htm .php3 .php .phtml
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
(A)bort (R)etry (P)retend this never happened ...
--
PHP General Mailing List (http://www.php.net/
to send out an email
> automatically, once a week, as a newsletter, based on data / criteria
> from a database?
Somehow this question comes up about once a day. Search the ML archives
for "cron"
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
(A)bort (R)etry (P)retend thi
a table with this characteristics.
>
> Add a primary key. now. Accesses without that will be painfully slow.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Very funny, Scotty! Now beam up my clothes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
.\/~\?%=\-]|&)+)';
$FTPPath = '(\/[^\/\s]*)*\/?';
$Port = '(:\d+)?';
$HTTPURL = 'http:\/\/' . $Host . $Port . $HTTPPath;
$WWWAddress = 'www\.' . $HostName . $Port . $HTTPPath;
$FTPURL = 'ftp:\/\/'
id() if possible.
> http://www.php.net/manual/en/function.mysql-insert-id.php
Which however only works (1) with autoincrement keys and (2) for the last
insert you did using the same mysql connection, i.e. if you do an insert
in foo.php, mysql_insert_id () won't show anything in bar.php
--
On Thursday 08 March 2001 03:45, you wrote:
> Is there a way as a server admin to kill all sessions to a site. I
> need a way to logout all members to a site.
Well, usually you'd keep the session data in a database, so you can just
empty the sessioninfo table.
--
Christian Re
t's taken as literal
asterisk in there.
try preg_split("/([\,\;]\s*)|(\s+)/", $input_list);
i.e. "either (',' or ';' eventually followed by spaces) or (at least one
space)"
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
...1000100011010
EK(NOW()))
this will have the problem that it will show all of week X even if you're
on 23:55 on the last day of that week
WHERE ((yourtimefield >= NOW()) AND (yourtimefield <= DATE_ADD(NOW(),
INTERVAL 1 WEEK))
might be better
--
Christian Reiniger
LGDC Webmaster (http://sunsit
On Thursday 08 March 2001 07:17, you wrote:
> Does anybody know where I could get more info on storing session data
> in a database rather than the default way?
Hmm, perhaps phpbuilder.com has an article on it. Alternatively I could
send you some of my code
--
Christian Reinige
could cause an immense increase in Kernel CPU Load?
Try removing more stuff to narrow things down a bit.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka", but "That&
lt);
>
> And here is the output:
> Errors:
> Warning: Supplied argument is not a valid MySQL-Link resource in
> //*//**..***/db.php on line 147
>
> Line 147, is the last line in the above snippet. I cleared out the
> path name for security, no offense intended :)
This one?
> $rows
101 - 200 of 475 matches
Mail list logo