Re: [PHP] Uptime script?

2001-05-17 Thread Felix Kronlage

On Wed, May 16, 2001 at 06:35:32PM -0700, Ryan Christensen wrote:

 Take a machine down, knowing it's uptime?  (I.e., it's easier to hack a box
 that's been up for 5 months.. as opposed to one that hasn't been??)

By knowing the uptime and the version of the OS (e.g. kernel-version)
you know to which exploits a machine could be vurnerable. 
Say, linux-kernel 2.2.18 has a exploit of some sort and a patch was
released 10 days ago, and a remote machine has a 2.2.18 and a uptime of
20 days, you know that it should be vulnerable to the exploit.

but this is getting off-topic...
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] Slightly OT - Backing up mySQL...

2001-05-06 Thread Felix Kronlage

On Sun, May 06, 2001 at 08:38:23AM -0700, Nick Terzich wrote:

 Does anyone have any experience backing up mySQL from
 a shared web hosting account? I don't have root
 access to the database... will this keep me from
 running a shell script to do the back up? 

If you have shell-access you can use mysqldump to do a dump
of the database. Later you can use 
'mysql -u user -p  dumpfile' to restore the database.
Check the man-page for mysqldump for details.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


--
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]




Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Felix Kronlage

On Tue, Apr 24, 2001 at 02:33:18PM -0700, Szii wrote:

 Checking to see if it's syntactically correct is trivial.  Validating the
 domain is rather simple as well (check the retcode on a whois lookup.)  

Which is not as trivial as it sounds, since whois does not really have return-codes.
You need to know in advance how this particular whois-server is responding. (since
most whois-server just serve a few TLD you might not even use only one whois-server).
Even the output of a general whois-server like whois.thur.de (you can query pretty much
everything on it) differs from TLD to TLD (since all whois.thur.de is, is asking the 
actual
whois-server for that TLD.)
It's probably much easier for validating a domain to use the mx-record-function.

 Again, it's not real-time validation of anything except the
 existance/validity of the domain - not the user.

If your php-scripts looksup the mx-record for the domain and delivers directly 
to the mx for the domain, you might be able to verify in real-time, since
you will get the return-codes of the mx. However not all mx'es deliver locally.
As soon, as the mx passes the mail onto a different host for delivery (and there
quiet a few of these around...)  you can't verify.
So basically, yes, you can lookup the domain, verify that the domain as a valid
mx, but that's pretty much it.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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] gd-jpeg-support and php-3.0.18

2001-04-23 Thread Felix Kronlage

Hi,

on one of our Ultra-sparc boxes I need to get php-3.0.18 and
gd 1.8.4 running together smoothly.

I compiled gd lib from scratch (Version: 1.8.4) to have jpeg-support.
Following lines come out of the Makefile for gd:

| CFLAGS=-O -DHAVE_LIBJPEG -DHAVE_LIBPNG
| LIBS=-lgd -ljpeg -lpng -lz -lm

This should enable jpeg-support for it. the compiling of gd
runs just fine.

Now, the ./configure for php-3.0.18 comes, I use following
./configure-args:

| ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning 
|--with-mysql --with-gd --with-jpeg-dir

and during the configure it's saying the following:

| checking for compress in -lz... (cached) yes
| checking for png_info_init in -lpng... (cached) yes
| checking for gdImageCreateFromPng in -lgd... (cached) yes
| checking for libjpeg (needed by gd-1.8+)... yes
| checking for jpeg_read_header in -ljpeg... (cached) yes
| checking for gdImageCreateFromJpeg in -lgd... (cached) no
| checking for gdImageCreateFromGif in -lgd... (cached) no
| checking for gdImageLzw in -lgd... (cached) no
| checking for gdImageColorResolve in -lgd... (cached) yes
| checking for gdImageString16 in -lgd... (cached) yes

Somehow, there is no support for gdImageCreateFromJpeg detected...
any hints?

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] PHP 4.0.5

2001-04-23 Thread Felix Kronlage

On Mon, Apr 23, 2001 at 03:00:07PM -0700, Dominique Paquin wrote:

 I asked when the new version of PHP was comming out at the beginning of the
 month and some one told me that it was comming out the week after. Haven't
 seen it yet, anyone knows the release date??

RC7 got out a few days ago (Thursday I believe), and I think I recall that unless
lot's of things went wrong this is the last RC

-fkr

ps. I guess, it's released once it works fine :)
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] writing to file on server

2001-04-22 Thread Felix Kronlage

On Sun, Apr 22, 2001 at 03:06:04PM -0700, Adam wrote:

 chmod the file to 777, this will allow anyone write permission to the file
 and thus you will be able to append to the file

file-mode 777 is ugo=rwx. You want 'chmod 666', which is ugo=rw.

