[PHP] Trading Notice

2007-12-07 Thread Ernest
Hi from Fleming . Hope your Friday is cool and happy holidays. Something big for HxPn.pk over next few weeks. Check otc boards. Keep an eye out for it and get in early. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT- "Private Registrations" for Domains

2002-11-23 Thread Ernest E Vogelsinger
in, so it will be ours. _YOU_ have to pay, _WE_ own the domain. Wonder who would patent 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] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-23 Thread Ernest E Vogelsinger
$pdag[$n]; echo $$temp; or $temp = $$pdag; echo $temp[$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] strings and vars

2002-11-23 Thread Ernest E Vogelsinger
At 02:05 24.11.2002, empty said: [snip] >i have string like: "string"; > >how can i get variable $string; [snip] $var = 'string'; $$var will resolve as $string -- >O Ern

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Ernest E Vogelsinger
At 08:47 24.11.2002, Jean-Christian Imbeault said: [snip] >Ernest E Vogelsinger wrote: > > >> if ($_COOKIE[$_SESSION['cookie_name']] == $_SESSION['cookie_token']) { > >Ok, please forgive my ignorance, but in PH

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Ernest E Vogelsinger
... [snip] You're quite right := -- >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] does //commenting reduce performance?

2002-11-24 Thread Ernest E Vogelsinger
o comments. I have no profiling yet how much having comments or blank lines would actually effect execution times, but I doubt it would be really an issue since PHP, once a comment start is encountered, doesn't parse the text but just scans for the end-comment tag. -- >O Ernes

Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Ernest E Vogelsinger
these loops, be it an end-of-line comment, an inline comment, or no comment. -- >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] sessions and trans-sid problem/question

2002-11-24 Thread Ernest E Vogelsinger
runs locally and gets contacted by the applications, or even some shared memory... choose your ways, but keep your data at the server's. -- >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] sessions and trans-sid problem/question

2002-11-24 Thread Ernest E Vogelsinger
he very last bottleneck that ever would occur; the database times add up much quicker than any session file i/o would ever be able 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] does //commenting reduce performance?

2002-11-24 Thread Ernest E Vogelsinger
than having no comments in them *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] Re: security of stand alone script

2002-11-24 Thread Ernest E Vogelsinger
chown root:apache, chmod 640 *). -- >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 and caching

2002-11-24 Thread Ernest E Vogelsinger
away because it is expired... -- >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] Re: php and caching

2002-11-24 Thread Ernest E Vogelsinger
an uncached form could still be populated by your script when using session variables. -- >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] Another cookie question

2002-11-24 Thread Ernest E Vogelsinger
e("D, d-M-Y H:i:s \G\M\T", ($time)); header("Set-Cookie: $name=$value; expires=$date; path=/;"); } else { header("Set-Cookie: $name=$value; expires=" . time()+$exp . "; path=/;"); } return true; } -- >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] Re: php and caching

2002-11-24 Thread Ernest E Vogelsinger
at Alex was talking about a search form. Search forms are often used on "normal" static web pages _without_ the help of sessions... that's the reason. Rest assured I know about sessions in PHP :) -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://

Re: [PHP] Re: php and caching

2002-11-24 Thread Ernest E Vogelsinger
he script "getimg.php" would need to issue the appropriate cache directives to allow caching. -- >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] What is wrong here?

2002-11-24 Thread Ernest E Vogelsinger
rection problems on IIS where I had to resort to header('HTTP/1.0 302 Moved'); header)'Location: blah'); Don't know if this helps in your case. -- >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] What is wrong here?

2002-11-24 Thread Ernest E Vogelsinger
Moved Location: blah -- >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] quick sanity check on user management / sessions

2002-11-24 Thread Ernest E Vogelsinger
en reads all necessary data, including last login, user rights, etc etc, from the DB, sometimes updates a user cookie, depending on the app. DB is checked only once. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing Li

Re: [PHP] Overloading Constructors

