RE: [PHP] Creating mailaccounts

2001-10-02 Thread Ralph Guzman

This is somewhat dependant on the email server (MTA) you are running and how
it is set to authenticate users. If using linux/unix, sometimes all that is
required is for you to create an account is to add the entry in the
/etc/passwd, and create a home directory. This you can easily do with a PHP
a script. Some MTAs like Postfix allow you to store your users in a mySQL
database. This in turn allows you to create a php based web admin interface
to your mysql user authentication table.

If you want other alternatives outside of php, you can look into QmailAdmin
( http://inter7.com/qmailadmin/ ) if you are using Qmail, or Webmin which is
a awesome web based administration tool ( http://www.webmin.com )

Hope this helps.

-Original Message-
From: Bjornie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Creating mailaccounts

Hi everybody!

I have a problem :/
I just said yes to a project, which includes webmail. I know how to send
mail and how to receive mail with imap, but can I in any way create a
mailaccount on the server by using PHP? Or should I use any other language
like Java/JSP or ASP (with a component)?`

Hilfe! :)



--
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] Re: Free hosts, or Temp account...some thing

2001-10-02 Thread Philip Olson


sounds like it's time to repartition your HD, or get a new HD, or linux
box ... install a flavor of linux and try it out locally.  in the long
run, this will be the most fun anyways :-)  

Regards,
Philip Olson


On Wed, 3 Oct 2001, ReDucTor wrote:

> But that doesn't have an option to search for only free ones...or even in a
> specific price range
> - Original Message -
> From: "Richard Lynch" <[EMAIL PROTECTED]>
> To: "Reductor" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 03, 2001 12:47 PM
> Subject: Re: Free hosts, or Temp account...some thing
> 
> 
> > http://php.net/hosts.php or http://hosts.php.net or somesuch is a database
> > of hosts, some free, some cheap...
> >
> > --
> > WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> > [EMAIL PROTECTED]
> > Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> > Volunteer a little time: http://chatmusic.com/volunteer.htm
> > - Original Message -
> > From: Reductor <[EMAIL PROTECTED]>
> > Newsgroups: php.general
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 26, 2001 5:36 AM
> > Subject: Free hosts, or Temp account...some thing
> >
> >
> > > Hey,
> > >   I just made a kewl little script, that i want to test out it requires
> > GD,
> > > it doesn't appear to work on my Windows machine, but i think it might
> work
> > > better on a Unix/Linux machine, so does anyone know of a free web host,
> > that
> > > supports php, gd, or someone that can open an account for about half an
> > hour
> > > or so, for me to test out my script, to see if it is my OS that is
> causing
> > > these problem
> > >- James "ReDucTor" Mitchell
> > >
> >
> 
> 
> -- 
> 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] Re: Detecting user logout.

2001-10-02 Thread nayco

Well, I personnally use a SQL db into which I insert some information about
the connected users (IP,LOGIN if member or "visitor" if not, MD5 session
id -'cause I cannot use PHP4 sessions, my provider's got php3 - and unix
epoch DATE).
Each time a user sees a page, this user's DATE field is updated in the db,
and rows where DATE is older than 10 minutes are deleted, so inactive
members are not displayed anymore in the "connected members" list 
As well, I use this table to implement sessions to authenticate users, using
cookies and MD5 strings.

If you want a script  Tell me !!!


(°-Nayco,
//\[EMAIL PROTECTED]
v_/_ http://nayco.free.fr


- Original Message -
From: Alexander Deruwe <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 3:21 AM
Subject: Re: [PHP] Re: Detecting user logout.


| -BEGIN PGP SIGNED MESSAGE-
| Hash: SHA1
|
| On Tuesday 02 October 2001 18:11, tonyz wrote:
| > why bother charting logouts.  use cookies that expires so you know that
| > they will eventually lose access and need to login again.
|
| Yes, but then I can't show a list of logged in users (for administration
| purposes).
|
| Alexander
|
|
| -BEGIN PGP SIGNATURE-
| Version: GnuPG v1.0.6 (GNU/Linux)
| Comment: For info see http://www.gnupg.org
|
| iD8DBQE7umgFySJLuRUx8aQRAo7+AJkB0GD6i+0mNIfsaoakw/WP1klyagCfZ8l6
| QB3ijCXziMhlhHyjDBgu/rM=
| =Tlms
| -END PGP SIGNATURE-
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| To contact the list administrators, e-mail: [EMAIL PROTECTED]
|
|
|



-- 
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] named anchors and query strings

2001-10-02 Thread Philip Olson

Here's an example :

  http://www.php.net/manual/en/configuration.php?foo=bar#ini.include-path

It works.

Regards,
Philip Olson



On Tue, 2 Oct 2001, Ralph Guzman wrote:

> Never had to do this, however I would think the correct way to be:
> 
> 
> 
> try it.
> -Original Message-
> From: Scott Mebberson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 4:53 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] named anchors and query strings
> 
> Hi Guys,
> 
> How do you reference both a named anchor and a query string in a link? i.e.
> link text I am not sure if this is
> even possible?
> 
> thanks
> 
> Scott
> 
> 
> 
> --
> 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] retrieving info from a berkley db 3.0.11 ldbm databse..

2001-10-02 Thread Sovan_Shatpathy



Hi all ...
   I am an absolute newbie to php ... Here i am looking at wririting
a script in php which can do a search in my berkley db 3.0.11 database  and
retrieve the required information ...


In order to do the same which set of functions are supported .. is it that the
functions mentioned with dbm like dbmopen etc do the trick ...

Any guidance will be appreciated ...

Thanks and regards
Sovan



-- 
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] named anchors and query strings

2001-10-02 Thread Ralph Guzman

Never had to do this, however I would think the correct way to be:



try it.
-Original Message-
From: Scott Mebberson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 4:53 PM
To: [EMAIL PROTECTED]
Subject: [PHP] named anchors and query strings

Hi Guys,

How do you reference both a named anchor and a query string in a link? i.e.
link text I am not sure if this is
even possible?

thanks

Scott



--
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: Sessions Variables and refresh pages

2001-10-02 Thread Philippe Saladin

is your web server a Microsoft one (IIS, PWS, ...) ?
I'm not sure, but I think there is a known problem with them if you set a
session variable and do a redirect in the same page.
Can anyone confirm this ?

Philippe


"Karina Gómez Salgado" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Hello, this is the fourth time i wrote expecting some answer from
> somebody with more experience than me.
>
> I have a protected page , i ask for user and pass and save these
> variables as session variables, with session_register.
>
> When the user submit this page.. this variables are registered, in the
> next page, i do some queries using a substr of REQUEST_URI and
> displaying 2 selects results and 1 update.
>
> When i remove the access-control page all works fine, but when i set the
> session vars, the first time i see the results, i need to refresh/reload
> the web page to show the correct results of the queries, otherwise the
> page source shows "data missing... post operation... refresh..."
>
> Please, how can i avoid the manual refresh ?
>
> Karina Gomez
>



-- 
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+apache 2

2001-10-02 Thread Stig Venaas

On Wed, Oct 03, 2001 at 01:32:13AM +0200, Jiri Mikulas wrote:
> sapi_apache2.c: In function `php_input_filter':
> sapi_apache2.c:248: too many arguments to function `ap_get_brigade'

I haven't looked that much at the code, you could perhaps try to
simply remove the last parameter... Not sure how well that would
work. I build with 2.0.18, I then had to remove the last parameter
in the ap_save_brigade call. Perhaps the best thing is to get the
latest from http://dev.apache.org/dist/.

Stig

-- 
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: Free hosts, or Temp account...some thing

2001-10-02 Thread ReDucTor

But that doesn't have an option to search for only free ones...or even in a
specific price range
- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "Reductor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 12:47 PM
Subject: Re: Free hosts, or Temp account...some thing


> http://php.net/hosts.php or http://hosts.php.net or somesuch is a database
> of hosts, some free, some cheap...
>
> --
> WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: Reductor <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 26, 2001 5:36 AM
> Subject: Free hosts, or Temp account...some thing
>
>
> > Hey,
> >   I just made a kewl little script, that i want to test out it requires
> GD,
> > it doesn't appear to work on my Windows machine, but i think it might
work
> > better on a Unix/Linux machine, so does anyone know of a free web host,
> that
> > supports php, gd, or someone that can open an account for about half an
> hour
> > or so, for me to test out my script, to see if it is my OS that is
causing
> > these problem
> >- James "ReDucTor" Mitchell
> >
>


-- 
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: ImageColorAt()

2001-10-02 Thread ReDucTor

The script had been tested on a few *nix system, they all worked, hell see
the threads that have kewl script inside them :D

- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: "Reductor" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 12:40 PM
Subject: Re: ImageColorAt()


> What values are you passing to it?...
>
> Be sure you have a valid image before you call ImageColorAt and that you
are
> passing integers for the x/y values.
>
> If it still crashes, follow the directions at http://bugs.php.net to get a
> backtrace...
>
> --
> WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: Reductor <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, September 25, 2001 4:42 PM
> Subject: ImageColorAt()
>
>
> > ImageColorAt() causes my php to crashI want to capture the color of
a
> > pixel...
> >- James "ReDucTor" Mitchell
> >
>


-- 
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: php4.0.6 over W2000 + SQLServerEnterprise2000

2001-10-02 Thread Richard Lynch

Far too many variables for any meaningful numbers...

RAM?  HD?  CPU? DBsize?...

In short, you're going to have to try it out and see for yourself, really.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: 
Newsgroups: php.general
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Sent: Friday, September 28, 2001 1:51 AM
Subject: php4.0.6 over W2000 + SQLServerEnterprise2000


hi,
   i would like to know if there is any stadistic about how does php work
under
W2000Server and SQLServer Enterprise 2000.

any idea?

thanks anyway,

Marcos Lloret




-- 
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! linux 7 problems

2001-10-02 Thread rg

hi,

i installed php4 onto my linux 7.0 system along with apache and mysql.

the apache and mysql work.

once i did 'make install' for php, i changed the http.conf file in
apache so that the
AddType lines were uncommented out and the file extensions should be
recongized.

i've done this on windows and it worked.

now, however, when i try to path to a .php file like localhost/test.php,
it tries
to save the file to disk instead of executing the code.

anybody know why?

thanks,

rg


-- 
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: Having trouble using get_browser() function

2001-10-02 Thread Richard Lynch

#1.  Did you download a nice big browscap.ini instead of that empty one that
comes with PHP?...

#2.  Are you aware that $HTTP_USER_AGENT has the Browser in it, without the
complications of get_browser and browscap.ini?

#3.  You do realize that get_browser() only tells you what a browser is
theoretically capable of, not what the user has enabled/disabled...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: IVáN Milanez Castellanos <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 7:21 PM
Subject: Having trouble using get_browser() function


> Hi, does anyone here know how to correctly configure php.ini to be able to
> use browscap.ini in linux so that I can get the get_browser() function to
> work properly, I need it because I'm building a statlog from scratch for
my
> web site.
>
> Any help will be apreciated.
>
> Iván
>
> P.S. Sorry about my spelling but english is not my native language.
>
>


-- 
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: image upload problems (diff. file size after upload)

2001-10-02 Thread Richard Lynch

#1  Upgrade PHP.

#2  Try comparing the files in a text-editor.

You may be able to strip out the extra stuff at the top as an interim
measure.


--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Boni Ion <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 29, 2001 6:35 PM
Subject: image upload problems (diff. file size after upload)


> image for upload: admin_logo.gif size: 1665 bytes
>
> image after upload ON SERVER: admin_logo.gif size: 1692 bytes WHY ???
> and I can't see it in browser???!
>
> pls help ...
>
> php version:4.04pl1
> apache server:1.3.12
> so:red hat 7.0
>
> this is my code :
>
> /*upload.html */
>
>  
>  
>  Upload a File
>  
>
>  
>
>  Upload a File
>
>   action="do_upload.php">
>
>  File to Upload:
>  
>
>  
>
>  
>  
>
> 
>
>
> /* do_upload.php"
>  
>  if ($img1_name != "") {
>
>  copy("$img1", "/tmp/$img1_name")
>  or die("Couldn't copy the file!");
>
>  } else {
>
>  die("No input file specified");
>  }
>
>  ?>
>
>  
>  
>  Successful File Upload!
>  
>
>  Success!
>
>  You sent: , a 
>  byte file with a mime type of .
>
>  
>  
>
>
>
> --
>  Boni Ion
>  Intersat-Telecom / www.intersat-telecom.ro /
>  Constanta, Romania, Europe
>  Phone: +40 41 691230


-- 
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: ftp

2001-10-02 Thread Richard Lynch

Read php.ini

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Eduardo Kokubo <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 2:39 PM
Subject: ftp


Hi,
I'm trying to upload some files using PHP, but I'm limited to small files
and I don't know why. Could anyone please help me with this?





-- 
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: problem about ereg function

2001-10-02 Thread Richard Lynch

You really shouldn't be storing a PHP variable in your database...

Too easy for a hacker to get some bad PHP into it.

You could mess with http://php.net/eval maybe.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Mydata <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 3:15 AM
Subject: problem about ereg function


> hi,
> I am using ereg funtion to deal with data submmited by form
> detail shown below:
>
> I am using a form to submit some html code include image path code
> In submitted php page, I want to replace image path code in html code
> (submitted by last page' form), unfortunately the image path code include
> some php variable (eg "imag src ='$phpvaribe'"),I want to use ereg
function
> to replace image path code by the value I need. but when I use
eregi_replace
> fuction try to replace it . but browser show me parsing error . I don't
know
> how to use eregi_replace() when php varible in string which needed to be
> replaced. Could someone help me. My error code show below:
>
> MY ERROR CODE:
>
> eregi_replace("^\"(.)*{$img1_name}\"$","$replacestring",$content)
>
>
> remark:the $img1_name is the php variable in the string which needed to be
> replaced
>
>


-- 
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: PHP and GD

2001-10-02 Thread Richard Lynch

What value is $im?  Is it a valid image?

Check error codes.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: J. Anderson Scarbrough <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 9:59 AM
Subject: PHP and GD


> I am trying to create PNG images on the fly
> using the following code.
>
> if(file_exists($key)) {
> $diff =  time() - filemtime($key);
> if($diff >= 600) {
>  unlink($key);
> }
> }
> $im = ImageCreateFromPNG($value);
> $isCreated = imagePNG($im, $key, '80'); file://error occurs here
>
> I recieve the following error on the line indicated above.
>
> imagepng: unable to open '/images/image1.png' for writing
>
> When I run phpinfo it shows PHP as begin copiled with GD support with PNG
> enable on GD (see below)
>
> GD Support enabled
> GD Version 1.6.2 or higher
> PNG Support enabled
> WBMP Support enabled
>
> The only other issue i could think of was permissions, but i have changed
> permissions to "rwx" all the way across for the directory and all files
> inside the directory.
>
> Any one have any ideas???
>
> Thanks.
>
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>


-- 
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: fopen !!!

2001-10-02 Thread Richard Lynch

If you are worried about this, you should probably use a database which will
take care of this for you...

It is possible to use http://php.net/flock to lock the file, pretty much
like the example in the manual, and then 4999 users will have to wait until
the one editor is finished...

You'll still need to be sure that those 4999 users then get the most current
version before they start editing, so you'll need to check what they have
now with what's in there before you let them blindly replace it...

You're *REALLY* better off doing that with a database.

*NOTHING* will truly allow you to do what you describe easily...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Kmarada <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 1:57 PM
Subject: fopen !!!


> is it possible to use fopen to open 5000 files differents simultaneous and
> edit it simultaneous ?
>
> I have one file. if four user edit it simultaneous what happen? there is
> something to lock the file until one finish to edit?
> I read at manual something like flock how can i use it?
>
>
>
>
>
>


-- 
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: How to install PHP to do the function mail work

2001-10-02 Thread Richard Lynch

Error messages?

Settings in php.ini?

Windows?  Un*x?  OS X?

Source code?

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Marcela <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 2:09 PM
Subject: How to install PHP to do the function mail work


I want to know, how to install PHP 4.0.6 and do the function mail work. I
tried :

 ./configure  --with-mysql  --with-apxs  --with-locale  --with-pgsql

But the program that have a form to be sent by mail didn't work.

  Please help me.



-- 
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: execute remote CGI without redirect

2001-10-02 Thread Richard Lynch

http://php.net/fopen
Use the URL of their site.
Or even http://php.net/file

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Webmaster <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 3:17 PM
Subject: execute remote CGI without redirect


> How do you call for the execution of a CGI on a remote machine
> without redirecting the output of that CGI to the browser?
> I basically need to send form info to a CGI of a marketing
> group, while keeping the browser on my site.
>
> 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] Re: ereg expr guru

2001-10-02 Thread Richard Lynch

http://php.net/strtok

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Dave Vanauken <[EMAIL PROTECTED]>
Newsgroups: php.general
To: PHP General Mailing List <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 10:05 AM
Subject: ereg expr guru


> text file
>
> [other stuff]
> #%start dynamic %#
> #%start site [identifier] %#
> [contents]
> #%stop site [identifier] %#
> #%start site [identifier] %#
> [contents]
> #%stop site [identifier] %#
> #%start site [identifier] %#
> [contents]
> #%stop site [identifier] %#...
> #%stop dynamic %#
> [other stuff]
>
> already have the ability to parse out all the dynamic stuff (stuff between
the
> start and stop dynamic tags).  Once we have the string of all the sites,
am
> having problems getting that to parse out into a usabe array.
>
> need to parse the content between the "dynamic" tags and return an array
with
> [identifier] => [contents]
> [identifier] => [contents]...
>
> ideas?
>
> Dave
>


-- 
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 please Sybase Result Paging.

2001-10-02 Thread Richard Lynch

You probably need to use a "cursor" -- Check out Sybase docs for how they
work.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Veniamin Goldin <[EMAIL PROTECTED]>
Newsgroups: php.db,php.general
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 7:38 AM
Subject: help please Sybase Result Paging.


Hello Group,

I could not find a solution on Sybase Results paging.

Can anybody help me please?

Thank you.



-- 
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: time limt

2001-10-02 Thread Richard Lynch

file() won't let you set the time-out...

But http://php.net/fopen will.


--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Roel <[EMAIL PROTECTED]>
Newsgroups: php.general,php.windows,php.dev
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 2:12 PM
Subject: time limt


> Hi,
>
> set_time_limit() and max_execution_time() wont work on this script.
>
> $url  = "http://www.example.com;
> $file = implode('',file($url));
> if(!$file)
>  {
>   print("error");
>  }
>
> My question is how can I make the script time out if the server where I
want
> to connect to is busy. Now the script will time out after 30 (default)
> seconds. I want to connect, if the server is busy then a message "server
> busy" should appear but not after 30 seconds!
>
> I'm not working local so I can't change the default 30 sec.
>
> Thanks very much!
> Roel
>
>


-- 
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: Sockets on FreeBSD Mac OS X

2001-10-02 Thread Richard Lynch

Wild Guess:

Your OS is configured to not allow "nobody" to bind port 12345, and PHP is
running within Apache as "nobody"...

Check out what sort of limitations are put upon users binding ports...

If I was a real Un*x guru, I'd even know what command tells you that... :-|

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Devon Weller <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 11:02 AM
Subject: Sockets on FreeBSD Mac OS X


>
> Has anyone successfully gotten socket functions to work with FreeBSD?
> More specifically, Mac OS X?
>
> I always get the following error: Can't bind to port 12345, exiting.
>
> The script works fine on Linux machines.  Is there a patch in the works
> for FreeBSD?  If so, I would be very happy.
>
> --
> Devon Weller
> [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: Incorrect output or RSYNC with exec();

2001-10-02 Thread Richard Lynch

Wild Guess:

http://php.net/clearstatcache

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Christian Sylvestre <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 4:55 AM
Subject: Incorrect output or RSYNC with exec();


> Hello. I have a weird problem. I have apage where a user can see the
> different files & directories between 2 servers using RSYNC.
>
> However files deleted on the source server are not listed in the output of
> exec() (I am using the --delete parameter with the RSYNC command). All of
> the rest of the output is OK.
>
> If I try the command direclty from the command line I will have the list
of
> files that need to be deleted (under Solaris 2.7).
>
> And the funny thing is that rsync is working fine, i.e. it will sync and
> delete the source and the target server but it will never output the list
of
> files to be deleted in the exec output...
>
> Is there some kind of filetering on the word delete in the PHP exec
command
> output???
>
> Any idea?
>
> Cheers,
>
> Christian
>
> [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: Problems with virtual() => request execution failed

2001-10-02 Thread Richard Lynch

virtual doesn't work under CGI.

You need to use http://php.net/exec or system or whatever.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Paulo Parola <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 5:27 PM
Subject: Problems with virtual() => request execution failed


> Hi,
>
> I am having trouble porting an application to another server. I have to
call
> an external Perl script through the use of the function 'virtual()' but on
> the new server I get the following error:
>
> Warning: Unable to include './cgi-bin/banners/ads_business.pl' - request
> execution failed in /usr/local/etc/httpd/vhosts/business/index.htm on line
> 61
>
> This was the original code which ran perfectly, but not at the new server.
>
> I tried every kind of path with no success. Any hints?
>
> TIA,
> Paulo
>
>
>


-- 
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: Installation Problem :PHP 4.06 + NT4 Server + Service Pack 6

2001-10-02 Thread Richard Lynch

Which DLLs are you loading?

I think many of them have not been made thread-safe by the volunteers who
wrote them...

Start with no DLLs loaded, and then add them one-by-one and pound on the
server.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Kiat Kin <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 3:49 AM
Subject: Installation Problem :PHP 4.06 + NT4 Server + Service Pack 6


> Anyone successfully doing the installation on following combination.
>
> PHP 4.06 (ISAPI) + NT4 Server + Service Pack 6
>
> Installation is run smooth but it seem that the php engine down after
> operate for a minute only.
>
> TIA,
> Kin
>
>


-- 
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: images no appearing

2001-10-02 Thread Richard Lynch

Older versions of GD will do GIF, but not JPEG, and vice versa...

What versions of GD are on the two servers?

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Adrian D'Costa <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php general list <[EMAIL PROTECTED]>
Sent: Monday, September 24, 2001 12:05 AM
Subject: images no appearing


> Hi,
>
> I wrote a php script to create a dynamic graph (image/jpeg).  On my
> development system the image appears on my website it gives Image/Jpeg
> support not compiled.
>
> Below are the config settings:
>
> My system:
> Configure Command ^@ './configure' '--prefix=/usr'
>  ^@'--with-config-file-path=/etc' '--disable-debug'
>  ^@'--enable-pic' '--enable-inline-optimization'
>  ^@'--enable-sockets' '--with-apxs=/usr/sbin/apxs'
>  ^@'--disable-static' '--with-exec-dir=/usr/bin'
>  ^@'--with-regex=system' '--with-gd'
>  ^@'--with-jpeg-dir=/usr' '--with-png' '--with-gdbm'
>  ^@'--enable-debugger' '--enable-magic-quotes'
>  ^@'--enable-safe-mode' '--enable-track-vars'
>  ^@'--enable-ftp' '--with-mysql' '--with-xml'
>  ^@'--enable-trans-sid'
>  ^@'--with-readline=/usr/include/readline'
>
> My webserver the info can be got from vvmm.net/phpinfo.php.
>
> They my provider has given --with-jpeg-dir=/usr/lib still the image does
> not appear.  Even in the gd section it does not give JPG Support
> enabled.  Only give.  Right now I have changed the program to work with
> gif.  My question, why not Jpg??
>
> Adrian
>
>


-- 
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: Strange File write Problem

2001-10-02 Thread Richard Lynch

What's in $free?...

How about checking some error codes?

http://php.net/fputs

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Gary <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 23, 2001 4:21 PM
Subject: Strange File write Problem


> The code below works on every server that I have tried it on, till now.
> On this server it will create the file name but will not write to it. If
> you create a file and upload it, it will erase everything but not write.
> Any Ideas why?
>
> 
>$filename = "/path/to/file/free.txt";
>
>   $handle= fopen($filename,'w+');
>
>  fputs($handle, $free);
>
>  fclose($handle);
> ?>
>
> TIA
> Gary
>


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

2001-10-02 Thread Richard Lynch

"nobody" can't su to a real user without their password, and su requires a
REAL TTY to get in a password, almost for sure, and you just can't do it
that way...

Make a nobody-executable shell script to do grabdb...

Be aware that then anybody on your server can do grabdb whenever they
want...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Armando Cerna <[EMAIL PROTECTED]>
Newsgroups: php.general,php.db
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 9:07 PM
Subject: HELP!


> I have the following script  does anyone see anything wrong with this as
to
> why it wouldn't be working
>
> It should su to mp then execute the command but I may have missed
something
> is \n ok for a carrige return?   I did it like this because as nobody the
> command couldn't be executed and failed and it won't let me su to nobody.
> Well anyway here is the script
>
> 
> $permission = popen ("su mp -c grabdb","w+");
> sleep(2);
> fwrite($permission,"secret\n");
> pclose($permission);
>
>   if ($permission) {
> print "All done Sir.  Shall I return you?";
>
>   } else {
> print "$files";
> print "It's ok you'll get it working. =)";
>   }
>
>
>
> ?>
>
>
> It calls the bash script grabdb which contains the following:
>
> updatemp ; importmp ; echo "All Complete Sir"
>
>
> Now updatetemp contains the following
>
>
> smbclient file://machine/c -I 192.168.0.4 -U armando%secret -D a1 -c 'lcd
/tmp/dbf
> ; prompt ; mget cus.dbf ; quit'
>
>
>
> Once that is done it moves on to importmp
>
> cd /tmp/dbf ; dbf2mysql -d maria -t customers -s ID=row_id -c -P secret-U
> user CUS.DBF
>
> And then quits.  Now mind you this works beautiful in a shell on its own
but
> once PHP tries to do it with the script mentioned above it doesn't work
>
>
> Thanks for any help,
> Armando
>
>


-- 
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: All domains

2001-10-02 Thread Richard Lynch

You can interface to various "WhoIs" servers/forms, starting on some .ru
sites, read in those sites looking for other sites with those TLDs...



--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Oòkó‰öårzòËèkó <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 23, 2001 3:03 PM
Subject: All domains


> Sveiki, php-general,
>
>   I want to get all doamins, that end with ru, lv, ch or lt. Is there
>   any possibility to do that?
>
>
> 
>  2001.09.23, sekmadienis
>  Marius Pertravèius
>  iCQ: #125733984
>  [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: scoping: can someone explain to me if this should/should not work?

2001-10-02 Thread Richard Lynch

You'd have to show the processing in getDomain for anybody to guess...

Which values of $SERVER_NAME make it crash?...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Doug Farmer <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 5:26 PM
Subject: scoping: can someone explain to me if this should/should not work?


> The following code seems to work in general but everyone once in a while
I'm
> getting a segmentation fault.  Can someone explain to me why this would be
> intermittent and/or whether or not it should work?
>
> function getDomain($serverName)
> {
>  $result = $serverName;
>  // some processing to result occurs here
>  echo "here 3: $result";
>  return $result;
> }
>
> function test()
> {
> global $SERVER_NAME;
> echo "here 1";
> $domain = getDomain($SERVER_NAME);
> echo "here 2";
>
> }
>
> When I get a segv, I get the output:
>
> here 1
> here 3: 
>
> The "here 2" is not displayed.  I thought that this would a return by copy
> and not have an issue.
>
> - doug
>
>


-- 
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 and PHP

2001-10-02 Thread Richard Lynch

You can almost for sure alter the XML doc and write it out again...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Augusto cesar castoldi <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 6:54 AM
Subject: XML and PHP


> Can I use the PHP XML functions to add and remove data
> from a XML file?
>
> It's possible? Or the PHP XML Functions are only for
> read a XML file?
>
> regards,
>
> Augusto
>
>

___
> Yahoo! GeoCities
> Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo!
GeoCities. É fácil e grátis!
> http://br.geocities.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] Re: Restrict where PHP is Usable?

2001-10-02 Thread Richard Lynch

httpd.conf
php_value Engine Off or somesuch...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Matthew Walker <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 4:30 PM
Subject: Restrict where PHP is Usable?


> I've seen this done before on servers, but I'm not sure how to do it.
>
> Is there a way to restrict PHP to certain directories, so that it can
> only be used by files within those directories?
>
> For example: I'm starting a web page hosting service, and I'd like to
> make it so that most users can't use PHP. They'll have to pay a (very
> small) monthly fee to have access to it. This is partly as a very loose
> security measure, so that not everyone has access to PHP.
>
> --
> Matthew Walker
> Ecommerce Project Manager
> Mountain Top Herbs
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001
>
>


-- 
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 But Urgent

2001-10-02 Thread Richard Lynch

PHP and MySQL go together hand-in-hand to do what you want.

ASP and PHP are equally easy for what you want, but PHP has way more
features and 3rd party support, and runs on a stable platform...

If you plan on sticking with Win98/2K, though, and never expect to move to a
stable Un*x environment, it's a toss-up.

Check out a few scripts and see how they look to you.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Radith <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 9:41 PM
Subject: Newbie But Urgent


> HELLO,
>
> I am finished working with the html and css levels and want to take my
> design to the next level. I realize that JS is getting outdated and many
new
> technologies have started popping up. I do want a database driven site. I
am
> running Windows and have both the 98 and 2000 versions. There's one main
> thing i want to accomplish w/ either php or asp:
>
> I want a system where users can join our site by means of filling out a
form
> and submitting it, which generates the username and password to be placed
> into a databse (mayb other info.). Then the next time they visit the site
> they can login via the database.
>
> Now i know this is possible with both php and asp, but which is easier.
Also
> i have a plan of using php and mysql, and learning these by means of this
> book: PHP and MySQL Web Development. (ISBN: 0672317842)
> Although 1 book may cover both technologies, i am simply looking for
> simplicity, which technology will be easier to accomplish this task.
>
> Thanx for all ur 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: Please help - debug.log

2001-10-02 Thread Richard Lynch

>I've attached the debug.log which was created while I was installing PHP
>onto my 400MHz Pentium PC, running Linux (and DOS on another partition)
with
>a MySQL database and an Apache web server.
>Please can you help.
>When testing to view a PHP file requesting phpinfo( ) on the Netsacpe
>browser, nothing comes up as it should.

Attachemnts are stripped.

Try opening up a DOS prompt and doing cd to the PHP directory, and then:

./php -q c:\\whatever\\dir\\phpinfo.php

Then you know at least the your PHP.exe works...

Next, try configuring PHP as a CGI using Alias and Action in httpd.conf  --
It's less problematic than the Module version.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
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: Php-Gtk.....does it work ever?

2001-10-02 Thread Richard Lynch

I've seen it work in a demo, so it must...

You probably should try the [EMAIL PROTECTED] mailing lists...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Dhaval Desai <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 11:51 AM
Subject: Php-Gtk.does it work ever?


> Hi!
>
> I downloaded the Php-Gtk files for Windows 32 Binary
> and I am trying to make it work on Windows 98. I
> already have phpdev2 with Apahce, Mysql and Php
> installed
>
> phpdev2 is in C:\phpdev2
>
> 1. Now I downloaded php-gtk and I copied the files
> from php4 folder to php directory.
> 2. Then I copied the files from Winnt directory to
> C:\WINDOWS\SYSTEM32
> 3. I didn't copy php.ini file anywhere because...
> C:\phpdev2\php\ already had a php.ini file.
> 4. Copied the sameples to the same folder as that of
> Php C:\phpdev2\php\samples.
>
>
> Now When I try to run the a sample file.eg.
> C:\phpdev2\php\php_win.exe -q
> C:\phpdev2\php\samples\hello.php
>
>
> It doesn't do anything...it just comas back to the
> command line in Dos Prompt
>
> Is the thing installed properly..? How can we check it
> and if it is installed why isn't the thing showing any
> results...
>
>
>
> Please reply to me...coz I am just making a beginning
> with Php-Gtk
>
>
>
> Thank You
>
>
> Greetings!~
> Dhaval
>
> __
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger. http://im.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] Re: sock prob

2001-10-02 Thread Richard Lynch

Like, does Windows even do those kind of low-level sockets?...

If so, you can file a bug report at http://bugs.php.net

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Sagar N Chand <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php <[EMAIL PROTECTED]>
Sent: Saturday, September 29, 2001 11:08 PM
Subject: sock prob


hi,

the socket() function is not working on win2k. any help?

thanx,
/sagar



-- 
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: Bug #13451 Updated: no images ;( (fwd)

2001-10-02 Thread Richard Lynch

Check the output from your configuration...

Various files such as config.log and config.cache and whatnot may have
specific info about GD and/or its failure to get included in your
compilation.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Marcin Liwinski <[EMAIL PROTECTED]>
Newsgroups: php.install,php.general
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 8:42 AM
Subject: Bug #13451 Updated: no images ;( (fwd)


>
> after upgrade from version 4.0.4pl1 to 4.0.6, i cannot generate images ;(
> i don't know why: maybe i've missed some install or configuration steps,
> but i don't thing so. under windows when i did: php.exe image.php >
> image.jpg,  i've got an image, but when the same script is run from under
apache
> - it doesn't work ;(
>


-- 
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: Globals and HTTP_SESSION_VARS variables.

2001-10-02 Thread Richard Lynch

You should be able to compare $var with $HTTP_SESSIN_VARS['var'] to figure
out what you want...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 3:29 PM
Subject: Globals and HTTP_SESSION_VARS variables.


> Hi,
>
> Is here anyway to make a variable like $var not the same than
> $HTTP_SESSION_VARS[var], when register_globals=1?. (where $var is in the
> script scope).
>
> I read in a changelog that this is relatively recent (make $var the same
> than $HTTP_SESSION_VARS[var]).
>
> Thank you.
>
> Regards,
> Rodolfo.
>


-- 
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: Reading STDIN from within the program

2001-10-02 Thread Richard Lynch

http://php.net/fopen

--
If filename is one of "php://stdin", "php://stdout",
or "php://stderr", the corresponding stdio stream will
be opened. (This was introduced in PHP 3.0.13; in
earlier versions, a filename such as "/dev/stdin" or
"/dev/fd/0" must be used to access the stdio streams.)
--

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Ashish.Natani <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 1:34 PM
Subject: Reading STDIN from within the program


> Hi,
> I wish to read the message string posted by my form into a php program.
>
> I tried to use the environment variable $HTTP_RAW_POST_DATA but this did
not contain any value.
>
> Can someone help me with reading the STDIN input from within the php
program ?
>
> Thanks and Regards,
> Ashish Natani
> Get Your Private, Free E-mail from Indiatimes at
http://email.indiatimes.com
>
>  Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from
http://www.planetm.co.in
>


-- 
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: MySQL - Selecting Unique Entries

2001-10-02 Thread Richard Lynch

I've never heard of select distinct not working...

Is that the exact SQL you are using?

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Tom Churm <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, September 28, 2001 7:29 AM
Subject: MySQL - Selecting Unique Entries


> hi,
>
> i need to weed out all duplicate entries in a select statement.
> i've done research and have discovered 2 different possible solutions
> for this.  i'd like to know which one is better to use?
>
> after trying them out on MySQL, Select Distinct appears to be highly
> unreliable.  i get somewhat better results when i use Select Distinct
> trim(seminar_name), but this Group By solution seems to work better:
>
> SELECT seminar_name
> FROM student_table GROUP BY seminar_name
>
> SELECT DISTINCT seminar_name
> FROM student_table
>
> thanks for the advice,
>
> tom


-- 
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: Warning: offset not contained in string

2001-10-02 Thread Richard Lynch

You probably have a missing ' mark...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Pavel Kharitonov <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 11:50 PM
Subject: Warning: offset not contained in string


> Hi everybody,
>
> I'm very new to this list, so please bear with me if I break the
"unspoken"
> rules of the list (and let me know, of course:)
>
> I have a question: did somebody encounter this warning before:
> "Warning: offset not contained in string ***myscript.php on line xxx"
>
> line xxx contains the following code:
> $query.= " WHERE ses_id=$sid";
>
> This warning started happening after I added some ' (single quotes) to the
> string $query somewhere else at the top. At least that's the best reason I
> can come up with.
>
>
> TIA
> Sincerely,
> Pavel Kharitonov
> Project Manager
> Intechnic Corporation
> http://www.intechnic.com
> Phone: (847) 816-1231
>


-- 
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: Problem with file permissions within my PHP document when running on an Apache web server

2001-10-02 Thread Richard Lynch

You'll need to use suExec to wrap around PHP.

http://apache.org will have docs on suexec.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Jack A. <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 10:14 PM
Subject: Problem with file permissions within my PHP document when running
on an Apache web server


> I'm having a problem with file permissions within my PHP document when
> running on an Apache web server.
>
> When accessing a perl script or an executable from the cgi-bin directory
the
> web server runs the script as the correct user and group id.  However then
a
> PHP document is accessed within the same directories as any of my other
HTML
> documents the web server runs the PHP document as the user "nobody".  I
> found this out by calling the PHP function posix_getuid() within this PHP
> document.  The problem is that the data files that are own by my account
are
> not accessible to my PHP document since PHP is running as user "nobody".
I'
> m aware that the Apache web server runs as user "nobody" then switches to
> the owner of the cgi-bin directory when executing a script, so how do I
get
> the web server to switch to user "myaccount" when executing a PHP document
> from the root directory of the web account including its subdirectories?
>
> The following is my PHP test documents:
> On this server user id 99 is "nobody".
>
> =
> File test.php
> =
> 
> 
> PHP Test
> 
> 
>  echo PHP_VERSION;
> echo "";
>
> $uid = posix_getuid();
> $gid = posix_getgid();
>
> echo "UID=$uid GID=$gid ";
>
> echo "Opening for read index.html";
> $file = fopen ("index.html", "r");
> if($file != 0) fclose($file);
>
> echo "Opening for write new.html";
> $file = fopen ("new.html", "w");
> if($file != 0) fclose($file);
> ?>
> 
> 
>
>
> =
> Output from the web browser
> =
> 4.0.6
> UID=99 GID=99
> Opening for read index.html
> Opening for write new.html
>
> Warning: fopen("new.html","w") - Permission denied in
> /www/myaccount/test.php on line 20
>
>
>


-- 
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 - error loading PHP into Apache

2001-10-02 Thread Richard Lynch

You probably don't need mm if you're not using SSL...

It's also possible that PHP isn't finding MM properly without jumping
through whatever hoops it does for SSL...

At any rate, you didn't get MM, I guess...

You might have ended up with a lib_mm.so that you can AddModule in
httpd.conf, but I don't think so...  Check in PHP's "lib" (or is it ".lib"?)
directory...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Michael Champagne <[EMAIL PROTECTED]>
Newsgroups: php.general
To: PHP General Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 10:48 AM
Subject: Help - error loading PHP into Apache


> Help!
>
> I'm trying to install a development Apache + PHP environment on the same
> machine as our test environment (Apache + mod_SSL + PHP).  I followed the
same
> procedure that I used to set up our test system (which works fine) and
> everything compiles and builds fine.  However when I try to start up
Apache I
> get:
>
> Syntax error on line 236 of /usr/local/apache/dev/conf/httpd.conf:
> Cannot load /usr/local/apache/dev/libexec/libphp4.so into server:
> /usr/local/apache/dev/libexec/libphp4.so: undefined symbol: mm_create
> ./apachectl start: httpd could not be started
>
> The mm library was configured like this:
> ./configure --disable-shared --prefix=/usr/local/mm
> make
> make test
> make install
>
> Apache was configured like this:
> EAPI_MM=/usr/local/mm \
> ./configure --prefix=/usr/local/apache/dev  --enable-module=most \
>   --enable-shared=max
>
> PHP was installed like this:
> ./configure --with-apxs=/usr/local/apache/dev/bin/apxs --without-mysql \
>   --with-oci8=/oracle --with-gd --with-mm=/usr/local/mm
>
> I have tried recompiling this several times with the same error message.
The
> only difference between this setup and the other Apache setup on this
machine
> is the other (working) one has mod_SSL installed and enabled.  Does anyone
see
> what my problem is here?
>
> Thanks in advance for any replies,
>
> --
> Michael Champagne, Software Engineer
> Capital Institutional Services, Inc.
> wk: [EMAIL PROTECTED]
> hm: [EMAIL PROTECTED]
>
>
>
> **
> This communication is for informational purposes only.  It is not
> intended as an offer or solicitation for the purchase or sale of
> any financial instrument or as an official confirmation of any
> transaction, unless specifically agreed otherwise.  All market
> prices, data and other information are not warranted as to
> completeness or accuracy and are subject to change without
> notice.  Any comments or statements made herein do not
> necessarily reflect the views or opinions of Capital Institutional
> Services, Inc.  Capital Institutional Services, Inc. accepts no
> liability for any errors or omissions arising as a result of
> transmission.  Use of this communication by other than intended
> recipients is prohibited.
> **


-- 
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: PostgreSQL connection problems

2001-10-02 Thread Richard Lynch

You also can get rid of all those .'s

pg_connect("host=$dbHost port=$dbPuerto dbname=$dbDB user=$dbLogin
password=$dbPassword");

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Alberto <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 5:51 AM
Subject: PostgreSQL connection problems


> Warning: Unable to connect to PostgreSQL server: No pg_hba.conf entry for
> host myhost, user myuser, database mydb in /path/to/principal.php on line
27
>
> that's
>
>  $bdConexion = pg_connect ("host=".$bdHost." port=".$bdPuerto."
> dbname=".$bdBD." user=".$bdLogin." password=".$bdPassword);
>
>
> PHP is already compiled with PostgreSQL support. PostgreSQL is running on
a
> remote server.
>
> Thnx in advance
>
>


-- 
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] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Brad Hubbard

On Wed,  3 Oct 2001 02:02, Devon Weller wrote:
> Has anyone successfully gotten socket functions to work with FreeBSD?
> More specifically, Mac OS X?
>
> I always get the following error: Can't bind to port 12345, exiting.
>
> The script works fine on Linux machines.  Is there a patch in the works
> for FreeBSD?  If so, I would be very happy.

There's a known trojan (netbus?) that operates on 12345. That's not your 
problem is it? Do a netstat -an on the machine and see if that port IS in use.

Cheers,
Brad
-- 
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Ph: +61-3-94645981
Fax: +61-3-94645982
Mob: +61-419107559

-- 
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: Free hosts, or Temp account...some thing

2001-10-02 Thread Richard Lynch

http://php.net/hosts.php or http://hosts.php.net or somesuch is a database
of hosts, some free, some cheap...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Reductor <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 26, 2001 5:36 AM
Subject: Free hosts, or Temp account...some thing


> Hey,
>   I just made a kewl little script, that i want to test out it requires
GD,
> it doesn't appear to work on my Windows machine, but i think it might work
> better on a Unix/Linux machine, so does anyone know of a free web host,
that
> supports php, gd, or someone that can open an account for about half an
hour
> or so, for me to test out my script, to see if it is my OS that is causing
> these problem
>- James "ReDucTor" Mitchell
>


-- 
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: PHP attempting to parse non-existent files

2001-10-02 Thread Richard Lynch

Your settings in httpd.conf to convince Apache to use PHP on .html files
does not correctly "pass the buck" to the error-handling in Apache...

Post your php-related and error-related settings in httpd.conf

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Tim Ward <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 10:21 AM
Subject: PHP attempting to parse non-existent files


> okay, I'll try again. The apache server our site runs on is set up to
parse
> .html files as php. If you pass a url of a non-existant file to the server
> the client gets a php parse error back rather than a 404 error ...
> specifically:
> pass in
> http://www.sitename/fred.html
> and you get
> Fatal error: Unable to open e:\program files\apache
> group\apache\htdocs\dev\maintenance\fred.html in Unknown on line 0
> pass in
> http://www.sitename/fred.htm (which apache hasn't been told to treat as
PHP)
> and you get the expected 404 error which I am well aware can be trapped in
> apache.
>
> (n.b. http://www.sitename/bill/fred.html where bill is a non existant
> directory, gives the 404 error okay)
>
> Either this happens to everyone (which apparently it doesn't) or I've got
> the configuration wrong somewhere in Apache or PHP. I've trawled through
the
> on-line documentation for both and haven't found anything relevant. I'm a
> programmer not a network or web administrator, but here I'm all there is.
> Any ideas what and/or where the problem is?
>
> Tim Ward
> Senior Systems Engineer
>
> Please refer to the following disclaimer in respect of this message:
> http://www.stivesdirect.com/e-mail-disclaimer.html
>
>


-- 
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: ImageColorAt()

2001-10-02 Thread Richard Lynch

What values are you passing to it?...

Be sure you have a valid image before you call ImageColorAt and that you are
passing integers for the x/y values.

If it still crashes, follow the directions at http://bugs.php.net to get a
backtrace...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Reductor <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 4:42 PM
Subject: ImageColorAt()


> ImageColorAt() causes my php to crashI want to capture the color of a
> pixel...
>- James "ReDucTor" Mitchell
>


-- 
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: next maintenance release?

2001-10-02 Thread Richard Lynch

Check php-dev archives.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Eugene Lee <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 3:23 AM
Subject: next maintenance release?


> PHP 4.0.6 has been out for 3 months now.  Any word on the next update?
>
>
> --
> Eugene Lee
> [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: no of files in a folder....

2001-10-02 Thread Richard Lynch

You could probably http://php.net/exec some kind of shell script to do it.

Or, something not unlike this:

# Untested code:
function count_files($directory){
static $count;
if (!isset($count)){
$count = 0;
}
$dir = opendir($directory);
while ($path = readdir($dir)){
if ($path != '.' && $path != '..'){
if (is_dir($path)){
count_files($path);
}
else{
$count++;
}
}
}
closedir($dir);
}

If you want to count directories, copy the $count++ up a couple lines.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Sagar N Chand <[EMAIL PROTECTED]>
Newsgroups: php.general
To: php <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 7:49 AM
Subject: no of files in a folder


hi all,

is there any way out to get the total no of files in a directory including
its
subfolders ?

thanQ,,

/sagar




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

2001-10-02 Thread Jon Shoberg

Nope, teh pages are actually hosted on a (gasp ...) NT machine.  I need
something that will suck down and write out a pure static .html mirror of an
ASP/PHP driven website.  WGET will surely mirror everything but not
re-structure the internal links within the pages.

Might be time to write my own ...


-Original Message-
From: Mukul Sabharwal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 9:58 PM
To: Jon Shoberg; [EMAIL PROTECTED]
Subject: Re: [PHP] Mirroring Website


Hi,

Try rsync, it's pretty much what you want.

http://rsync.samba.org


=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Mukul Sabharwal

Oops,

socket_setopt($listener, SOL_SOCKET, SO_REUSEADDR, 1);


=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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] Sockets on FreeBSD Mac OS X

2001-10-02 Thread Mukul Sabharwal

Hi,

A bind error means that the port is being used by
another application, incase that's incorrect you can
assure yourself by doing this :

socket_setopt(listener, SOL_SOCKET, SO_REUSEADDR, 1);

This function is undocumented (yet) and would require
you to download the latest version from CVS.

Hope that helps.

=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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] Restrict where PHP is Usable?

2001-10-02 Thread Mukul Sabharwal

Hi,

Take a look at the ScriptAlias directive of the Apache
webserver. I'm not sure how other webservers limit
execution, but apache does it using that directive.

http://httpd.apache.org/docs/
http://httpd.apache.org/docs/misc/security_tips.html
http://httpd.apache.org/docs/vhosts/mass.html

Hope that helps.

=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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] bulk e-mails

2001-10-02 Thread Mukul Sabharwal

Hi,

Well to reach the customers, each and every, you would
have to send it to each and everybody, very simple.

Ofcourse, it's not the most nice job the server can
do, but your emails say 20K each, and 10,000 users,
isn't a very rough job.

You could essentially loop through the user record and
send emails, which would make the To field, only show
the recipients address.

Maybe you could like put a url in to the message, and
ask the users to come on there, and read the message.
So that you aren't sending as much KB's.

Hope that helps.

=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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] bulk e-mails

2001-10-02 Thread Jack Dempsey

check out the archives and google--there's lots of info on things like
qmail,ezmlm, and the topic of bulk emails

jack

-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:05 PM
To: PHP-General
Subject: [PHP] bulk e-mails


Hello everyone,

I have a few questions about sending bulk e-mails.  We have a client who has
some customers that are signing up to win a prize in a contest.  These users
can also join the e-mail club.  What's the best way to send many, many
e-mails?

I don't want to send an e-mail to each individual user (that can be tough on
the server).  I also don't want to just make a bunch of entries in the To:
header.  I don't want people to be able to see who else is on the mailing
list.  Could I solve that problem by putting their e-mails in the bcc
section of the header?

Any other ideas are appreciated...thanks,
Tyler Longren



--
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] bulk e-mails

2001-10-02 Thread Dave Watkinson

I use a database (MySQL). I retrieve the list of people to send to and
then send one email at a time while looping through the results. Usually
it's a couple of hundred at a time, not sure how many you mean by "many
many"!!!

Hope this helped!

Dave


-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2001 04:05
To: PHP-General
Subject: [PHP] bulk e-mails


Hello everyone,

I have a few questions about sending bulk e-mails.  We have a client who
has
some customers that are signing up to win a prize in a contest.  These
users
can also join the e-mail club.  What's the best way to send many, many
e-mails?

I don't want to send an e-mail to each individual user (that can be
tough on
the server).  I also don't want to just make a bunch of entries in the
To:
header.  I don't want people to be able to see who else is on the
mailing
list.  Could I solve that problem by putting their e-mails in the bcc
section of the header?

Any other ideas are appreciated...thanks,
Tyler Longren



-- 
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] bulk e-mails

2001-10-02 Thread Tyler Longren

Hello everyone,

I have a few questions about sending bulk e-mails.  We have a client who has
some customers that are signing up to win a prize in a contest.  These users
can also join the e-mail club.  What's the best way to send many, many
e-mails?

I don't want to send an e-mail to each individual user (that can be tough on
the server).  I also don't want to just make a bunch of entries in the To:
header.  I don't want people to be able to see who else is on the mailing
list.  Could I solve that problem by putting their e-mails in the bcc
section of the header?

Any other ideas are appreciated...thanks,
Tyler Longren



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

2001-10-02 Thread Mukul Sabharwal

Hi,

Try rsync, it's pretty much what you want.

http://rsync.samba.org


=
*
Know more about me:
http://www.geocities.com/mimodit
*

__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.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] Re: Problème

2001-10-02 Thread Iván Milanez Castellanos

Monsieur: vous pouvèz trouver les instructions que vous recherchèz dans ce
page Web.

http://www.php.net/manual/fr/

Au revoir.


"Abdelghani Mekhoukh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Monsieur,
Premièrement et avant tout je vous souhaite une bonne année.
Je suis un débutant en PHP, et je veux l'installer comme un
module dans le serveur web Apache mais j'ai rencontré des
problèmes. Je tiens à vous signaler que je travaille sur la
plate forme WINDOWS NT 4.0 SERVER.
Pouvez vous s'il vous plaît me donner la méthode en détails
?
Je vous remercie préalablement.

__
Boîte aux lettres - Caramail - http://www.caramail.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] formular multiple select trouble

2001-10-02 Thread Iván Milanez Castellanos

Sebastian: if I remember correctly if you use a multiple selection field on
a page when you submit the form the contents of the selected items on the
field are sent via a comma delimited string, so you would just have to do
$Array=split(",", $String) to retrieve all of the selected values of the
form.

This way you can still use javascript to manipulate your form and not worry
about how many selections a user makes.

Later


> At 01:25 PM 10/2/2001 +0200, Sebastian wrote:
> >Hi all
> >
> >If i use multiple select fields in a from
> >i use name[] to access it in php afterwards
> >
> >test1
> >test2
> >
> >
> >i can then access in php $name and it has its the elements that were
> >selected.
> >my problem now is that i can't access name[] with javascript...
> >if i try
> >
> > alert(document.fo.neme[].value);
> >
> >gives an error...
> >
> >is there another way to neme the seletc field?
> >if i use name=aname
> >then i only get one selected value in php.
> >
> >thanks
> >
> >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] need help with safe mode

2001-10-02 Thread Richard Kurth

Can I add php_admin_flag safe_mode off to the httpd.conf file to turn
safe mode off for just one site. And leave it on for the rest of the
server. According to the manual this can be done but when I try it. It
does not work. Is there something else I have to do to make this work
properly.











Best regards,
 Richard  
mailto:[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+apache 2

2001-10-02 Thread Jiri Mikulas

Hi.
I have this problem with compiling PHP 4.0.6 for Apache-2.0.16_1
instaled from port on FreeBSD 4.4-release
---
Making all in apache2filter
...

ad  -c sapi_apache2.c
sapi_apache2.c: In function `php_input_filter':
sapi_apache2.c:248: too many arguments to function `ap_get_brigade'
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:443: warning: passing arg 2 of `ap_register_input_filter' 
from incompatible pointer type
*** Error code 1
Stop in /usr/install/php-4.0.6/sapi/apache2filter.
*** Error code 1
...
..


Is there any way to correct it ?
Thanks for any help.
Jiri.


-- 
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: Detecting user logout.

2001-10-02 Thread Alexander Deruwe

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 02 October 2001 18:11, tonyz wrote:
> why bother charting logouts.  use cookies that expires so you know that
> they will eventually lose access and need to login again.

Yes, but then I can't show a list of logged in users (for administration
purposes).

Alexander


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7umgFySJLuRUx8aQRAo7+AJkB0GD6i+0mNIfsaoakw/WP1klyagCfZ8l6
QB3ijCXziMhlhHyjDBgu/rM=
=Tlms
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] fprintf

