RE: [PHP] mod_rewrite

2001-09-09 Thread Felix

How about http://wasarrested.com? IO don't know how they do it, but you
can enter whatever subdomain you want and it reflecst it on the weppage.
Example http://bill.clinton.wasarrested.com or youri.wasarrested.com.

Felix

-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 09, 2001 2:43 PM
To: Matthew Loff
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] mod_rewrite


 
 Subdomains are first a DNS issue...  The first place you have to go is

 your DNS config, since users.body-builders.org wouldn't exist without 
 an A or CNAME record.
My subdomains do not have DNSs =(( and I'm not sure if I can 
change this issue with .htaccess
 
 I don't know if mod_rewrite can do anything about the subdomains like 
 that, if it can't, you will have to add VirtualHost directives to 
 httpd.conf for each subdomain.
But if I assign VirtualHost users.body-builders.org using DNS of 
www.body-builders.org (the onli one I have) all visitors will go to 
www.body-builders.org and not to users.body-builders.org?

Thank you,

Youri
God is our provider 
http://www.body-builders.org
New!!! - http://body-builders.org/index.php?links=1

-- 
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 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] MySQl IP Address Storage

2001-09-20 Thread Felix

Hello all

Can anyone suggest their best idea for a way to store IP addresses in a
MySQL Database?

Felix


-- 
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] MySQl IP Address Storage

2001-09-20 Thread Felix

Thank you Robert.
Felix
- Original Message - 
From: Robert Covell [EMAIL PROTECTED]
To: Felix [EMAIL PROTECTED]; PHP list [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 10:55 AM
Subject: RE: [PHP] MySQl IP Address Storage


 INET_ATON
 
 and
 
 INET_NTOA
 
 -Original Message-
 From: Felix [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 20, 2001 11:49 AM
 To: PHP list
 Subject: [PHP] MySQl IP Address Storage
 
 
 Hello all
 
 Can anyone suggest their best idea for a way to store IP addresses in a
 MySQL Database?
 
 Felix
 
 
 -- 
 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 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 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] MySQl IP Address Storage

2001-09-20 Thread Felix

Thank you very much.

Felix
- Original Message -
From: Jason Bell [EMAIL PROTECTED]
To: PHP list [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 12:49 PM
Subject: Re: [PHP] MySQl IP Address Storage


 Felix,

 Just to save you the headache that I encountered,  the column that you
plan
 to store your IP address in needs to be an unsigned integer when using
 INET_ATON and INET_NTOA

 If it's not, all addresses stored will come out as 127.0.0.0 (I think that
 was what it was...).

 Also, these are MySQL functions, not PHP functions. Not sure if you knew
 that already, but it wasn't specified on the list...


 INET_ATON converts from Decimal IP and INET_NTOA converts back to Decimal
 IP, so you'd use it like this:

 INSERT INTO mytable (ipaddress) VALUES (INET_ATON('192.168.1.1'));

 SELECT INET_NTOA(ipaddress) FROM mytable;

 Make sense?

 - Original Message -
 From: Felix [EMAIL PROTECTED]
 To: Robert Covell [EMAIL PROTECTED]; PHP list
 [EMAIL PROTECTED]
 Sent: Thursday, September 20, 2001 11:29 AM
 Subject: Re: [PHP] MySQl IP Address Storage


  Thank you Robert.
  Felix
  - Original Message -
  From: Robert Covell [EMAIL PROTECTED]
  To: Felix [EMAIL PROTECTED]; PHP list
 [EMAIL PROTECTED]
  Sent: Thursday, September 20, 2001 10:55 AM
  Subject: RE: [PHP] MySQl IP Address Storage
 
 
   INET_ATON
  
   and
  
   INET_NTOA
  
   -Original Message-
   From: Felix [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, September 20, 2001 11:49 AM
   To: PHP list
   Subject: [PHP] MySQl IP Address Storage
  
  
   Hello all
  
   Can anyone suggest their best idea for a way to store IP addresses in
a
   MySQL Database?
  
   Felix
  
  
   --
   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 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 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 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 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] Any Free Web Hosts that still support the mail( ) function out there?

2001-09-21 Thread Felix

Try coolfreepages.com

Felix
- Original Message -
From: Salty Marine [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 21, 2001 2:20 PM
Subject: [PHP] Any Free Web Hosts that still support the mail( ) function
out there?



 Greetings to You:

 Any Free Web Hosts that still support the mail( ) function out there?

 Regards,
 Salty

 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 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 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] successive imap_open calls result in failure

2004-10-01 Thread felix
Hi,

Have been experiencing a problem with the webmail program IMP
(http://www.horde.org).

It appears that after a large search through many folders something happens in
either the c-client or the imapd server but I can't seem to trace the problem.


Debugging so far has shown me that, after accessing a large number of folders
using the imap_open call in quick succession, imap_open starts to fail for no
apparent reason (using the same credentials all the time). In order to retreive
data from the folder it must call this for each folder. Adding in calls

print_r(imap_alerts());
print_r(imap_errors());

and removing the @ from in front of the imap_open calls helped identify that
after 39 to 51 successful folder opens on a search accessing 80 folders using
the imap_open call, errors appeared indicating that imap_open was unable to open
any further folders. As a result when refreshing to the next page the webmail
assumed that it was dealing with a failed login. Each folder is being opened
read only and is not being accessed by any other program at the time.


The problem is so far from php all I've been able to determine is that after
so many folders being opened in quick succession, it gets blocked from being
able to access any more for a period of about 5-10 minutes, which means that
when your logged out due to the failed imap_open calls, you can't log back in
for that period.



Does anyone know of any issues with the imap_open function calls, is there some
form of access limit that would cause this or would it be down to the imapd
server. I'm not the admin on the machine so I'm having to ask the admins to pass
along various log files, alter some configs while I try and trace the problem.
Their being faily helpful since they use the same webmail as well :)

If anyone knows of any way to get some better details from php. The imap_alerts
and imap_errors don't produce anything meaningful in this case. I've asked the
admins to enable debugging so I'm hoping that will help.


--
Darragh Bailey
[EMAIL PROTECTED]

Nothing is foolproof to a sufficiently talented fool.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] successive imap_open calls result in failure

