RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Ken

At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote:
$t = preg_replace('/\s+/',' ',$text);

One more thing:
How do I replace with newline instead of a space?  I read through the manuals but 
couldn't grasp how to do this.  \n didn't cut it.

And, more advanced - 
The above replaces any groups of 2 or more blanks (newlines, spaces, tabs) with a 
single blank.
Is there an easy way to replace them with EITHER a space or a newline, depending on 
whether any newlines were present in the input?
I.e. bb would be replaced with b, but bnbn would be replaced 
with n.

Right now the issue is that I'm sometimes getting results that have no line breaks for 
a really long time, and I know there are reasons to try to avoid individual lines of 
HTML longer than 200 characters.

Thanks!

- Ken
[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] htpasswd file management from php

2001-12-06 Thread Kelly Benbow


Is it possible for users to change passwords from htaccess files in php?  I do not 
want to use the database or sessions for account management as I already have 40 or so 
htaccess accounts set up for different areas.

Thanks.



[PHP] Email-based PHP-Script

2001-12-06 Thread J.Mueller, pro.vider.de GmbH

Hello,

does anybody know of any documentation how to write scripts that
do interact with emails (Majordomo-like), i.e. when an email comes 
to

[EMAIL PROTECTED]

that a script is starting which reads the email and completes tasks
which are defined within the email?

We are using PHP4, Apache and Sendmail.

Thanks a lot.

Juergen
--
pro.vider.de Internetagentur GmbH
Juergen Mueller
Clichystr. 6
89518 Heidenheim
Tel.: 07321 48 08 -72  Fax: -73
---




-- 
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]Checking for expired sessions

2001-12-06 Thread By Proxy

Hi

Is there any way to get a list of all active sessions in apache using PHP?

Thanks

Lee


-- 
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: Email-based PHP-Script

2001-12-06 Thread Manuel Lemos

Hello,

Pro.Vider.De Gmbh J.Mueller wrote:
 
 Hello,
 
 does anybody know of any documentation how to write scripts that
 do interact with emails (Majordomo-like), i.e. when an email comes
 to
 
 [EMAIL PROTECTED]
 
 that a script is starting which reads the email and completes tasks
 which are defined within the email?
 
 We are using PHP4, Apache and Sendmail.

Just make that account be acessible via POP3 or IMAP and then run a
script from the command line that periodically checks the POP account
and processes the messages.

Regards,
Manuel Lemos

-- 
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] testing if mailaccount is existent

2001-12-06 Thread Oliver-B Kueppers

hi all,

does anyone know if there is a possibilty to check if a mailadress is existent, 
without sending a testemail?
thanks for your help



Mit freundlichen Grüßen,

Oliver Küppers
CIB - Firmenkunden Deutschland
Marketing und Vertrieb
Deutsche Bank AG (Zentrale)
phone   : +49 (69) 910 - 34723
fax  : +49 (69) 910 - 42390
mobile  : +49 (174) 30 44 218



--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



--
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] newbie: which packages are needed?

2001-12-06 Thread josep

Which packages do I need to set a web server with PHP and MYSQL support?

I guess:
apache server
php4 apache module 
mysql  module for php4

Josep


-- 
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] please don't flame : it's an editor-question

2001-12-06 Thread Sebastian Stadtlich

Hi
 
I use PHPed for ages now, since it has one feature that i definitely
need :
if i have used the variable $fooBar somewhere in a script, then i just
have to type
'$fo' and the editor shows me all valiables that start with '$fo' and i
just have to hit
Enter to use it. 
I know of pleanty editors that have that feature for php-functions, but
i want it for
variablenames. PhpEd has lots of bugs, which are not fixed since it's
gone commercial.
I can't afford 299$ for an Texteditor,so :
Does anyone know of a free/cheap Edtor that has this feature?

thanks

Sebastian




[PHP] How to change Return-path and sender address

2001-12-06 Thread sanjay

Hi

I have a script which sends email from the web. The problem is the header of
the message contains Return-path and Sender email address as the
[EMAIL PROTECTED]

So, can some one help how can I set Return-path and Sender address as From
Address?

Regards
Sanjay



