Re: [PHP] checking $_POST variables

2003-03-14 Thread Ernest E Vogelsinger
should rather have a list of input variables that need to be filled and compare $_POST against this. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] inserting parameters into URLs dynamically

2003-03-14 Thread Ernest E Vogelsinger
links } A special gotcha may come in here: take care to only rewrite links that point to your own site. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] General Information About Porting a Monolithic Perl CGI Script to PHP

2003-03-14 Thread Ernest E Vogelsinger
- it works with most major databases (including ODBC) and keeps you off the hassles of implementing database-specific code. (Disclaimer - this is not, and cannot be, valid for non-standard SQL extensions offered by any particular database, if you're using them). -- O Ernest E. Vogelsinger

Re: [PHP] Apache 2.0 and PHP

2003-03-14 Thread Ernest E Vogelsinger
be written in a thread-safe way. While the PHP core group as to my knowledge has already implemented PHP (4.3.0 that is) in a thread-safe way, most of PHP extension modules are not (yet?) thread safe. Might get you into a core dump I suppose... -- O Ernest E. Vogelsinger (\)ICQ

Re: [PHP] php errors while displaying database fields

2003-03-13 Thread Ernest E Vogelsinger
. Workaround: if (array_key_exists('REMOTE_ADDR'))... Undefined variable: the variable you're using has not been defined and never been assigned to. PHP will return null in this case. Workaround: if (isset($page))... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] Force refresh of graphic - how?

2003-03-13 Thread Ernest E Vogelsinger
=myimg.jpg?r=?php echo uniqid('',true);? uniqid() uses the entropy generated by the opsys random device (if available) in an attempt to make this truly random. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] Follow-up to Hacker problem

2003-03-13 Thread Ernest E Vogelsinger
] Check the archives - within the last 2 days there was a thread about breaking up long words to avoid inappropriate posts to clutter the page layout. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] removing appended chars - please help, quite urgent

2003-03-13 Thread Ernest E Vogelsinger
, therefore this record isn't updated. Do any1 know how I can check for spaces here, and remove them if present [snip] have a look at trim() -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] Can't seem to be able to do a get request

2003-03-13 Thread Ernest E Vogelsinger
][CRLF] where [CR] is a _complete_ CarriageReturn/LineFeed sequence \r\n. Of course you may add more headers to it. You might also want to check out cURL for threaded requests. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] Is there any reason...

2003-03-13 Thread Ernest E Vogelsinger
ReplyToAll if you want to. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pop-up problem

2003-03-13 Thread Ernest E Vogelsinger
=javascript:void(0); onClisk=... here - however note that this won't do _anything_ if JS is disabled. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] time() question

2003-03-13 Thread Ernest E Vogelsinger
how do I make it look like 2003-03-13 or a variant of that? [snip] http://www.php.net/manual/en/function.date.php -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] If 1 IF fails, do the rest anyway...

2003-03-13 Thread Ernest E Vogelsinger
all 3 by themselves, later comparing the results: $x1 = test1(); $x2 = test2(); $x3 = test3(); if ($x1 $x2 $x3) ... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Problem with string comparison

2003-03-13 Thread Ernest E Vogelsinger
double quotes to construct a string you don't need to escape single quotes. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please Help with the Code

2003-03-13 Thread Ernest E Vogelsinger
. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with string comparison

2003-03-13 Thread Ernest E Vogelsinger
At 23:11 13.03.2003, Charles Kline said: [snip] On Thursday, March 13, 2003, at 05:08 PM, Ernest E Vogelsinger wrote: - if your query is exactly as you sent it here you're missing a comma after the closing bracket of concat(), just before name name

Re: [PHP] http_session_vars

2003-03-13 Thread Ernest E Vogelsinger
filename is sess_SID. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session id generation

2003-03-12 Thread Ernest E Vogelsinger
time) and a pseudo-random number (see php_combined_lcg() in standard/lcg.c). If an entropy file is available (usually on unix systems) it uses the entropy to further randomize the digest. In a final step the digest is converted to a hex string. -- O Ernest E. Vogelsinger (\) ICQ #13394035