2004-10-01 Thread felix
Quoting raditha dissanayake [EMAIL PROTECTED]:

 This probably means that your imap server is running under xinetd (or
 something similar) that has a rate limit or a limit on the number of
 connections from one client. You can find out how many connections are
 open with netstat and i think you will find it's reached the allowed limit.

Cheers that does appear to be the problem, it runs under inetd and at the nowait
argument it does not specify how many connections many be started within 60
seconds. Apparently its limited to 40 by default so this could explain why when
searching 80 folders it craps out due to opening 80 connections without about 10
seconds.

Guess I'll have to get the admins to increase the limit to something like
200-300 and look to see if there is any way for the php scripts to detect the
problem and stop before hitting it.

--
Darragh Bailey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: exploding

2004-08-25 Thread Felix
Try this:

$array = explode( ' ', chunk_split( $sting, 1, ' ' ) );

http://www.php.net/manual/de/function.explode.php
http://www.php.net/manual/de/function.chunk-split.php



On Thu, 26 Aug 2004 00:50:09 +0200, Peter Brodersen [EMAIL PROTECTED] wrote:
 Hi,
 
 On Wed, 25 Aug 2004 18:00:49 -0400, in php.general
 [EMAIL PROTECTED] (Jake McHenry) wrote:
 
 Hi everyone.
 
 Is there a way to explode by every character in the variable?
 
 Example:
 
 $var = 8;
 $test = explode(, $var);
 
 Use preg_split(): http://php.net/preg_split - example 2.
 
 ?php
 $var = 8;
 $test = preg_split('//', $var,-1,PREG_SPLIT_NO_EMPTY);
 print_r($test);
 ?
 
 Or, a possible faster method, using str_split() (only available in
 PHP5): http://php.net/str_split
 
 ?php
 $var = 8;
 $test = str_split($var); // requires PHP5
 print_r($test);
 ?
 
 --
 - Peter Brodersen
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Please, Refresh Your Paypal Account