Return-path: [EMAIL PROTECTED]
Envelope-to: [EMAIL PROTECTED]
Delivery-date: Thu, 06 Dec 2001 11:14:05 +
Received: from [192.168.0.2] (helo=mail.linuxserver.com)
 by mail.softhome.net with esmtp (Exim 3.22 #2)
 id 16BwTd-0007yH-00
 for [EMAIL PROTECTED]; Thu, 06 Dec 2001 11:14:05 +
Received: from webmaster by mail.linuxserver.com with local (Exim 3.16 #1)
 id 16BvPB-0003HI-00
 for [EMAIL PROTECTED]; Thu, 06 Dec 2001 10:05:25 +
To: [EMAIL PROTECTED]
Subject: Re: Your  Application
From: [EMAIL PROTECTED]
Message-Id: [EMAIL PROTECTED]
Sender:  [EMAIL PROTECTED]
Date: Thu, 06 Dec 2001 10:05:25 +



-- 
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 change Return-path and sender address

2001-12-06 Thread Bart Frackiewicz

Hi Sanjay,

you can add extra headers in the mail command.

example from php.net:

mail([EMAIL PROTECTED], the subject, $message,
 From: webmaster@$SERVER_NAME\r\n
.Reply-To: webmaster@$SERVER_NAME\r\n
.X-Mailer: PHP/ . phpversion());

Bart

-Ursprüngliche Nachricht-
Von: sanjay [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. Dezember 2001 11:29
An: [EMAIL PROTECTED]
Betreff: [PHP] How to change Return-path and sender address


Hi

I have a script which sends email from the web. The problem is the
header of
the message contains Return-path and Sender email address as the
[EMAIL PROTECTED]

So, can some one help how can I set Return-path and Sender address as
From
Address?

-- 
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] problem with dba with postgres connections

2001-12-06 Thread GB Clark II

Hello,

I seem to have ran into a problem.

If I try to use the dba functions when I've got an active postgres handle the
dba funtions will return:
Warning: Unable to find DBA identifier 1 in 
/www/sites/Test/htdocs/dbafuncs.php on line 31

If I comment out the call to pg_connect all of the dba stuff works just fine.
I am getting a valid dbm handle back from the open, it just can not find
the first key.

Anyone have any ideas?

GB

-- 
GB Clark II | Roaming FreeBSD Admin
[EMAIL PROTECTED] | General Geek 
   CTHULU for President - Why choose the lesser of two evils?

-- 
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 change Return-path and sender address

2001-12-06 Thread sanjay

I tried this before posting to the list. it didn't worked for me.

sanjay

- Original Message -
From: Bart Frackiewicz [EMAIL PROTECTED]
To: sanjay [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 4:00 PM
Subject: Re: [PHP] How to change Return-path and sender address


Hi Sanjay,

you can add extra headers in the mail command.

example from php.net:

mail([EMAIL PROTECTED], the subject, $message,
 From: webmaster@$SERVER_NAME\r\n
.Reply-To: webmaster@$SERVER_NAME\r\n
.X-Mailer: PHP/ . phpversion());

Bart

-Ursprüngliche Nachricht-
Von: sanjay [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. Dezember 2001 11:29
An: [EMAIL PROTECTED]
Betreff: [PHP] How to change Return-path and sender address


Hi

I have a script which sends email from the web. The problem is the
header of
the message contains Return-path and Sender email address as the
[EMAIL PROTECTED]

So, can some one help how can I set Return-path and Sender address as
From
Address?

--
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 Digest 6 Dec 2001 10:49:17 -0000 Issue 1036

2001-12-06 Thread php-general-digest-help


php-general Digest 6 Dec 2001 10:49:17 - Issue 1036

Topics (messages 76793 through 76851):

URGENT:  IIS doesn't like GET or POST
76793 by: Ron Newman

Pulling data out of a domain name
76794 by: rdkurth.starband.net
76795 by: Brian Clark
76800 by: rdkurth.starband.net
76801 by: Brian Clark
76802 by: CC Zona

Looking for help in making a Mulit Page Form
76796 by: Ben Clumeck
76798 by: Brian Clark
76805 by: Manuel Lemos

Re: Simple(?) Question
76797 by: Brian Clark
76803 by: Chris Lee

Re: PHP shopping cart packages
76799 by: B. van Ouwerkerk
76829 by: Attila Strauss

Re: session question: session.auto_start vs. session_register.
76804 by: Chris Lee
76812 by: Jason G.

Re: Recursive Threading with PHP and MySQL.
76806 by: Chris Lee
76809 by: Prottoss

Re: serialize object  session_auto_start
76807 by: Chris Lee

Re: folver view options
76808 by: Chris Lee

Re: automatic forward URL to other URL
76810 by: Chris Lee

Re: PHP + MySQL problem (strange behavior)
76811 by: David Robley

Re: multi-dimensional array
76813 by: Michael Sims
76816 by: Martin Towell

Newbie question on Tutorials?
76814 by: Geoff E
76815 by: Kurt Lieber

eregi_replace help!
76817 by: David

a strange question when installing php+oracle8.1.16+apache1.3.14 (in linux)
76818 by: ydok.21bc.com

HELP XML XML XML HELP
76819 by: Olivier Masudi
76823 by: Olivier Masudi
76836 by: Olivier Masudi

Problems producing an image
76820 by: Harshdeep S Jawanda
76826 by: David Robley

PHP outside HTML
76821 by: John Kolvereid
76822 by: Tyler Longren
76824 by: Martin Towell
76825 by: David Robley
76828 by: Michael A. Peters

I know I know, but quick Apache/PHP question
76827 by: Chris Cocuzzo

Help required MySql + PHP
76830 by: Karthikeyan
76841 by: Kundan Kumar

very urgent assistance
76831 by: Adewale.Johnson
76832 by: Smith, Benjamin
76835 by: George Pitcher

Re: XHTML compatible error messages
76833 by: Matt McClanahan
76834 by: Jason Lotito

Re: Class in PHP
76837 by: Roko Roic

Re: Reg ex help-Removing extra blank spaces before HTML output
76838 by: Ken

htpasswd file management from php
76839 by: Kelly Benbow

Email-based PHP-Script
76840 by: J.Mueller, pro.vider.de GmbH
76843 by: Manuel Lemos

Checking for expired sessions
76842 by: By Proxy

testing if mailaccount is existent
76844 by: Oliver-B Kueppers

newbie: which packages are needed?
76845 by: josep

PHP + Freetype:  Problem solved, quasi; Solaris problem?
76846 by: MDowling.hew.de

please don't flame : it's an editor-question
76847 by: Sebastian Stadtlich

How to change Return-path and sender address
76848 by: sanjay
76849 by: Bart Frackiewicz
76851 by: sanjay

problem with dba with postgres connections
76850 by: GB Clark II

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

---BeginMessage---

Hi,
When I pass form variables to PHP using either GET or POST it works under
PWS running on localhost, but when I run the same script remotely on a
Win2K Advanced Server and IIS machine, I get Warning, not defined errors
for all the variables passed.

Is there some configuration problem with IIS, or am I overlooking something
else?

Ron



---End Message---
---BeginMessage---

  Is there a more efficient way of doing what this script does is check
  a domain name and separate the domain name from the ext.
  The domain names could be in a few different formats. Like the
  samples below. This script works but I was just wondering does it
  have to be so long winded

  www.domain.com  www.domain.com.au domain.com domain.com.au



   $number= substr_count ($domaname,.);
  If ($number==1){
  $host1=explode(.,$domaname);
   $dhost=$host1[0] ;
   $chost=$host1[1] ;
  }
 
 If ($number==2){
  $host1=explode(.,$domaname);
 if($host1[0]==www){
   $dhost=$host1[1] ;
   $chost=$host1[2] ;
 
  }else{
$dhost=$host1[0] ;
$dhost1=$host1[1] ;
$dhost2=$host1[2] ;
$chost=$dhost1 . . . $dhost2;
   }}
   If ($number==3){
  $host1=explode(.,$domaname);
 if($host1[0]==www){
 $dhost1=$host1[0] ;
 $dhost2=$host1[1] ;
 $dhost3=$host1[2] ;
 

[PHP] Storing Img Binary in MySQL

2001-12-06 Thread phantom

I want to store the image binary data in a MySQL Blob field.  So I
created a simple form that prompted the client for an image file that
would be uploaded to the server.

The server takes the file and gets the following data, assuming ImgFile
is the name of the uploaded image.

  $ImgTitle = $HTTP_POST_FILES['ImgFile']['name'];
  $ImgType = $HTTP_POST_FILES['ImgFile']['type'];
  $ImgSize = $HTTP_POST_FILES['ImgFile']['size'];

When I go to save $ImgFile into MySQL is is actually saving the name of
the temporary location of that file on my server and not the binary data
that compose that image.  This does not surprise I knew this much at
least.

So how do I get the Binary DATA to save and not the temp file location?

Thx.


-- 
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] Email-based PHP-Script

2001-12-06 Thread Jon Farmer

 does anybody know of any documentation how to write scripts that
 do interact with emails (Majordomo-like), i.e. when an email comes
 to


 [EMAIL PROTECTED]

 that a script is starting which reads the email and completes tasks
 which are defined within the email?

Compile PHP as a binary and pipe the email directly from sendmail into PHP
on STDIN

Jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key



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

2001-12-06 Thread Olivier Masudi



http://www.test.com/test.php?orderid=xyz


test.php has to make a request to DB mysql and return a xml page like this :

DOCTYPE=
orderID=xyz
amount=1234
currency=BEF

How can I do that ?
 Should I just use echo  ?


Help


--
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] Re: Access denied for user

2001-12-06 Thread Daniel Masur

you didnt entered the correct pasword for the mysql database



Josep [EMAIL PROTECTED] schrieb im Newsbeitrag
000501c17e48$3d5acaf0$[EMAIL PROTECTED]">news:000501c17e48$3d5acaf0$[EMAIL PROTECTED]...
 I get the following message when trying to view a php page

 Warning: Access denied for user: 'jupshoes@localhost' (Using password:
YES)
 in /home/jupshoes/public_html/guest/index.php on line 27
 Unable to connect to SQL server

 What is going wrong

 Josep




-- 
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: HELP XML XML XML HELP

2001-12-06 Thread Peter Clarke

yes, echo the xml but send a header telling the browser it's xml:

header(Content-Type: text/xml);



Olivier Masudi [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...



 http://www.test.com/test.php?orderid=xyz


 test.php has to make a request to DB mysql and return a xml page like this
:

 DOCTYPE=
 orderID=xyz
 amount=1234
 currency=BEF

 How can I do that ?
  Should I just use echo  ?


 Help






-- 
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: URGENT: IIS doesn't like GET or POST

2001-12-06 Thread Peter Clarke

Check 'register_globals' in php.ini
It sounds like it's off which is much more secure

Instead of getting:
$var
you'll have:
$HTTP_GET_VARS['var']

It stops people sending any variables in the script.

Peter

Ron Newman [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,
 When I pass form variables to PHP using either GET or POST it works under
 PWS running on localhost, but when I run the same script remotely on a
 Win2K Advanced Server and IIS machine, I get Warning, not defined errors
 for all the variables passed.

 Is there some configuration problem with IIS, or am I overlooking
something
 else?

 Ron




-- 
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: Xml Parse Extended Chars

2001-12-06 Thread Peter Clarke

The only predefine entities in XML are lt; gt; amp;
all others need to be defined in the dtd.
Best thing to do is leave the charatef as is in the xml and only run
htmlentites on the contents when sending the contents to an html web
browser.
The xml will happily hold the character as it is.

If you're using the XML Parser functions, you can choose the target
character encoding:
  ISO-8859-1 (default)
  US-ASCII
  UTF-8



Chris Noble [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Ive ran into a stumbling block trying to parse an xml document. I control
 the parsing and the creation of the xml document so I can do any changes
 from either side of it. Problem I have run into is my xml document has a é
 in it. Ive ran htmlentities on it and it converts it to eacute; but
 everytime I try and run xml parse on that I get the error code of
undefined
 entity at line 108. Has anyone ran into this problem before or know a
 solution to handle these issues?

 Chris Noble




-- 
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: please don't flame : it's an editor-question

2001-12-06 Thread Roko Roic

I can't afford 299$ for an Texteditor,so :
Does anyone know of a free/cheap Edtor that has this feature?

On windows - PHPEdit (maybe even PHPCoder).
On linux - I, too would like to know, mabe emacs?.

Roko



-- 
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] Re: please don't flame : it's an editor-question

2001-12-06 Thread Andrey Hristov

Search the list. I remember that someone posted a link from php.net where a putted 
several links which points to the home pages of
editors(Linux+Windows).


Regards,
Andrey Hristov
- Original Message -
From: Roko Roic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 2:22 PM
Subject: [PHP] Re: please don't flame : it's an editor-question


 I can't afford 299$ for an Texteditor,so :
 Does anyone know of a free/cheap Edtor that has this feature?

 On windows - PHPEdit (maybe even PHPCoder).
 On linux - I, too would like to know, mabe emacs?.

 Roko



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

2001-12-06 Thread Justin French

Hi,

Can someone give me a brief over view of how to encrypt a password and
store it in a MySQL DB, then be able to validate thier plain text
password on login against the encrypted one on the DB?


I'm guessing I:

1. encrypt the desired password with some sort of key (eg blahblah)
which is hidden in a protected directory

2. write the encrypted password to the database


Next time the user logs in:

1. take thier plain-text password they submit to login

2. encrypt it with the same key

3. compare it to the one on the database


Or, is there something i'm missing, some sort of gaping big arse
security hole, or some set of functions which take care of a heap of
this stuff for me?

If someone could point me to the right encryption tools / links /
tutorials, i'd be gratefull.



TIA

Justin French

-- 
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] Re: please don't flame : it's an editor-question

2001-12-06 Thread Attila Strauss

hi

http://www.itworks.demon.co.uk/phpeditors.htm

best regards
attila strauss



  I can't afford 299$ for an Texteditor,so :
  Does anyone know of a free/cheap Edtor that has this feature?
 
  On windows - PHPEdit (maybe even PHPCoder).
  On linux - I, too would like to know, mabe emacs?.
 
  Roko
 
 
 
  --
  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] encryption

2001-12-06 Thread Richard Black

MySQL has a PASSWORD() function which encrypts passwords for you!!!

Retrieving the user records using the username and encrypted password as 
selection criteria will either bring back the appropriate record (ie the 
log in worked) or no record (ie password/username supplied were incorrect)

HTH

Richy

-Original Message-
From:   Justin French [SMTP:[EMAIL PROTECTED]]
Sent:   06 December 2001 12:33
To: php
Subject:[PHP] encryption

Hi,

Can someone give me a brief over view of how to encrypt a password and
store it in a MySQL DB, then be able to validate thier plain text
password on login against the encrypted one on the DB?


I'm guessing I:

1. encrypt the desired password with some sort of key (eg blahblah)
which is hidden in a protected directory

2. write the encrypted password to the database


Next time the user logs in:

1. take thier plain-text password they submit to login

2. encrypt it with the same key

3. compare it to the one on the database


Or, is there something i'm missing, some sort of gaping big arse
security hole, or some set of functions which take care of a heap of
this stuff for me?

If someone could point me to the right encryption tools / links /
tutorials, i'd be gratefull.



TIA

Justin French

--
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] How to use gd/php with no freetype?

2001-12-06 Thread Joelmon2001

Hello and thanks for your time. 

 After endless searching, I am still lost

let's just assume I can't install freetype, and it looks like that for 
matters I won't get into. (linux, raq 3) 

What solution would allow me to specify fonts for text written into images? 
Instead of using the default font, imagine I want to use helvetica. Am I 
out of luck without freetype? And if somehow I get freetype installed does 
php allow the method to name the font such as Arial and if so, which file 
do I edit so by default I can specify the font so the text written to the 
image looks as I intended? Thanks. I searched and couldn't find answer to 
both q's, esp. the first. 

Joel




[PHP] Re: Newbie question on Tutorials?

2001-12-06 Thread The Big Roach

Bunch of them!
Check php.net's links and sift through those.
Web Monkey has a good primer on PHP  MySQL.

Geoff E [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Okay, probably been asked zillions of times already, but I couldn't find
 reference to it in the last 5 minutes. :)

 Where can I find newbie-novice tutorials on php/mysql?

 My server is PHP4/MySql on a Apache/FreeBSD.

 I want to learn how to make these types of sites: Dating, BuySell,
Forums,
 etc...

 I have VB, Delphi, and C programming experience, so I'm hoping it won't be
 too hardcore. :)

 Cheers,

 - Geoff





-- 
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]I know I know, but quick Apache/PHP question

2001-12-06 Thread The Big Roach

Chris,

I'm a bit lost... what exactly is your question?

Chris Cocuzzo [EMAIL PROTECTED] wrote in message
010e01c17e0d$d28e72b0$ae687780@webs224">news:010e01c17e0d$d28e72b0$ae687780@webs224...
hey-

I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to
getting this installed correctly. I've edited my httpd.conf file to the
point where if I call the php file I want, I get the source in the browser

here's what my .conf file says?

ScriptAlias /php/ c:/php/

and then further down in the file...

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php C:/php/php.exe

can someone point me in the right direction ..?

-chris-




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

2001-12-06 Thread Andrey Hristov

UPDATE members set passwd=PASSWORD(passwd);

select login from members where PASSWORD($form_pass)=passwd;


Regards,
Adnrey Hristov
- Original Message - 
From: Justin French [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 2:32 PM
Subject: [PHP] encryption


 Hi,
 
 Can someone give me a brief over view of how to encrypt a password and
 store it in a MySQL DB, then be able to validate thier plain text
 password on login against the encrypted one on the DB?
 
 
 I'm guessing I:
 
 1. encrypt the desired password with some sort of key (eg blahblah)
 which is hidden in a protected directory
 
 2. write the encrypted password to the database
 
 
 Next time the user logs in:
 
 1. take thier plain-text password they submit to login
 
 2. encrypt it with the same key
 
 3. compare it to the one on the database
 
 
 Or, is there something i'm missing, some sort of gaping big arse
 security hole, or some set of functions which take care of a heap of
 this stuff for me?
 
 If someone could point me to the right encryption tools / links /
 tutorials, i'd be gratefull.
 
 
 
 TIA
 
 Justin French
 
 -- 
 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] How to use gd/php with no freetype?

2001-12-06 Thread Sebastian Wenleder

Hello and thanks for your time.

  After endless searching, I am still lost

let's just assume I can't install freetype, and it looks like that for
matters I won't get into. (linux, raq 3)

What solution would allow me to specify fonts for text written into images?
Instead of using the default font, imagine I want to use helvetica. Am I
out of luck without freetype? And if somehow I get freetype installed does
php allow the method to name the font such as Arial and if so, which file
do I edit so by default I can specify the font so the text written to the
image looks as I intended? Thanks. I searched and couldn't find answer to
both q's, esp. the first.

Joel

Hi Joel,

If you want to use PostScript fonts you may install the T1 Lib
ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-1.3.1.tar.gz

compile T1, compile php  gdlib with T1 support

Best,
Sebastian

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

2001-12-06 Thread Sondra Russell

Dear Friends,

I'm working on a tool where my dear user can upload a large jpg for 
use with a store.  The tool would upload the jpeg, resample (as 
opposed to resize - image quality is appalling on that!) it to 
thumbnail, and then be done with the whole thing and go smoke a 
cigarette.

Sounds simple, right?  Well, here's my challenge: my hosting company 
isn't quite up to GD v.2x (they're staying behind in gif-land with GD 
v.1.6).  So, I successfully installed ImageMagick to call from 
system() or exec().