2001-10-02 Thread Matthew Loff


The lack of fprintf() has been discussed on this list before, but I'm
not sure what the status is on the PHP development side...

http://bugs.php.net/bug.php?id=1027



-Original Message-
From: Bill Rausch [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 02, 2001 7:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] fprintf


There doesn't appear to be an fprintf function. I'm using:

fputs( $fp, sprintf( $format, ... ) );

Is this the recommended workaround?

I was wondering why fprintf was left out since so many other standard 
C library routines are present?

-- 
  Bill Rausch, Software Development, Unix, Mac, Windows
  Numerical Applications, Inc.  509-943-0861   [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] fprintf

2001-10-02 Thread Bill Rausch

There doesn't appear to be an fprintf function. I'm using:

fputs( $fp, sprintf( $format, ... ) );

Is this the recommended workaround?

I was wondering why fprintf was left out since so many other standard 
C library routines are present?

-- 
  Bill Rausch, Software Development, Unix, Mac, Windows
  Numerical Applications, Inc.  509-943-0861   [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] floating point format

2001-10-02 Thread Bill Rausch

I've notice that I can read floating point format like:

1.932E+12

Is there any way to output such a number.  The %f format string in 
printf just prints 19320.00.  Then I tried %e and got 
very strange results. The 1.932 was printed with nothing after it.