2004-09-01 Thread Felix
omg. what a bad phishing attempt. perhapse someone should try to php
or sql inject the phishing site ;)

On Tue, 31 Aug 2004 19:45:24 -0400, Paypal Services [EMAIL PROTECTED] wrote:
  Sign Up | Log In | Help
 
 Dear PayPal Customer
 
 This e-mail is the notification of recent innovations taken by PayPal to make sure 
 that our customers are ready to use PayPal for the year 2004.
 
 The inactive customers are subject to restriction and removal in the next 3 months.
 
 Please confirm your email address and credit card information by logging in to your 
 PayPal account using the form below:
 
 Email Address:
 Password:
 Full Name:
 Credit Card #:
 Exp.Date(mm/):
 ATM PIN (For Bank Verification) #:
 
 This notification expires January 31, 2005
 
 Thanks for using PayPal!
 
 This PayPal notification was sent to your mailbox. Your PayPal account is set up to 
 receive the PayPal Periodical newsletter and product updates when you create your 
 account. To modify your notification preferences and unsubscribe, go to 
 www.paypal.com/PREFS-NOTI and log in to your account. Changes to your preferences 
 may take several days to be reflected in our mailings. Replies to this email will 
 not be processed.
 
 Copyright© 2003 PayPal Inc. All rights reserved. Designated trademarks and brands 
 are the property of their respective owners.
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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


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




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




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]




[PHP] Incompatibility with file-input items

2002-05-25 Thread Felix Natter

hi,

in a php-script someone else wrote I found
'input type=file name=photo[] accept=image/jpeg':

echo tr\n;
echo   td width=\130\ height=\30\/td\n;
echo   td width=\370\ height=\30\input type=\file\ name=\photo[]\ 
accept=\image/jpeg\/td\n;
echo /tr\n;
echo tr\n;
echo   td width=\130\ height=\30\/td\n;
echo   td width=\370\ height=\30\input type=\file\ name=\photo[]\ 
accept=\image/jpeg\/td\n;
echo /tr\n;
echo tr\n;
echo   td width=\130\ height=\30\/td\n;
echo   td width=\370\ height=\30\input type=\file\ name=\photo[]\ 
accept=\image/jpeg\/td\n;
echo /tr\n;
echo tr\n;
echo   td width=\130\ height=\30\/td\n;
echo   td width=\370\ height=\30\input type=\file\ name=\photo[]\ 
accept=\image/jpeg\/td\n;
echo /tr\n;

and this is the code which is run by the form's action-attribute
(same script as above):

for( $i = 0; $i  count( $photo ); $i++ )
{
  if( $photo[ $i ] !=   $photo[ $i ] != none )
  {
if( $photo_size[ $i ]  50 ) error( Ungültige Fotogröße );
if($photo_type[ $i ] == image/pjpeg || $photo_type[ $i ] == image/jpeg)
  $newphoto[] = $photo[ $i ];
else
  error( Ungültiger Dateityp, bitte wählen Sie JPEG  );
  }
}