BUT, my hosting company runs php in safe mode, forbidding any system 
or exec calls.

Now, I KNOW I'm not the first person on the planet to have this 
challenge.  Anyone?  Bueller?  Share with me.

Best,
Sondra

-- 
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: please don't flame : it's an editor-question

2001-12-06 Thread Billy Harvey

 then i just have to type '$fo' and the editor shows me all valiables
 that start with '$fo' 
 Sebastian

 On linux - I, too would like to know, mabe emacs?.
 Roko

 http://www.itworks.demon.co.uk/phpeditors.htm
 attila strauss

At http://sourceforge.net/projects/php-mode/ is a php-mode.el that has
been working very nicely for me.  Adding a feature that does variable
completion seems useful.  Perhaps you could submit a request for that at
the above link.

Billy



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

2001-12-06 Thread Michael Cronström

I have now located a simple HOW-TO and scripts in a zip at: 
http://www.zoon.se/mailing/index.htm

Good luck!

Michael Cronström
Web Inventor

At 00:33 06/12/01, you wrote:

Perhaps I misunderstood. Are you making scripts available? If so, I'm 
interested in taking a look. If not,
apologies for the intrusion.

=dn


--
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] Re: please don't flame : it's an editor-question

2001-12-06 Thread Roko Roic

Attila Strauss [EMAIL PROTECTED] wrote in message
003301c17e52$69c94260$[EMAIL PROTECTED]">news:003301c17e52$69c94260$[EMAIL PROTECTED]...
 hi
 http://www.itworks.demon.co.uk/phpeditors.htm

This list does not contain the best among Windows editors:
PHPEdit, PHPCoder (Maguma PHP4EE studio), PHPEd...

What about Latte for Linux?

Roko



-- 
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] testing if mailaccount is existent

2001-12-06 Thread Brian Clark

* Oliver-B Kueppers [EMAIL PROTECTED] [Dec 06. 2001 04:38]:

 hi all,
 
 does anyone know if there is a possibilty to check if a mailadress is existent, 
without sending a testemail?
 thanks for your help

Class that may be used to determine if a given e-mail address is valid.
It features:
- Simple validation just by looking at the e-mail address string.
- Validation of a e-mail address host as a valid mail exchange domain.
- Validation of a e-mail address by connecting to the mail host server
  to determine if there is really a deliverable mail box.

http://phpclasses.upperdesign.com/browse.html/package/13  

-- 
 -Brian Clark


-- 
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] newbie: which packages are needed?

2001-12-06 Thread Brian Clark

* josep [EMAIL PROTECTED] [Dec 06. 2001 04:50]:

 Which packages do I need to set a web server with PHP and MYSQL support?
 
 I guess:
 apache server
 php4 apache module 
 mysql  module for php4

Operating System? 

Windows: 
Apache+PHP4 (as a module): http://www.php4win.com/
MySQL client/server: http://www.mysql.com/

Everything else:
http://www.php.net/downloads.php (check the installation intructions)
http://www.mysql.com/

-- 
 -Brian Clark


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

2001-12-06 Thread Brian Clark

* Justin French [EMAIL PROTECTED] [Dec 06. 2001 07:33]:

 Can someone give me a brief over view of how to encrypt a password and
 store it in a MySQL DB, then be able to validate thier plain text
 password on login against the encrypted one on the DB?

An alternative is to just store an Md5 of the password and not the 
actual password.

http://www.php.net/md5

-- 
 -Brian Clark


-- 
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: remote directorylisting

2001-12-06 Thread Håkon Grønning

Thanks!

Thanks for your answer. It was like I thought. I have to write my own
parse code.


Håkon (Hakon)


 Well, This is not really possible, unless the server itself allows you to do
 the listing.
 One way and after the last condition you can use
 fopen(sever.com/dir_to_list/) then fread() it and then parse the content
 in order to get filename, date, ...
 
 Håkon grønning [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  Does anybody know how to list a remote directory to get
  all the filenames into for example an array?
 
  This is easily done on your local server by:
   $handle=opendir('./images/');
   while (($file = readdir($handle))!==false) {
   $filelist[] = $file;
   }
   closedir($handle);
 
  However, opendir and readdir does not work on remote
  servers: $handle=opendir('http://www.somesite.net/images/');
 
  So, does anybody know how to do this.
  I know I can read remote files (directory listing) and then
  To analyse this for filenames with a lot of string manipulation
  operations. Is there a simpler approach?

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

2001-12-06 Thread Anthony Washington

Dear Sondra,

So, I would suggest you to change your webhosting company.

:o)



Anthony Washington ([EMAIL PROTECTED])
http://www.shell42.com
http://www.comwebhosting.com

On Thu, 6 Dec 2001, Sondra Russell wrote:

 Dear Friends,

 I'm working on a tool where my dear user can upload a large jpg for
 use with a store.  The tool would upload the jpeg, resample (as
 opposed to resize - image quality is appalling on that!) it to
 thumbnail, and then be done with the whole thing and go smoke a
 cigarette.

 Sounds simple, right?  Well, here's my challenge: my hosting company
 isn't quite up to GD v.2x (they're staying behind in gif-land with GD
 v.1.6).  So, I successfully installed ImageMagick to call from
 system() or exec().

 BUT, my hosting company runs php in safe mode, forbidding any system
 or exec calls.

 Now, I KNOW I'm not the first person on the planet to have this
 challenge.  Anyone?  Bueller?  Share with me.

 Best,
 Sondra

 --
 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] Checking Checkboxes using Arrays

2001-12-06 Thread Jordan Elver

Hi,
This is doing my head in.
I'm printing out a lot of countires from a db and i want to select the 
countries (check their checkboxes) if they are equal to a particular country 
variable I have set or if they appear in an array. My code is:

$european_union = array('24', '17', '1', '58', '74', '80', 
'73', '83', '101', '103', '119', '144', '164', '186', '193', '212');
print_r($european_union);

if(mysql_num_rows($europe_result)  0) {

while(list($id, $country) = 
mysql_fetch_array($europe_result)) {


if(($id == $register_country_of_origin) || 
(in_array($id, $european_union))) {

echo\tTD WIDTH=\50%\ 
CLASS=\pofgreencard\INPUT TYPE=\checkbox\ NAME=\country_id[]\ 
VALUE=\$id\ CHECKED $country/TD\n;

} else {

echo\tTD WIDTH=\50%\ 
CLASS=\pofgreencard\INPUT TYPE=\checkbox\ NAME=\country_id[]\ 
VALUE=\$id\ $country/TD\n;

}
}

Can anyone give me some tips because if i select a country which is not in 
the array, it still checks all the boxes of the countires in the array?!

I hope this is making sense, I thikn this is what I want ;-)

Thanks,

Jord
-- 
Jordan Elver
Web Developer
http://www.theinternetone.co.uk
 How do I read MIME files??? Quietly, while pretending to be trapped in an 
invisible box. :)

-- 
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] parse error when requiring

2001-12-06 Thread Andrew Forgue

Maybe you could give a little more info on what 
the parse error actually says?



On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote:
 I have a question about require...
 
 I have a session_start() on top of every page and an if-else construction.
 ?
 session_start()
 if ($SessieEIA-Login == 1) 
 {  
 ?
 
 
 
 
 
 On the bottom of every page
 ? } 
 else {
 require error.php;
 }
 ?
 
 This works fine, but now i made the files sessionstart.php and bottom.php
 
 sessionstart.php
 --
 ?
 session_start()
 if ($SessieEIA-Login == 1) 
 {  
 ?
 
 
 bottom.php
 --
 ? } 
 else {
 require error.php;
 }
 ?
 
 And i require these files on top resp. bottom of the page and i get two
 parse errors.
 
 Can somebody tell me why?
 
 Thanks in advance!
 
 
 
 
 Sjoerd van Oosten 
 Digitaal vormgever [EMAIL PROTECTED]
 Datamex E-sites B.V. 
 http://www.esites.nl
 Minervum 7368 Telefoon: (076) 5 730 730 
 4817 ZH BREDA Telefax: (076) 5 877 757 
 ___
 
 
 -- 
 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] Checking Checkboxes using Arrays