-- 
  Bill Rausch, Software Development, Unix, Mac, Windows
  Numerical Applications, Inc.  509-943-0861   [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] Problems with virtual() => request execution failed

2001-10-02 Thread Paulo Parola

Hi,

I am having trouble porting an application to another server. I have to call
an external Perl script through the use of the function 'virtual()' but on
the new server I get the following error:

Warning: Unable to include './cgi-bin/banners/ads_business.pl' - request
execution failed in /usr/local/etc/httpd/vhosts/business/index.htm on line
61

This was the original code which ran perfectly, but not at the new server.

I tried every kind of path with no success. Any hints?

TIA,
Paulo




-- 
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: Passing files from A to B

2001-10-02 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Dirk Maetens) wrote:

> Server A:
> PHP 4.01pl2
> Safe Mode On
> Not configured with ftp functions
> 
> Server B: ftp access, no PHP (shame)
> 
> On Server A I use output buffering to generate some simple HTML files.
> So far so good. My problem starts when I want to copy these files from
> Server A to Server B, where the public can get to them. How can I
> accomplish this? Any help (RTFM included) is as welcome as it will be

Scratch what I said about ob_get_contents().  Sorry.  Too many hours 
without sleep.

-- 
CC

-- 
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] A powerful editor!

2001-10-02 Thread Maxim Maletsky \(PHPBeginner.com\)

