Re: [PHP] Escaping characters won't work

2002-11-14 Thread Ernest E Vogelsinger
newline when displaying HTML: echo "HELLOWORLD" will look identical to echo "HELLO\nWORLD" You can also use the nl2br() function to convert all newlines to a line break: echo nl2br("HELLO\nWORLD"); If you display preformatted text you'll see the linebre

Re: [PHP] Relaying variables to distant site

2002-11-14 Thread Ernest E Vogelsinger
($post) $post .= '&'; $post .= htmlentities($var).'='.htmlentities($val); } You could use cUrl to POST data received from the form. Or, if you use a query string, just transmit http://wherever.distant:3000/receipient.php?$post. Be aware that there's a size

Re: [PHP] $_SESSION question

2002-11-14 Thread Ernest E Vogelsinger
quot;hijacked" session and automatically logout the user. (there's more to it, but basically 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] $_SESSION question

2002-11-14 Thread Ernest E Vogelsinger
t; - this is done by calling session_write_close() and redirecting the browser to the application entry page, now _not_ using SID (session has already closed, no SID available). -- >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] Download Counter Script

2002-11-15 Thread Ernest E Vogelsinger
on multipart responses you might consult ftp://ftp.rfc-editor.org/in-notes/rfc2045.txt (MIME Part I) ftp://ftp.rfc-editor.org/in-notes/rfc2046.txt (MIME Part II) ftp://ftp.rfc-editor.org/in-notes/rfc2047.txt (MIME Part III) ftp://ftp.rfc-editor.org/in-notes/rfc2183.txt (Content-Disposition) --

Re: [PHP] Finding last entry in MySQL database

2002-11-15 Thread Ernest E Vogelsinger
) from mytable) (b) you have a timestamp field, then select * from mytable where dt_entry = (select max(dt_entry) from mytable) Note that the timestamp solution could easily produce duplicates while the auto-increments do not. -- >O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] How to break a "while" loop ?

2002-11-15 Thread Ernest E Vogelsinger
re using "or", expression evaluation will stop when the first exression returns true. For "and", the evaluation will stop as soon as a n expression returns false. The fact that not all expressions are necessarily evaluated every time needs to be considered if the expressions have side effects. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Form variables not working

2002-11-16 Thread Ernest E Vogelsinger
; ~(E_NOTICE|E_WARNING)) to switch off notices or warnings for this script, if you are prepared to do so... >Im an experianced ASP developer and im getting frustrated with PHP. why is >it so dificult >to do the simplest things in php? It's not difficult at all, it's

Re: [PHP] Re: session handling

2002-11-16 Thread Ernest E Vogelsinger
ot;Services" control panel, make sure Apache doesn't run under the "system" or "Administrator" account, create a user for the Apache service and grant the necessary rights (e.g. "allowed to run as a service", "may log on locally", etc). -- >

Re: [PHP] Undefined variables?

2002-11-18 Thread Ernest E Vogelsinger
oiding this: if (isset($anyvariable)) echo $anyvariable; -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] is this not possible?

2002-11-18 Thread Ernest E Vogelsinger
document with the same or a different URL. URL-Reload: document.location.href = url; Form submit: document.forms[formname].submit(); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] speed comparison

2002-11-18 Thread Ernest E Vogelsinger
method than having to escape from PHP for any output, for what it's worth. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] How to process data from forms

2002-11-18 Thread Ernest E Vogelsinger
idea. http://www.php.net/manual/en/ is a great place to look up anything you need. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

RE: [PHP] How to process data from forms

2002-11-18 Thread Ernest E Vogelsinger
gt;In your case, $demand and $name would contain the information entered by the >user. I generally use this method in my code. [snip] This holds only true if register_globals is activated. However this is deactivated by default with newer PHP versions...

Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread Ernest E Vogelsinger
erging the result into your output. Sorry if I am totally OT here... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread Ernest E Vogelsinger
ormatted, I cannot give further hints. I'm sure someone will chime in here. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Are objects considered global or do they need registered in a session?