(you can find the complete file here:
 http://home.t-online.de/~fam.natter/list.php)

Now the problem is that the above code only works with php 4.0.6 and
not with php 4.0.0: php 4.0.0 puts the type and name and
temporary-file information in the $image array while 4.0.6 puts it in
$image_type and $image (both use $image_size). See the example output
below for more information.

Here is a small test-case:
 test_files.html ===
html
headtitleTest/title/head
body
form action=test_files.php method=post enctype=multipart/form-data
input type=file name=image[] accept=image/jpeg
input type=file name=image[] accept=image/jpeg
input type=submit value=submit
/form
/body
/html

 test_files.php 
?php

if (!isset ($image))  {
echo bMissing Parameter in test_file.php!/b;
exit;   
}
if (isset ($image_type))
echo bimage_type is set !/bbr;
if (isset ($image_size))
echo bimage_size is set !/bbr;
for ($i = 0; $i  count ($image); $i++)
{
echo bimage[$i]=' . $image[$i] . 'b\n;
}

?


Here is the output with two different versions of php when I select
two jpeg images (northbeach.jpg and Water01.jpg):

This is the output with php 4.0.6:
image_type is set !
image_size is set !
image[0]='/tmp/phpvRpXFA' image[1]='/tmp/phpfvgzMk'

This is the output with php 4.0.0:
image_size is set !
image[0]='northbeach.jpg' image[1]='image/jpeg' image[2]='/tmp/phpZApBAO' 
image[3]='Water01.jpg' image[4]='image/jpeg' image[5]='/tmp/phpC3YeVs'


So how can I use this input-file array (image[] in the example)
portably ?


BTW: how can I get access to /tmp/phpZApBAO (I need to create
thumbnails from the images) ? On some servers this seems to create
permission-problems (but I cannot change the configuration of the
server).

-- 
Felix Natter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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]




[PHP] set user group quota; fork or multithreading?

2001-02-10 Thread Felix C.Courtemanche

Hello,

I am currently trying to find a way to:

set user and group quota using PHP.  I don'T know how I could use the
existing edquota programs, etc, because they automatically open vi to edit
instead of taking one line command.

I would also like to know if anyone has any ideas on how to do
multithreading in PHP?

I thought of using a script with a function executed once the script is
over, multiple times... would that work?

Please, I would really appreciate some ideas, tips on these 2 subjects!!
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Flix C.Courtemanche . [EMAIL PROTECTED]
Co-Administrator . http://www.can-host.com/
Head Designer . http://www.can-design.com/
.


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




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




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]




[PHP] Re: High bandwidth application tips

2003-11-05 Thread felix zaslavskiy
Take a look here:
http://phplens.com/lens/php-book/optimizing-debugging-php.php

I also recommend X-debug extention for profiling.


On Wed, 5 Nov 2003 13:36:01 -0600 
[EMAIL PROTECTED] (Luis Lebron) wrote:

 I have been coding php for a few years now, but I haven't build a high
 bandwidth application. I am currently working on an application for a
 customer that may have a very large amount of users (10,000 or more
 according to the customer).  Are there any good reference books, articles
 and general information on building such a site. I have been googling for
 a while but have found anything on this particular topic.
 
 thanks,
 
 Luis R. Lebron
 Sigmatech, Inc
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] OOP in PHP 5 won't work under IIS 5.1

2004-09-05 Thread Felix Ang
I installed PHP 5 and tried phpinfo(). It worked. But then I tried OOP
sample from www.php.net http://www.php.net/  , like:

 

?php 

class MyClass { 

   private $Hello = Hello, World!\n; 

   protected $Bar = Hello, Foo!\n; 

   protected $Foo = Hello, Bar!\n; 

 

   function printHello() { 

   print MyClass::printHello()  . $this-Hello; 

   print MyClass::printHello()  . $this-Bar; 

   print MyClass::printHello()  . $this-Foo; 

   } 

} 

 

class MyClass2 extends MyClass { 

   protected $Foo; 



   function printHello() { 

   MyClass::printHello();  /* Should print */ 

   print MyClass2::printHello()  . $this-Hello; /* Shouldn't print
out anything */ 

   print MyClass2::printHello()  . $this-Bar;  /* Shouldn't print
(not declared)*/ 

   print MyClass2::printHello()  . $this-Foo;  /* Should print */ 

   } 

} 

 

$obj = new MyClass(); 

print $obj-Hello;  /* Shouldn't print out anything */ 

print $obj-Bar;/* Shouldn't print out anything */ 