2001-12-06 Thread jimtronic

I'm sorry, your message doesn't make sense...

First you say that you want to do what the script is doing, and then 
you say you don't want it to do that.

i want to select the
countries (check their checkboxes) if they are equal to a particular country
variable I have set or if they appear in an array.

... if i select a country which is not in
the array, it still checks all the boxes of the countires in the array?!

Please clarify.

-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Multilingual application

2001-12-06 Thread Alexander Skwar

Hi!

I've got to develop a multilingual application.

What's the best approach to have the app multilingual?  Should I use
gettext, or are there any better ways to do this?

Thanks,

Alexander Skwar
-- 
   Wohnung in Gelsenkirchen und Umgebung gesucht!   

iso-top.de - Die günstige Art an Linux Distributionen zu kommen 
   Uptime: 1 day 21 hours 33 minutes

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

2001-12-06 Thread Valter Santos

I agree... MD5 is the best way to store passwords...
you only store the md5 hash of the actual password, then when the
user logins you have to compare the stored hash with the md5 hash
of password the user uses to login!


cheers,

Valter Santos





- Original Message - 
From: Brian Clark [EMAIL PROTECTED]
To: PHP is not a drug. [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 2:48 PM
Subject: Re: [PHP] encryption


 * Justin French [EMAIL PROTECTED] [Dec 06. 2001 07:33]:
 
  Can someone give me a brief over view of how to encrypt a password and
  store it in a MySQL DB, then be able to validate thier plain text
  password on login against the encrypted one on the DB?
 
 An alternative is to just store an Md5 of the password and not the 
 actual password.
 
 http://www.php.net/md5
 
 -- 
  -Brian Clark
 
 
 -- 
 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] encryption

2001-12-06 Thread Tyler Longren

I don't know if this was mentioned but you can do it all in MySQL with the
password() function.
Ex:
INSERT INTO users (username,password) VALUES ('tyler',PASSWORD('testpass'));

Also:
SELECT * FROM users WHERE username='$username' AND
password=PASSWORD('testpass');

Good luck,
Tyler Longren

- Original Message -
From: Valter Santos [EMAIL PROTECTED]
To: Brian Clark [EMAIL PROTECTED]; PHP is not a drug.
[EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 9:34 AM
Subject: Re: [PHP] encryption


 I agree... MD5 is the best way to store passwords...
 you only store the md5 hash of the actual password, then when the
 user logins you have to compare the stored hash with the md5 hash
 of password the user uses to login!


 cheers,

 Valter Santos





 - Original Message -
 From: Brian Clark [EMAIL PROTECTED]
 To: PHP is not a drug. [EMAIL PROTECTED]
 Sent: Thursday, December 06, 2001 2:48 PM
 Subject: Re: [PHP] encryption


  * Justin French [EMAIL PROTECTED] [Dec 06. 2001 07:33]:
 
   Can someone give me a brief over view of how to encrypt a password and
   store it in a MySQL DB, then be able to validate thier plain text
   password on login against the encrypted one on the DB?
 
  An alternative is to just store an Md5 of the password and not the
  actual password.
 
  http://www.php.net/md5
 
  --
   -Brian Clark
 
 
  --
  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] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van

Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on
line 10

It's strange that line number 10 doesn't exist!


Sjoerd van Oosten 
Digitaal vormgever [EMAIL PROTECTED]
Datamex E-sites B.V. 
http://www.esites.nl
Minervum 7368 Telefoon: (076) 5 730 730 
4817 ZH BREDA Telefax: (076) 5 877 757 
___


-Oorspronkelijk bericht-
Van: Andrew Forgue [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 6 december 2001 16:13
Aan: Oosten, Sjoerd van
CC: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] parse error when requiring


Maybe you could give a little more info on what 
the parse error actually says?



On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote:
 I have a question about require...
 
 I have a session_start() on top of every page and an if-else construction.
 ?
 session_start()
 if ($SessieEIA-Login == 1) 
 {  
 ?
 
 
 
 
 
 On the bottom of every page
 ? } 
 else {
 require error.php;
 }
 ?
 
 This works fine, but now i made the files sessionstart.php and bottom.php
 
 sessionstart.php
 --
 ?
 session_start()
 if ($SessieEIA-Login == 1) 
 {  
 ?
 
 
 bottom.php
 --
 ? } 
 else {
 require error.php;
 }
 ?
 
 And i require these files on top resp. bottom of the page and i get two
 parse errors.
 
 Can somebody tell me why?
 
 Thanks in advance!
 
 
 
 
 Sjoerd van Oosten 
 Digitaal vormgever [EMAIL PROTECTED]
 Datamex E-sites B.V. 
 http://www.esites.nl
 Minervum 7368 Telefoon: (076) 5 730 730 
 4817 ZH BREDA Telefax: (076) 5 877 757 
 ___
 
 
 -- 
 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] parse error when requiring

2001-12-06 Thread Jon Farmer

 Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php
on
 line 10

 It's strange that line number 10 doesn't exist!

Do you have an include statement in sessionstart.php?

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key


-- 
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: Multilingual application

2001-12-06 Thread Julio Nobrega Trabalhando

  I am using an approach similar to this:

$language_file = 'english';

include 'dir/to/languages/'.$language_file.'.inc.php';

on english.inc.php

?php
// Errors section:
$lang['errors']['form']['empty_password'] = 'Please fill the password';

// Miscellanious section:
$lang['misc']['on_line_users'] = 'Number of online users: ';
?

  Than you just go echoing the array elements where you want the text to
appear. It does require a little bit more of typing but the languages files
get a more clear and structured arrange, making easier to add new
words/phrases and helps people that will translate.

--

Julio Nobrega

Don't eat the yellow snow.


Alexander Skwar [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!

I've got to develop a multilingual application.

What's the best approach to have the app multilingual?  Should I use
gettext, or are there any better ways to do this?

Thanks,

Alexander Skwar
--
   Wohnung in Gelsenkirchen und Umgebung gesucht!


iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 1 day 21 hours 33 minutes



-- 
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] parse error when requiring

2001-12-06 Thread Johnson, Kirk

There is a semi-colon missing on the session_start() line. PHP can't pin
down the exact line number of an error where the error is a missing
terminator.

Kirk

 -Original Message-
 From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 8:44 AM
 To: 'Andrew Forgue'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: [PHP] parse error when requiring
 
 
 Parse error: parse error in 
 /home/sites/site139/web/EIA/sessionstart.php on
 line 10
 
 It's strange that line number 10 doesn't exist!

 On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote:
  I have a question about require...
  
  I have a session_start() on top of every page and an 
 if-else construction.
  ?
  session_start()
  if ($SessieEIA-Login == 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]




RE: [PHP] parse error when requiring

2001-12-06 Thread jimtronic

You forgot the semicolon (;) after session_start()


   This works fine, but now i made the files sessionstart.php and bottom.php

  sessionstart.php
  --
  ?
  session_start()
  if ($SessieEIA-Login == 1)
  { 
  ?


  bottom.php
  --
  ? }
  else {
  require error.php;
  }
  ?

  And i require these files on top resp. bottom of the page and i get two
   parse errors.


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Checking Checkboxes using Arrays

2001-12-06 Thread jimtronic



When you perform the test you want to know if the $id is the user's 
choice and if the user's choice is in the array.

Your code reads differently. You are checking to see if $id is the 
user's choice OR $id is in the array. which would always check the 
countries in the array.

   if(($id == $register_country_of_origin) ||
(in_array($id, $european_union))) {

try this ...

 if(($id == $register_country_of_origin) ||
(in_array($register_country_of_origin, $european_union))) {


jim


 $european_union = array('24', '17', '1', '58', '74', '80',
'73', '83', '101', '103', '119', '144', '164', '186', '193', '212');
 print_r($european_union);

 if(mysql_num_rows($europe_result)  0) {

 while(list($id, $country) =
mysql_fetch_array($europe_result)) {

 if(($id == $register_country_of_origin) ||
(in_array($id, $european_union))) {

 echo\tTD WIDTH=\50%\
CLASS=\pofgreencard\INPUT TYPE=\checkbox\ NAME=\country_id[]\
VALUE=\$id\ CHECKED $country/TD\n;

 } else {

 echo\tTD WIDTH=\50%\
CLASS=\pofgreencard\INPUT TYPE=\checkbox\ NAME=\country_id[]\
VALUE=\$id\ $country/TD\n;

 }
 }


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] SMS

2001-12-06 Thread Daniel Berwig

It works with a virtual phone in the site, but I can't try sending SMS
berfore buying it (U$ 400.00). I won't buy a product before being sure it
works.

Does anyone know another method to do it?

Tnx.


Dan McCullough [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Heres a code snippet:
 Sorry for leading astray.

 // load the swsms module
 dl( ../swsms.so );

 // create the sms object
 $sms = create_sms();

 // send the carrier list request
 carrierlist_send( $sms );

 // check if the request was a success
 if( ! $sms-success ) {
 // display error info
 print( Unable to retreive a carrier list from Simplewire:  .
$sms-errorDesc . \n );
 print( Error Code:  . $sms-errorCode . \n );
 }
 else {
 // walk the carrier list array
 array_walk( $sms-carrierlist, displayCarrier );
 }

 function displayCarrier( $c ) {
 // display the carrier info
 print( ID:  . $c-id . \n );
 print( Title:  . $c-title . $c-subtitle . \n\n );
 }
 --- Daniel Berwig [EMAIL PROTECTED] wrote:
  Does anyone know how could I send data from php through SMS to a cel
phone?
  I simply can't find info about that.
 
  Thanks in advance,
 
  Daniel Berwig.
 
 
 
  --
  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]
 


 =
 Dan McCullough
 ---
 Theres no such thing as a problem unless the servers are on fire!
 h: 603.444.9808
 w: McCullough Family
 w: At Work

 __
 Do You Yahoo!?
 Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
 http://geocities.yahoo.com/ps/info1



-- 
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] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey

using \n as your replacement text will do ithowever, if you want a
newline in the html, then you'll want br...

and as far as the advanced replace, make an array of search patterns, in
this case two.
your first pattern will be /[ ]+\n+[ ]+/ with a replacement of a single
newline...then the second will be the previous regex.check out php.net
for help with syntax and using arrays with preg_* functionsthe first
should catch all situations of a series of spaces [with at least one newline
in between them] and substitute a newline.
check out mastering regular expressions as well.its worth the money
jack

-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 3:08 AM
To: Jack Dempsey; liljim; PHP list
Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML
output


At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote:
$t = preg_replace('/\s+/',' ',$text);

One more thing:
How do I replace with newline instead of a space?  I read through the
manuals but couldn't grasp how to do this.  \n didn't cut it.

And, more advanced -
The above replaces any groups of 2 or more blanks (newlines, spaces, tabs)
with a single blank.
Is there an easy way to replace them with EITHER a space or a newline,
depending on whether any newlines were present in the input?
I.e. bb would be replaced with b, but bnbn would be
replaced with n.

Right now the issue is that I'm sometimes getting results that have no line
breaks for a really long time, and I know there are reasons to try to avoid
individual lines of HTML longer than 200 characters.

Thanks!

- Ken
[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] dynamic maps

2001-12-06 Thread Rocky Dean Pulley

I need to have a map to a map of classes, is this possible using PHP?

For example, in C++, I can do this:

mapstring, mapstring, MyClass  m_strMap;

===
Rocky Dean Pulley
Senior Technologist
CorTechs, Inc.
[EMAIL PROTECTED]
703-968-7021 x108
-- Quidquid latine dictum sit, altum videtur




[PHP] ImageCopy() not working

2001-12-06 Thread geoff catlin

I created a function (appears below) that crops a JPG and outputs it on the
fly. However Apache crashes when I use the function. Unfortunately, Apache
does not put an error message in the logs.

I'm running it on a Windows2000 machine with Apache 1.3.20 and PHP 4.0.6
(installed via EasyPHP 1.5.0.0).

I've isolated the problem to be the ImageCopy() function, I'm sure of this.
If I use ImageCopyMerge() instead (with pct = 100), it works albeit with
varying results.

Has anyone else encountered this? Does anyone know how to fix it?

---snip---
function ImageCropJPEG( $src_file, $dst_file, $dst_width, $dst_height,
$quality = '100', $crop_type = 'r' ) {

// Must be a valid file
if ( is_file( $src_file ) ) {

// Get image dimensions
list( $src_width, $src_height, $src_type ) = @GetImageSize(
$src_file );

// Must be a valid JPEG
if ( is_set( $src_width )  is_set( $src_height )  $src_type ==
2 ) {

// Generate crop coords
switch ( $crop_type ) {

// Centered crop coords
case 'c':
$src_x  = max( 1, floor( ( $src_width  - $dst_width  ) /
2 ) );
$src_y  = max( 1, floor( ( $src_height - $dst_height ) /
2 ) );
break;

// Random crop coords
case 'r':
default:
$src_x  = mt_rand( 0, max( 1, $src_width - $dst_width -
1 ) );
$src_y  = mt_rand( 0, max( 1, $src_height -
$dst_height - 1 ) );
break;

}

// Create resources pointers for source and destination images
$src_image = ImageCreateFromJPEG( $src_file );
$dst_image = ImageCreate( $dst_width, $dst_height );

// Copy cropped portion of source image to destination image
ImageCopy( $dst_image, $src_image, 0, 0, $src_x, $src_y,
$dst_width, $dst_height );
#ImageCopyMerge( $dst_image, $src_image, 0, 0, $src_x, $src_y,
$dst_width, $dst_height, 100 ); // testing...

// Output to STDOUT
if ( empty( $dst_file ) ) {
header( 'Content-type: image/jpeg' );
}

// Output image
ImageJPEG( $dst_image, $dst_file, $quality );

// Free any memory associated the source and destination images
ImageDestroy( $src_image );
ImageDestroy( $dst_image );

}

}

return( TRUE );

}