2002-11-19 Thread Ernest E Vogelsinger
['ref_a'] =& $ref_a; } Hope this helps, -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Download File

2002-11-19 Thread Ernest E Vogelsinger
lose($fd); ?> Untested but it should work as expected. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] test

2002-11-19 Thread Ernest E Vogelsinger
At 01:34 19.11.2002, shi ziye spoke out and said: [snip] >not sure how to post, sorry! [snip] Just the way you did :) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] templates

2002-11-19 Thread Ernest E Vogelsinger
'file3.xml' => 'Go to file 3', 'file4.xml' => 'Go to file 4'); foreach ($files as $filename => $text) { // you should put your actual menu code here echo '', htmlentities($text), ''; } -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Returning an array in a function

2002-11-19 Thread Ernest E Vogelsinger
d array $ar =& get_an_arrayref(); // get a copy even if a reference is returned $ar = get_an_arrayref(); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] templates

2002-11-19 Thread Ernest E Vogelsinger
script at the beginning of your PHP file: foreach ($_REQUEST as $varname => $value) { $var = '$'.$varname; global $$var; $$var = $value; } You will then be able to access parameters as if register_globals would be on. -- >O Ernest E. Vogelsinge

Re: [PHP] isapi mod on iis

2002-11-19 Thread Ernest E Vogelsinger
s.http-auth.php): [...] Also note that this does not work using Microsoft's IIS server and the CGI version of PHP due to a limitation of IIS. [...] So said, HTTP authentication cannot be done on IIS. You need to write your own login form. -- >O Ernest E. Vogelsinger (\)

Re: [PHP] catching a robot or spider - asking too

2002-11-19 Thread Ernest E Vogelsinger
behind is : > >Is there a good way to handle the user agent info? [snip] Any well behaved (!!) robot nowadays identifies itself in the UserAgent line. Googling for "user agent" I found on page 1, pos.6: http://www.icehousedesigns.com/useragents/spiderlist

Re: [PHP] Header Location not working

2002-11-19 Thread Ernest E Vogelsinger
Are you on IIS? I remember that there are problems with header('Location: url'), as far as I can remember I once resorted to explicitly transmit header("HTTP/1.0 302 Moved\nLocation: newurl"); which would result in 2 adjacent headers... but I don't r

Re: [PHP] mailing by SMTP

2002-11-19 Thread Ernest E Vogelsinger
At 11:18 20.11.2002, Siamak said: [snip] >hi >how can i send a mail by a smtp server from a php page? >thanks [snip] http://www.php.net/manual/en/function.mail.php -- >O Ernest E. Vogelsinger

Re: [PHP] exploding strings

2002-11-20 Thread Ernest E Vogelsinger
t separately, then chime in with the rest: $string = '1+2+3'; $as = explode('+',$string); echo '',array_shift($as), ', ', join(', ', $as); -- >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 browscap.ini

2002-11-20 Thread Ernest E Vogelsinger
ister_globals set to "On"? Try $_SERVER['HTTP_USER_AGENT']. This variable exists independent from the browscap.ini file. You only need browscap.ini for the get_browser() function to work correctly. This should work: $browser = get_browser($_SERVER['HTTP_USER_AGENT']); --

Re: [PHP] Problem whith query in query

2002-11-20 Thread Ernest E Vogelsinger
lways suggest using PostgreSQL in favour of MySQL; it's OS as well, it's mature, it's fast (faster than MySQL AFAIK), etc etc. And it comes bundled with at least RedHat, but I believe it's available with most Linux distros. -- >O Ernest E. Vogelsinger (\)ICQ #

Re: [PHP] Pause for user input?

2002-11-20 Thread Ernest E Vogelsinger
us gets saved to session persistent storage, and another form is sent to the browser to answer your specific question. Eventually the user answers your question and submits this (second) form. Now the server application is fired up again, rereads the session data, and continues with "PostProcess" as you like. Everything clear? -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Server-server file copy question

