[PHP] SQL Server through PEAR - problem

2003-10-03 Thread orlandopozo
Hello mailing list, I try to connect SQL server through PEAR directly, but it doesn't work too, this is the code: Test DB Class - PEAR Estado getMessage()); } //issue the query $sql ="SELECT * from tablaEstado"; $q =$db->query($sql); if (DB::iserror($q)) { die($q->getMe

[PHP] SQL Server through PEAR - problem

2003-10-03 Thread orlandopozo
Hello mailing list, I try to connect SQL server from ODBC through PEAR, but it doesn't work, this is the code: Test DB Class - PEAR Estado getMessage()); } //issue the query $sql ="SELECT * from tablaEstado"; $q =$db->query($sql); if (DB::iserror($q)) { die($q->getMessage()); }

Re: [PHP] Tracking IP Addresses

2003-10-03 Thread Cameron Metzke
Well couldnt this be done with the majority of browsers, im not sure myself but i remember reading somewhere that you can "ask" the browser where the the user is ?. I think it has something to do with when the system is setup the country is recorded ? might be a windows only thing again im not sure

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Evan Nemerson
Hahaha yeah I saw something on TV about you a while back and chuckled a little. I even tried Captain John Holmes, but apparently you "drowned off Piel island in December 1881". Sorry about that. At least you don't have _my_ luck. I click the wrong address in my address book and oh look, its th

Re: [PHP] libcurl and getting mutiple files

2003-10-03 Thread Evan Nemerson
Dunno if you can do this through curl (honestly never used it), but you could always do for ( $x=0 ; $x<=10 ; $x++ ) { curl_setopt($ch, CURLOPT_URL, "http://www.server.com/file";. (($x < 10) ? '0' : '').$x.".txt"); } Sincerely, Captain Obvious On Friday 03 October 2003

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread John W. Holmes
Ryan A wrote: I think you're on thin ice dude, all she has to do is type your name in google and guess whatafter she catches up with you...you're not gonna be able to move even your little finger to type no more :-D Dude... have you EVER typed my name into google?? You may be amazed at the ot

Re: [PHP] embedding code

2003-10-03 Thread John Taylor-Johnston
John Apache. How exactly? John "John W. Holmes" wrote: > John Taylor-Johnston wrote: > > Brian or anyone, > > > > Ok, supposing I don't want someone to be able to use

[PHP] libcurl and getting mutiple files

2003-10-03 Thread bike
i know that with command line curl i can do this: % curl http://www.server.com/file[01-10].txt and it will get all files: file01.txt - file10.txt how can i achive this with libcurl? when i do curl_setopt($ch, CURLOPT_URL, "http://www.server.com/file[01-10].txt";); it always bombsis ther

Re: [PHP] method to prevent multiple logons of same account

2003-10-03 Thread Raditha Dissanayake
Hi, I am in 100% agreement with mark. But if you want to go ahead with this it can be done easily with the proper use of mysql indexes. Assuming you are storing user information in the mysql db. If you reply back saying you store the userid in the session my reply is going to be. OUCH you hav

Re: [PHP] Printer Functions

2003-10-03 Thread Evan Nemerson
php.net/printer: "These functions are only available under Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4.0.4. Installation Add the line extension=php_printer.dll to your php.ini file." On Friday 03 October 2003 02:15 pm, Roger Spears wrote: > Hello, > > I was wondering if a

Re: [PHP] Tracking IP Addresses

2003-10-03 Thread Evan Nemerson
Well you're going to need to play with ARIN, APNIC, and RIPE. First, figure out which group the IP belongs to, then query their database. That will provide a good hint as to the location, but it's far from perfect. You only get the location of the people who own that block. So everyone w/ AOHell

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Evan Nemerson
A4 is a paper size. IIRC the standard pretty much everywhere but the US. Now, it's been a while since I used FPDF, but taking a quick look at pdfp.php, here are some properties that stand out: var $fw,$fh; //dimensions of page format in user unit var $lMargin;//left margi

Re: [PHP] method to prevent multiple logons of same account

2003-10-03 Thread Marek Kilimajer
This has been discused several times befor and the conclusion is that these obstructions are wrong. What if the user loses its credentials and he is still considered loged in. He cannot log in again. If you bind the session to a IP address then you create problems for users behind proxy farms.

