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
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
http://www.callowayprints.com/phpdoc/phpdoc.php
Thanks Everyone,
Christian
--
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]
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
ease
>
>Chris
>
>
>
>--
>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]
Best Regards, Christian S
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
doesn't tell me there's an error... in fact it doesn't show anything...
why is that?
_____
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia @ Webstyle!
.. http://www.webstyle.com.br
.. http://www.tanamesa.com.br
--
PHP General Mailing
kinda stupid don't u think? there's no way someone can code having to stop
at every query line of code to see if there was an mysql_error()
_
. Christian Dechery - Webdeveloper
.. Diretor de Tecnologia @ Webstyle!
.. http://www.webstyle.com.br
.. http://
Isn't default config for mysql to report syntax errors on queries and stuff
like that??... it always did, I never altered any config in mysql. And then
today it just STOPPED reporting errors.
_____
. Christian Dechery - Webdeveloper
.. Diretor de Tecno
> > 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
Hello I like to have some directions in how to install PHP on IIS 5
Regards
Christian.
Kråmagnom AB
Christian Björklund
Rådmansgatan 67
113 60 Stockholm
Tel: 08-320750
Fax: 08-320751
Mobil: 070-8880002
))
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
heckboxes and make them
referrable?
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
e commend line?
not really... there are many very nice Mysql clients avaliable... Mascon
for once is very nice
and u can also put together or own PHP form to populate the tables... :)
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner /
from that...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
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 admi
done without transactions? With
code? I don't think so...
can anyone clear my mind here...
I have this problem... I need to update 4 tables at once, and if something
goes wrong I have to UNDO everything
____
. Christian Dechery (lemming)
. http://www.tanames
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
How can I associate a list of checkboxes to a list of texfields?
if I had only several checkboxes I'd have:
Cb1
Cb2 ... etc...
but what if have:
Cb1 Cb2 http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
ommit/rollback...
thanks...
____
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
Great program man!
Carlos
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:...
> Hey everyone,
>
> I just released phpdoc v2.0, which is a program used to document PHP
class
> definitions.
> This version is a complete rewrite of v1.0, and takes a d
Sorry, I got this from a user. Didnt mean to send to newsgroup
> Great program man!
>
> Carlos
>
>
> "Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:...
> > Hey everyone,
> >
> > I just released phpdoc v2.0, which is a p
it like this:
for each checkbox I did
echo " Cb1 ";
then I check if isset(${"asset_".$id}) in my code... it's working fine...
but it's kinda 'dirty'... I'll try yours... thanks! :)
. Christian Dechery (lemming)
. http:/
[^>]+)\.(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
ic updates
>code is completed.
>
>Be interested to know if anyone has got atomic updates sorted.
tomorrow I'll try to compile BDB, in my Win9x... and get it to work... if
it does REAL transaction than I can develop nicely with mysql... I'll let u
know...
__
't know where is the error,
unless I start printing everything on error handling.
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PR
>Christian -
>
>You need to be checking the return values of the mysql_*() functions. Make
>sure you're not calling them with a @mysql_*() as that will disable error
>reporting.
>
>Perhaps you should give us some examples of what's failing and how?
>
>Also,
with 50 fields and want a function to validate all of them, u have to pass
them all to the function or build a little piece of code to make all th
$GLOBALS local right?
Is this really the idea of global vars?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. h
hy not
in PHP? that's what I wanna know, why globals in PHP doesn't really work
like globals?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
the compiler...
I just came with a nice foreach() to make my globals local, and I have to
put them in ALL my functions that handles form vars... I'll consider using
arrays in my next forms
but hey, don't worry... PHP really kicks ASP ass in all matters! :)
cya
. [ Christian D
r solution?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
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 administrato
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
o "Error: " . mysql_errno() . ':' . mysql_error() . "\n";
> echo "Query: $query\n";
> exit();
>}
> }
that's kinda what I have here... but the line of code isn't being shown...
and that is the problem... I for one, think that
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://
On Wednesday 14 February 2001 18:43, Christian Dechery wrote:
> that's kinda what I have here... but the line of code isn't being
> shown... and that is the problem... I for one, think that in an error
> message the line of code is crucial.
Check the manual fo
You need to use "\n" for interpolation.
--- Larry Rosenman <[EMAIL PROTECTED]> wrote:
> Greetings,
> I was trying to build up a multi-line body to
> use with the mail
> command, using code similar to:
> $mailbody = $mailbody . '\n' .
> $HTTP_POST_VARS["somefield"];
>
> when I sent the
At 19:53 14/2/2001 +0100, Christian Reiniger wrote:
>On Wednesday 14 February 2001 18:43, Christian Dechery wrote:
> > that's kinda what I have here... but the line of code isn't being
> > shown... and that is the problem... I for one, think that in an error
> &
On Thursday 15 February 2001 02:49, Christian Dechery wrote:
> > > that's kinda what I have here... but the line of code isn't being
> > > shown... and that is the problem... I for one, think that in an
> > > error message the line of code is
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
--
as a mask for a function or
something? I don't know... just having crazy ideas...
this is pretty good as it is.. I just wanted even better...
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing
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
1001 - 1100 of 1377 matches
Mail list logo