2002-11-20 Thread Ernest E Vogelsinger
ng around at >mailing lists, etc but haven't found a function described which does a >non-ftp inter-IP file copy, only client/server file uploads and ftp >functions. > >TIA, >Rich [snip] I'd try to use scp in conjunction with a SSH c

Re: [PHP] Problem whith query in query

2002-11-20 Thread Ernest E Vogelsinger
distinct dprosjekt. If you have it like you did the subquery would simply return a single result, the max(id) of all records. Your version simply functions as an "order by" which is useless here since only a single record will be returned. -- >O Ernest E. Vogelsinger (\)I

Re: [PHP] interpreting variables containing in another variable

2002-11-20 Thread Ernest E Vogelsinger
quot;$email_body\";"); if ($php_error) die ($php_error); Of course all double quotes need to be escaped beforehand, as the example shows. The error handling here is somewhat useless but demonstrates the idea. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ h

Re: [PHP] How to: If($var != '#' OR '#')

2002-11-20 Thread Ernest E Vogelsinger
so if (in_array($_GET['sc'], array('2','8'))) { do 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] web server and permissions

2002-11-20 Thread Ernest E Vogelsinger
; does not have the ability to read > my files on myserver. set the last permission number to zero (see above). The last number stands for "world" which means all others that are not owner or ownergroup. -- >O Ernest E. Vogelsinger (\)ICQ #13394035

Re: [PHP] Newbie: php/mysql (Select)

2002-11-20 Thread Ernest E Vogelsinger
mple provisons)? Create an $sql3 that combines $sql1 and $sql2, and construct your SQL accordingly: $sql1 = ($titulotxt ? null : "titulo like '%$titulotxt%'"); $sql2 = ($cdstxt? null : "cds like '$cdstxt'"); $sql3 = $sql1 . ($sql1 && $sql2

Re: [PHP] web server and permissions

2002-11-20 Thread Ernest E Vogelsinger
nclude() directive, and PHP will be able to read the file. -- >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 not Registering

2002-11-21 Thread Ernest E Vogelsinger
is it the line with the echo? If it's the line with the assignment - duh, this should work IMHO if it's the line with the echo - you got nothing from mysql and didn't start the session. BTW - you shouldn't mix session_register() and accessing the $_SESSION array. Definetely it's not needed. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Newbie: nested include and object in session

2002-11-21 Thread Ernest E Vogelsinger
ss definition readily available, so PHP will default to a standard class. The next example will work, though: class A { function A() {} } session_start(); if (!$a) { $a = new A(); $_SESSION['a'] =& $a; } As you can see the class decl

RE: [PHP] character ' in switch

2002-11-21 Thread Ernest E Vogelsinger
oted string needs to \"escape\" double quotes but not 'single quotes'" 'Single quoted string needs not to "escape" double quotes but \'single quotes\'" -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Session not Registering

2002-11-21 Thread Ernest E Vogelsinger
ou go to a new page. [snip] If it echoes out correctly on page 1 but not on page 2 your script fails (somehow) to pass the session identifier. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Preg_replace question

2002-11-21 Thread Ernest E Vogelsinger
wing result array: [0] - whole buffer [1] - prematch [2] - tag opener incl. opt. blanks [3] - optional '/' for the closing tag [4] - tag contents [5] - tag closer incl. opt. blanks [6] - postmatch You can then, within your loop, analyze the tag contents (entry [4]) and decide how to proceed. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

RE: [PHP] php programming style

2002-11-21 Thread Ernest E Vogelsinger
his said I'd suggest to return <> for non-void functions in case of failure. -- >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 php get the values of a group of checkbox

2002-11-21 Thread Ernest E Vogelsinger
posal. For checkboxes this means that _unchecked_ options are NOT transmitted. Might be a caveat depending on your implementation. -- >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] Base 27?