2002-11-25 Thread Ernest E Vogelsinger
overloaded constructor both times. What you might do to distinguish which "overload" has been called: function A($string=null) { if (!isset($string)) echo "Default constructor A()\n"; else echo "Overloaded constructor A($st

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Ernest E Vogelsinger
sion yields true if 1-3 are not-empty AND four is an empty string. Not sure if that's what you want. All empty: !($lineone || $linetwo || $linethree || $linefour) --or-- !$lineone && !$linetwo && !$linethree && !$linefour All set: $lineone &&am

Re: [PHP] If statement w/ multiple conditions

2002-11-26 Thread Ernest E Vogelsinger
At 16:45 26.11.2002, Chris Shiflett spoke out and said: [snip] >--- Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote: > >> At 13:50 26.11.2002, [EMAIL PROTECTED] said: >> >if ($lineone && $linetwo && $linethree &

Re: [PHP] Re: & in Query String

2002-11-26 Thread Ernest E Vogelsinger
ery strings. Just check with the W3C HTML Validator: http://validator.w3.org/ -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

RE: [PHP] Re: & in Query String

2002-11-26 Thread Ernest E Vogelsinger
st page for all to check out... nevertheless, here it is: http://www.vogelsinger.at/test.php Simply provides a link using query parameters encoded with &, to check with different browsers. Maybe someone will check this outwith his browser anyway. -- >O Ernest E. Vogelsinger

Re: [PHP] Newbie : How work with parameters?

2002-11-27 Thread Ernest E Vogelsinger
done online manual at http://www.php.net/manual/en/. Regards, -- >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/MySQL Installation

2002-11-27 Thread Ernest E Vogelsinger
lready there, check it out with "locate php" or "whereis php". For Win32 there are prefab'ed binaries, including an installer, downloadable at PHP's web site: http://www.php.net/downloads.php -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] object passing by reference

2002-11-27 Thread Ernest E Vogelsinger
mber function on a non-object [snip] Just as the error message says - you're trying to execute a function (like $hObj->foo()) where there's no such function. Would be helpful if you posted some code where the error arises... -- >O Ernes

Re: [PHP] Session End

2002-11-27 Thread Ernest E Vogelsinger
thorized']); This will create a "unique" realm due to the use of date/time, so when the user logs off he will be presented with a 401 response, even if the browser has cached the login info from the previous login attempt. Another realm, another game. Disclaimer: untested, as usual. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
oblems _refusing_ upload (except size exceeds, of course) in the online manual. I only found that browsers can be directrd to easily circumvent the limit (save html locally, edit form action to point to your server, edit max_file_size, and there you go...) Try the above hints and tell us abo

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
grammer, but you certainly lack style and social skills. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
write some log file at the very beginning of your script to see if the web server runs your script, or not (what I assume). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 20:11 27.11.2002, Ernest E Vogelsinger spoke out and said: [snip] >Ooops - you should normally only get this with GET requests where the max. >query string size is exceeded - I'd check the Apache docs though... seems >positively to be connec

Re: [PHP] max file size on uploading files

2002-11-27 Thread Ernest E Vogelsinger
At 20:18 27.11.2002, Ernest E Vogelsinger spoke out and said: [snip] >Error 413 certainly denotes that the web server refuses to handle the >request. No idea how to configure this value but I'm sure it can be done >with Apache. I see a be

Re: [PHP] controlling ownership on file uploads ...

2002-11-27 Thread Ernest E Vogelsinger
www" user is member of. In short - if you can create the file, you can delete it as well. (At least that's what I've learned). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Streaming audio

2002-11-27 Thread Ernest E Vogelsinger
an be created on the fly (dynamically) by 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] ignoring client supplied session data

2002-11-27 Thread Ernest E Vogelsinger
ariables of their choice into PHP, making any script more than unsafe. Having it switched off allows YOU to control the data that you work with - an absolute MUST unless you're begging for trouble, IMHO. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.

Re: [PHP] Re: [PHP-DEV] Parse search string a la Google (Regular expression?)

2002-11-27 Thread Ernest E Vogelsinger
$input = $aresult[3]; } // $input has the rest of the line array_push($tokens, explode(' ', $input)); return $tokens; } Disclaimer: untested as usual. _Should_ behave like this: $string = "\"search for this sentence\" -NotForThisWo