EditPlus is the best. Many nice functions and, I think, it is more
adapted for HTML/PHP development that TextPad. 

What I can't live without when developing on windows are those drag &
drop customs of EditPlus. I find it pretty handy. on VIM is great as
well.

Hey, look into archives. There are thousands posts about Editor.

Maxim Maletsky
www.PHPBeginner.com


-Original Message-
From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] 
Sent: martedì 2 ottobre 2001 23.20
To: Dean Householder; [EMAIL PROTECTED]
Subject: Re: [PHP] A powerful editor!


I just have to ask what EXACTLY you mean by nicer colors as Textpad
Allows you to set any element of a Syntax Definition to any color
between
(0,0,0) and (255,255,255).  Last I checked 16.7M colors was plenty  =P

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: "Dean Householder" <[EMAIL PROTECTED]>
To: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 3:57 PM
Subject: Re: [PHP] A powerful editor!


> I used to use TextPad until I found EditPlus.  I'm also amazed by it's

> power.  It has more than I could even use including everything TextPad

> has and nicer colors for the different styles.  You can find it at 
> http://www.editplus.com.
>
> Dean Householder
> Daylight Creations
> http://www.daylightcreations.com
>
>
>
> - Original Message -
> From: "Alex Shi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 01, 2001 6:08 PM
> Subject: [PHP] A powerful editor!
>
>
> > Hello folks,
> >
> > Today, I found a very powerful editor, called TextPad. I said it is 
> > 'powerful' because it can recognize syntax of php, html, java, 
> > css and also
many
> > many more great featuresmuch better that Windows Notepad. You 
> > can download and try. You need to take a few minutes to explore it 
> > and
> maximize
> > its functionality for you.
> >
> > Here is the link:
> > http://www.textpad.com/
> >
> > Alex
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED] To 
> > contact the list administrators, e-mail: 
> > [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] To 
> contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Passing files from A to B