2002-11-21 Thread Ernest E Vogelsinger
the double rot13 in effect? Sorry, couldn't resist... -- >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] Forgoten

2002-11-21 Thread Ernest E Vogelsinger
[snip] On Win32 there is no "/tmp" directory. Configure the session_save_path variable in php.ini correctly (e.g. session_save_path = C:/) and it will work. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP Gene

Re: [PHP] Client IP address

2002-11-21 Thread Ernest E Vogelsinger
ck searching the php.net function list. [snip] You'll find it in the $_SERVER array ($_SERVER['REMOTE_ADDR']). Check out http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve r as there's a lot of useful information in th

Re: [PHP] test

2002-11-21 Thread Ernest E Vogelsinger
At 03:58 22.11.2002, Joseph Watson said: [snip] >test [snip] you succeeded... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List

Re: [PHP] Getting info from users comp?

2002-11-21 Thread Ernest E Vogelsinger
>browser for this :) [snip] So you're talking about a Trojan, do you? -- >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-22 Thread Ernest E Vogelsinger
t requirements. Personally I believe it's a good thing not to enable automatic session cookies. Relying on a session cookie effectively disables having two browser windows open with the same application but running in different contexts, since both would transmit the same session cookie. -- &g

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

2002-11-22 Thread Ernest E Vogelsinger
it to 100 will have PHP run the garbage collector every time a PHP script gets executed (you shouldn't do this - think in concurrency terms...) -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.

Re: [PHP] Getting info from users comp?

2002-11-22 Thread Ernest E Vogelsinger
At 09:17 22.11.2002, @ Edwin said: [snip] >Hello, > >"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote: > >> So you're talking about a Trojan, do you? > >No, not really. I was talking about "

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

2002-11-22 Thread Ernest E Vogelsinger
ing checked by another gc. Might be painless (I haven't looked at the implementation); but I'd avoid this as far as I could :) -- >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-22 Thread Ernest E Vogelsinger
ate storage. You can always put an object into session storage, like this: class A { function A() {} } session_start(); if (!is_object($a)) $a = new A(); $_SESSION['a'] =& $a; This will give you the same object of class A anytime you access

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

2002-11-22 Thread Ernest E Vogelsinger
/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] checkboxes

2002-11-22 Thread Ernest E Vogelsinger
7;; elseif (in_array('a', $val))$eval='a'; elseif (in_array('s', $val)) $eval='s'; However this would give you the very same result, but much more elegant: $eval = join('', $val); And it will automatically handle all further additions when $val[] might have more possible values except 'a' and 's'. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Simple RegExp Problem...

2002-11-22 Thread Ernest E Vogelsinger
---[snip] use preg_match('/^[a-zA-Z\s]+$/', $text); \s - any [:space:] \S - anything not [:space:] -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Problem with sessions and Internet Explorer

2002-11-22 Thread Ernest E Vogelsinger
set to /home/globstag/tmp? Does Apache (or else) have all necessary rights to this directory? _MAYBE_ you're using some mod_rewrite rules on the target server, depending on the user agent, so IE's would end up in a defunct installation? I'd check for this inn the first place. --

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

2002-11-22 Thread Ernest E Vogelsinger
_probability is hit (i.e. at the 100th access), the file gets removed. At least with my PHP (4.2.2, RH 7.2). -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

Re: [PHP] Problem with sessions and Internet Explorer

2002-11-22 Thread Ernest E Vogelsinger
holler at the guys at Tempest... -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

RE: [PHP] Simple RegExp Problem...

2002-11-22 Thread Ernest E Vogelsinger
'n gals listening - I suggest these links making it into the PHP docs :) -- >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] CCO

2002-11-22 Thread Ernest E Vogelsinger
ot;To", e.g. "Undisclosed-Recipients:;" (add the colon follwed by a semicolon=, this _should_ work (haven't tested it, but it _should at least ;->). -- >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] Linux and Apache

