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
y, using "/etc/rc.d/httpd restart" is the recommended way to
restart apache
--
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
s passed in place of $email, so every time the function
body accedded its "$email" parameter, it gets the value of $total_members
- which is not an array.
The third parameter is ignored.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is
t;Cannot start word");
> print "Loaded word version ($word->Version)\n";
> $word-visible =1 ;
> ?>
>
> Why?
You didn't define a class "COM".
(1) You did write such a class, right? It does not come with PHP
(2) function names are case sensitive
--
On Tuesday 06 February 2001 19:39, Conover, Ryan wrote:
> If I save an object as a session var. will I still have access to its
> methods.
Yes, at least with PHP4. I'm doing that all the time.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like
y and text files (i.e., it's useless on
Unix). If not needed, this will be ignored
---
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
y functions in php for that so I think I probably have to use C or
> something.
Yes, use C. PHP doesn't have such functionality, nor should it have it.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Tor
ent class, so why do you use
get_parent_class() at all?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
n automatically?
No. You'll have to code that yourself (read file - add lines - write file)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
odules. Have a closer look at it again.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
On Wednesday 07 February 2001 11:52, Pavel Kalian wrote:
> COM of course comes with PHP (but is available on Win only), RTFM on
> calling COM support...
Yes, but there ain't no class "COM". Read the manual section about COM
support.
--
Christian Reiniger
LGDC Webmaster (h
re or less like a normal class.
Hmm, it's at least not mentioned in the manual.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is for free" -- Linus Torvalds
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
On Wednesday 07 February 2001 19:13, Gabor Gludovatz wrote:
> how can I prohibit users to read arbitrary files on the system if run
> PHP as apache module?
Read the chapter about Security in the manual as well as the description
of the safe_mode and open_basedir options
--
Christian Re
their
end ($)
I.e. that one only catches strings consisting only of decimal digits.
> And the | is using '\d' and 'prem'. It probably should be
> "/(div\d)|prem/ Unless those parens are part of the expression. Then
No, that's fine.
(div\d|prem)
means "
WHO HELPS!!!
$replaced = preg_replace ('/(href\s*=\s*(\'|\"))(.*?)(\\2)/i',
"\\1\\3${urladdition}\\2",
$matches);
On a match, $matches [0] will contain the entire pattern, $matches [1]
the first subpattern (everything from h
btoolize on my system? I also followed
> the INSTALL docs, and read the online FAQ, unfortunatly I know very
> little about php-modules and autoconf etc..
You'll have to install some packages: libtool, autoconf and automake I'd
say.
--
Christian Reiniger
LGDC Webmaster (http://sunsi
e \d is tightly bound to the div.
> But in confirming this, besides matching something like
> 'div2' it will also match div23 - both returning div2.
Well, it matches on "div2", no matter what's around that. just like
"prem" also matches on "apprem
On Thursday 08 February 2001 15:04, [EMAIL PROTECTED] wrote:
> The weird thing is that some of the images show up as broken links.
> Okay, so we get the link properties and copy & paste the URL into the
> browser, like: http://localhost/php/php.exe/sandbox/images/rainbow.jpg.
> We get back an err
On Thursday 08 February 2001 17:13, Chris Lee wrote:
> Its called inheritance.
> rarley.php
>
> class rarley_used
> {
> ?>
> main_class.php
>
> include_once('rarley.php');
>
> class main_class extends rarley_used
Other way round (rar
ot a valid File-Handle resource in
> /home/robr/public_html/php/getpdf.php on line 5
That most likely means the fopen () failed.
--
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.
- /. po
| $this->gpg-commmand";
>$fd = popen("$comm","r");
> This returns echoes the part after the | in safe-mode.
echo only outputs something. it doesn't return anything. Write
$comm = "$data | " . $this->gpg_command;
and:
$this->gp
not desirable if the array can become
big (which is easy with multidim. arrays). Better:
$ArrayS = serialize ($TheArray);
$AKey = md5 ($ArrayS);
// insert into database (key: $AKey, value: $ArrayS)
$Url = $baseurl . "?key=$AKey"
plus the matching reading code
--
Christian Reinige
> > I'm having a hard time doing this. Is it actually possible? from
> > > what
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
- http://www.google.com/search?q=e
--
PHP General Mailing
er.
>
> Any other suggestions which will cause less server load?
Grab one of the many java IRC applets from http://freshmeat.net and run
an irc server on your box. http wasn't designed for this type of thing.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1
On Friday 09 February 2001 19:04, Jeff Oien wrote:
> What does IDE stand for?
Integrated Development Environment
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds.
- http://www.google.com/search?q=e
--
On Friday 09 February 2001 19:15, Siim Einfeldt aka Itpunk wrote:
> row(2,'','$something,second'); then it displays $something and second,
In single quotes (') variables are not evaluated. Use double quotes (")
instead.
--
Christian Reiniger
LGDC Webmaster
On Friday 09 February 2001 20:39, John Vanderbeck wrote:
> Why are you echoing it twice? Also, the first line, shouldn't it be:
>
>
> Looks liek you dropped the semi colon
The semicolon is optional if a closing PHP tag ("?>") follows.
--
Christian Reiniger
LGD
))
echo "'$Username' is ok";
else
echo "'$Username' contains invalid chars"
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"use the source, luke." (obi-wan gnuobi)
--
PHP General Mailing List (http://www.php.net
regs[1].
>
> How can I extract what's within double quotes?
Hmm, I only know the preg syntax. With that it's
preg_match ('/"([^"]*?)"/', $thestring, $matches);
$InQuotes = $matches [1];
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
&quo
t of this function to a string:
>$new_line = str_replace($oldemail, $newemail, $line);
Another little thing: You don't need the eregi() here - just do
str_replace. If it doesn't find $oldemail it won't do anything.
--
Christian Reiniger
LGDC Webmaster (http://suns
> ORDER BY score DESC";
Uh, perhaps I'm blind and/or dumb, but I just can't find a subselect in
that query.
The query as written here should run fine in any MySQL version
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Nothing is more dangerous than an idea
r_format() and sprintf ()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.
- George Gordon Noel Byron (1788-1824), [Lord Byron]
--
PHP General Mailing List (http://www.php.net/)
.*?)(\s*)$/', $checkme, $matches);
$NewString = str_repeat ('_', strlen ($matches [1])).
$matches [2] .
str_repeat ('_', strlen ($matches [3]));
not tested, but should work fine.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will no
> I still get the error. Anyone have any ideas? These two valuse mustbe
> evaluated as different.
if (strcmp ($pick1, $pick2) == 0)
echo "equal";
else
echo "different";
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are
where you're inserting that "!".
Such things don't get in by accident - it's a bug in your code.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are bigots,
those who cannot, are fools,
and those who dare not, are slaves.
- George
>
> Yes. Look through your code and find out where you're inserting that
> "!". Such things don't get in by accident - it's a bug in your code.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Those who will not reason, are bigots,
those who cannot, a
[^>]+)\.(gif|jpg)\"",
> "src=\"http://www.ezigraphics.com/images/about_0001." . //2. "\"",
> $txt);
$txt = preg_replace ('/src="([^>]+)\.(gif|jpg)"/',
'src="http://www.ezigraphics.com/images/about_0001.\\2"',
On Tuesday 13 February 2001 11:21, Ankur Verma wrote:
> Another thing that you might want to look out for in this case would be
> the maximum execution time of the script
Shouldn't matter as the file is uploaded *before* the script is invoked.
--
Christian Reiniger
LGDC Webm
On Wednesday 14 February 2001 11:44, kaab kaoutar wrote:
> is there a possiblily to use with in an Oracle Web server ?
RTFM (look at the manual, topic "Oracle functions")
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can handle computers, and man
t;
>
> function CloseODBC($connection_id)
> {
> # error messaging supressed
> @odbc_close($connection_id);
>
> }
Huh?
When you call CloseODBC (), the code in that function is executed - and
there odbc_close() is called with the "@" - so it doesn't rep
love\\
$Query = "UPDATE foo SET field1 = '" . addslashes ($TextFromForm) . "'
WHERE ...";
The addslashes () here properly escapes the quotes in your string, so
that the SQL parser can interpret it correctly.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.d
with double
quotes (print ("Value=\"C:\test.gif\"");) ?
Then you need to escape the "\" before the "t" - "\t" is a TAB character,
and chances are good that the browser won't like that in a filename.
--
Christian Reiniger
LGDC Webmaster (http://
r set_error_handler ()
--
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 PROTECTED]
To contact the list administrat
matically every
time an error occurs, and __LINE__ is also passed automatically to it.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
I saw God - and she was black.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
mplemented as
hashes or trees, which don't store data at "fixed positions" (that's a
very bad explanation, but, well...)
The "index" is the "key" in this case - in your example it's "something".
--
Christian Reiniger
LGDC Webmaster (http://su
to
> write one myself but Im not the best at ereg or replace code...
nl2br () is the simple solution (as others already mentioned).
Attached is a more sophisticated one I use in my code. It detects
paragraphs (empty lines), and highlights URLs and email adresses.
--
Christian Reiniger
L
On Thursday 15 February 2001 08:03, Scott Mebberson wrote:
> When Jason says 'especially when your note using the cgi' he means the
> cgi version of PHP (I think) in preference to installing PHP as an
> apache module.
...just as using mod_perl is better than perl as CGI
--
ch for the URLs but they are hardly complete and not at
> all succinct. I supposed the POSIX REs because that's what I thought
> the PHP docs said. PCREs are good too? Sure seems like the PHP docs
> would include this don't you think?
They do. See "Regular expression functions
On Thursday 15 February 2001 22:43, Jerry Lake wrote:
> is there a way I can make a regex to add a comma
> to the beginning of every line of a comma delimited
> file ?
$NewContent = preg_replace ('/^(.)/m', ',\\1', $OldContent);
--
Christian Reiniger
LGDC Webm
is :). From the manual:
When prepended to an expression in PHP, any error messages that might be
generated by that expression will be ignored.
It talks about error "messages".
The return value isn't affected in any way.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
r...
PS: The long number is, scientifically seen, also *less* correct than the
'E' form - the 'E' form states that it is a number with a precision of 16
digits, while the long one implies that it has a precision of 190 digits
(which is definitely wrong).
--
Christian Rei
he fields. Based
> on code in PHP Fast and Easy.
> $sql = "SELECT COUNT (title) FROM music";
I found that often MySQL doesn't like if there's a space between the
function name and the opening bracket, i.e. try writing "COUNT(title)"
instead of "COUNT (
nk?"
Well, What I meant was: In the Perl-regexp section of the manual there is
a detailed document on the Perl regexp syntax.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Nothing is more dangerous than an idea if it's the only one you have.
- Emil-Auguste Chart
s with parameters have the following
format:
scriptname?parameter1=value1[¶meter2=val2[&...]]
Two '?' in an URL are strange at best. So change that to
$ErrorURL = 'error.php?page=' .
rawurlencode ('/pages/login.php&username=name');
> /pages/login.php
$HTT
RDER BY thetimestamp DESC LIMIT 1
a timestamp field in MySQL is by default automatically set to NOW() at
each INSERT and UPDATE if you don't set it yourself in the query.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Drink wet cement. Get stoned.
--
PHP General Mailing Lis
s
(http://freshmeat.net/search/?q=search+engine)
--
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-mail: [EMAIL PROTECTED]
To con
some thing
> like this
> works
> $var = trim (ereg_replace(" ","",$var));
*ack*
Why not just
$var = trim ($var);
?
Try it. It works :)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Drink wet cement. Get stoned.
--
PHP General Mailing List (http:/
s work as
Do you have javascript turned of? Netscape4 only interprets CSS if
javascript is enabled.
--
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 addit
ouched. Try
$your_string = preg_replace('/\s/',"",$your_string);
> << Hi,
>
> Does anyone know of the code to remove all whitespace from a string.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
"Software is like sex: the best is fo
?>", $html_code);
str_replace doesn't know about regular expressions, so it tries to find
the literal string "&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}" in your URL
- which it doesn't find.
Use eregi_replace instead
--
Christian Reiniger
LGDC Webmaster (http://suns
d.
> >Use eregi_replace instead
>
> H, ok but with the eregi_replace the prob is the same ... :( no
> changes are made on my cache file ...
Ah, yes. str_replace and eregi_replace don't modify the string - they
return a modified string. That means you have to do a
$html_code
example: 4321§117§A123§42WQ§1243
> b) $tempItem = serialize($tempItem);
Just
$tempitem = serialize($myarray);
will work fine.
> c) store it in mysql-table
>
> and i get my array back with
>
>
> d) $myItems = explode("§",unserialize($myValueFromDB));
$m
kground. If they want to change their
> > selection, they can go ahead and pick other songs, and click Play
> > again - THIS is where the previous instance of the 'amp' program
> > should be killed, and a new one started, with the new play list
> > queued. And of co
wrapper for amp, which
> > launches the program in the background and returns its process id.
> > Then he can do a $AmpPID = system ("launchamp $Arg");
> >
> > (the wrapper would have to execute "nohup amp $Args &")
> >
> > and add a
sional and 2-dimensional at
the same time. Example:
$WeirdDArray = array ('1dim' => 'Hello man',
'2dim' => array ('Hello', 'man')
'1d2' => 42);
So it depends on what you mean with "2-dimen
you can be pretty sure that someone invested
quite some work into making it as powerful and bug-free as possible (that
includes things like having really researched the RFCs for e.g. that
popular mail class etc).
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Drink wet cement.
401 - 475 of 475 matches
Mail list logo