2001-10-02 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Dirk Maetens) wrote:

> Server A:
> PHP 4.01pl2
> Safe Mode On
> Not configured with ftp functions
> 
> Server B: ftp access, no PHP (shame)
> 
> On Server A I use output buffering to generate some simple HTML files.
> So far so good. My problem starts when I want to copy these files from
> Server A to Server B, where the public can get to them. How can I
> accomplish this? Any help (RTFM included) is as welcome as it will be

  There's even an example script 
right on the first page of the chapter.  Just substitute ob_get_contents() 
where it says $source_file and you're practically done.

-- 
CC

-- 
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] Restrict where PHP is Usable?

2001-10-02 Thread Matthew Walker

I've seen this done before on servers, but I'm not sure how to do it.
 
Is there a way to restrict PHP to certain directories, so that it can
only be used by files within those directories?
 
For example: I'm starting a web page hosting service, and I'd like to
make it so that most users can't use PHP. They'll have to pay a (very
small) monthly fee to have access to it. This is partly as a very loose
security measure, so that not everyone has access to PHP.
 
--
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
 
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.282 / Virus Database: 150 - Release Date: 9/25/2001




Re: [PHP] A powerful editor!

2001-10-02 Thread Sheridan Saint-Michel

I just have to ask what EXACTLY you mean by nicer colors as Textpad
Allows you to set any element of a Syntax Definition to any color between
(0,0,0) and (255,255,255).  Last I checked 16.7M colors was plenty  =P

Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com