Re: [PHP] Random String Generation

2003-03-12 Thread Ernest E Vogelsinger
] you _do_ have a stationery for that, do you? *g* -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating an Array from a Multi-line string (Help appreciated)

2003-03-12 Thread Ernest E Vogelsinger
] If you are certain that the lines are separated by a CR you could simply use $phonearray = explode(\n, $_REQUEST['phones']); -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Threading objects

2003-03-12 Thread Ernest E Vogelsinger
done it would update some kind of status flag. On your website yo could display something like 187322 addresses scheduled for validation - 123499 to go, or something like that, just by reading the status data updated by the cron job. -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] newbie: contents will not output

2003-03-11 Thread Ernest E Vogelsinger
-wrapper is enabled in your build anyway). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pop top off a multi dimensional array

2003-03-11 Thread Ernest E Vogelsinger
will only have three providers and three priorities left? If I do array_shift, it takes off all of the providers. [snip] You need to handle all subarray separately. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] Reading files over SSL using fopen or fsockopen

2003-03-11 Thread Ernest E Vogelsinger
. Have a look at cURL - this will get you the task done, without effort. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ok now my sessions are *not* timing out

2003-03-11 Thread Ernest E Vogelsinger
history.go(0) from the 2Minute alert should solve the problem. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] seperate streetname from number

2003-03-11 Thread Ernest E Vogelsinger
$address and $number, either by the regular expression, or by the trim() function in case of a no-match. Note also that this will fail for US-style addresses like 9th street, moving everything in $number, leaving $address empty. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
: application/octet-stream'); header('Content-Disposition: attachment;filename=myfile.jpg'); header('Content-Length: ' . $image_size); echo $imgstream; exit; -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
to present the Save As dialog... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pop-up problem

2003-03-11 Thread Ernest E Vogelsinger
for the onClick handler to be there - it can take control if a link is actually performed or not. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little Problem :)

2003-03-11 Thread Ernest E Vogelsinger
to properly reformat the text within the area. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Little Problem :)

2003-03-11 Thread Ernest E Vogelsinger
(see my last post): wordwrap() counts the width for the while string, while my regex just scans for words that are too long, leaving everything else alone. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] Displaying a file

2003-03-10 Thread Ernest E Vogelsinger
to serve any file under program control. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array question

2003-03-10 Thread Ernest E Vogelsinger
= array_keys($doo); echo First key is \{$keys[0]}\; array_keys() comes in handy if you want to have random access to an associtive array without knowing the keys. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

Re: [PHP] ob_start -- output buffer problem

2003-03-10 Thread Ernest E Vogelsinger
* of a script. //ob_end_flush(); class test { ...etc [snip] This won't work anyway since your class test is declared after using it - it should be the other way 'round: class test {} $x = new test(); -- O Ernest E. Vogelsinger (\)ICQ

Re: [PHP] Syntax query

2003-03-09 Thread Ernest E Vogelsinger
to the fetched row. It returns FALSE if there are no more rows or error. The behaviour of your code is expected if you looped either past the returned records, or there are no records returned by the previous query. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] true, false

2003-03-09 Thread Ernest E Vogelsinger
as it should. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $PHPSESSID

2003-03-08 Thread Ernest E Vogelsinger
information check out http://www.php.net/manual/en/ref.session.php. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executing PHP code in a database

2003-03-08 Thread Ernest E Vogelsinger
then available from the include file? Yes. See http://www.vogelsinger.at/test.php for an example (will be available for 1-2 days). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Difference between

2003-03-08 Thread Ernest E Vogelsinger
. So the expression $search-level INPUT would yield nonzero (a.k.a. true) if the bit denoted by INPUT was set in $search-level. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Re: Difference between

2003-03-08 Thread Ernest E Vogelsinger
-times to the right) e.g. 4 1 = 2 ( 0100 1 = 0010) HTH, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP removing data...

2003-03-08 Thread Ernest E Vogelsinger
:) -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mining a file for data

