Re: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread Christian Reiniger
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

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
#x27; => [http://www.google.com/'], > img(['src' => > 'http://www.google.com/images/title_homepage4.gif', 'alt' => 'Visit > Google!', 'border' => '0']) > ); > > */ So it basically boils

Re: [PHP] attempt to use an empty IV with mcrypt

2001-02-05 Thread Christian Reiniger
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 "

Re: [PHP] please help (network admin via web)

2001-02-05 Thread Christian Reiniger
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

Re: [PHP] manage number of rows displayed

2001-02-05 Thread Christian Reiniger
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

Re: [PHP] Breaking up a line and using the text?

2001-02-05 Thread Christian Reiniger
> > 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

Re: [PHP] Making a object from one class available to all objects in the calling class

2001-02-05 Thread Christian Reiniger
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

Re: [PHP] include files

2001-02-05 Thread Christian Reiniger
> 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

Re: [PHP] simple config. question

2001-02-05 Thread Christian Reiniger
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/

Re: [PHP] Automating tasks in PHP?

2001-02-05 Thread Christian Reiniger
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

Re: [PHP] Re: [PHP-INST] Installation of PHP and Apache in RedHat 7.0

2001-02-06 Thread Christian Reiniger
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

Re: [PHP] Passing an array as an argument.

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
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 --

Re: [PHP] Sessions and Objects

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] binmode() in php?

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] Io Ports?

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] parent constructor

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] [newbie] easy question about fopen ("$filename", "r+")

2001-02-07 Thread Christian Reiniger
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,

Re: [PHP] php & mod_perl

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
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: [PHP] Com

2001-02-07 Thread Christian Reiniger
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:

Re: [PHP] DSO security

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] reg-ex problem

2001-02-07 Thread Christian Reiniger
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 "

Re: [PHP] ? for the Reg Ex people

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] APC install problems

2001-02-07 Thread Christian Reiniger
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

Re: [PHP] reg-ex problem

2001-02-08 Thread Christian Reiniger
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

Re: [PHP] Weird one--PHP parsing jpg image!?

2001-02-08 Thread Christian Reiniger
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

Re: [PHP] splitting a class across separate files?

2001-02-08 Thread Christian Reiniger
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

Re: [PHP] Passing files to a browser

2001-02-08 Thread Christian Reiniger
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

Re: [PHP] Mail-Encryption

2001-02-09 Thread Christian Reiniger
| $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

Re: [PHP] Arrays through URL

2001-02-09 Thread Christian Reiniger
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

Re: [PHP] Arrays through URL

2001-02-09 Thread Christian Reiniger
> > 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

Re: [PHP] How does one build a big chat system?

2001-02-09 Thread Christian Reiniger
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

Re: [PHP] good free/cheap IDE for PHP

2001-02-09 Thread Christian Reiniger
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 --

Re: [PHP] problem with classes

2001-02-09 Thread Christian Reiniger
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

Re: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Christian Reiniger
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

Re: [PHP] [newbie] Can I use regular expressions?

2001-02-11 Thread Christian Reiniger
)) 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

Re: [PHP] regex : Extracting parts of a string :-???

2001-02-11 Thread Christian Reiniger
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

Re: [PHP] Search & replace text

2001-02-12 Thread Christian Reiniger
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

Re: [PHP] rewriting this SQL statement to remove subselect

2001-02-12 Thread Christian Reiniger
> 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

Re: [PHP] money maths

2001-02-12 Thread Christian Reiniger
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/)

Re: [PHP] Regex help needed...

2001-02-12 Thread Christian Reiniger
.*?)(\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

Re: [PHP] comparisons

2001-02-12 Thread Christian Reiniger
> 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

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
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

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
> > 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

Re: [PHP] Reg. Exp. Help

2001-02-13 Thread Christian Reiniger
[^>]+)\.(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"',

Re: [PHP] limitation of file upload??

2001-02-13 Thread Christian Reiniger
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

Re: [PHP] Oracle Web & Php

2001-02-14 Thread Christian Reiniger
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

Re: [PHP] @ Scope

2001-02-14 Thread Christian Reiniger
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

Re: [PHP] Qoute problem

2001-02-14 Thread Christian Reiniger
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

Re: [PHP]

2001-02-14 Thread Christian Reiniger
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://

Re: [PHP] need better solution

2001-02-14 Thread Christian Reiniger
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

Re: [PHP] need better solution

2001-02-15 Thread Christian Reiniger
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

Re: [PHP] Array question

2001-02-15 Thread Christian Reiniger
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

Re: [PHP] A little code here? :)

2001-02-15 Thread Christian Reiniger
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

Re: [PHP] php vs perl

2001-02-15 Thread Christian Reiniger
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 --

Re: [PHP] Where is Regex List of Operators?

2001-02-16 Thread Christian Reiniger
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

Re: [PHP] regex

2001-02-16 Thread Christian Reiniger
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

Re: [PHP] @ Scope

2001-02-16 Thread Christian Reiniger
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/)

Re: [PHP] How to transfer "2.2864849511949E+190" to a normal-human-readable number?

2001-02-16 Thread Christian Reiniger
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

Re: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Christian Reiniger
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 (

Re: [PHP] Where is Regex List of Operators?

2001-02-16 Thread Christian Reiniger
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

Re: [PHP] Finding the? in $REQUEST_URI?page=blah

2001-02-17 Thread Christian Reiniger
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

Re: [PHP] Can I select only the newest record?

2001-02-17 Thread Christian Reiniger
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

Re: [PHP] search

2001-02-17 Thread Christian Reiniger
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

Re: [PHP] more on trimming

2001-02-17 Thread Christian Reiniger
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:/

Re: [PHP] Stylesheets

2001-02-17 Thread Christian Reiniger
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

Re: [PHP] Removing Whitespace

2001-02-17 Thread Christian Reiniger
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

Re: [PHP] REGEX prob

2001-02-17 Thread Christian Reiniger
?>", $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

Re: [PHP] REGEX prob

2001-02-18 Thread Christian Reiniger
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

Re: [PHP] array - too stupid

2001-02-18 Thread Christian Reiniger
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

Re: [PHP] system()

2001-02-19 Thread Christian Reiniger
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

Re: [PHP] system()

2001-02-19 Thread Christian Reiniger
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 

Re: [PHP] How to determine the parameter is a 1 dimension array or not?

2001-02-19 Thread Christian Reiniger
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

Re: [PHP] Libraries

2001-02-20 Thread Christian Reiniger
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.

<    1   2   3   4   5