2002-11-22 Thread Ernest E Vogelsinger
Indexes" option on the document root directory. What happens if e.g. the /images/ directory is accessed, a "Forbidden" response is sent: - Forbidden You don't have permission to access /images/ on this server. - --

Re: [PHP] put result of "include" into a variable

2002-11-22 Thread Ernest E Vogelsinger
#x27;', $buffer); $query = 'insert into html(thepage) values (\''.$buffer.'\')'; } else die('No connection to Microsoft'); -- >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: put result of "include" into a variable

2002-11-22 Thread Ernest E Vogelsinger
One thing - be warned that some sites (esp. M$) send a redirect at the index (or default) pages... the fopen() will not honor this redirect. Using cUrl would be a better way to handle this, IMHO. -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger

Re: [PHP] Array Push and Keys

2003-08-29 Thread Ernest E Vogelsinger
ile($morerows=mysql_fetch_array($another_query)) { // array_push($transactions[$row[dealercode], //$morerows[country]=>$morerows[amount]; $transactions[$row['dealercount']][$morerows['country']] = $morerows['amount'

Re: [PHP] disable "notice" errors

2003-08-29 Thread Ernest E Vogelsinger
// this avoids array access if the key is not set, // OTOH the receiving variable might be undefined if (array_key_exists('nonexisting_key', $array)) $test = $array['nonexisting_key']; // this is a simple, elegant, and even self-documenting solution $t

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-03 Thread Ernest E Vogelsinger
h created the cookie >to begin with), the cookie has the value that it was set with. [snip] That's it - cookies will only be sent to the same domain (hostname) they have been generated at. You cannot pass cookies between domains (hostnames). --

Re: [PHP] set_time_limit problem

2003-09-03 Thread Ernest E Vogelsinger
meout: The number of seconds before receives and sends time out. # Timeout 300 -- >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 to attach files with mail

2001-01-22 Thread Ernest E Vogelsinger
come >each time... [snip] Have you checked the rights the PHP-User has on the directory and file? ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Netscape caching problem

2001-01-22 Thread Ernest E Vogelsinger
Pragma: no-cache"); [snip] You're missing a double quote at the gmdate phrase. Use header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT"); ...ebird >O Ernest E. Vogelsinger (\)http://www.

RE: [PHP] Search Engines and PHP

2001-01-23 Thread Ernest E Vogelsinger
d will be passed to the 404 handler. Within the 404 handler, parse the url, extract the session id and parameters, and execute the .php file. Just as an example, ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing

Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Ernest E Vogelsinger
all I can find are methods >to convert the current date/time to a Unix timestamp. > >Can anyone give me an example? iewhat date/time does 977676902 come >out to? [snip] Perl says it is "Sun Dec 24 17:55:02 2000" ...ebird

Re: [PHP] Genuine Opportunity

2001-01-25 Thread Ernest E Vogelsinger
ive. Have you ever tried or consideredmaking money >using the >medium of the internet? Are you marketing or promoting a business >opportunity or product [trash] ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-

Re: [PHP] whois

2001-01-25 Thread Ernest E Vogelsinger
ed order: NS.BA195.130.35.5 SAVA.UTIC.NET.BA 195.130.35.3 NS.EU.NET192.16.202.11 NS.RIPE.NET 193.0.0.193 AUTH03.NS.UU.NET 198.6.1.83 MUNNARI.OZ.AU 128.250.1.21 ...ebird >O

Re: [PHP] isset()

2001-02-22 Thread Ernest E Vogelsinger
t; returns true unset($myvar); isset($myvar) => returns false empty($myvar) => returns true My advice: avoid comparing to false or true (and since these are constants, don't put them in quotes ;->). // bad way if (isset($myvar) == false) // better way if (!iss

Re: [PHP] isset()

2001-02-22 Thread Ernest E Vogelsinger
At 19:07 22.02.2001, Joe Stump said: [snip] >I'll take an extra bazillionth of a second to know for sure >I have what I need [snip] Do you really know _how_ right you are? ...ebird >

Re: [PHP] Sessions and naming a file with SID

2001-02-22 Thread Ernest E Vogelsinger
.ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- 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]

