[PHP] Listserv

2001-08-28 Thread Phil Spitler

Does anyone know of a good listserv written in PHP?

Thanks!

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
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] image help please

2001-08-01 Thread Phil Spitler

Can anyone see why this blows up?  It basically just hangs the browser
trying to load the page.  I'm going to try to chop some of the image off,
but just want to get the new image to display right now.

?php

$im = imagecreatefromjpeg(test.jpg);

$im2 = ImageCreate(320,240);

ImageCopy($im2, $im, 0, 0, 0, 0, 320, 240);

imagejpeg($im2,,100);

imagedestroy($im);
imagedestroy($im2);

?

THANKS!

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
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]




RE: [PHP] image help please

2001-08-01 Thread Phil Spitler

Nevermind, I figured it out.  I needed to create image 2 with
ImageCreateTrueColor()

 -Original Message-
 From: Phil Spitler [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 01, 2001 1:41 PM
 To: PHP
 Subject: [PHP] image help please


 Can anyone see why this blows up?  It basically just hangs the browser
 trying to load the page.  I'm going to try to chop some of the image off,
 but just want to get the new image to display right now.

 ?php

 $im = imagecreatefromjpeg(test.jpg);

 $im2 = ImageCreate(320,240);

 ImageCopy($im2, $im, 0, 0, 0, 0, 320, 240);

 imagejpeg($im2,,100);

 imagedestroy($im);
 imagedestroy($im2);

 ?

 THANKS!

 -
 Phil Spitler [Vice President]
 Web Hut Design, Inc.
 c 704-451-1324
 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 General Mailing List (http://www.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] error trapping

2001-07-27 Thread Phil Spitler

I am wondering the best way to handle error trapping with PHP.  I am
farmiliar with languages, ColdFusion being one, that you can use TRY and
CATCH statements.  Any info would be appreciated.

THANKS!

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
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]




RE: [PHP] read filenames from dir

2001-07-26 Thread Phil Spitler

This should do it for you.

?

$path = THE DIRECTORY YOU WISH TO LIST THE FILES FROM;

$d = dir($path);
while ($entry=$d-read()) {
  if ((!is_dir($path.$entry)) AND ($entry !== .) AND ($entry !== ..)){
echo a href='$entry'$entry/abr\n;
  }
}
$d-close();

?

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
mailto:[EMAIL PROTECTED] 

 -Original Message-
 From: news.php.net [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, July 26, 2001 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] read filenames from dir
 
 
 hi,
 I want to read the filenames in a specific dir (running Linux) 
 and echo the
 names as link in my browser.
 Which functions/commands can I use for this?
 What are the security risks?
 
 TIA,
 Dr.Bob
 
 
 
 -- 
 PHP General Mailing List (http://www.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] error trapping

2001-07-26 Thread Phil Spitler

I am wondering the best way to handle error trapping with PHP.  I am
farmiliar with languages, ColdFusion being one, that you can use TRY and
CATCH statements.  Any info would be appreciated.

THANKS!

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
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] php3 extension

2001-07-24 Thread Phil Spitler

Can anyone tell me how to turn on .php3 extensions in PHP on Win2000?  I've
looked in the php.ini file and can't seem to find it.

Thanks!

Phil


-- 
PHP General Mailing List (http://www.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] CGI error

2001-07-24 Thread Phil Spitler

I am running PHP in CGI mode on win2k.  I keep getting an error when I try
to load a PHP page.  I have 2 other servers set up exactly the same that
work just fine.  Does anyone know what this could be?

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

Thanks!

Phil


-- 
PHP General Mailing List (http://www.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] CGI error

2001-07-24 Thread Phil Spitler

Along with help from Josh Hoover, (*thanks again Josh*), I was able to find
a fix for this problem.  There must be some sort of bug with IIS and PHP.
Everything was set up correctly and I was pointing to the correct the
correct path for the cgi .exe file.  However it didn't start working for me
until checking Check that file exists in the App Mappings.  This fixed
the problem after HOURS of troubleshooting.

Phil

 -Original Message-
 From: Phil Spitler [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 24, 2001 3:06 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] CGI error


 I am running PHP in CGI mode on win2k.  I keep getting an error when I try
 to load a PHP page.  I have 2 other servers set up exactly the same that
 work just fine.  Does anyone know what this could be?

 CGI Error
 The specified CGI application misbehaved by not returning a
 complete set of
 HTTP headers. The headers it did return are:

 Thanks!

 Phil


 --
 PHP General Mailing List (http://www.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] CGI error

2001-07-24 Thread Phil Spitler

I hear what you are saying.  I just don't understand why if php.exe is where
I was telling it and permissions were all set up correctly, why it started
working after that was checked.  I did nothing else but check it and if I
understand what you are telling me, it should've given me a 404 error.

Phil

 -Original Message-
 From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 24, 2001 4:06 PM
 To: Phil Spitler; [EMAIL PROTECTED]
 Subject: Re: [PHP] CGI error


 On Tuesday 24 July 2001 20:44, Phil Spitler wrote:
  There must be some sort of bug with IIS and PHP.
  Everything was set up correctly and I was pointing to the correct the
  correct path for the cgi .exe file.  However it didn't start
 working for me
  until checking Check that file exists in the App Mappings.
 This fixed
  the problem after HOURS of troubleshooting.

 I don't think there's a bug here.
 Ticking that box does two important things.
 Firstly it stops the 'the specified CGI application misbehaved by not
 returning a complete set of headers' error message which is often
 caused by
 php not finding the script you specified because it is not there.
 IIS checks
 whether the script file exists, and if it doesn't, it sends a 404 error
 rather than running php.
 Secondly, when it checks the file and finds that the web server
 does not have
 permission to read it, it sends authentication headers (or does
 all that NT
 authentication unpleasantness if you have it enabled) in order to
 attempt to
 get sufficient permission to read the file.

 Basically, this is just the way IIS works. You'd get exactly the
 same results
 with any other cgi script interpreter.

 Cheers
 --
 Phil Driscoll

 --
 PHP General Mailing List (http://www.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] a good PHP editor

2001-07-18 Thread Phil Spitler

I like ultraedit32 http://www.ultraedit.com Although it isn't free, the
price is reasonable.

-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
mailto:[EMAIL PROTECTED]

 -Original Message-
 From: doug [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 18, 2001 2:16 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] a good PHP editor


 Hiya everybody,
 I'm relatively new to PHP and I'm looking for a good text editor on
 win2k for creating/manipulating php pages. Notepad is great if your in a
 bind, and I've tried phpedit and activestate's Komodo and both
 seem to have
 problems (crashing etc...). Anybody got any suggestions? Free/small fee
 programs doesn't matter Thanks

 Doug Henry


 --
 PHP General Mailing List (http://www.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] Time Taken to Process

2001-07-16 Thread Phil Spitler

Does anyone know an easy way to tell how long a page takes to run in ms.
Maybe some variable that can be called at the bottom of the page or
something.

THANKS!

-
Phil Spitler [Applications Developer]
American City Business Journals
p: 704.973.1049
f: 704.973.8049
e: 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] RE: Time Taken to Process

2001-07-16 Thread Phil Spitler

yeah, I just saw that, thanks! :)

Phil

 -Original Message-
 From: Philip Hallstrom [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 16, 2001 2:12 PM
 To: Phil Spitler
 Cc: [EMAIL PROTECTED]
 Subject: Re: Time Taken to Process


 Look at the recent subject entitled echo vs printf.  There's code to do
 exactly what you want.  I don't think there's anything built in, but I
 could be wrong.

 On Mon, 16 Jul 2001, Phil Spitler wrote:

  Does anyone know an easy way to tell how long a page takes to run in ms.
  Maybe some variable that can be called at the bottom of the page or
  something.
 
  THANKS!
 
  -
  Phil Spitler [Applications Developer]
  American City Business Journals
  p: 704.973.1049
  f: 704.973.8049
  e: 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]