---snip---

Forgive me if this has been asked before. I searched the archives but
couldn't find the answer.

TIA!


geoff.catlin
programmer#Q15439

---

http://www.3rdkynd.com
http://www.urthling.com

3rdkynd :: From the electricity of the edge to the subtlety
of the sublime, we've got what you've been looking for.

e :: [EMAIL PROTECTED]
p :: 315.685.3415
f :: 315.685.5159




[PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Christoph Starkmann

Hi everybody!

I wrote a script just to do some local replacement stuff here on my own
machine.
Is there any way to change the maximum execution time of PHP which seems to
be 
restricted to 30 seconds

Would be great if you could give me a hint on how to change this...

Thanx alot,

Kiko

-
It's not a bug, it's a feature.
christoph starkmann
mailto:[EMAIL PROTECTED]
http://www.fh-augsburg.de/~kiko
ICQ: 100601600
-

-- 
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] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Andrey Hristov

set_time_limit(0); // no limit
set_time_limit(60); // 60 seconds

Regards,
Andrey
- Original Message - 
From: Christoph Starkmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 7:09 PM
Subject: [PHP] Maximum execution time of 30 seconds exceeded 


 Hi everybody!
 
 I wrote a script just to do some local replacement stuff here on my own
 machine.
 Is there any way to change the maximum execution time of PHP which seems to
 be 
 restricted to 30 seconds
 
 Would be great if you could give me a hint on how to change this...
 
 Thanx alot,
 
 Kiko
 
 -
 It's not a bug, it's a feature.
 christoph starkmann
 mailto:[EMAIL PROTECTED]
 http://www.fh-augsburg.de/~kiko
 ICQ: 100601600
 -
 
 -- 
 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] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Jon Farmer

 I wrote a script just to do some local replacement stuff here on my own
 machine.
 Is there any way to change the maximum execution time of PHP which seems
to
 be
 restricted to 30 seconds

 Would be great if you could give me a hint on how to change this...


http://www.php.net/manual/en/function.set-time-limit.php

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key



-- 
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] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Richard Black

The timeout is set in php.ini

-Original Message-
From:   Christoph Starkmann [SMTP:[EMAIL PROTECTED]]
Sent:   06 December 2001 17:09
To: [EMAIL PROTECTED]
Subject:[PHP] Maximum execution time of 30 seconds exceeded 

Hi everybody!

I wrote a script just to do some local replacement stuff here on my own
machine.
Is there any way to change the maximum execution time of PHP which seems to
be 
restricted to 30 seconds

Would be great if you could give me a hint on how to change this...

Thanx alot,

Kiko

-
It's not a bug, it's a feature.
christoph starkmann
mailto:[EMAIL PROTECTED]
http://www.fh-augsburg.de/~kiko
ICQ: 100601600
-

-- 
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] PHP SSL credit card transaction

2001-12-06 Thread Daniel Guerrier

Can some give me a brief synopsis or direct me to some
information on how to create an ecommerce site using
php.  My main question is in the area of performing a
secure credit card transaction.  Do I need to use a
third party shopping or can I create my own, if I
create my own how do I integrate it with a credit
authorizer?  In addition how do I implement SSL with
PHP when performing the transaction?  Thanks in advance!!

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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]




Re: [PHP] PHP SSL credit card transaction

2001-12-06 Thread Chris Allen

http://www.openecho.com/php/echophp-1.4.tar.gz


I used this package, which requires cURL and for you to have setup a
merchant account.
Was really easy!

As far as SSL jsut make sure you are serving the pages in SSL (https) and
all is fine.
You can home roll your on shopping cart like I did or you can DL any open
source cart and add hooks into openecho..
I owuld check the forum they have @openecho and see if anyone has a shopping
cart that you can use!


GL,

ccma

- Original Message -
From: Daniel Guerrier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 11:09 AM
Subject: [PHP] PHP SSL credit card transaction


 Can some give me a brief synopsis or direct me to some
 information on how to create an ecommerce site using
 php.  My main question is in the area of performing a
 secure credit card transaction.  Do I need to use a
 third party shopping or can I create my own, if I
 create my own how do I integrate it with a credit
 authorizer?  In addition how do I implement SSL with
 PHP when performing the transaction?  Thanks in advance!!

 __
 Do You Yahoo!?
 Send your FREE holiday greetings online!
 http://greetings.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]




Re: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Jon Farmer

 The timeout is set in php.ini

Only change it in php.ini if you want it to be serverwide. For a specific
script use set_time_linit().

Regards

Jon

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key



-- 
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] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread Robin McKenzie



Could anyone tell me if there is a PHP equivalent to:

SELECT x
CASE 1 to 5
{...}
CASE ELSE
{...}
END SELECT

Muchos gracias.

Robin



-- 
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] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread jimtronic


switch {} will do it.

http://www.php.net/manual/en/control-structures.switch.php

Could anyone tell me if there is a PHP equivalent to:

SELECT x
 CASE 1 to 5
 {...}
 CASE ELSE
 {...}
END SELECT

Muchos gracias.

Robin



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


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] PHP Forms and String Limitations

2001-12-06 Thread Jeremy Reed

I've set up a news database with a PHP front-end and am using MS SQL Server.
The news table is set up correctly with the pertinent field being of type
'text' which, according to documentation, should support well over 10 megs
of text data.

This is the problem: The user tries to submit a news article of 2+ pages
(approx 4400 characters) but the article gets truncated to about 4050
characters.  Is there some sort of limitation on PHP variables that is
causing this?

Thanks!

Best regards,

Jeremy Reed



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

2001-12-06 Thread sgibbs

I think I'm making this harder or more confusing than it really needs to be.

I have a form that is spread out over four pages.  I want to be able to give
the user the opportunity to return to page 1 from page 3, for example, by
providing a regular link on page 3 to return to page1.  When they click on
this link, I want the info. originally entered in page 1 to still be there.

Do I need to use sessions to do this or is there another way?

Thank you, Shawna

-- 
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] Equivalent of the Basic function SELECT...CASE

2001-12-06 Thread py

switch( $x ){
   case 1:
   case 2:
   case 3:
   case 4:
   case 5: {...}
 break;
   default: {...}
 break;
}

py

At 05:38 PM 12/6/01 +, Robin McKenzie wrote:


Could anyone tell me if there is a PHP equivalent to:

SELECT x
 CASE 1 to 5
 {...}
 CASE ELSE
 {...}
END SELECT

Muchos gracias.

Robin



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

2001-12-06 Thread Richard S. Crawford

I've done something similar like this:

  a href=javascript:window.back() Click here to go back /a 

In the situations in which I've used it, the form data from the previous 
page is still in the form fields.