- Original Message -
From: "Dean Householder" <[EMAIL PROTECTED]>
To: "Alex Shi" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 3:57 PM
Subject: Re: [PHP] A powerful editor!


> I used to use TextPad until I found EditPlus.  I'm also amazed by it's
> power.  It has more than I could even use including everything TextPad has
> and nicer colors for the different styles.  You can find it at
> http://www.editplus.com.
>
> Dean Householder
> Daylight Creations
> http://www.daylightcreations.com
>
>
>
> - Original Message -
> From: "Alex Shi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 01, 2001 6:08 PM
> Subject: [PHP] A powerful editor!
>
>
> > Hello folks,
> >
> > Today, I found a very powerful editor, called TextPad. I said it is
> > 'powerful'
> > because it can recognize syntax of php, html, java, css and also
many
> > many more great featuresmuch better that Windows Notepad. You can
> > download and try. You need to take a few minutes to explore it and
> maximize
> > its functionality for you.
> >
> > Here is the link:
> > http://www.textpad.com/
> >
> > Alex
> >
> >
> >
> >
> > --
> > 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] Best way to duplicate tables to another DB using PHP

2001-10-02 Thread David Yee

Hi guys.  What do you suggest is the best (fastest, most efficient) way to
duplicate a table from one database to another using PHP?  I have a windows
machine setup with ODBC for this old school DB (Pervasive SQL 7) and I would
like to duplicate some of the tables into a Linux box with MySQL for some
datawarehousing purposes.  The largest table is about 30K records.  I'm not
sure if something like a "select *" and then doing a foreach record insert
into MySQL would be the best way.  Thanks for any suggestions.

David


-- 
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] Passing files from A to B

2001-10-02 Thread Dirk Maetens

Hello PHP-list,

I am not an expert, so explaining the problem might be somewhat tricky.
Please bare with me...

Server A:
PHP 4.01pl2
Safe Mode On
Not configured with ftp functions

Server B: ftp access, no PHP (shame)

On Server A I use output buffering to generate some simple HTML files.
So far so good. My problem starts when I want to copy these files from
Server A to Server B, where the public can get to them. How can I
accomplish this? Any help (RTFM included) is as welcome as it will be
appreciated! (BTW I am subscribed to the digest version of this
php-general list, so a cc: [EMAIL PROTECTED] would be nice)

Thanks.
--
Dirk Maetens
Belgium


-- 
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] A powerful editor!

2001-10-02 Thread Dean Householder

I used to use TextPad until I found EditPlus.  I'm also amazed by it's
power.  It has more than I could even use including everything TextPad has
and nicer colors for the different styles.  You can find it at
http://www.editplus.com.

Dean Householder
Daylight Creations
http://www.daylightcreations.com



- Original Message -
From: "Alex Shi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 6:08 PM
Subject: [PHP] A powerful editor!


> Hello folks,
>
> Today, I found a very powerful editor, called TextPad. I said it is
> 'powerful'
> because it can recognize syntax of php, html, java, css and also many
> many more great featuresmuch better that Windows Notepad. You can
> download and try. You need to take a few minutes to explore it and
maximize
> its functionality for you.
>
> Here is the link:
> http://www.textpad.com/
>
> Alex
>
>
>
>
> --
> 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] nimda, etc.

2001-10-02 Thread Ezra Nugroho

This is something you can use to slow down (even possibly to kill) code 
Red, Nimda scan etc.
It's really interesting, good concept.

http://www.hackbusters.net/LaBrea/

At 10:03 AM 9/22/2001 +0200, Alexander Skwar wrote:
>So sprach »Gaylen Fraley« am 2001-09-21 um 18:10:58 -0500 :
> > Are you sure about that?  I am trying his script and I just had an "attack"
> > and I watched the traffic through my firewall software.  It dropped off
> > immediately, i.e. showed no activity.  I was expecting to see somekind of a
>
>Sure, but you've got two Apache/PHP processes running for the sleep
>time.  Now, imagine that 10,000 Nimda accesses happen at the same time.
>
>Alexander Skwar
>--
>How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
>Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
>iso-top.de - Die günstige Art an Linux Distributionen zu kommen
> Uptime: 2 days 20 hours 7 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]


Ezra Nugroho
Web/Database Application Specialist
Goshen College ITS
Phone: (219) 535-7706


"Don't be humble, you're not that great." -- Golda Meir


Re: [PHP] Sessions Variables and refresh pages

2001-10-02 Thread Karina Gómez Salgado

again with the problem i discovered that the problem is that the reload is
needed when i use the session variables in the queries, otherwise there are
not problem. Even if i only want to display the session variable in the
result page, i need to do a reload.






Karina wrote:

> Well, I don't understand it too, i don't know why with normal variables
> there are not problem and with session variables i need to refresh the
> page to see the results after the submit form.
>
> The mechanism is this:
>
> query 1 with parameter   >ACCESS FORM --- >  results
> only
>session_register(uid) shown with refresh
>session_register(pwd)  (get parameter from
> REQUEST_URI)
>
>
> if i do this:
>
> query 1    > (NOT ACCESS)   --- >  results with no problem
>
>
> I hope than somebody can give me some ideas... because this is driving
> me crazy..
>
> THks,
> Karina
>
> --
> 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: WebMail Client