read is 4
write is 2
execute is 1

If you want rw on the file, it's 6 not 7.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] PHP Sessions Problem

2001-04-20 Thread Felix Kronlage

On Fri, Apr 20, 2001 at 08:58:24AM -0600, Johnson, Kirk wrote:

 I have also seen this problem with one of my sites, but only *occasionally*.
 I have no clue as to what the problem is. Anyone else have any ideas?

Maybe someone remembers my post about my session-problem. Pretty much the same
type. session gets registered just fine, but the var's are not being serialized()
and put into the session-file. I never really relized that this only happens if I
work at home, which is with a netscape 4.75 (running on OpenBSD). It just happens
about 20% of the time. But *if* it happens, it will happen until I closed the browser
and reopened it...

strange.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] How to unsubscribe

2001-04-17 Thread Felix Kronlage

On Tue, Apr 17, 2001 at 10:40:07AM +0200, Joachim Fuchs wrote:

 In typical lists, there is a small info how to unsubscribe. In the
 php-general list, this is not the case.

take a look at the signature:

 -- 
 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]

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] ZOPE PHP

2001-04-17 Thread Felix Kronlage

On Tue, Apr 17, 2001 at 11:51:52AM -0700, elias wrote:

 what is ZOPE?

Content Management System (CMS) written in python, I believe.

 can you give me a URL about it?

http://www.zope.org/

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] enabling PHP functions only on specific virtual hosts

2001-04-16 Thread Felix Kronlage

On Mon, Apr 16, 2001 at 12:42:50PM +0200, indrek siitan wrote:

 I've coded an additional PHP module, which I want to be a paid
 add-on feature to the clients. Is there a way to disable the 
 module or functions (it contains 2 functions) globally and then 
 specifically enable them to certain virtual hosts?

you can globally disable function with:

| disable_functions   = 

in php.ini.
For the vhosts, which are allowed to use the functions you can
create a special php.ini, which is loadad (afaik) via .htaccess
then (I'm not sure on this...remember to have read something like
that on this list - you might want to check the archieve)

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] PCRE vs. POSIX

2001-04-16 Thread Felix Kronlage

On Mon, Apr 16, 2001 at 07:16:06PM +0800, John Lim wrote:

 Rasmus Lerdorf (inventor of PHP) has said that PCRE is generally faster, but
 i haven't benchmarked myself. Of course strpos( ) is the fastest.

Joerg Krause has posted an URL for a webpage for benchmarking reg-expressions.
Sorry, I don't have the URL anymore, maybe someone (who still has/knows it) could
repost it to the list?

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] enabling PHP functions only on specific virtual hosts

2001-04-16 Thread Felix Kronlage

On Mon, Apr 16, 2001 at 07:17:24PM +0200, indrek siitan wrote:

 but is there an enable_functions keyword to explicitly enable
 those functions in httpd.conf (this should be possible with
 the php_value keyword, as far as I understood from the manual).

no. But you can put a .htaccess in the directory of the vhost, which
you want to enable these functipns for, in which you define a different
php.ini to be used (in which you don't disable these functions).
wow, lot's of 'whiches' in this sentence.

At least, I belive this can be done (but I'm not sure of it).
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] function to add %20 in place of blank spaces

2001-04-16 Thread Felix Kronlage

On Mon, Apr 16, 2001 at 03:28:11PM -0300, Nando2 wrote:

 I'm trying to remember what is the function to replace
 blank spaces with %20.
 Can anyone remind me of that?

urlencode()
urldecode()

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] can't restart apache, help needed

2001-04-10 Thread Felix Kronlage

On Tue, Apr 10, 2001 at 12:02:45PM +0200, Thomas Angst wrote:

 /etc/init.d/apache restart
 is the http server no more starteable.
 what's going wrong here, I didn't have any problems with the older version
 of the suse linux and PHP4, if anyone has an idea how to rerun the apache
 without a completly new compilation of it please tell me

what do the logs say? (error-log of apache)
what does 'httpd -X' do?

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] PEAR Standards (was Re: equivalent of asp's %= strTest %)

2001-04-08 Thread Felix Kronlage

On Sat, Apr 07, 2001 at 10:19:04PM -0500, Plutarck wrote:

 For instance, when they say not to use 4 spaces (or was it 3?) instead of
 tabs? I think that's stupid, and I don't do it. But they did it for a
 reason, even if I don't understand it. 

tabs might break going from one platform to another, thus making the code
hard to read. 4 spaces stay 4 spaces. on every platform.
That's probably the reason.

-fkr, who is the only one that uses spaces instead of tabs at work 
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] Which is better??

2001-04-06 Thread Felix Kronlage