Potential downsides of this approach: the data has not yet been 
processed.  Or, if it has been, you run the risk of processing it 
twice.  Also, it may be unreliable depending on how the user's cache is set 
up (though I've never had any problems reported to me).

So, it may or may not suit your needs.


At 09:44 AM 12/6/2001, [EMAIL PROTECTED] wrote:
I think I'm making this harder or more confusing than it really needs to be.

I have a form that is spread out over four pages.  I want to be able to give
the user the opportunity to return to page 1 from page 3, for example, by
providing a regular link on page 3 to return to page1.  When they click on
this link, I want the info. originally entered in page 1 to still be there.

Do I need to use sessions to do this or is there another way?

Thank you, Shawna

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


Sliante,
Richard S. Crawford

http://www.mossroot.com
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
MSN: [EMAIL PROTECTED]

It is only with the heart that we see rightly; what is essential is 
invisible to the eye.  --Antoine de Saint Exupéry

Push the button, Max!


--
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: forms PHP

2001-12-06 Thread Julio Nobrega Trabalhando

  Session would be the easiest thing to use. You could also 'pre-store' the
info on a database and retrive it depending at what page users are visiting.

--

Julio Nobrega

Don't eat the yellow snow.


[EMAIL PROTECTED] wrote in message
BB6D932A42D6D211B4AC0090274EBB1DA0F14F@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1DA0F14F@GLOBAL1...
 I think I'm making this harder or more confusing than it really needs to
be.

 I have a form that is spread out over four pages.  I want to be able to
give
 the user the opportunity to return to page 1 from page 3, for example, by
 providing a regular link on page 3 to return to page1.  When they click on
 this link, I want the info. originally entered in page 1 to still be
there.

 Do I need to use sessions to do this or is there another way?

 Thank you, Shawna



-- 
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] Using HEADER to redirect

2001-12-06 Thread Don

Hi,

I have a PHP script that uses the following code to redirect to a page of the user's 
choice:

header(Location: http://www.mypage.net/;); 

In examples of this type of coding in various scriots,  the above line is always 
followed by the statement:

exit;

I am wondering why.  When executing a Header(Location); statement, does control 
return to the PHP script after execution?  In that case, I assume that the exit; 
statement is there in order to terminate the php script.  In that event, can I execute 
code within my script after calling the Header(Location) page?



[PHP] Newbie PHP/MySQL Question

2001-12-06 Thread Peter van der Maas

Ok, Im' pretty new at this, but I can't see what may be wrong here:

Table IMT
-
User (char)
SessionID (char)
StartTime(TIMESTAMP)
EndTime(TIMESTAMP)

Code on first page:
INSERT INTO IMT VALUES ('testuser', '$id', CURRENT_TIMESTAMP, '/0');

Code on second page:
UPDATE IMT SET EndTime=NOW() WHERE SessionID='$id';

The problem I am having is that when the second page is executed, it places
the current time in both StartTime and EndTime.  However, while I am viewing
the contents throught the process, the StartTime value is correct until the
second page is executed, and then whatever is placed into EndTime shows up
in StartTime.  If it matters, the only session variable i'm using is
session_id().

TIA
Pete van der Maas




-- 
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] Using HEADER to redirect

2001-12-06 Thread Mike Eheler

More than likely not. Putting an exit statement after a header redirect 
is just good practice and ensures that nothing gets executed after 
redirecting.

Mike

Don wrote:

Hi,

I have a PHP script that uses the following code to redirect to a page of the user's 
choice:

header(Location: http://www.mypage.net/;); 

In examples of this type of coding in various scriots,  the above line is always 
followed by the statement:

exit;

I am wondering why.  When executing a Header(Location); statement, does control 
return to the PHP script after execution?  In that case, I assume that the exit; 
statement is there in order to terminate the php script.  In that event, can I 
execute code within my script after calling the Header(Location) page?




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

2001-12-06 Thread Dan McCullough

In some browsers that is what will happen on a form, is that will process the 
infromation twice.
--- Richard S. Crawford [EMAIL PROTECTED] wrote:
 I've done something similar like this:
 
   a href=javascript:window.back() Click here to go back /a 
 
 In the situations in which I've used it, the form data from the previous 
 page is still in the form fields.
 
 Potential downsides of this approach: the data has not yet been 
 processed.  Or, if it has been, you run the risk of processing it 
 twice.  Also, it may be unreliable depending on how the user's cache is set 
 up (though I've never had any problems reported to me).
 
 So, it may or may not suit your needs.
 
 
 At 09:44 AM 12/6/2001, [EMAIL PROTECTED] wrote:
 I think I'm making this harder or more confusing than it really needs to be.
 
 I have a form that is spread out over four pages.  I want to be able to give
 the user the opportunity to return to page 1 from page 3, for example, by
 providing a regular link on page 3 to return to page1.  When they click on
 this link, I want the info. originally entered in page 1 to still be there.
 
 Do I need to use sessions to do this or is there another way?
 
 Thank you, Shawna
 
 --
 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]
 
 
 Sliante,
 Richard S. Crawford
 
 http://www.mossroot.com
 AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
 MSN: [EMAIL PROTECTED]
 
 It is only with the heart that we see rightly; what is essential is 
 invisible to the eye.  --Antoine de Saint Exupéry
 
 Push the button, Max!
 
 
 --
 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]
 


=
dan mccullough

Theres no such thing as a problem unless the servers are on fire!


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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]




Re: [PHP]I know I know, but quick Apache/PHP question

2001-12-06 Thread Chris Cocuzzo

my apologies.

my question is, how do i solve the problem of having the source show up in
my browser when i call a php page based on the information i provided, or
didn't provide that I should've modified in the .conf file

chris

- Original Message -
From: The Big Roach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 8:42 AM
Subject: Re: [PHP]I know I know, but quick Apache/PHP question


 Chris,

 I'm a bit lost... what exactly is your question?

 Chris Cocuzzo [EMAIL PROTECTED] wrote in message
 010e01c17e0d$d28e72b0$ae687780@webs224">news:010e01c17e0d$d28e72b0$ae687780@webs224...
 hey-

 I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to
 getting this installed correctly. I've edited my httpd.conf file to the
 point where if I call the php file I want, I get the source in the browser

 here's what my .conf file says?

 ScriptAlias /php/ c:/php/

 and then further down in the file...

 AddType application/x-httpd-php .php
 AddType application/x-httpd-php-source .phps
 Action application/x-httpd-php C:/php/php.exe

 can someone point me in the right direction ..?

 -chris-




 --
 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] PHP Installed in CGI for IIS 5(microsoft)

2001-12-06 Thread pong-TC

Hello  All

Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5?  Is it
running good?  I mean you got a full capability as PHP has, and there is
no serious harm to the webserver(IIS 5).   I am also using ASP.  I don't
know installing PHP on the system will jeopardize the ASP application. 
Please let me know.

Thank you.
Pong


-- 
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: Newbie PHP/MySQL Question

2001-12-06 Thread Peter van der Maas

Think i figured out my problem...next time i will RTFM!!!

Sorry!



Peter Van Der Maas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Ok, Im' pretty new at this, but I can't see what may be wrong here:

 Table IMT
 -
 User (char)
 SessionID (char)
 StartTime(TIMESTAMP)
 EndTime(TIMESTAMP)

 Code on first page:
 INSERT INTO IMT VALUES ('testuser', '$id', CURRENT_TIMESTAMP, '/0');

 Code on second page:
 UPDATE IMT SET EndTime=NOW() WHERE SessionID='$id';

 The problem I am having is that when the second page is executed, it
places
 the current time in both StartTime and EndTime.  However, while I am
viewing
 the contents throught the process, the StartTime value is correct until
the
 second page is executed, and then whatever is placed into EndTime shows up
 in StartTime.  If it matters, the only session variable i'm using is
 session_id().

 TIA
 Pete van der Maas






-- 
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 Installed in CGI for IIS 5(microsoft)

2001-12-06 Thread Kurt Lieber

On Thursday 06 December 2001 11:23 am, pong-TC wrote:
 Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5?  Is it
 running good?  I mean you got a full capability as PHP has, and there is
 no serious harm to the webserver(IIS 5).   I am also using ASP.  I don't
 know installing PHP on the system will jeopardize the ASP application.
 Please let me know.

In my experience, setting up a CGI version of PHP on IIS is easier than the 
ISAPI version.  The major drawback is speed:  the CGI version will be much, 
much slower.  Not a big deal if you have a low volume site, though.

Shouldn't affect your ASP pages at all -- the two can happily co-exist on the 
same server.

hth

--kurt

-- 
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]I know I know, but quick Apache/PHP question

2001-12-06 Thread Sam2


Un-comment lines like this:

#AddType application/x-httpd-php .php

and these should be there:

AddModule mod_php4.c
LoadModule php4_modulelibexec/libphp4.so

Unless you're using the cgi.

And there might be some stuff I forgot.


-- 
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] Extending classes multiple times

2001-12-06 Thread Matt Friedman

I had been under the impression that one could extend a class only once.
That is, if I extend class A with class B I would then not be able to
extend B again with any other class. 

See: http://www.php.net/manual/en/keyword.extends.php
An extended class is always dependent on a single base class, that is,
multiple inheritance is not supported. Classes are extended using the
keyword 'extends'.

With some testing however, it appears that I can extend class B with
class C and class C with class D and so on...

Am I misinterpreting the manual? I suspect I am. Or is this a new
feature. Thoughts?

Thanks,

Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
Email: [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]I know I know, but quick Apache/PHP question

2001-12-06 Thread Chris Allen

hmm looks right ...are you loading thru the server or are you doing a
file://c/:doc_root/file.php ?


heres the relevant info from my httpd.conf file on windows:

ScriptAlias /php4/ C:/php/
Action application/x-httpd-php4 /php4/php.exe
AddType application/x-httpd-php4 .php


whats a url to check it out ?


-- 
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] Extending classes multiple times

2001-12-06 Thread Rasmus Lerdorf

 I had been under the impression that one could extend a class only once.
 That is, if I extend class A with class B I would then not be able to
 extend B again with any other class. 
 
 See: http://www.php.net/manual/en/keyword.extends.php
 An extended class is always dependent on a single base class, that is,
 multiple inheritance is not supported. Classes are extended using the
 keyword 'extends'.
 
 With some testing however, it appears that I can extend class B with
 class C and class C with class D and so on...
 
 Am I misinterpreting the manual? I suspect I am. Or is this a new
 feature. Thoughts?

This is not a new feature.  In your example each class only has a single 
parent.  Multiple Inheritance is when you do something like:

class C extends A,B { ... }

Doing B extends A followed by C extends B is still single inheritance.

-Rasmus


-- 
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] Failed to initialize session module

2001-12-06 Thread derek fong

Hello,

I am trying to get session data written to a MySQL table using 
set_session_save_handler(), but am getting the following error when I 
issue session_register(varname) on a page:

Fatal error: Failed to initialize session module in 
/Library/WebServer/Documents/VirtualHosts/www/admin/en/login.php on 
line 4

I have set session.save_handler to user and session.save_path to 
mysql://USER:PASS@localhost/DB in my php.ini file.  File-based 
sessions seem to work fine with session.save_handler set to files and 
session.save_path to /tmp.  I am using the following code as my save 
handler (taken from Web Application Development With PHP 4.0 by 
Tobias Ratschiller and Till Gerken):