Re: [PHP] Re: [PHP-DEV] Parse search string a la Google (Regular expression?)

2002-11-27 Thread Ernest E Vogelsinger
At 23:11 27.11.2002, Ernest E Vogelsinger said: [snip] >If I understand you correctly you want to isolate either quoted strings >(with or without whitespace), or tokens separated by whitespace, as array >elements? > >For this you would first

Re: [PHP] Bad File Mode?

2002-11-28 Thread Ernest E Vogelsinger
ot;http://www.healthtvchannel.org/courses/pay/data/test.xml";; $fp = fopen($dataFile, "rb"); $strFile = null; while ($chunk = fread($fp, 524288)) // 512 kB chunks modify as needed $strFile .= $chunk; fclose($fp); HTH, -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] test for ascii or binary string

2002-11-30 Thread Ernest E Vogelsinger
$c != chr(13) or $c != chr(9)) { $isbinary = 1; /* >>> */ break; } } } return $isbinary; } -- >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] Inheritance problem

2002-12-01 Thread Ernest E Vogelsinger
of thumb, always pass REFERENCES when you're dealing with object handles. -- >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] Going Mad

2002-12-01 Thread Ernest E Vogelsinger
be ready to go! [snip] Sounds fine - did you restart Apache? -- >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] Has anyone this script ??

2002-12-01 Thread Ernest E Vogelsinger
Ray, isn't it always easier to omit some functionality you don't need than to reinvent the wheel? You get the source code anyway, so why don't you just use one of the solutions you found, learning how they did it, and learning a lot of other useful stuff too? -- >O

Re: [PHP] XML-RPC, is this the best approach for something like this?

2002-12-01 Thread Ernest E Vogelsinger
hould study the SOAP protocol (a.k.a. WebObjects) - this protocol is intended to let servers - even remote ones - work cooperatively together. It's good stuff IMHO, despite the fact that M$ is hooked on it with C# and .net. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ h

RE: [PHP] Disable refresh?

2002-12-02 Thread Ernest E Vogelsinger
matches), or is outdated (serial number mismatches), for what reason ever, be it a refresh or the user stepping back and resubmitting. -- >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] page auto reload after new window closed

2002-12-02 Thread Ernest E Vogelsinger
ld: function submitForm(form) { document.forms[form].submit(); window.opener.location.reload(); window.close(); return true; } ...within your form code... ...your form contents... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogels

Re: [PHP] phpAds Sillyness

2002-12-02 Thread Ernest E Vogelsinger
ry again. If it works then, shoot them. -- >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] Searchable archive

2002-12-03 Thread Ernest E Vogelsinger
eneral This is listed at the PHP home page, when clicking on "mailing lists", "general/Archive(yes)". -- >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] POST data

2002-12-03 Thread Ernest E Vogelsinger
server and appending xml >data right after the header. I need access to the xml blob. [snip] Not sure if this gives you the posted data, but you could try $_SERVER['QUERY_STRING']. Or simply print_r the $_SERVER array to check if it is available.

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Ernest E Vogelsinger
ints out fine"? However, this gives exactly what you want: ---- Output for both cases: 1024x768 1024x768 -- >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] Whimper, help :)

2002-12-04 Thread Ernest E Vogelsinger
blanks in a search argument. -- >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 - uploading multiple files

2002-12-09 Thread Ernest E Vogelsinger
no tag defined in HTML, or XHTML, that would do what you need. -- >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] SQL Question: Search Records between two dates.

2002-12-10 Thread Ernest E Vogelsinger
Productivity > > Web Developement. Database. Hosting. Multimedia. > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php [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] reading pre-extension file

2002-12-12 Thread Ernest E Vogelsinger
7;) a dot before anything without a dot before (grouped, 'preext') starting with a dot The group will contain the preextension. -- >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] Passing text info using $PHP_SELF