2003-03-08 Thread Ernest E Vogelsinger
Dear Hugh, please don't use background colors. Black text on darkblue background is definetely hard to decipher. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Deleting Files

2003-03-08 Thread Ernest E Vogelsinger
] file_exists($filename); -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deleting Files

2003-03-08 Thread Ernest E Vogelsinger
] Sorry, just saw you wanted to DELETE the files... It's unlink($filename); Note you need to have write access to the directory (not only the file) to delete it. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] file_exists() question

2003-03-08 Thread Ernest E Vogelsinger
trigger a warning (something like 'using unknown identifier id, assuming id'). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] save to file

2003-03-08 Thread Ernest E Vogelsinger
will indeed create a single line, that's what you tell it to do... if you want a line per value, you need to specify the newline separator, such as implode(\n, $_POST); Or am I off topic? -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] Variable Undefined, even when global?

2003-03-08 Thread Ernest E Vogelsinger
$aColLen;$i++){ $trigger = false; $whatglass = $lkColor[$i]-glass; //shouldn't $lkColor[any-number] be global??? -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] no phun intended!!!

2003-03-08 Thread Ernest E Vogelsinger
] Hmm. Quite nice girls I'd say. But I'm sure they have better things in mind than to fuck just mod_perl... Would like to have them round my office anyway (esp. the dark one in the background). *sigh* -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] phorm (PHPMail) script setup problem...

2003-03-08 Thread Ernest E Vogelsinger
thought RCONFIG would mean remote config, and if set to no this would mean to use a local config? Just an idea of an absolute outsider... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Array - Newbie question

2003-03-08 Thread Ernest E Vogelsinger
. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Undefined, even when global?

2003-03-08 Thread Ernest E Vogelsinger
At 01:53 09.03.2003, Ron Biggs said: [snip] You are a god among men, Ernest. THANK YOU! [snip] Bless you :) Nope. You're welcome, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] Really simple question - /php directory above /web tree .htaccess contents

2003-03-08 Thread Ernest E Vogelsinger
/directives.html. HTH, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Search for keyword in txt file

2003-03-07 Thread Ernest E Vogelsinger
will probably need to do like a for each loopbut where do I insert it ? [snip] In case you're _not_ in safe mode: $result = `grep -n started logs/*`; -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Ernest E Vogelsinger
); ? // input's etc /form -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] require_once adds a 1

2003-03-07 Thread Ernest E Vogelsinger
] This happens if the included file returns some value, in your case it seems to return true. Remove the return something statement (you may simply return; if necessary) and the 1 will be history. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] require_once adds a 1

2003-03-07 Thread Ernest E Vogelsinger
? [snip] Rewrite this to just require_once('topten.php'); No need to echo here. Using output buffering the 1 would still appear, some microseconds later... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] print $array[$i][0] pukes

2003-03-06 Thread Ernest E Vogelsinger
: with brackets, you don't have to fear any performance impact and gain the clarity of the evaluation sequence; with curly quotes, you gain the correct result :-) -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http

[PHP] Login via PHP: Protecting files and directories

2003-03-06 Thread Ernest E Vogelsinger
to the public domain :) For support just email me ... I'll try to answer questions whenever I have time. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dollar signs in values

2003-03-06 Thread Ernest E Vogelsinger
: $text = The amount is \$400.-; -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compiling PHP5 In Linux

2003-03-05 Thread Ernest E Vogelsinger
where a race condition could occur. There are some interesting answers to this questions on google - search for tempnam dangerous. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] PHP OOP design question

2003-03-04 Thread Ernest E Vogelsinger
it. Just my 2c, -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Doing a Multiple Search

2003-03-04 Thread Ernest E Vogelsinger
it in a quoted string. This doesn't work: $s = Some $array[sample]; But this works: $s = Some {$array['sample']}; -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] php forgetting variables very easily

2003-03-04 Thread Ernest E Vogelsinger
') ? new.php ?php global $colour; echo $colour; ? This seems to me like an inconsistency within PHP as to when variables are automagically available, and when you have to declare them global. However you should avoid using globals anyway... -- O Ernest E. Vogelsinger (\) ICQ #13394035