?php
$sess_mysql = array();
$sess_mysql[open_connection] = true;
$sess_mysql[hostname] = localhost;
$sess_mysql[user] = USER;
$sess_mysql[password] = PASS;
$sess_mysql[db] = DB;
$sess_mysql[table] = sessions;

function sess_mysql_open($save_path, $sess_name)
{
global $sess_mysql;

if ($sess_mysql[open_connection])
{
$link = mysql_pconnect($sess_mysql[hostname], 
$sess_mysql[user],
$sess_mysql[password]) or die(mysql_error());
}

return (true);
}


function sess_mysql_read($sess_id)
{
global $sess_mysql;
$result = mysql_db_query($sess_mysql[db], SELECT data FROM 
.$sess_mysql[table] . WHERE id = 
'$sess_id') or
die(mysql_error());

if (mysql_num_rows($result) == 0)
{
return ();
}

$row = mysql_fetch_array($result);
mysql_free_result($result);

return ($row[data]);
}


function sess_mysql_write($sess_id, $val)
{
global $sess_mysql;

$result = mysql_db_query($sess_mysql[db], REPLACE INTO 
.$sess_mysql[table] . VALUES 
('$sess_id', '$val', null)) or
die(mysql_error());

return (true);
}


function sess_mysql_destroy($sess_id)
{
global $sess_mysql;

$result = mysql_db_query($sess_mysql[db], DELETE FROM 
.$sess_mysql[table] . WHERE id = 
'$sess_id') or
die(mysql_error());

return (true);
}


function sess_mysql_gc($max_lifetime)
{
global $sess_mysql;

$old = time() - $max_lifetime;

$result = mysql_db_query($sess_mysql[db], DELETE FROM 
.$sess_mysql[table] . WHERE 
UNIX_TIMESTAMP(t_stamp)  $old) or
die(mysql_error());

return (true);
}

session_set_save_handler(sess_mysql_open, , sess_mysql_read, 
sess_mysql_write,
sess_mysql_destroy, sess_mysql_gc);
?


I have also tried Sam Johnston's PEAR Custom Session Handler for PHP4 
(http://sourceforge.net/projects/pearsession/), but I get the same 
error.  Like I said, file-based sessions are working fine, but any 
custom handler bombs with the error I noted above.  This is all 
running under Mac OS X 10.1.1, PHP 4.0.6 using the PEAR DB libraries 
(among others) and MySQL 3.23.43.

What could be causing the error?  I've searched and searched but 
can't seem to find any answers.  Thanks in advance,

-f


-- 
Derek Fong
Web Application Developer
subtitle designs inc. http://www.subtitled.com/

Mistakes are the portals of discovery. --James Joyce
 GPG key/fingerprint available upon request 


Re: [PHP] Extending classes multiple times

2001-12-06 Thread Harshdeep S Jawanda

I am not very sure what your question is, but multiple inheritance
means that a derived class can inherit (i.e., be derived from) more
than one class.

In multiple inhericance, you can have:

A   B
|   |
+---+---+
|
C

Here, C is simultaneously derived from A  B. You can't have this in
single inheritance (which is what the PHP manual is saying). This means
that C can be derived from either A or B, not both.

The following is always possible, irrespective of whether multiple
inheritance is supported or not:

A
|
+-B
|
+-C
|
+-D

This is three different classes (B, C and D) derived from A.

Hope this helps clarify your doubts.

--- Matt Friedman [EMAIL PROTECTED] wrote:
 I had been under the impression that one could extend a class only
 once.
 That is, if I extend class A with class B I would then not be able to
 extend B again with any other class. 
 
 See: http://www.php.net/manual/en/keyword.extends.php
 An extended class is always dependent on a single base class, that
 is,
 multiple inheritance is not supported. Classes are extended using the
 keyword 'extends'.
 
 With some testing however, it appears that I can extend class B with
 class C and class C with class D and so on...
 
 Am I misinterpreting the manual? I suspect I am. Or is this a new
 feature. Thoughts?
 
 Thanks,
 
 Matt Friedman
 Web Applications Developer
 www.SpryNewMedia.com
 Email: [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]
 
 
 


=
Please send all emails to my automatically redirecting
address: [EMAIL PROTECTED]

Regards,
Harshdeep S Jawanda
[[EMAIL PROTECTED]]

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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]




RE: [PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman

This is what I had thought. I wasn't sure and needed the clarification. 

Thanks as always! 

Matt Friedman


-Original Message-
From: Harshdeep S Jawanda [mailto:[EMAIL PROTECTED]] 
Sent: Thursday December 6, 2001 1:55 PM
To: Matt Friedman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Extending classes multiple times

I am not very sure what your question is, but multiple inheritance
means that a derived class can inherit (i.e., be derived from) more
than one class.

In multiple inhericance, you can have:

A   B
|   |
+---+---+
|
C

Here, C is simultaneously derived from A  B. You can't have this in
single inheritance (which is what the PHP manual is saying). This means
that C can be derived from either A or B, not both.

The following is always possible, irrespective of whether multiple
inheritance is supported or not:

A
|
+-B
|
+-C
|
+-D

This is three different classes (B, C and D) derived from A.

Hope this helps clarify your doubts.

--- Matt Friedman [EMAIL PROTECTED] wrote:
 I had been under the impression that one could extend a class only
 once.
 That is, if I extend class A with class B I would then not be able to
 extend B again with any other class. 
 
 See: http://www.php.net/manual/en/keyword.extends.php
 An extended class is always dependent on a single base class, that
 is,
 multiple inheritance is not supported. Classes are extended using the
 keyword 'extends'.
 
 With some testing however, it appears that I can extend class B with
 class C and class C with class D and so on...
 
 Am I misinterpreting the manual? I suspect I am. Or is this a new
 feature. Thoughts?
 
 Thanks,
 
 Matt Friedman
 Web Applications Developer
 www.SpryNewMedia.com
 Email: [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]
 
 
 


=
Please send all emails to my automatically redirecting
address: [EMAIL PROTECTED]

Regards,
Harshdeep S Jawanda
[[EMAIL PROTECTED]]

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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] extracting info from HTML

2001-12-06 Thread Boaz Yahav

Hi

Suppose I have something like this :

TR ALIGN=CENTER
TDBTest1-1/B/TD
TDBTest1-2/B/TD
TDBTest1-3/B/TD
TDBTest1-4/B/TD
TD colspan=5BTest1-5/B/TD
/TR
TR ALIGN=CENTER
TDBTest2-1/B/TD
TDBTest2-2/B/TD
TDBTest2-3/B/TD
TDBTest2-4/B/TD
TD colspan=5BTest2-5/B/TD
/TR

How can I get to the data most easily?
The data are the Test1-1, Test1-2..


berber

--
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] Display BLOB Image

2001-12-06 Thread phantom

I have successfully placed images (jpg,gif,png) into a MySQL database
BLOB field, now I want to be able to pull the data out and diplay it.

based on tutorial at
http://www.zdnet.com/devhead/stories/articles/0,4413,2644827,00.html

after Querying the DB I have the following lines:

$ImgFile = mysql_result($Results,0,ImgFile); \\ image data;
$ImgType = mysql_result($Results,0,ImgType);  \\ image type (image/jpeg,
image/gif);
header(Content-type: ${ImgType});
echo $ImgFile;

Problem: This method, when it pulls up an image, it shows no image but a
bunch of greek code.  Example
http://www.phantomcougar.com/strawberrypie_com/mem/show_img.php?PNum=8
((be sure to view page source)




-- 
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] Function Alias: mysql()

2001-12-06 Thread Dennis Moore

I cannot seem to find in the documentation the what the function mysql() is aliaseed 
to using PHP4.0.6.  Any ideas?

Example:

$rez=mysql($dbname,$query);

Everything works fine... But I want to be sure what is actually being used.

/dkm




[PHP] Creating multidimensional array dynamically

2001-12-06 Thread J. Roberts

I can't seem to figure out how to create a multidimensional array from
a database query.  Here is an example of what I was looking for, using
NFL quarterbacks as a statistical foundation...
A record contains the following fields:

NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT

Now I would like to be able to create an array with NAME as a key containing
the array(ATTEMPTS, COMPLETIONS, YARDS, TD, INT).

That way I would be able to do the following:

echo $quarterbacks[GARCIA][YARDS];

and get the output of 3,100 or whatever the case may be.

Thanks,
-Jamison.



-- 
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] Creating multidimensional array dynamically

2001-12-06 Thread Jason Lotito

Something like this?

while( list( $name, $attempts, $completions, $yards, $td, $int ) =
mysql_fetch_row($res) )
{
$quarterbacks[$name] = array( ATTEMPTS = $attempts,
COMPLETIONS =
$completions,
YARDS = $yards,
TD = $td,
INT = $int );
}

echo $quarterbacks[GARCIA][YARDS];

Jason Lotito
[EMAIL PROTECTED]
www.NewbieNetwork.net

 -Original Message-
 From: J. Roberts [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, December 06, 2001 4:08 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Creating multidimensional array dynamically
 
 
 I can't seem to figure out how to create a multidimensional 
 array from a database query.  Here is an example of what I 
 was looking for, using NFL quarterbacks as a statistical 
 foundation... A record contains the following fields:
 
 NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT
 
 Now I would like to be able to create an array with NAME as a 
 key containing the array(ATTEMPTS, COMPLETIONS, YARDS, TD, INT).
 
 That way I would be able to do the following:
 
 echo $quarterbacks[GARCIA][YARDS];
 
 and get the output of 3,100 or whatever the case may be.
 
 Thanks,
 -Jamison.
 
 
 
 -- 
 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] Creating multidimensional array dynamically

2001-12-06 Thread Dennis Moore

Not sure what you are trying to do, but try using

mysql_fetch_row ()

you can use SQL to limit your results.

/dkm


- Original Message -
From: J. Roberts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 4:08 PM
Subject: [PHP] Creating multidimensional array dynamically


 I can't seem to figure out how to create a multidimensional array from
 a database query.  Here is an example of what I was looking for, using
 NFL quarterbacks as a statistical foundation...
 A record contains the following fields:

 NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT

 Now I would like to be able to create an array with NAME as a key
containing
 the array(ATTEMPTS, COMPLETIONS, YARDS, TD, INT).

 That way I would be able to do the following:

 echo $quarterbacks[GARCIA][YARDS];

 and get the output of 3,100 or whatever the case may be.

 Thanks,
 -Jamison.



 --
 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] Function Alias: mysql()

2001-12-06 Thread Tyler Longren

Are you sure that isn't a custom function in your code (assuming you're
using somebody else's code)?

It could be an alias to: mysql_db_query()
It has the same handlers, ex:
$rez=mysql_db_query($dbname,$query);