[PHP] method to prevent multiple logons of same account

2003-10-03 Thread Chris W. Parker
Hi. Ok I've got the logging in of customer accounts settled but what I need to work into the system is that of preventing more than one instance of the same account. If I logon right now as testuser1 on ComputerA and then go to ComputerB and login as testuser1 it'll work just fine. What I want to

RE: [PHP] Tracking IP Addresses

2003-10-03 Thread Chris W. Parker
Stephen Craton on Friday, October 03, 2003 1:19 PM said: > I'm wanting to track IP addresses by pinpointing their geological > location (country and whatever) but I have no idea how to go about > doing this. I've been searching on the net and PHP websites all day > b

Re: [PHP] why does this script mysteriously die?

2003-10-03 Thread Marek Kilimajer
Craig Lonsbury wrote: it's not a time limit or safe mode issue, the script is currently running, and has been for about 10 minutes. it's not a fast script =( Craig echo out and flush() each image name you are going to process, the script might be dying on some broken picture. -- PHP General Ma

Re: [PHP] dir size

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 02:14:14PM -0500, Jay Blanchard wrote: : [snip] : > > > : > > > $foo = exec("du -h"); : > > : > > Hmmm this solution would appear to include the file sizes :D : > : > man du :D : : et du? LMAO! :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 08:57:17AM -0700, Chris Shiflett wrote: : : --- Eugene Lee <[EMAIL PROTECTED]> wrote: : > > : > > On each protected page, put an IF ($logged == "yes") { //show page etc } : > > else {//show login form etc } : > : > You should use $_COOKIE['logged'] instead. :-) : : Whi

RE: [PHP] why does this script mysteriously die?

2003-10-03 Thread Craig Lonsbury
it's not a time limit or safe mode issue, the script is currently running, and has been for about 10 minutes. it's not a fast script =( Craig >Is safe mode on? > >Craig Lonsbury wrote: >> Hi All, >> I have a script that takes a directory of user uploaded files >> and resizes them to the require

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Ryan A
ASP?!?!?? bite your tongue, pigs flying or not...dont get such dirty thoughts into your head. I think you're on thin ice dude, all she has to do is type your name in google and guess whatafter she catches up with you...you're not gonna be able to move even your little finger to type no more :-

Re: [PHP] Printer Functions

2003-10-03 Thread Marek Kilimajer
Check the manual. It's windows only extension, you must have php_printer.dll in your extension directory and extension=php_printer.dll must be in php.ini Roger Spears wrote: Hello, I was wondering if anyone has had any level of success with printer functions. I'm trying to get the following co

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
Good advice! Thanks! Jeff > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 5:19 PM > To: Jeff McKeon; php > Subject: RE: [PHP] User Authentication Continued > > > > --- Jeff McKeon <[EMAIL PROTECTED]> wrote: > > > $query="SELECT

Re: [PHP] why does this script mysteriously die?

2003-10-03 Thread Marek Kilimajer
Is safe mode on? Craig Lonsbury wrote: Hi All, I have a script that takes a directory of user uploaded files and resizes them to the required sizes. I was given ~750 test pix to run through, and my solution only sorta works. The problem is that it won't get through the whole batch without dying. I

Re: [PHP] why does this script mysteriously die?

2003-10-03 Thread Curt Zirzow
* Thus wrote Craig Lonsbury ([EMAIL PROTECTED]): > Hi All, > I have a script that takes a directory of user uploaded files > and resizes them to the required sizes. I was given ~750 test > pix to run through, and my solution only sorta works. The problem > is that it won't get through the whole bat

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: I don't know what is A4 page. Problem is I don't use PDF very, very often so I'm a newbie on PDF It is a sheet of paper with defined size. Some common sizes: mmin widthheghtwidth heght A4 - 209.90 297.04 8.26 11.69 Lette

[PHP] why does this script mysteriously die?

2003-10-03 Thread Craig Lonsbury
Hi All, I have a script that takes a directory of user uploaded files and resizes them to the required sizes. I was given ~750 test pix to run through, and my solution only sorta works. The problem is that it won't get through the whole batch without dying. It will process anywhere between 13 to 35

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
I don't know what is A4 page. Problem is I don't use PDF very, very often so I'm a newbie on PDF "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote: > > I would never guess about the ruler to measure the width because it wouldn't > > work that

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: I would never guess about the ruler to measure the width because it wouldn't work that way. Why? Because the PDF page can be in any size when I either maximize the Acrobat Reader or use the mouse cursor to make it wider or narrower. This does not help me to measure the actu

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
I would never guess about the ruler to measure the width because it wouldn't work that way. Why? Because the PDF page can be in any size when I either maximize the Acrobat Reader or use the mouse cursor to make it wider or narrower. This does not help me to measure the actual width of the PDF so

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Chris Shiflett
> --- Jeff McKeon <[EMAIL PROTECTED]> wrote: > > $query="SELECT * from tickets where VesselID='$_GET['vesselid']' > > order by Status DESC, Created ASC"; > > $query = "select * from tickets where vesselid = '{$_GET['vesselid']}' > order by status desc, created asc"; > > Note the curly b

[PHP] Printer Functions

2003-10-03 Thread Roger Spears
Hello, I was wondering if anyone has had any level of success with printer functions. I'm trying to get the following code to work: I get the following error: "printer_open() is an undefined function". I'm guessing that the printer functions were never installed with my version of PHP?.?.?.

Re: [PHP] Tracking IP Addresses

2003-10-03 Thread Marek Kilimajer
Stephen Craton wrote: So I'm going to have to use a 3rd party script? Is there not a way to make the IP tracker on your own in any way? You can write a script that queries your own ip2geodata database but you would need the database in the first place. -- PHP General Mailing List (http://www.php.

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: Bingo Did a lot of searching and found some code and modify it... --snip-- //Logo $size="100"; //(min 0, max 210; it's for making image big or small, nothing else) $absx=(210-$size)/2; $this->Image('images/Logo.jpg',$absx,5,$size); --snip-- Well,

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
One more mystery solved. Thanks one and all Jeff > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 4:55 PM > To: Jeff McKeon > Cc: PHP-General; [EMAIL PROTECTED] > Subject: RE: [PHP] User Authentication Continued > > >

Re: [PHP] User Authentication Continued....

2003-10-03 Thread Curt Zirzow
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]): > Actually, here's the problem I get with using global variables in a > mysql_query string.. > > [error begin] > PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING > [error end] > >

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 16:44, Jeff McKeon wrote: > Actually, here's the problem I get with using global variables in a > mysql_query string.. > > [error begin] > PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING > [error end] >

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Chris Shiflett
--- Jeff McKeon <[EMAIL PROTECTED]> wrote: > $query="SELECT * from tickets where VesselID='$_GET['vesselid']' > order by Status DESC, Created ASC"; $query = "select * from tickets where vesselid = '{$_GET['vesselid']}' order by status desc, created asc"; Note the curly braces. Hope tha

RE: [PHP] Tracking IP Addresses

2003-10-03 Thread Larry Rosenman
IP's are not locked to a geographical area. Period. LER --On Friday, October 03, 2003 15:46:46 -0500 Stephen Craton <[EMAIL PROTECTED]> wrote: So I'm going to have to use a 3rd party script? Is there not a way to make the IP tracker on your own in any way? Thanks, Stephen Craton http://www.mel

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
Bingo Did a lot of searching and found some code and modify it... --snip-- //Logo $size="100"; //(min 0, max 210; it's for making image big or small, nothing else) $absx=(210-$size)/2; $this->Image('images/Logo.jpg',$absx,5,$size); --snip-- "Scott Fletcher" <[EMAIL P

RE: [PHP] Tracking IP Addresses

2003-10-03 Thread Stephen Craton
So I'm going to have to use a 3rd party script? Is there not a way to make the IP tracker on your own in any way? Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -Original Message- From: Duncan [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003

RE: [PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
Actually, here's the problem I get with using global variables in a mysql_query string.. [error begin] PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING [error end] [code begin] $query="SELECT * from tickets where VesselID='$_GET

RE: [PHP] Tracking IP Addresses

2003-10-03 Thread Duncan
> Thanks, but how would I get the results in PHP? What I'm trying to do > involves getting the user's IP address then finding where they are, like > what country, and then showing content specific stuff. Good luck tracking AOL IPs :) They seem to use a common pool across the world. That said, I

[PHP] Re: Tracking IP Addresses

2003-10-03 Thread zerof
Try: http://www.maxmind.com - zerof - "Stephen Craton" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > I'm wanting to track IP addresses by pinpointing their geological location > (country and whatever) but I have no idea how to go about doing this. I've been searching on

RE: [PHP] Tracking IP Addresses

2003-10-03 Thread Stephen Craton
Thanks, but how would I get the results in PHP? What I'm trying to do involves getting the user's IP address then finding where they are, like what country, and then showing content specific stuff. Thanks, Stephen Craton http://www.melchior.us -- http://www.melchior.us/portfolio -Original

Re: [PHP] Tracking IP Addresses

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 16:19, Stephen Craton wrote: > Hello, > > I'm wanting to track IP addresses by pinpointing their geological location > (country and whatever) but I have no idea how to go about doing this. I've > been searching on the net and PHP websites all day but with no luck. Can > anyon

[PHP] Tracking IP Addresses

2003-10-03 Thread Stephen Craton
Hello, I'm wanting to track IP addresses by pinpointing their geological location (country and whatever) but I have no idea how to go about doing this. I've been searching on the net and PHP websites all day but with no luck. Can anyone point me towards a tutorial site or explain to it for me?

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
Yea, saw that in the source code, with further analysis, haven't gotten around to something like this... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I don't have the sources at hand, but if I remember the width is stored > in the class variable 'w'. > > Scott Fl

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 16:08, CPT John W. Holmes wrote: > From: "Ryan A" <[EMAIL PROTECTED]> > > > While there I had a funny thought, if for whatever reason the php list > > closes downJohn Holmes is probably gonna kill himself :-D with the > spare > > time he will suddenly find himself having!

Re: [PHP] File Download

2003-10-03 Thread Grant Rutherford
Maybe I should clarify this: I have a the php file: /var/www/html/dev/view_files_disply.php This file accepts a POST argument which identifies $filename (example 1392_foobar.txt) of a file stored on the server at: /var/www/html/files/1392_foobar.txt This filename is generated by PHP and is there

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
OIC, saw the forum link at that website... Thanks... Scott F. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Where is that forum?? > > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Saturday 04 October 2003 04:03, Scott Fletcher

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Marek Kilimajer
I don't have the sources at hand, but if I remember the width is stored in the class variable 'w'. Scott Fletcher wrote: Hi! I tried out the Free PDF Library for creating the PDF at www.fpdf.org and it showed the php function, Image() and I read the documentation on this Image() on what para

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
Where is that forum?? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 04 October 2003 04:03, Scott Fletcher wrote: > > > I tried out the Free PDF Library for creating the PDF at www.fpdf.org > > and it showed the php function, Image() and I read the docum

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > While there I had a funny thought, if for whatever reason the php list > closes downJohn Holmes is probably gonna kill himself :-D with the spare > time he will suddenly find himself having! Naa... I'd just go learn ASP, since pigs would be flying and all.

Re: [PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Jason Wong
On Saturday 04 October 2003 04:03, Scott Fletcher wrote: > I tried out the Free PDF Library for creating the PDF at www.fpdf.org > and it showed the php function, Image() and I read the documentation on > this Image() on what paramenters are being used inside this function but > what I found i

[PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
Hi! I tried out the Free PDF Library for creating the PDF at www.fpdf.org and it showed the php function, Image() and I read the documentation on this Image() on what paramenters are being used inside this function but what I found instead is that the X,Y coordinate is specified only from the

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Ryan A
Hey Curt, Just had a look at it, really cool stuff. If you decide to release the code let me know as i am sure I (and quite a few others) will learn a few things from it, if not, its still a very very nice bunch of scripts. While there I had a funny thought, if for whatever reason the php list cl

Re: [PHP] User Authentication Continued....

2003-10-03 Thread Chris Shiflett
--- Jeff McKeon <[EMAIL PROTECTED]> wrote: > The problem I'm having is with the $_GET variables. I guess I'm not > declaring them correctly. Do I need to set them as soon as the page > loads, and outside of any functions like so.. > > [code start] > $custid = $_GET['custid']; > $custname = $_GET['

Re: [PHP] dir size

2003-10-03 Thread Nathan Taylor
Hey, I think I mis-understood you and my first version didn't do what you want, so I added what you needed. 0) { $open2 = opendir($directory); while($folders = readdir($open2)) { $folder = $directory."/".$folders; if($folders == ".." || $folders == ".") continue; if(is_dir($fol

Re: [PHP] User Authentication Continued....

2003-10-03 Thread Kris Yates
I guess you would either need to make the vars global or else keep redeclaring them. Obviously, redeclaring them in each function $var=$_GET["whatever"] is technically the more secure method. Kris Jeff McKeon wrote: Ok, I've got the user authentication thing down and now I'm continuing to bu

RE: [PHP] dir size

2003-10-03 Thread Jay Blanchard
[snip] > > > $foo = exec("du -h"); > > > > Hmmm this solution would appear to include the file sizes :D > > man du :D et du? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] User authentication

2003-10-03 Thread Jeff McKeon
Yes, I'm the one creating the accounts in the database, users can't create their own accounts nor do they have permissions to create new users. Thanks! Jeff > -Original Message- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 3:09 PM > To: Jeff McKeon;

Re: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 15:02, Gabriel Guzman wrote: > On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > > [snip] > > > is it possible to count a size of a dir and all sub dirs in php ? and > > > if, > > > how? > > > [/snip] > > > >

[PHP] User Authentication Continued....

2003-10-03 Thread Jeff McKeon
Ok, I've got the user authentication thing down and now I'm continuing to build my trouble ticket tracking system. So from a "customer profile" page there is a link to "Open Ticket" which brings up a page to open a trouble ticket. [html code] HREF=./open_ticket.php?custid=$custid&custname=$cus

Re: [PHP] dir size

2003-10-03 Thread Curt Zirzow
* Thus wrote Ms Carlsson ([EMAIL PROTECTED]): > is it possible to count a size of a dir and all sub dirs in php ? and if, > how? Dir size is rather vague. Are you wanting how many items are in the dir? or how many bytes is allocated for it? or how many bytes are actually used in the dir? What i

RE: [PHP] User authentication

2003-10-03 Thread Chris Shiflett
--- Jeff McKeon <[EMAIL PROTECTED]> wrote: > Well both variables $userid and $userpassword are bounced off of a > user database table, if the username/password don't match then the > session variables are cleared with a session_destroy() call. Is that > a good enough validation? Yes, as long as y

[PHP] Re: mail() function, how to get it work?

2003-10-03 Thread Manuel Lemos
Hello, On 10/03/2003 12:44 PM, Kristian Snabb wrote: How do I set up the mail() function in php.ini. How do I define the username and password? My smtp service requires me to log on. I'm using Apache 2.0.47 on WinXP Pro. There is no way to set SMTP authentication using the mail() function. You

Re: [PHP] dir size

2003-10-03 Thread Gabriel Guzman
On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > [snip] > > is it possible to count a size of a dir and all sub dirs in php ? and > > if, > > how? > > [/snip] > > > > $foo = exec("du -h"); > > Hmmm this solution would appear to incl

[PHP] File Download

2003-10-03 Thread Grant Rutherford
Hi there, I would like to send an arbitrary file to a user. This file will be on the server in the PHP directory. I will also want to rename it before it is sent, but keep the old file with the old filename. Any help is appreciated... Thanks, Grant -- Grant Rutherford Iders Incorporated 600A

RE: [PHP] User authentication

2003-10-03 Thread Jeff McKeon
> --- Jeff McKeon <[EMAIL PROTECTED]> wrote: > > $_SESSION['userid'] = $userid; > > $_SESSION['userpassword'] = $userpassword; > > [snip] > > > Anything look wrong or insecure with all of this? > > The only thing that catches my attention is your assignments > for $_SESSION['userid'] and $_SE

RE: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > [snip] > is it possible to count a size of a dir and all sub dirs in php ? and > if, > how? > [/snip] > > $foo = exec("du -h"); > Hmmm this solution would appear to include the file sizes :D Rob -- .-

Re: [PHP] PHP as a Servlet in Tomcat

2003-10-03 Thread Ray Hunter
Try running php is from a servlet environment. Basically in tomcat you set up a servlet that handles your *.php files and calls the php executable. This is like php cgi so it can be slow. -- BigDog On Fri, 2003-10-03 at 12:11, David Erickson wrote: > Hi I am wondering if anybody has successful

RE: [PHP] dir size

2003-10-03 Thread Jay Blanchard
[snip] is it possible to count a size of a dir and all sub dirs in php ? and if, how? [/snip] $foo = exec("du -h"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dir size

2003-10-03 Thread Ms Carlsson
is it possible to count a size of a dir and all sub dirs in php ? and if, how? thanx _ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Dates

2003-10-03 Thread Kris Yates
Also, an option is to have that SQL field set as date. With postgres, I can insert 09-12-1967 and the sql server auto converts it to 1967-09-12 upon saving into date field. However, another way is.. Jay Blanchard wrote: [snip] Ok, Mayve I need to be a little clear, I under the link below as

RE: [PHP] PHP Editor

2003-10-03 Thread Chris W. Parker
Nico Berg on Friday, October 03, 2003 12:38 AM said: > Hi, I have found the solution to my problem, I share it > http://phpeditors.linuxbackup.co.uk/ OOH! OOH! OOH! This should be added to the weekly PHP Newbie post!!! chris. -- PHP General Mailing L

RE: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Chris W. Parker
Curt Zirzow on Friday, October 03, 2003 8:26 AM said: > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ Cool page! But if you would do us all a favor and give your pages some useful 's, because you know, EVERY PAGE IS CALLED "PHP DEVELOP

RE: [PHP] Dates

2003-10-03 Thread Jay Blanchard
[snip] Ok, Mayve I need to be a little clear, I under the link below as showing dates. What I need to know how can I take the input of 09-12-1967 and have enter into a mysql data using php as 1967-09-12? Because everything that is past from my form to mysql is not the way it was enter. Would I

[PHP] PHP as a Servlet in Tomcat

2003-10-03 Thread David Erickson
Hi I am wondering if anybody has successfully been able to run PHP in a servlet only environment? I am trying to setup php to run as a servlet within tomcat on my win2k box and am having encredible difficulties.. here are the specs and the problem. Any suggestiongs extremely appreciated: Jakarta

Re: [PHP] Dates

2003-10-03 Thread Payne
Ok, Mayve I need to be a little clear, I under the link below as showing dates. What I need to know how can I take the input of 09-12-1967 and have enter into a mysql data using php as 1967-09-12? Because everything that is past from my form to mysql is not the way it was enter. Would I need t

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread CPT John W. Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ > > I had to build some cache tables, grouping 141852 records on the > fly just wasn't fast enough, excpecially for my 233. Looks good to me. :) I also have 8 posts under [EMAIL

Re: [PHP] Committing OO Sin

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 12:40, Gerard Samuel wrote: > Jay Blanchard wrote: > > >Global space? Yes, what you're talking about, if possible, is a sin. > > > >Why is getting the classes to work together a pain? > > > A little misleading about what Im feeling. > Im feeling that the more classes that I

Re: [PHP] str_word_count Broken?

2003-10-03 Thread Marek Kilimajer
str_word_count is available since version 4.3. Check your setup, someone restarted webserver with wrong config directory specified. Steven Walker wrote: I ran into a strange problem this morning. Suddenly I am getting an error that str_word_count is undefined, even though it has been working fo

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Raditha Dissanayake
The ones I tried were lame. Haven't studied your engine yet so i have yet to decide whether it's lame or not ;-) best regards Robert Cummings wrote: On Fri, 2003-10-03 at 11:30, Raditha Dissanayake wrote: Hi, Please give it a shot, it's real easy. far easier than any of the lame php templa

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Sid
If I've got my basics right, the auth user and pass will be sent by the browser. You will need a way to tell the browser not to send the user and pass anymore. - Sid - Original Message - From: "James D. Stallings" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 3 October 2003 Friday 9:0

Re: [PHP] Committing OO Sin

2003-10-03 Thread Gerard Samuel
Jay Blanchard wrote: Global space? Yes, what you're talking about, if possible, is a sin. Why is getting the classes to work together a pain? A little misleading about what Im feeling. Im feeling that the more classes that I add the more cumbersome things get, and at the rate Im going, I get th

[PHP] str_word_count Broken?

2003-10-03 Thread Steven Walker
I ran into a strange problem this morning. Suddenly I am getting an error that str_word_count is undefined, even though it has been working for the past few months. Anyone know why this may be? Nothing in the my code has changed at all. I did phpinfo() to check the server and it is running 4.2.

Re: [PHP] PHP Session not working

2003-10-03 Thread Php2tor
Maybe enable track_vars in php.ini ? "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] We are facing some problems in using sessions in our applications. Recently we have moved our web site to a new Apache server (1.3). We have installed PHP on this server. But ses

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Marek Kilimajer
it is virtualy impossible to make the browser forget the credentials. How this is solved is that the logoff link is login.php?logoff=username In login.php you check for $_GET['logoff'] variable, if it is set you will not let the user with the same name ($_GET['logoff']) log in. James D. Stalling

Re: [PHP] PHP and .HTACCESS

2003-10-03 Thread Chris Shiflett
--- "James D. Stallings" <[EMAIL PROTECTED]> wrote: > I user goes to www.mysite.com and clicks on a link called STAFF > The STAFF.mysite.com is protected with authentication using > .htaccess The staff enters their ID and Password and is allowed in. > I want to have a button that says LOGOFFF that

[PHP] PHP and .HTACCESS

2003-10-03 Thread James D. Stallings
I am new to learning PHP and have learned a lot over the last few weeks. One thing that I can not find anywhere is how to code it so a user can click logoff and have it route them to another page and remove their authentication that was set. ie... I user goes to www.mysite.com and clicks on a

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > > setcookie("logged", "yes"); > > > > On each protected page, put an IF ($logged == "yes") { //show page etc } > > else {//show login form etc } > > You should use $_COOKIE['logged'] instead. :-) While we're talking about "should", you should also ne

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > 1. Can sessions work in the same way as my cookies? (Just remember > a value to a variable, accross many page) Yes, they address the same challenge: persisting data. Also, please realize that sessions can use cookies for identification. One of the benefits of using

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 04:31:23PM +0100, [EMAIL PROTECTED] wrote: : : I currently remember my visitors on my site by setting a cookie thusly: : : setcookie("logged", "yes"); : : On each protected page, put an IF ($logged == "yes") { //show page etc } : else {//show login form etc } You should

Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread Robert Cummings
See the "include_path" setting in your php.ini file. Cheers, Rob. On Fri, 2003-10-03 at 11:35, Golawala, Moiz M (IndSys, GE Interlogix) wrote: > Hi, > > I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of > my scripts use a bunch of open source libraries. Until

Re: [PHP] Cookies Vs Sessions...?

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 11:31, [EMAIL PROTECTED] wrote: > Age old question...? > Please don't flame if it is > > I currently remember my visitors on my site by setting a cookie thusly: > > setcookie("logged", "yes"); > > On each protected page, put an IF ($logged == "yes") { //show page etc }

Re: [PHP] set the PHP to look at library files.

2003-10-03 Thread J Morton
I would suggest creating a path alias in your Apache httpd.conf file to recognize (i.e) /includes/ and redirect as needed. Justin "Golawala, Moiz M (IndSys, GE Interlogix)" wrote: > Hi, > > I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of > my scripts use a bun

[PHP] Cookies Vs Sessions...?

2003-10-03 Thread Tristan . Pretty
Age old question...? Please don't flame if it is I currently remember my visitors on my site by setting a cookie thusly: setcookie("logged", "yes"); On each protected page, put an IF ($logged == "yes") { //show page etc } else {//show login form etc } All good, works fine hooray for me...

[PHP] set the PHP to look at library files.

2003-10-03 Thread Golawala, Moiz M (IndSys, GE Interlogix)
Hi, I am running PHP with apache. I put all my webpages in the htdocs folder. A lot of my scripts use a bunch of open source libraries. Until now I have been including these libraries in my scripts by defining a full path to the library 'inc' files. If I put the library itself in my htdocs fol

Re: [PHP] NEW: XML Application Objects

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 11:30, Raditha Dissanayake wrote: > Hi, > > Please give it a shot, it's real easy. far easier than any of the lame > php template systems i have seen. The beauty is that the same XML/XSL > combo can be used with PHP, perl, JSP/Servlets, C++, VC++,VB,C,C# and > the list goe

Re: [PHP] PHP coders spare time [OT}

2003-10-03 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Something like this: > http://zirzow.dyndns.org/html/mlists/php_general/ > > I had to build some cache tables, grouping 141852 records on the > fly just wasn't fast enough, excpecially for my 233. Very nice, and yes, home-grown caching is a wonderful

  1   2   >