Re: [PHP] file uploads

2003-03-04 Thread Ernest E Vogelsinger
E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fread problem

2003-03-03 Thread Ernest E Vogelsinger
, this will be the return of eval: $contents=return time();; $t = eval($contents); You get the idea. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem using extension.

2003-03-03 Thread Ernest E Vogelsinger
] psycho_mode Uh yes - we have problems too, sometimes. Care to tell us about _your_ problem? /psycho_mode -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php as php3 perhaps with htaccess

2003-03-03 Thread Ernest E Vogelsinger
that has been developed in Python (*.py) to access the same URLs as PHP files. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem using extension.

2003-03-03 Thread Ernest E Vogelsinger
as if there was some problem in the extensions initialization code. I'd try to put some debugging in there (write to a file, flush and close it) so you can see how far your extension executes until the segfault. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] php as php3 perhaps with htaccess

2003-03-03 Thread Ernest E Vogelsinger
site to the VirtualHosts configuration. They should do this without asking too much ... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eval help

2003-03-03 Thread Ernest E Vogelsinger
(\$str=\$str\;); if I echo it out, the substitution is not done. [snip] try $someVar = brtesting for node - wootah, \{\$evalTestArr[TAG_PAGENAME]\} Array derefs within quoted strings must be enclosed in curly quotes. -- O Ernest E. Vogelsinger

Re: [PHP] Populate var with function output string?

2003-03-03 Thread Ernest E Vogelsinger
(5); $my_string = ob_get_buffer(); ob_end_clean(); Output buffering is stackable, i.e. the above code will work even if you have ob turned on already. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] authentication question...

2003-03-02 Thread Ernest E Vogelsinger
(); // clear the output buffer header('Location: http://somewhere.com'); HTH, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] browser uploading

2003-03-02 Thread Ernest E Vogelsinger
possible but so far i haven't been able to figure out how.. [snip] check out move_uploaded_file(): http://www.php.net/manual/en/function.move-uploaded-file.php safe_mode is covered in the docs, too. -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] php and html differences

2003-03-02 Thread Ernest E Vogelsinger
? Boy - some of my applicatinos server a couple of hundred pages out of a single script (from the database, that is)... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php and html differences

2003-03-02 Thread Ernest E Vogelsinger
engines like Smarty to get an idea. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] heredoc problem

2003-03-02 Thread Ernest E Vogelsinger
text EOT; Note: the heredoc delimiter 1) must not be indented 2) must be all lone on a single line (except an optional terminating semicolon) -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Checking for HTTP:// at the start of a string and more ////

2003-03-01 Thread Ernest E Vogelsinger
or more characters that are not whitespace, and terminated with a slash. The terminating 'i' makes the search case insensitive. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] IS there a way.

2003-03-01 Thread Ernest E Vogelsinger
for the existence of a webserver at the given address you should try to read some data from it. To check the return code you need a tool to return the HTTP headers - check out cUrl (also supports SSL), or go on your own using fsockopen(). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] Constants and Here Document Interpolation

2003-03-01 Thread Ernest E Vogelsinger
/$text2; Output: This heredoc text contains the constant A_CONSTANT (1) outside the heredoc construct... This quoted text contains the constant A_CONSTANT (1) outside the string quotes... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: FW: [PHP] Constants and Here Document Interpolation

2003-03-01 Thread Ernest E Vogelsinger
At 19:28 01.03.2003, Daniel R. Hansen said: [snip] Actually I did try it and couldn't think of a way to work around the matter. Thanks for the suggestion. -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] You simply could have

Re: [PHP] Checking Access to a directory Via a PHP/MYSQL Databace.

2003-03-01 Thread Ernest E Vogelsinger
file: No = serve a general 404 Error message Yes = continue 2) Check authentication: Not authenticated = goto login (or return 401 Authenticate) Yes - readfile(requested_file) Hope this helps, -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] A few questions...