On Fri, Apr 06, 2001 at 12:27:22PM -0400, Curtis wrote:

 Self Referenceing or have the data sent to another page for the
 processing.

I usually do self-referencing, since this way I have everything 
in one place, don't rely on two scripts, don't need to open
two files in my editor etc. :)

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] how do I delete session

2001-04-05 Thread Felix Kronlage

On Thu, Apr 05, 2001 at 04:10:16PM -0500, Jacky@lilst wrote:

 how?
 Like this session_destroy("name");
 how about if I want to register that variable to be session again ( without
 closing browser and start everything all over again)? can I still do that?

session_destroy() *completly* kills the session. You call it and the
session is gone. you might want to check the manual at php.net for
the description (and the difference) betweend session_unregister() and
session_destroy().

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] huidziekte

2001-04-05 Thread Felix Kronlage

On Thu, Apr 05, 2001 at 12:47:59PM +0200, Soeren Staun-Pedersen wrote:

 This is an English mailinglist.

forget it, was spam (hit me on quiet a few mailing-lists such as
[EMAIL PROTECTED] etc...).

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] More Email ereg Validation

2001-04-05 Thread Felix Kronlage

On Thu, Apr 05, 2001 at 10:08:13AM -0600, Dan Wilson wrote:

 : Here's a quick patch.. =)
 : ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?)
 Does anyone else (a regex guru) have any other suggestions?

I'm by no means an reg-exp-expert (hate these things)

/[a-z0-9_.-]+@+[a-z0-9._-]+\.[a-z]{2,4}/i

should do.
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] SID ????? environment variable???

2001-04-04 Thread Felix Kronlage

On Wed, Apr 04, 2001 at 08:59:00AM -0400, Scott Fletcher wrote:

 I have been wondering what is "SID"?  

SID stands for Session ID. (which identifies/maps a running session
to user)

http://www.php.net/manual/en/ref.session.php will explain sessions in
general.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


--
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]




Re: [PHP] known problems with session_register()?

2001-04-03 Thread Felix Kronlage

On Tue, Apr 03, 2001 at 05:34:05PM +0900, Yasuo Ohgaki wrote:

 Try register globals off, see if it helps.
 (You need to use $HTTP_SESSION_VARS)

ok. will do that. Does $HTTP_SESSION_VARS always work? (even with
register_globals being on?)

 FYI: It seems there is race condition problem in current session module, but it
 shouldn't occur that often. I don't know if it's closed or not. Search BugDB if
 you need.

will do that. thanks. sounds like what I expected.

 One thing I can think of is your script may be running to long, try to increase
 max_execution_time in  your php.ini. Session is stored to whatever
 (file/mm/user) when script execution is ended.

mmmh...it's set to 30 seconds (the default), which I'd think is plenty.
But I'll increase it anyways.

thanks for the hints.
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] phpinfo unneeded

2001-04-02 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 06:14:07PM +0700, juang wrote:

 mmmh still confuse, i had try to find out "disable_functions " but i cant
 found it, and then i write the syntax with myself and i stop-restart my
 apache mmhhh?? still didn't work. and here its my configure:

put the following in your php.ini (in the Safe Mode Section):

disable_functions = phpinfo()

that should do it.
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] Include files????

2001-04-02 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 08:55:26AM -0300, Bruno Freire wrote:

 Anybody can tell me how can i do Include files?

has the thought of looking up the manual at php.net crossed your mind?
try searching php.net for include(), require()

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] known problems with session_register()?

2001-04-02 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 09:13:41PM +0900, Yasuo Ohgaki wrote:

 If you are enabled track vars and disabled register globals, all you have to do
 is assign values to $HTTP_SESSION_VARS and

both are on. Could there be a problem with session_register() ?
I do think it's odd, that the same code, on the same box, same
php, same everything works 80% of the time and fails in 20% of the time.
(no, there can't be a race-condition).

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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] known problems with session_register()?

2001-04-01 Thread Felix Kronlage

Hi,

are there any knows problems/bugs with session_register()?

With openbsd  as a platform (not tested on others) I have the problem 
that 20% of the times sessions don't get initialized correctly.
The session-file is created in /tmp (cookies for session-use are turned off), 
just the variables registered via session_registered are not written into the file. 
The same piece of code works on the same box, with same php 80% of the times.
(Had this problem with php4.0.4x up to php4.0.5rc3).

any hints on this?
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] Problem installing on BSD

2001-04-01 Thread Felix Kronlage

On Mon, Apr 02, 2001 at 12:01:08AM -0600, natter wrote:

 3. Changed my httpd.conf file to allow .php:
 - AddType application/x-httpd-php .php
 - AddType application/x-httpd-php-source .phps

Do you have the directive to load the php-module in your httpd.conf?