2002-12-15 Thread Ernest E Vogelsinger
;q=input. Any ideas? > >action=\"$PHP_SELF?action=change&id=$id&q=input\"> [snip] Most certainly register_globals is off in your php.ini file. Try using $_SERVER['PHP_SELF'] instead of $PHP_SELF. -- >O Ernest

Re: [PHP] SQL: INSERT using subqueries

2002-12-16 Thread Ernest E Vogelsinger
2 as "data1", 'hello world' as "data2" FROM users where username='myUsername'; should do it (untested on mySQL) -- >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] needle in a haystack (Can't find :)

2002-12-16 Thread Ernest E Vogelsinger
re* trying to use it? > >-- >Jason Wong -> Gremlins Associates -> www.gremlins.biz >Open Source Software Systems Integrators >* Web Design & Hosting * Internet & Intranet Applications Development * > >/* >Fay: The British police force used to be run by me

Re: [PHP] Re: Print bgcolors in table

2002-12-16 Thread Ernest E Vogelsinger
rity on how documents look like. For example, in Internet Explorer, you may go to Extras/Options/Advanced and specify to print (or not) background colors or images. In Netscape this option exists in the preferences dialog. There's no way for the page to override the agents settings. --

Re: [PHP] newbie having problem with SID

2002-12-16 Thread Ernest E Vogelsinger
y ($_SESSION['count']) to handle session persistent data: html_begin ($title, $header); if (!array_key_exists('count', $_SESSION)) { $_SESSION['count'] = 1; } else { $_SESSION['count']++; } end then

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ernest E Vogelsinger
r).";"; > } > else { >$output_string .= $char; > } >} > >You may need to test for value 127 ... not sure if it starts on 0 or 1 >that is... [snip]---- preg_replace('([\x80-\xff])/e', '&#'.ord(&#x

RE: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Ernest E Vogelsinger
Renée Zellweger becomes Renee Zellweger. [snip] $chars_in = array('Á',''á','É','é'); // you get it $chars_out = array('A','a','E','e'); // this too preg_replace($chars_in

Re: [PHP] Re: textarea new line

2003-01-23 Thread Ernest E Vogelsinger
>> >> but i see a single line instead of: >> -line1 >> -line2 >> -line3 [snip] Use nl2br(), something like: echo '', nl2br(htmlentities($string)), ''; This should give you the results you need. --

Re: [PHP] textarea problem

2003-01-23 Thread Ernest E Vogelsinger
outside the tag, without an attribute, just plain: Print '', htmlspecialchars($row['OrgName']), ''; -- >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] value not displayed

2003-01-24 Thread Ernest E Vogelsinger
in php-4.3.0. but the value is displayed in >php-4.2.2 version. [snip] Perhaps the 4.2.2 server is configured with register_globals on, and the 4.3.0 has set this to off? Try -- >O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] URLencode issues - halp!

2003-01-24 Thread Ernest E Vogelsinger
'normal' names fail and goofy ones don't; without some code and >some specific examples we can't really tell too well :-) [snip] I believe you could even use md5() to "encode" the logon... would shield everything too :) --

Re: [PHP] content type header for downloading files

2003-01-29 Thread Ernest E Vogelsinger
gt;header("Content-Length: $filelength"); header("Content-Disposition: >attachment; filename=".basename($fname).";"); [snip] The correct Content-type is "application/octet-stream". Should work with that. --

Re: [PHP] php and sql problem with mysql_query and insert

2003-01-29 Thread Ernest E Vogelsinger
xt2']}', '{$_REQUEST['num2']}', '{$_REQUEST['city']}', '{$_REQUEST['state']}', '{$_REQUEST['zip']}', '{$_REQUEST['desc']}', '{$_REQUEST['flags']}')"); Two other &

Re: [PHP] using custom "button" instead of standard "submit" form element

2003-01-29 Thread Ernest E Vogelsinger
At 10:08 29.01.2003, Justin French said: [snip] >The W3.org site is down at the moment, so I can't confirm this, but I'm >pretty sure... > > AFAIR -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^

Re: [PHP] Accessing $php_errmsg give an error ...

2003-01-29 Thread Ernest E Vogelsinger
ply global so you need to declare it within a function. $php_errormsg is not set by default (warning prone) and will be overwritten immediately by the next error or warning. What you should do is something like this: global $php_errormsg; $php_errormsg = null; @run_your_script(); $err = $php_erro

Re: [PHP] test

2003-01-29 Thread Ernest E Vogelsinger
At 11:13 29.01.2003, Sol spoke out and said: [snip] >test [snip] testback please provide detailed information how you received this mail so the it can be shared with the list :) -- >O Ernest E. Vogel

Re: [PHP] Multiple Emails

2003-01-29 Thread Ernest E Vogelsinger
by parsing the "Received" headers. MTAs usually add something like "received for", which corresponds to the SMTP envelope RCPT address, not to the message's MIME "To" or "Cc" entries. -- >O Ernest E. Vogelsinger (\) ICQ #13394035

Re: [PHP] new

2003-01-29 Thread Ernest E Vogelsinger
At 15:51 29.01.2003, Ysrael Guzmán spoke out and said: [snip] >Warning: Failed opening 'cliente.php' for inclusion >(include_path='.;c:\php4\pear') in Unknown on line 0 [snip]---- and? --

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Ernest E Vogelsinger
le rebuilding the cache... 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] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
a certain cookie value is available, with register_globals on this value may be forged by passing the value as part of the url. A lot of different possibilities arise. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
on't have a clue as to what's going on... Did you mention the version? Possibly there's a special build here that never allows to register globals? (config gurus chime in here please) -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.a

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
eld name list) >VALUES ($_REQUEST['var1'], $_REQUEST['var2'], $_REQUEST['var3']) > >I just want to use $var1, $var2, $var3 [snip] You can always resort to extract($_REQUEST); -- >O Ernest E. Vogelsin

Re: [PHP] content type header for downloading files

2003-01-30 Thread Ernest E Vogelsinger
')); echo $this->export; exit(); Note that it seems to be necessary to surround the filename using quotes to make it work correctly. -- >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] if (a == b) ...

2003-01-30 Thread Ernest E Vogelsinger
nt. >What am I misunderstanding? [snip] PHP tries to "help" you - you can only compare data of the same type. So PHP goes ahead and casts this for you, a string to int in this case. If you compare it using "===" (typesafe comparison) you

Re: [PHP] quick question

2003-01-30 Thread Ernest E Vogelsinger
slash is an "escape" character telling PHP to take the next character literally. So if you want a backslash you need to type 2 of them: "C:\Program Files\php" ==> "C:\\Program Files\\php" -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^

Re: [PHP] Is there a bug in fopen() - solved, maybe

2003-01-30 Thread Ernest E Vogelsinger
is not allowed to make an outgoing connection on the specific port? -- >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_Incomplete_Class Object

2003-01-30 Thread Ernest E Vogelsinger
Include your class definition file before session_start() and you'll be fine. -- >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] Using custom "button" form element instead of standard "submit"?

2003-01-30 Thread Ernest E Vogelsinger
--- ??? With the first method, you'd need to test for a button named 'sample_a'. For the second method, you'd need to test for a button named 'sample_b_x'. So where's the difference? You need to "loop" through all available button names

Re: [PHP] Using custom "button" form element instead of standard "submit"?

2003-01-30 Thread Ernest E Vogelsinger
input fields in your form that might name-collide (which wouldn't be good anyway ;->), this will give you an array with exactly one entry if any of the buttons are clicked, be it an image (sample_a, sample_c) or a regular (sample_b) button. -- >O Ernest E. Vogelsinger (\) ICQ #

Re: [PHP] Using custom "button" form element instead of standard "submit"?

2003-01-30 Thread Ernest E Vogelsinger
QUEST['button'] containing the button value. Note though that this doesn't work if JS has been disabled in the browser, or if the "browser" doesn't support JS at all. -- >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] rename failes if file name contains single quotes

2003-01-31 Thread Ernest E Vogelsinger
gt;rename fails with "there is no such file". >whats wrong? [snip] try to escape blanks and quotes: rename("/tmp/foo\ \'n bar", "/tmp/foobar"); generally you should escape all non-ascii characters in file n

Re: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Ernest E Vogelsinger
AddType text/plain .php engine=off returns an apache config error. -- >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] Sessions and MD5

2003-02-02 Thread Ernest E Vogelsinger
is set. It's very likely that your test never succeeds (except by chance that var1.var2.var3 result in "0". -- >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] problems with fopen

2003-02-03 Thread Ernest E Vogelsinger
Simply try $hf = fopen($filename, "w"); - Original Message - From: "Jason Jacobs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 9:30 PM Subject: [PHP] problems with fopen Afternoon all. I've been trying to write to a text file for a while. I opened it

Re: [PHP] HTML if no PHP

2003-02-04 Thread Ernest E Vogelsinger
1) Include file not found: if (file_exists($incfile)) include($incfile); else include ($error_html_file); 2) Error in file: global $php_errormsg; $php_errormsg = null; @include($incfile); $err = $php_errormsg; if ($err) echo "The include file $incfile has an error: $err"; The trick is

Re: [PHP] Creating associative array

2003-02-05 Thread Ernest E Vogelsinger
Don't use array_push - simply set the value: $image_array[$file_name] = $image_url; - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 05, 2003 1:28 PM Subject: Re: [PHP] Creating associative ar

Re: [PHP] writing to the db on close

2003-02-05 Thread Ernest E Vogelsinger
As you correctly found out, the onUnload handler would be the place to do this, something like this: Within your page, have a hidden form: In your statement you'll have Be aware that this will trigger _always_ if the user leaves the page, regardless if he closes the browser, or goes to an

Re: [PHP] Why does this happen?

2003-02-09 Thread Ernest E Vogelsinger
$_REQUEST['date']; $year = $date_received['Y']; $month = $date_received['M']; $day = $date_received['D']; 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] Data Structures

2003-02-09 Thread Ernest E Vogelsinger
rst entry'); $elem = array('prev' => &$start, 'next' => null, 'data' => 'Second entry'); $start['next'] =& $elem; You get the picture, I believe. Just make sure the "pointers" are actually references to the li

Re: [PHP] Re: Static functions

2003-02-10 Thread Ernest E Vogelsinger
reference: class foo { function test() { if (isset($this) && is_object($this) && get_class($this) == 'foo') echo 'I am a foo object'; else echo 'I have been called as a "static" method'; } } $foo = n

Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread Ernest E Vogelsinger
t;manual, in this case http://www.php.net/manual/en/language.types.string.php [snip] To shorten up the process, you're missing the string concatenizer: echo ''; or echo ''; This doesn't mean you shouldn't read the manual, thou

Re: [PHP] $_POST index issues

2003-02-10 Thread Ernest E Vogelsinger
-[snip] I'm not sure if this is the source of your problems, but when referencing an array from within a string you should put it in curly quotes: echo "\n"; $query = "select username, active, password, clec_id from users

Re: [PHP] How to use fopen() with protected directory (i.e .htaccess)

2003-02-11 Thread Ernest E Vogelsinger
t; >But then the PHP isn't executed, it just dumps me the straight source >code. If you can open and read the report, there's only one more step to execute it: use eval(): $fname = "/www/htdocs/admin/report.php" $file = fopen($fname,"r"); if ($file) { $c

Re: [PHP] Regex Help

2003-02-11 Thread Ernest E Vogelsinger
et/manual/en/ref.pcre.php http://www.perldoc.com/perl5.6/pod/perlre.html -- >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] Failed opening

2003-02-12 Thread Ernest E Vogelsinger
les\sitemap\admin\admin_header.php on line 19. Pretty cool, hm? -- >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

  1   2   3   4   5   6   >