php-general@lists.php.net

2001-02-22 Thread Ernest E Vogelsinger
nction for any value. Example: "; echo $time; echo "gettime = $gettime"; ?> ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

RE: [PHP] good ide?

2001-02-27 Thread Ernest E Vogelsinger
[snip] Visit PHPEd home page at http://www.soysal.com/PHPEd ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Pulling my hair out over Netscape...

2001-02-28 Thread Ernest E Vogelsinger
using a random value as SEARCH parameter, e.g. http://www.myhost.com/myapp.php?rv=0987412&...other parameters Your application must ensure that the random value is as random as possible. This makes the URL "unique" and will bypass any ill-behaved cache (it won't help if the use

Re: [PHP] Need an array parser(CONT)

2001-02-28 Thread Ernest E Vogelsinger
t;, "blah2", "some_value2"))); print(showArray(null, $a); ?> this should recursively go into multi-dimensional arrays and construct an output similar to your requirements. ...ebird >O Ernest E. Vogelsinger

Re: [PHP] Restrict Access per IP Addresses

2001-02-28 Thread Ernest E Vogelsinger
[snip] is not contained in , mask Enter Address: Enter Network: Enter Subnetmask: [snip] ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP Gener

Re: [PHP] changing the .ini file

2001-03-01 Thread Ernest E Vogelsinger
isapi.dll) you need to down and restart the IIS Admin service (Web Publishing Service is not sufficient). Reason: the ISAPI reads the ini file once upon being loaded, and it remains loaded with IIS until shutdown. Hth, ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web

Re: [PHP] Restrict Access per IP Addresses

2001-03-01 Thread Ernest E Vogelsinger
low him >and redirect in 403 Page. [snip] Anthony, given the function contains_ip from my earlier post, you would code: Access ForbiddenYou may not come here from outside our domain"; exit(); } process_domain_app(); ?> ...ebird >O Ernest

Re: [PHP] session_destroy() fails...

2001-03-01 Thread Ernest E Vogelsinger
and thus deleting the session data returns an error code. Try this - it should work: "; echo "input type=submit>"; session_start(); session_register($value); } ?> ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ#

RE: [PHP] HREFs that can't be

2001-03-02 Thread Ernest E Vogelsinger
try to explicitly start it - receiving an (old or outdated) PHPSESSID cookie from the browser? Maybe Php decides it's not necessary to rewrite the URLs ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing L

Re: [PHP] length limit of URL?

2001-03-03 Thread Ernest E Vogelsinger
lient or proxy implementations might not properly support these lengths. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] passing variables

2001-03-03 Thread Ernest E Vogelsinger
f you start a session and register the data to be remembered with the session, it will be available when the browser comes back again (and presents the appropriate PHPSESSID value, of course). ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13

Re: [PHP] Converting String to Variable

2001-03-03 Thread Ernest E Vogelsinger
] RTFM ;-> $$str = "blah"; print $monday; ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] Problems with IIS4 (Win2k)

2001-03-03 Thread Ernest E Vogelsinger
--- Make sure the entry is correct for .php extensions: Executable: %phppath%\php.exe %s %s Both "%s" must exist, or PHP will do nothing at all. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP

Re: [PHP] are sessions single threaded?

2001-03-06 Thread Ernest E Vogelsinger
multiple session keys, and you won't "hang" ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] session_start

2001-03-07 Thread Ernest E Vogelsinger
ar as I know, all syntax in manual talks about php4 syntax only. How am I going to do that? [snip] do nothing, PHP will assign the value for you. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Ernest E Vogelsinger
[snip] Try "AND" instead of "&&", this should work as intended... ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] IIS and PHP authorization

2001-01-29 Thread Ernest E Vogelsinger
ing a filter, and crashed being used as MIME plugin latest at the 6th page access. ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

<    1   2   3   4   5   6