2003-03-01 Thread Ernest E Vogelsinger
* - Daniel TheHeadSage Spain Founder of Voidsoft. Server Administrator of The Void ...hopefully not... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Checking for HTTP:// at the start of a string and more ////

2003-03-01 Thread Ernest E Vogelsinger
compatible), which are my favorites... pay special attention on these chapters: Pattern Syntax (http://www.php.net/manual/en/pcre.pattern.syntax.php) Pattern Modifiers (http://www.php.net/manual/en/pcre.pattern.modifiers.php) -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] stripslashes()

2003-03-01 Thread Ernest E Vogelsinger
\'s (assuming magic_quotes is set to on). Using stripslashes() here will get rid of these slashes. BTW - the sample you've sent will output Thank's - what are you doing what you didn't show? -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] stripslashes()

2003-03-01 Thread Ernest E Vogelsinger
/', 'input type=submit/form'; ? You will notice the textarea transmits Thank\'s which is displayed in the first line, and stripslashes() removes the backslash and displays Thank's. Note that you also must use the stripslashe'd data when constructing the textarea. -- O Ernest E. Vogelsinger

Re: [PHP] stripslashes()

2003-03-01 Thread Ernest E Vogelsinger
the solution here is to either add stripslashes() after your datfile read, or to use set_magic_quotes_runtime(0) (see http://www.php.net/manual/en/function.set-magic-quotes-runtime.php). -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General

Re: [PHP] stripslashes()

2003-03-01 Thread Ernest E Vogelsinger
vefore and after stripslashes() and see what you get: echo 'xmp', $poem, '/xmp'; If I type I've set it up it should read I\'ve set it up I've set it up or your stripslashes is not working. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] virtual() test

2003-02-28 Thread Ernest E Vogelsinger
() an external file, passing URI parameters. As you can see when using virtual() the callee has the same environment as the caller, however using readfile() via HTTP everything works as expected. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at

Re: [PHP] Read

2003-02-28 Thread Ernest E Vogelsinger
] Sure you can. The correct interpreter (script engine) is selected by the IIS from the document extension (.asp = ASP engine, .php = PHP interpreter). Check the server settings for IIS on your machine after installing PHP. Good luck with your studies! -- O Ernest E. Vogelsinger

Re: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Ernest E Vogelsinger
file interactively, from the shell prompt? You need at last this statement on top of your PHP files: #!/usr/local/php -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] fsockopen() with SSL?

2003-02-28 Thread Ernest E Vogelsinger
At 14:11 28.02.2003, Michael Temeschinko said: [snip] Hello, is it possible to fetch a Website via SSL? [snip] Sure - have a look at cUrl... -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http

Re: [PHP] Sorting a file

2003-02-28 Thread Ernest E Vogelsinger
Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strip http headers

2003-02-28 Thread Ernest E Vogelsinger
sequence afaik is \r\n. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I detetct if session cookies are enabled?

2003-02-28 Thread Ernest E Vogelsinger
Of course this only works after the first response of the client to the site where sessions are enabled. The SID will always contain the session key after starting the session for the very first time, thus the above code will always trigger the warning. -- O Ernest E. Vogelsinger (\) ICQ

Re: [PHP] testing for 0

2003-02-28 Thread Ernest E Vogelsinger
!$timemb and !is_numeric($timemb). [snip] How about some code? -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Query Result Question

2003-02-28 Thread Ernest E Vogelsinger
); -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] including db content as part of script

2003-02-27 Thread Ernest E Vogelsinger
PHP error (thus I read it out immediately). Works like a charm, half of my apps depend on that... -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Emacs?

2003-02-27 Thread Ernest E Vogelsinger
[snip] -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to Bryan Lipscy Re: [PHP] how___??

2003-02-26 Thread Ernest E Vogelsinger
should get patented; it could make you rich... FWIW, use the same channel you're using to transmit email to the group to get some _basic_ information from the online docs, PLEASE. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing

Re: [PHP] Include files

2003-02-26 Thread Ernest E Vogelsinger
; ... ? [snip] Haven't I heard that before? http://www.php.net/manual/en/function.include.php -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

<    1   2   3   4   5   6   >