print $obj-Foo;/* Shouldn't print out anything */ 

$obj-printHello(); /* Should print */ 

 

$obj = new MyClass2(); 

print $obj-Hello;  /* Shouldn't print out anything */ 

print $obj-Bar;/* Shouldn't print out anything */ 

print $obj-Foo;/* Shouldn't print out anything */ 

$obj-printHello(); 

?

 

It won't work.

 

Does anyone have the same problem?

 

I use PHP 5 with IIS 5.1

 

Brgds,

Felix Ang

 

 



[PHP] please ignore my last question

2004-09-05 Thread Felix Ang
Dear all, 

 

Please ignore my last question.

 

I found out that simple echo on known variable can't work either. It's
probably an installation problem.

 

Thanks,

Felix Ang



[PHP] path in document root / absolute path

2009-05-20 Thread Felix Siglreithmaier
Hi,

is there a way to check if a path is within the document_root?


and is there a function to check if a path is absolute or not?


thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] XSLTProcessor: need interface to libxslt´s xsltDocL oaderFunc

2009-10-16 Thread Felix Siglreithmaier
Hi,

in the Java Xalan XSLT processor there is an URIResolver object to
resolve URIs used in xsl:include, xsl:import, etc.
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/class-use/URIResolver.html

With this URIResolver you can comfortably implement your own logic to
load external resources.

A small example how it works in Java, so maybe my problem is easier to
understand:

TransformerFactory.newInstance().setURIResolver(
new URIResolver() {
 public Source resolve(String href, String base) {
// all included files are relative to c:\temp
return new StreamSource(
  new File (c:\\temp\\+href));
}
});

and so statements like:
xsl:include href=include.xsl/
will include c:\temp\include.xsl



Now my problem is, that i need this functionality in PHP´s XSLTProcessor.

Generally I think libxslt already supports the same functionality with
the xsltDocLoaderFunc:
http://xmlsoft.org/XSLT/html/libxslt-documents.html#XSLTDOCLOADERFUNC

anyone have an idea how to handle that problem?

thanks a lot

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] echo HTML code ;

2002-01-31 Thread André Felix Miertschink

I have a PHP file that I show values of variables in several parts, and for 
that I put in almost the whole page

echo... HTML code + PHP codes (variables, functions, etc.) + HTML code... 
;


I don't know nor why I put, I think it went to not to be finishing and 
beginning PHP parts as:

?php echo$variable; PHP functions; etc.? HTML code ?php 
echo$variable; PHP functions; etc.? HTML code ?php echo$variável; PHP 
functions; etc.? HTML code

Can these several echo's harm the processing of the server?  Can that turn 
slow the visualization of the page? Should I remove the maximum possible of 
echo... HTML Code ... ; or can I leave how it is?


André


--
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] echo HTML code ;

2002-01-31 Thread André Felix Miertschink

Personal, I think I expressed myself wrong, because it is like this that I 
use, but the one that I want to know, if the echo HTML code  it is much 
slower than if I put the HTML code out of the PHP block.


Can these several echo's harm the processing of the server?  Can that turn 
slow the visualization of the page? Should I remove the maximum possible of 
echo... HTML Code ... ; or can I leave how it is?

André


At 11:04 31/1/2002 -0300, you wrote:
I have a PHP file that I show values of variables in several parts, and 
for that I put in almost the whole page

echo... HTML code + PHP codes (variables, functions, etc.) + HTML code... ;


I don't know nor why I put, I think it went to not to be finishing and 
beginning PHP parts as:

?php echo$variable; PHP functions; etc.? HTML code ?php 
echo$variable; PHP functions; etc.? HTML code ?php echo$variável; 
PHP functions; etc.? HTML code

Can these several echo's harm the processing of the server?  Can that turn 
slow the visualization of the page? Should I remove the maximum possible 
of echo... HTML Code ... ; or can I leave how it is?


André


--
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 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] Segurança de arquivos no servidor