2001-10-02 Thread Andrew Chase

You might want to take a look at Netmania. (http://www.netmania.org)
Caveats:  I helped  install Netmania at a former employer back in February
2001, and with the then-current distribution we had all kinds of trouble
setting it up until we realized that it depended on having *all* error
handling turned off (even warnings) - with errors disabled it worked like a
dream, although we had to wonder why they would have released code known to
cause warning messages.

I think a new version has come out since then, and maybe they've addressed
some of those problems.  Once set up it's a very impressive system both in
appearance and functionality - it does use a lot of Javascript, so there
might be issues between Netscape/IE/Konqueror/Mozilla/Mac/Windows/Linux.
YMMV :)  It requires Unix/Linux, Apache 1.3 and MySQL.

-Andy


> -Original Message-
> From: Rosen [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 5:17 AM
> To: [EMAIL PROTECTED]
> Subject: WebMail Client
>
>
> Hi,
> Can someone recommend me some free php script for WebMail client
> (like Squerriemail) ?
>
> Thanks,
> Rosen
>
>
>


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

2001-10-02 Thread Chesley A Windon

> I'm trying to upload some files using PHP, but I'm limited to small files of 1Mb or 
>a little more and I don't know why. Could anyone please help me with this? 
> 
>  This is the message I get:
> Warning: error opening none in /home/proj/sapens/public_html/f1_material.php on line 
>51


By default php limits file uploads to 2MB.  You need to change the 
upload_max_filesize variable in your php.ini.

Chesley


-- 
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: PHP slash Apache question?

2001-10-02 Thread jimw

Michael Champagne <[EMAIL PROTECTED]> wrote:
> Great, thanks for the response Jim.  Would there possibly be a way around this
> using mod_rewrite?

no. if you'll check your logs, you'll see that the request is never
even making it to your server. internet explorer simply barfs on urls
that include a port but don't include a scheme.

jim

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

2001-10-02 Thread Joe Kaiping


Hi,

You might want to check out http://phpclasses.upperdesign.com.  There are a
number of useful classes there, including "Metabase" and "HTML Mime Mail".
I recently got a notice that the following "Upload" class is also now
available.  I haven't tried it yet, though.  There are other upload classes
available there as well.  Maybe you could try a couple and write back to
this mailing list the ones you liked best?

-Joe

---

Name: Upload

Author: chris <[EMAIL PROTECTED]>

Description:
The Upload class is a wrapper for uploading files using html forms. The
form should have the 'enctype="multipart/form-data"' attribute for this
the files to be uploaded properly. The Class should be created by passing
$HTTP_POST_FILES as the only argument for the constructor (e.g. $upload =
new Upload(&$HTTP_POST_FILES)), and also by reference (the & indicates
this). See http://www.sloppycode.net/sloppycode/PHP/cm13.html for the
manual.

URL: http://phpclasses.upperdesign.com/browse.html/package/348



> -Original Message-
> From: Henning Støverud [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 02, 2001 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] UPLOAD_TMP_DIR
>
>
> Hi
>
> I've made an upload system at my ISP's webserver, but it
> seems like they
> have done something with the UPLOAD_TMP_DIR cause I get this
> error message:
>
> PHP Warning:  File upload error - unable to create a temporary file in
> Unknown on line 0
>
> Can I set the UPLOAD_TMP_DIR myself inside a PHP script, or
> is it only the
> sysadmin who can do that?
> If I can't do anything about this problem, is it another way to upload
> files?
>
> Regards,
> --
> Henning Støverud ([EMAIL PROTECTED])
> http://www.stoverud.com
> Tlf: +47 91 68 05 68
> Fax: +47 85 02 16 31
>
>
> --
> 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] UPLOAD_TMP_DIR

2001-10-02 Thread Henning Støverud

Hi

I've made an upload system at my ISP's webserver, but it seems like they
have done something with the UPLOAD_TMP_DIR cause I get this error message:

PHP Warning:  File upload error - unable to create a temporary file in
Unknown on line 0

Can I set the UPLOAD_TMP_DIR myself inside a PHP script, or is it only the
sysadmin who can do that?
If I can't do anything about this problem, is it another way to upload
files?

Regards,
--
Henning Støverud ([EMAIL PROTECTED])
http://www.stoverud.com
Tlf: +47 91 68 05 68
Fax: +47 85 02 16 31


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

2001-10-02 Thread Eduardo Kokubo

Hi, 
I'm trying to upload some files using PHP, but I'm limited to small files of 1Mb or a 
little more and I don't know why. Could anyone please help me with this? 

 This is the message I get:
Warning: error opening none in /home/proj/sapens/public_html/f1_material.php on line 51


the same code works with smaller files



Re: [PHP] Htaccess / regex / php I dont know why it won't work

2001-10-02 Thread affixcom

Thanks,
I spent 2 days trying everything, and since I am not an expert on regex (do
that that just for fun), I though my script was bad. I'll check with my
hosting company if I can overrule the httpd.conf. I checked on phpinfo() and
mod_rewrite is loaded
Gab


- Original Message -
From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]>
To: "'affixcom'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, October 02, 2001 3:10 PM
Subject: RE: [PHP] Htaccess / regex / php I dont know why it won't work



I think this was supposed to work:

.htaccess

RewriteEngine On
RewriteRule ^(.*)\.zajfe\.org$  redirect.php?url=$1   [L]


Are you sure it doesn't? If it doesn't then meas they

 1. don't have mod_rewrite (phphinfo shows you the modules loaded)
 2. don't allow .htaccess to override httpd.conf rules.

Also read about mod_rewrite, right in the manual there are a few
examples to do what you need. Always if you have it loaded.


Maxim Maletsky
www.PHPBeginner.com




-Original Message-
From: affixcom [mailto:[EMAIL PROTECTED]]
Sent: martedì 2 ottobre 2001 20.54
To: [EMAIL PROTECTED]
Subject: [PHP] Htaccess / regex / php I dont know why it won't work


Hi,
I have a website hosted on a cobalt server with my own domain, but not
my own IP. I have a full access to my root web, but not higher (means
can't change any *.conf files). My domain is "wildcarded" I want to be
able to redirect based on the entry, IE if a user types
http://hello.mydomain.com he will go to http://mydomain.com/hello=20 if
a user types http://another.mydomain.com he will go to
http://mydomain.com/another=20

The redirect method of apache doesn't work because I leanred that that
is based on an absolute path from the server I tried php scripts that
read the subdomain and use it in the header function but it won't work.
I came to the conclusion after a lot of tests that rewriterule from the
htaccess is the the best.

htaccess script: (doesn't work)
RewriteEngine On
RewriteRule ^(.*)\.zajfe\.org$  redirect.php?url=$1   [L]
connected to the page redirect.php where
http://www.zajfe.org/$url";);?>
PHP script: (doesn't work)
http://$domain/$underdomaene";);
 }
else {
 if (!$REQUEST_URI || $REQUEST_URI == "/") {
  include("$DOCUMENT_ROOT/$default_page");
 }
 else {
  header("Location: http://$domain$REQUEST_URI";);
 }
}
?>

I am open to ANY suggestion, CGI / ASP / PHP / SSI (it is all on the
server), I want it to work

Thanks

Gab



--
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] Re: PHP slash Apache question?

2001-10-02 Thread Michael Champagne

Great, thanks for the response Jim.  Would there possibly be a way around this
using mod_rewrite?

Thanks,
Mike

> Michael Champagne <[EMAIL PROTECTED]> wrote:
> > Ok, this is semi-related to PHP.  I think it may mainly be our Apache
> > configuration.  We have our listener listening on .
> >
> > This URL works: http://hostname.capis.com:/
> > This URL does not: hostname.capis.com:/
> >
> > Is there anyway to get the bottom one to work?
>
> not without the source to internet explorer. it is a shortcoming of
> their url parsing (it mistakes the latter format for scheme:host
> instead of host:port).
>
> jim



**
This communication is for informational purposes only.  It is not
intended as an offer or solicitation for the purchase or sale of 
any financial instrument or as an official confirmation of any 
transaction, unless specifically agreed otherwise.  All market 
prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not 
necessarily reflect the views or opinions of Capital Institutional
Services, Inc.  Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission.  Use of this communication by other than intended
recipients is prohibited.
**

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

2001-10-02 Thread Eduardo Kokubo

Hi, 
I'm trying to upload some files using PHP, but I'm limited to small files and I don't 
know why. Could anyone please help me with this? 





[PHP] Re: SOAP Tool Kit for PHP | Solved | PHP-Tomcat-Apache HOWTO

2001-10-02 Thread Rasmus Lerdorf

Thanks for the step-by-step.  I am sure it will come in handy to people.
Now if only this fancy system of yours could find me a cool job...  ;)

-Rasmus

