Re: [PHP] stripping negative number

2004-12-23 Thread Justin England
unsigned does not equal absolute value. $num = -40; print "Num: $num\n"; $num = abs($num); print "ABS: $num\n"; will display: Num: -40 ABS: 40 http://us2.php.net/manual/en/function.abs.php Justin - Original Message - From: "Roger Thomas" <[EMAIL PROTECTED]> To: Sent: Thursday, December 23

[PHP] Redirect after download

2004-12-01 Thread Justin England
I am writing a file download system and I need to be able to do a redirect after the download is finished. Basically, the user will be presented with a simple HTML page that contains a link to download the file (href="/download.php?fileid=143"). I have the code to send the file working just f

Re: [PHP] Image width??

2001-11-29 Thread Justin England
array getimagesize (string filename [, array imageinfo]) http://www.php.net/manual/en/function.getimagesize.php Justin England [EMAIL PROTECTED] Network Administrator E-Net Information Services http://www.enetis.net Tel: 605-341-3638

Re: [PHP] what the best version PHP + APACHE on Solaris8

2001-11-24 Thread Justin England
Just grap the lastest stable version. As of now: Apache ver 1.3.22 PHPver 4.0.6 Most all of my Sparc Solaris8 machines are running Apache 1.3.19/PHP 4.0.6 Hope this helps. Justin England [EMAIL PROTECTED] Network Administrator E-Net Information

Re: [PHP] How to load .php3 pages using PHP4

2001-11-22 Thread Justin England
Comment that line again, and add .php3 to: AddType application/x-httpd-php .php .php3 This will tell apache to use PHP4 for both .php and .php3 files. Justin England [EMAIL PROTECTED] Network Administrator E-Net Information Services

Re: [PHP] solaris + APACHE + PHP = ??? it's working ?

2001-11-22 Thread Justin England
Your best bet is to remove the Apache package that comes with Solaris and install from the source dist from the apache website. I do that with all my Solaris8 Sparc machines. Justin England [EMAIL PROTECTED] Network Administrator E-Net Information

[PHP] reseting cookie_lifetime

2001-11-21 Thread Justin England
pires and I have to re-login. How can I reset the cookie_lifetime timer so that after each request the 20 minute lifetime starts over? Each script starts with: session_name("mysessionname"); session_start(); And then checks session_is_registered('username')