| LoadModule php4_module/path/to/the/module/libphp4.so 

-fkr, and don't forget the 'apachectl restart'
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


--
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]




Re: [PHP] sanity check please

2001-03-31 Thread Felix Kronlage

On Fri, Mar 30, 2001 at 06:45:21PM -0500, ..s.c.o.t.t.. [gts] wrote:

 i dont see how a surfer could get your PHP source code
 via the webserver.

what happens if the webserver once gets started without the php-interpreter
being there? You get to see the raw-files (if they are in the document-root).

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
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]




Re: [PHP] phpinfo unneeded

2001-03-30 Thread Felix Kronlage

On Fri, Mar 30, 2001 at 04:32:40PM +0700, juang wrote:

 how to compile php without function phpinfo enalbe. so
 if user call phpinfo() it would be false/error.

take a look at the safe_mode-stuff in php.ini.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] Image Resizing in PHP

2001-03-30 Thread Felix Kronlage

On Fri, Mar 30, 2001 at 11:49:45AM +0200, Christian Reiniger wrote:

 Well, people sometimes get upset when it takes five minutes to load a 
 page with, say, only 30 tiny thumbnails...

Image-Resizing withing php is explained pretty well at the php.net-Site.
Yust take a look at the manual for these functions: 

imagecopyresized()
imagejpeg()
imagepng()

and such.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] phpinfo unneeded

2001-03-30 Thread Felix Kronlage

On Fri, Mar 30, 2001 at 05:19:48PM +0700, juang wrote:

 i have been search the string of "phpinfo" in php.ini there was no phpinfo
 string found and "safe_mode-stuff" didn't found too.

I'll paste the part from my php.ini (it *should* be in the default php.ini
coming with php)

---
; Safe Mode
safe_mode   =   Off
safe_mode_exec_dir  =
safe_mode_allowed_env_vars = PHP_   ; Setting certain environment variables
safe_mode_protected_env_vars = LD_LIBRARY_PATH  
disable_functions   = 
---

to disable_functions you can add phpinfo().

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] odd

2001-03-28 Thread Felix Kronlage

On Wed, Mar 28, 2001 at 12:03:55PM +0200, Andrius Lokotash wrote:

 It seems that PHP don't clean up it's temporary session files, is this a
 "feature" or bug?

it cleans them in certain intervals.

from php.ini:

|session.gc_maxlifetime= 1440; after this number of seconds, stored
|; data will be seen as 'garbage' and
|; cleaned up by the gc process

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] writing to a file

2001-03-25 Thread Felix Kronlage

On Sun, Mar 25, 2001 at 03:39:28AM -0800, adam wrote:

 how do i write to the beginning of a file instead of the end?

fseek will help. With it you con move the pointer to the file beginning.

http://www.php.net/manual/en/function.fseek.php will have details.

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] The ubitquitous forum project

2001-03-25 Thread Felix Kronlage

On Mon, Mar 26, 2001 at 02:11:46PM +1000, Matt Stone wrote:

 I dont like any of them, the UBB style is the best.

what's UBB-style like?

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] Session problem

2001-03-24 Thread Felix Kronlage

On Sat, Mar 24, 2001 at 08:50:16AM +0100, Rol wrote:

 I did notice that the session id is also written to the /tmp folder. Linux
 mandrake.

If php doesn't set a cookie to save the session-registered variables it stores
them in the locatin set in the php.ini (which is by default /tmp)

 Things go wrong when I delete the session id in the /tmp folder. It should
 not be there in the first place I think, as all details of that session
 should be written to the db.

mmh...do you write the variables registered with the sessions into the database?
(since that is the only information stored in the file in /tmp this seems likely)

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] read out apache log files with php

2001-03-24 Thread Felix Kronlage

On Sat, Mar 24, 2001 at 08:04:56PM +0100, Andre wrote:

 My intention is to read out the apache log files (like access.log etc) for
 making  stats about pages hits/visits. Surely, there are some scripts
 (webalizer) to do this, but i cant find scripts which are written in php.
 Has someone a script example?

Have you looked at sourceforge.net (http://www.sourceforge.net/) and freshmeat 
(http://www.freshmeat.net/) ?
If there aren't any there you might want to check for perl-scripts and take
a glance at the reg.-Expressions (which should help a lot with parsing the log-file)

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature


Re: [PHP] mssql

2001-03-23 Thread Felix Kronlage

On Fri, Mar 23, 2001 at 06:16:10PM -0500, Mauricio Alarcon wrote:

 I want to connect to a Microsoft SQL Server, I try with mssql_connect 
 but the script don't work, it always say Call to unsupported or undefined function

are you sure, that ms-sql support is compiled into your php?
what does phpinfo() say about it?

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

 PGP signature