> A bit of background. I work at a company that has a web-based staffing
> software (jobs, candidates, you get the idea). We are about 5 developers
> (close to 15 w/ all other projects). Jobs and candidates are a perfect
> example of where XML and web-services are applicable. Use our software and
> post your job to monster, or any staffing agency w/ a compliant web service
> listener. Later receive a candiate response via the same protocol (defined
> by XML.org or whomever).
>
> Anyway, I figured out an apache configuration that allows us to use the ease
> and speed of PHP and the power of java (all the SOAP tool kits from IBM,
> etc). Here is the apache conf.
>
>
> PHP, Tomcat, Apache HOWTO
> -
>
> (assume jdk1.3.1 installed under /usr/java/) This was done on RH7.1
>
> tomcat-3.2.3-1.noarch.rpm
> jakarta-tomcat-3.2.3-src.tar.gz
> apache_1.3.19.tar.gz
> php-4.0.6.tar.gz
>
> Untar these packages within the same dir. I use /usr/src/. Install the rpm
>
> vi /etc/rc.d/init.d/tomcat
> (make it look something like this)
> export
> PATH=$PATH:/usr/java/jdk1.3.1_01/bin:/usr/java/jdk1.3.1_01/jre/bin
> export JAVA_HOME=/usr/java/jdk1.3.1_01
> export TOMCAT_HOME=/var/tomcat
>
> cd apache_1.3.19
> ./configure --enable-module=so
> make
> make install
>
> cd php-4.0.6
> ./configure --with-apxs=/usr/local/apache/bin/apxs
> make
> make install
>   (of course you'll want --with-* that represent your env)
>
> cd /usr/src/jakarta-tomcat-3.2.3-src/src/native/apache1.3
> /usr/local/apache/bin/apxs -o mod_jk.so -I ../jk -I
> /usr/java/jdk1.3.1_01/include -I  /usr/java/jdk1.3.1_01/include/linux -c *.c
> ../jk/*.c
>
> cp mod_jk.so /usr/local/apache/libexec/
>
> add the following line to the bottom of httpd.conf
>   (do the regular conf of apache for php as well)
>
> include /var/tomcat/conf/mod_jk.conf-auto
>
>
> That is it. Now any empty directory in your DocumentRoot (that you define in
> the tomcat conf) is handled via tomcat/mod_jk and any .php file is handled
> by mod_php. It'll take a while for me to get really familar with tomcat
> conf, but once I am virtual servers and the rest should be possible.
>
>
>
> Anyway, I'm happy I get the apache soap and XML java based tools for the web
> services and get to keep the rapid development environment of php.
>
>
> Hope this is of use to some people. - Eric
>


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

2001-10-02 Thread Jason G.

Take a look at the exec() and system() functions.

-Jason Garber
www.ionzoft.com


At 08:55 PM 10/2/2001 +0200, Bjornie wrote:
>Hi everybody!
>
>I have a problem :/
>I just said yes to a project, which includes webmail. I know how to send
>mail and how to receive mail with imap, but can I in any way create a
>mailaccount on the server by using PHP? Or should I use any other language
>like Java/JSP or ASP (with a component)?`
>
>Hilfe! :)
>
>
>
>--
>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] SOAP Tool Kit for PHP | Solved | PHP-Tomcat-Apache HOWTO

2001-10-02 Thread Dahnke, Eric


Hello,

A bit of background. I work at a company that has a web-based staffing
software (jobs, candidates, you get the idea). We are about 5 developers
(close to 15 w/ all other projects). Jobs and candidates are a perfect
example of where XML and web-services are applicable. Use our software and
post your job to monster, or any staffing agency w/ a compliant web service
listener. Later receive a candiate response via the same protocol (defined
by XML.org or whomever).

Anyway, I figured out an apache configuration that allows us to use the ease
and speed of PHP and the power of java (all the SOAP tool kits from IBM,
etc). Here is the apache conf.


PHP, Tomcat, Apache HOWTO
-

(assume jdk1.3.1 installed under /usr/java/) This was done on RH7.1

tomcat-3.2.3-1.noarch.rpm
jakarta-tomcat-3.2.3-src.tar.gz
apache_1.3.19.tar.gz
php-4.0.6.tar.gz

Untar these packages within the same dir. I use /usr/src/. Install the rpm

vi /etc/rc.d/init.d/tomcat
(make it look something like this)
export
PATH=$PATH:/usr/java/jdk1.3.1_01/bin:/usr/java/jdk1.3.1_01/jre/bin
export JAVA_HOME=/usr/java/jdk1.3.1_01
export TOMCAT_HOME=/var/tomcat

cd apache_1.3.19
./configure --enable-module=so
make
make install

cd php-4.0.6
./configure --with-apxs=/usr/local/apache/bin/apxs
make
make install
(of course you'll want --with-* that represent your env)

cd /usr/src/jakarta-tomcat-3.2.3-src/src/native/apache1.3
/usr/local/apache/bin/apxs -o mod_jk.so -I ../jk -I
/usr/java/jdk1.3.1_01/include -I  /usr/java/jdk1.3.1_01/include/linux -c *.c
../jk/*.c

cp mod_jk.so /usr/local/apache/libexec/

add the following line to the bottom of httpd.conf
(do the regular conf of apache for php as well)

include /var/tomcat/conf/mod_jk.conf-auto


That is it. Now any empty directory in your DocumentRoot (that you define in
the tomcat conf) is handled via tomcat/mod_jk and any .php file is handled
by mod_php. It'll take a while for me to get really familar with tomcat
conf, but once I am virtual servers and the rest should be possible. 



Anyway, I'm happy I get the apache soap and XML java based tools for the web
services and get to keep the rapid development environment of php.


Hope this is of use to some people. - Eric

-- 
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: How can I suppress my variables from showing up in the address bar?

2001-10-02 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Salty Marine) wrote:

> How can I suppress my variables from showing up in the address bar?  I have
> a form that's passing information to a script of mine, via the address bar.



-- 
CC

-- 
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: PHP slash Apache question?

2001-10-02 Thread jimw

Michael Champagne <[EMAIL PROTECTED]> wrote:
> Ok, this is semi-related to PHP.  I think it may mainly be our Apache
> configuration.  We have our listener listening on .
> 
> This URL works: http://hostname.capis.com:/
> This URL does not: hostname.capis.com:/
> 
> Is there anyway to get the bottom one to work?

not without the source to internet explorer. it is a shortcoming of
their url parsing (it mistakes the latter format for scheme:host
instead of host:port).

jim

-- 
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] formular multiple select trouble

2001-10-02 Thread Jason G.

Give the select tag an ID.  You can then reference the element by its ID.




 alert(aname.value);


-Jason Garber
IonZoft.com


At 01:25 PM 10/2/2001 +0200, Sebastian wrote:
>Hi all
>
>If i use multiple select fields in a from
>i use name[] to access it in php afterwards
>
>test1
>test2
>
>
>i can then access in php $name and it has its the elements that were
>selected.
>my problem now is that i can't access name[] with javascript...
>if i try
>
> alert(document.fo.neme[].value);
>
>gives an error...
>
>is there another way to neme the seletc field?
>if i use name=aname
>then i only get one selected value in php.
>
>thanks
>
>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]




RE: [PHP] Htaccess / regex / php I dont know why it won't work

2001-10-02 Thread Maxim Maletsky \(PHPBeginner.com\)


I think this was supposed to work:

.htaccess

RewriteEngine On
RewriteRule ^(.*)\.zajfe\.org$  redirect.php?url=$1   [L]


Are you sure it doesn't? If it doesn't then meas they

 1. don't have mod_rewrite (phphinfo shows you the modules loaded)
 2. don't allow .htaccess to override httpd.conf rules.

Also read about mod_rewrite, right in the manual there are a few
examples to do what you need. Always if you have it loaded.


Maxim Maletsky
www.PHPBeginner.com




-Original Message-
From: affixcom [mailto:[EMAIL PROTECTED]] 
Sent: martedì 2 ottobre 2001 20.54
To: [EMAIL PROTECTED]
Subject: [PHP] Htaccess / regex / php I dont know why it won't work


Hi,
I have a website hosted on a cobalt server with my own domain, but not
my own IP. I have a full access to my root web, but not higher (means
can't change any *.conf files). My domain is "wildcarded" I want to be
able to redirect based on the entry, IE if a user types
http://hello.mydomain.com he will go to http://mydomain.com/hello=20 if
a user types http://another.mydomain.com he will go to
http://mydomain.com/another=20

The redirect method of apache doesn't work because I leanred that that
is based on an absolute path from the server I tried php scripts that
read the subdomain and use it in the header function but it won't work.
I came to the conclusion after a lot of tests that rewriterule from the
htaccess is the the best.

htaccess script: (doesn't work)
RewriteEngine On
RewriteRule ^(.*)\.zajfe\.org$  redirect.php?url=$1   [L]
connected to the page redirect.php where
http://www.zajfe.org/$url";);?>
PHP script: (doesn't work)
http://$domain/$underdomaene";);
 }
else {
 if (!$REQUEST_URI || $REQUEST_URI == "/") {
  include("$DOCUMENT_ROOT/$default_page");
 }
 else {
  header("Location: http://$domain$REQUEST_URI";);
 }
}
?>

I am open to ANY suggestion, CGI / ASP / PHP / SSI (it is all on the
server), I want it to work

Thanks

Gab



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

2001-10-02 Thread mike cullerton

on 10/2/01 8:51 AM, CC Zona at [EMAIL PROTECTED] wrote:

> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Mike Cullerton) wrote:
> 
>> eregi("^[a-z0-9_\-]+$",$string)
>> 
>> notice that i had to escape the dash with a backslash
> 
> Are you sure?  'Cuz AFAIK, escaping shouldn't be necessary on a hyphen
> which is the last char (or, IIRC, the first) of a character class.

cool. so, are you saying eregi("^[-a-z0-9_]+$",$string) should work?

thanks,
mike


 -- mike cullerton



-- 
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 slash Apache question?

2001-10-02 Thread Michael Champagne

Ok, this is semi-related to PHP.  I think it may mainly be our Apache
configuration.  We have our listener listening on .

This URL works: http://hostname.capis.com:/
This URL does not: hostname.capis.com:/

Is there anyway to get the bottom one to work?

In IE I get 'Invalid syntax error' in the title bar of the browser and the
body says 'The page cannot be displayed'.

Thanks in advance for any replies.

Also, the index page that this is going to is issued location redirect through
PHP that moves it to another page.

-- 
Michael Champagne, Software Engineer
Capital Institutional Services, Inc.
wk: [EMAIL PROTECTED]
hm: [EMAIL PROTECTED]



**
This communication is for informational purposes only.  It is not
intended as an offer or solicitation for the purchase or sale of 
any financial instrument or as an official confirmation of any 
transaction, unless specifically agreed otherwise.  All market 
prices, data and other information are not warranted as to 
completeness or accuracy and are subject to change without
notice.  Any comments or statements made herein do not 
necessarily reflect the views or opinions of Capital Institutional
Services, Inc.  Capital Institutional Services, Inc. accepts no
liability for any errors or omissions arising as a result of
transmission.  Use of this communication by other than intended
recipients is prohibited.
**

-- 
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] Htaccess / regex / php I dont know why it won't work

2001-10-02 Thread affixcom

Hi,
I have a website hosted on a cobalt server with my own domain, but not my own IP.
I have a full access to my root web, but not higher (means can't change any *.conf 
files).
My domain is "wildcarded"
I want to be able to redirect based on the entry, IE
if a user types http://hello.mydomain.com he will go to http://mydomain.com/hello=20
if a user types http://another.mydomain.com he will go to 
http://mydomain.com/another=20

The redirect method of apache doesn't work because I leanred that that is based on an 
absolute path from the server
I tried php scripts that read the subdomain and use it in the header function but it 
won't work.
I came to the conclusion after a lot of tests that rewriterule from the htaccess is 
the the best.

htaccess script: (doesn't work)
RewriteEngine On
RewriteRule ^(.*)\.zajfe\.org$  redirect.php?url=$1   [L]
connected to the page redirect.php where
http://www.zajfe.org/$url";);?>
PHP script: (doesn't work)
http://$domain/$underdomaene";);
 }
else {
 if (!$REQUEST_URI || $REQUEST_URI == "/") {
  include("$DOCUMENT_ROOT/$default_page");
 }
 else {
  header("Location: http://$domain$REQUEST_URI";);
 }
}
?>

I am open to ANY suggestion, CGI / ASP / PHP / SSI (it is all on the server), I want 
it to work

Thanks

Gab




[PHP] Creating mailaccounts

2001-10-02 Thread Bjornie

Hi everybody!

I have a problem :/
I just said yes to a project, which includes webmail. I know how to send
mail and how to receive mail with imap, but can I in any way create a
mailaccount on the server by using PHP? Or should I use any other language
like Java/JSP or ASP (with a component)?`

Hilfe! :)



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