Tyler Longren

- Original Message -
From: Dennis Moore [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 3:12 PM
Subject: [PHP] Function Alias: mysql()


I cannot seem to find in the documentation the what the function mysql() is
aliaseed to using PHP4.0.6.  Any ideas?

Example:

$rez=mysql($dbname,$query);

Everything works fine... But I want to be sure what is actually being used.

/dkm




-- 
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] Creating multidimensional array dynamically

2001-12-06 Thread jimtronic


you could also do this ...

$data = mysql_fetch_assoc($res); //this is a nice function because it 
returns an associative array. so
// if you change your SQL db, you 
wouldn't need to change your php code
// as much.

$quarterbacks[$name]= $data;


jim




Something like this?

while( list( $name, $attempts, $completions, $yards, $td, $int ) =
mysql_fetch_row($res) )
{
   $quarterbacks[$name] = array( ATTEMPTS = $attempts,
   COMPLETIONS =
$completions,
   YARDS = $yards,
   TD = $td,
   INT = $int );
}

echo $quarterbacks[GARCIA][YARDS];

Jason Lotito
[EMAIL PROTECTED]
www.NewbieNetwork.net

  -Original Message-
  From: J. Roberts [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 06, 2001 4:08 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Creating multidimensional array dynamically


  I can't seem to figure out how to create a multidimensional
  array from a database query.  Here is an example of what I
  was looking for, using NFL quarterbacks as a statistical
  foundation... A record contains the following fields:

  NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT

  Now I would like to be able to create an array with NAME as a
  key containing the array(ATTEMPTS, COMPLETIONS, YARDS, TD, INT).

  That way I would be able to do the following:

  echo $quarterbacks[GARCIA][YARDS];

  and get the output of 3,100 or whatever the case may be.

  Thanks,
  -Jamison.



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


-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey

second issue first:
one call to preg_replace...if you check out php.net/preg_replace, you'll see
what i mean...use arrays...
and as long as you have them ordered in the right way, it'll execute them in
that order, so by the time the \s replace comes up all your 'bbbnbb' will be
fixed...problem then is that those newlines would get caught by the \s and
get switched to spaces...so, if you want them to stay, then use [ ] to
represent a space instead of \s...might want [ \t] to catch tabs as well...
first issue: hard to see whats going on, but check your syntax. i just ran
this;
$text = this is some text with a newline in it right here \n  there it
was;
echo $text;
echo 'br';
echo preg_replace(/[ ]+\n+[ ]+/,\n,$text);
and it made the substitution fine.

jack

-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:56 PM
To: Jack Dempsey
Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML
output


At 11:41 AM 12/6/01 -0500, Jack Dempsey wrote:
using \n as your replacement text will do ithowever, if you want a
newline in the html, then you'll want br...

Using \n (either in single or double quotes) resulted in actual 'backslash
n' being all over my output, instead of newlines.  Hence, my inquiry.

your first pattern will be /[ ]+\n+[ ]+/ with a replacement of a single
newline...then the second will be the previous regex.check out php.net
for help with syntax and using arrays with preg_* functionsthe first
should catch all situations of a series of spaces [with at least one
newline
in between them] and substitute a newline.

Thanks, sounds about right.  The second pattern (which sometimes includes
getting rid of newlines) won't clobber the results of the first pattern?
And are you suggesting two separate calls to the preg* function?  It sounds
like you are, if each of the two patterns also has a unique replacement
string.

Thanks a lot!

- Ken
[EMAIL PROTECTED]

check out mastering regular expressions as well.its worth the money
jack

-Original Message-
From: Ken [mailto:[EMAIL PROTECTED]]

At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote:
 $t = preg_replace('/\s+/',' ',$text);

One more thing:
How do I replace with newline instead of a space?  I read through the
manuals but couldn't grasp how to do this.  \n didn't cut it.

And, more advanced -
The above replaces any groups of 2 or more blanks (newlines, spaces, tabs)
with a single blank.
Is there an easy way to replace them with EITHER a space or a newline,
depending on whether any newlines were present in the input?
I.e. bb would be replaced with b, but bnbn would be
replaced with n.



-- 
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] Display BLOB Image

2001-12-06 Thread Steve Cayford

This is what I used to do what you're trying:

header(Content-Type: image/ . $imagetype); // $imagetype is jpeg or gif
header(Content-Length:  . strlen($image));
echo $image;

Note that Type is capitalized in Content-Type, and include the 
Content-Length as well.

-Steve


On Thursday, December 6, 2001, at 02:45  PM, phantom wrote:

 I have successfully placed images (jpg,gif,png) into a MySQL database
 BLOB field, now I want to be able to pull the data out and diplay it.

 based on tutorial at
 http://www.zdnet.com/devhead/stories/articles/0,4413,2644827,00.html

 after Querying the DB I have the following lines:

 $ImgFile = mysql_result($Results,0,ImgFile); \\ image data;
 $ImgType = mysql_result($Results,0,ImgType);  \\ image type (image/jpeg,
 image/gif);
 header(Content-type: ${ImgType});
 echo $ImgFile;

 Problem: This method, when it pulls up an image, it shows no image but a
 bunch of greek code.  Example
 http://www.phantomcougar.com/strawberrypie_com/mem/show_img.php?PNum=8
 ((be sure to view page source)




 --
 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] Creating multidimensional array dynamically

2001-12-06 Thread Mike Eheler

$result = mysql_query(select NAME,ATTEMPTS,COMPLETIONS,YARDS,TD,INT 
from players where pos = 'QB');
// or whatever it takes to get just qb's
while ($data = mysql_fetch_array($result)) {
foreach ($data as $key = $value) {
// I've noticed that $data stores numeric and text keys, this 
filters the numeric ones
if (!is_numeric($key)) {
$quarterbacks[$name][$key] = $value;
}
}
}

That's how I'd do it.. a little extra work, but it keeps only the data 
you want on hand.

It's also a good idea to store the name so you can reference later if 
you want to spew forth all the qbs..

Mike

J. Roberts wrote:

I can't seem to figure out how to create a multidimensional array from
a database query.  Here is an example of what I was looking for, using
NFL quarterbacks as a statistical foundation...
A record contains the following fields:

NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT

Now I would like to be able to create an array with NAME as a key containing
the array(ATTEMPTS, COMPLETIONS, YARDS, TD, INT).

That way I would be able to do the following:

echo $quarterbacks[GARCIA][YARDS];

and get the output of 3,100 or whatever the case may be.

Thanks,
-Jamison.






-- 
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] Creating multidimensional array dynamically

2001-12-06 Thread Mike Eheler

Oops.. my bad
$quarterbacks[$data['NAME']][$key] = $value;

Mike

Mike Eheler wrote:

 $result = mysql_query(select NAME,ATTEMPTS,COMPLETIONS,YARDS,TD,INT 
 from players where pos = 'QB');
 // or whatever it takes to get just qb's
 while ($data = mysql_fetch_array($result)) {
foreach ($data as $key = $value) {
// I've noticed that $data stores numeric and text keys, this 
 filters the numeric ones
if (!is_numeric($key)) {
$quarterbacks[$name][$key] = $value;
}
}
 }

 That's how I'd do it.. a little extra work, but it keeps only the data 
 you want on hand.

 It's also a good idea to store the name so you can reference later if 
 you want to spew forth all the qbs..

 Mike

 J. Roberts wrote:

 I can't seem to figure out how to create a multidimensional array from
 a database query.  Here is an example of what I was looking for, using
 NFL quarterbacks as a statistical foundation...
 A record contains the following fields:

 NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT

 Now I would like to be able to create an array with NAME as a key 
 containing
 the array(ATTEMPTS, COMPLETIONS, YARDS, TD, INT).

 That way I would be able to do the following:

 echo $quarterbacks[GARCIA][YARDS];

 and get the output of 3,100 or whatever the case may be.

 Thanks,
 -Jamison.









-- 
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 Alias: mysql()

2001-12-06 Thread Dennis Moore

I think it is aliased to mysql_db_query().  However the documentation states
that this function is deprecated in PHP4.0.6.

Note: This function has been deprecated since PHP 4.0.6. Do not use this
function. Use mysql_select_db() and mysql_query() instead.   (www.php.net
documentation)

My question is why is my code  still working? If so, what are the
consequences of  using mysql() or mysql_db_query(0 with PHP4.0.6?

/dkm


- Original Message -
From: Tyler Longren [EMAIL PROTECTED]
To: Dennis Moore [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 4:23 PM
Subject: Re: [PHP] Function Alias: mysql()


 Are you sure that isn't a custom function in your code (assuming you're
 using somebody else's code)?

 It could be an alias to: mysql_db_query()
 It has the same handlers, ex:
 $rez=mysql_db_query($dbname,$query);

 Tyler Longren

 - Original Message -
 From: Dennis Moore [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 06, 2001 3:12 PM
 Subject: [PHP] Function Alias: mysql()


 I cannot seem to find in the documentation the what the function mysql()
is
 aliaseed to using PHP4.0.6.  Any ideas?

 Example:

 $rez=mysql($dbname,$query);

 Everything works fine... But I want to be sure what is actually being
used.

 /dkm





-- 
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] Strange problem with some includes...

2001-12-06 Thread Deron

I have this page:
http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php

If you look on the bottom, it says: Warning: Failed opening
'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for
inclusion (include_path='.:/usr/local/lib/php') in
/home/www/metalages/2002/reviews/rev-evergrey-insearchoftruth.php on line
209

The weird thing is, those paths are CORRECT and DO contain those files!
WEIRD! Has anyone had something like this happen or know a cause as to why
this would not work even if the paths it is looking for are 100% correct? If
you need to know the code in my page I'll be happy to provide, I'm stumped!

Deron
www.metalages.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] move_uploaded_file on NT Server

2001-12-06 Thread jimtronic

Hi,

I've been having a problem moving uploaded files recently.

I have a script in directory

/foo/bar

  and it has no trouble moving a file into

/foo/rex

  but it can't move a file into

/foo/zip

This is strange because I created all the folders and the scripts, so 
presumably they would have the same gid/pid as required by safe mode. 
But this all seems like *nix terminology and not NT. The folders (rex 
and zip) are as identical as I could make them.

Actually, to clarify, I created all the folders but I used different 
ftp programs to
create them. (FTP Voyager, WS-FTP, Homesite)

Anyone else have this problem?

-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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] Strange problem with some includes...

2001-12-06 Thread jimtronic


It looks like you put a full URL into your include ... which would be 
incorrect.

The syntax is ...

include(path/relative/to/your/script);

jim

-- 
Jim Musil
-
Multimedia Programmer
Nettmedia
-
212-629-0004
[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]




  1   2   >