2002-02-01 Thread André Felix Miertschink

Alguém poderia me informar algum tutorial ou poderia até mesmo me 
esclarecer algumas dúvidas sobre como manter segurança dos arquivos no 
servidor.

Em alguns arquivos PHP eu possuo algumas chamadas:
-  include arquivo.inc
Qual modo (CHMOD) este arquivo deverá ter para que este arquivo não seje 
chamado ou baixado por alguma pessoa?

- require arquivo.req
Qual modo (CHMOD) para este arquivo? pode ser o mesmo do include ... ?

Possuo na página vários arquivos compactados (.ZIP).
http://www.?.com/arquivos/teste1.zip  (*)
Como que eu devo fazer, para que a pessoa não baixe automaticamente este 
arquivo colocando essa linha no navegador.
Eu sei que posso fazer algumas manobras nos meus links como:
http://www.?.com/download.php?Arq=teste1
A pessoa não sabe o diretório (/arquivos/teste1.zip), mas se ele descobrir 
e mesmo assim baixar da formar (*), tem como travar?


Abraços,

André


--
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] Segurança de arquivos no servidor (SORRY)

2002-02-01 Thread André Felix Miertschink

SORRY WRONG MAILINGLIST 

André


Alguém poderia me informar algum tutorial ou poderia até mesmo me 
esclarecer algumas dúvidas sobre como manter segurança dos arquivos no 
servidor.

Em alguns arquivos PHP eu possuo algumas chamadas:
-  include arquivo.inc
Qual modo (CHMOD) este arquivo deverá ter para que este arquivo não seje 
chamado ou baixado por alguma pessoa?

- require arquivo.req
Qual modo (CHMOD) para este arquivo? pode ser o mesmo do include ... ?

Possuo na página vários arquivos compactados (.ZIP).
http://www.?.com/arquivos/teste1.zip  (*)
Como que eu devo fazer, para que a pessoa não baixe automaticamente este 
arquivo colocando essa linha no navegador.
Eu sei que posso fazer algumas manobras nos meus links como:
http://www.?.com/download.php?Arq=teste1
A pessoa não sabe o diretório (/arquivos/teste1.zip), mas se ele descobrir 
e mesmo assim baixar da formar (*), tem como travar?


Abraços,

André 


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

2002-02-09 Thread André Felix Miertschink

Could anybody find out the simplest method of calculating the age?
The date of birth is in the format string ('01/01/1977').

André


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Mail()

2002-02-15 Thread André Felix Miertschink

I have been installing NuSphere (Apache and PHP 4.0.6). As that I configure 
the
Apache or PHP, so that I get to use and to test the command mail in my 
computer?

André  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Apache - Virtual Name

2002-02-15 Thread André Felix Miertschink

How can I configure the apache, so that my local access is different from 
http://localhost. I want to access my local server through a virtual name 
(Example: http://www.test.com). I only want to change the name localhost 
for any other name.
I already possess a domain (Example: www.test.com) and I want to use this 
same name also in my local server in case I am not connected in the 
internet, only to simulate some cases of PHP.

Thanks,

André


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Problems with php 4.0.5 with iplanet 4

2001-05-22 Thread Felix Garcia Renedo

Hello,
I was able to install php 4.0.2 with Netscape iplanet 4 and it worked.
Now I'm trying to install php 4.0.5 with Netscape iplanet 4 and it
doesn't work.
When I start the netscape server it says:
conf_init: Error running init function load-modules: dlopen of
/opt/netscape/iplanet4/bin/libphp4.so failed (ld.so.1: ns-httpd: fatal:
relocati
on error: file /opt/netscape/iplanet4/bin/libphp4.so: symbol elf_version:
referenced symbol not found)

What's the problem?

Thanks

Félix García Renedo
  mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  Tfn: 983-423000 Ext. 26520
  Fax: 983-423271
Centro de Telecomunicaciones e Informatica
Universidad de Valladolid
España



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