[PHP] how to know upload progress status

2002-07-10 Thread S.
Hello, I'm beginning to use PHP, maybe my question is very simple... Anyway, I want permit users to upload files using a form, and I would show them the upload progress status... I don't know how to extract informations about upload progress status and how to show informations to users. For exam

[PHP] Session, performance, timeout

2002-07-10 Thread Fredrik Nygren
I use PHP sessions for my sites. The session_set_save_handler() is set to "Files". I would like to increase the gc_maxlifetime to get longer sessions. Today my sites generate about 1500-2000 simultaneous sessions. The number of sessions will probably grow if I increase the gc_maxlifetime. My q

Re: [PHP] Table Making

2002-07-10 Thread Tyler Longren
I'm not sure if you can do that because you have to go row by row when writing html, not column by column. I could be mistaken though. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 10 Jul 2002 22:34:15 -0800 "Jason Soza" <[EMAIL PROTECTED]> wrote:

Re: [PHP] php4apache.dll...

2002-07-10 Thread Tyler Longren
Use this file instead: php4apache2.dll It's supposedly in the sapi directory. Did you search the internet for this subject before you posted? If not, you should have. There's lots of info on this "missing" file. if you can't find a working version anywhere, mail the php-dev mailing list, they

RE: [PHP] Table Making

2002-07-10 Thread Jason Soza
Thanks for the code improvement, but that will still print results from left to right, top to bottom, i.e. the items ascend left to right in the rows. I'm not concerned with the actual order that they come out of MySQL in, just how they're displayed. Basically, instead of this: 1 2 3 4 5 6 7

RE: [PHP] Table Making

2002-07-10 Thread Martin Towell
This is the logic I would use count number of results table rows = num results / 5(maybe floor() or ceil() it) read results into a 2D array fill column 1 first when column 1 fills up, reset row count to 0 and inc. col count whizz through your array and display the table as needed HTH Mar

[PHP] php4apache.dll...

2002-07-10 Thread Peter
Howdy can any one remember where to get the apache2 ver of php4apache.dll? Cheers Peter "the only dumb question is the one that wasn't asked"

Re: [PHP] Table Making

2002-07-10 Thread Analysis & Solutions
Jason: On Wed, Jul 10, 2002 at 10:04:45PM -0800, Jason Soza wrote: > > I have this nice piece of code to take my SQL result and organize it into a > nice 5 column table: Nice is in the eye of the beholder... Here's what I think is nice: echo "\n"; echo " \n"; while ($row = mysql_fetch_

[PHP] Table Making

2002-07-10 Thread Jason Soza
I'm driving myself crazy trying to visualize what I want to do, so I thought I'd share the insanity and hope for some advice. I have this nice piece of code to take my SQL result and organize it into a nice 5 column table: print "\n"; //start table $i=0; //define variable - av

Re: [PHP] rh 7.3

2002-07-10 Thread Yamin Prabudy
Thanks guysit's work now. On Wednesday 10 July 2002 04:39 pm, Chris Hewitt wrote: > Yamin, > > You probably chose not to install bison or flex when you installed > RedHat. They are on your CDs. > > HTH > Chris > > Yamin Prabudy wrote: > >Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I

Re: [PHP] Editing files by line

2002-07-10 Thread Analysis & Solutions
On Thu, Jul 11, 2002 at 02:11:30PM +1000, Martin Towell wrote: >> From: Chris Earle [mailto:[EMAIL PROTECTED]] >> >> I was wondering if there was a function that would allow me to "jump" >> to a certain line if a file and then write from there? I'm searching >> php.net without any luck :(. > >

Re: [PHP] need help about this

2002-07-10 Thread Anas Mughal
How are you getting this error? Are you trying to create the table? [EMAIL PROTECTED] wrote: MySQL Error : Database Error Error Number: 1050 Table 'book_auth' already exists what this meant? what should i do for correct

RE: [PHP] need help about this

2002-07-10 Thread Sachin Keshavan
You are creating a table which already exists. The easy way to get out of this, is either create a table with a different name or drop the existing table and re-create it. Cheers, Sachin. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Philip Olson
PHP tries very hard to remain BC, in fact, some will say too hard :) The register_globals change was the biggest change in PHP history, can't think of any other change that comes close. And, that only changed the default value for this directive, you can turn it on if you wish. The PHP 4

[PHP] Breaking Dynamic Content into Pages...

2002-07-10 Thread Monty
I'm trying to determine the best way to break dynamic content into pages before flowing into a template (with "1|2|3" type paging icons at the bottom of the page). I considered using a user-defined type code like "[pagebreak]" that would allow content contributors to determine the page breaks them

Re: [PHP] need help about this

2002-07-10 Thread Tyler Longren
"Table 'book_auth' already exists" means that you're trying to create the 'book_auth' table again, even though it already exists. Remove the old 'book_auth' table to create the new one. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 11 Jul 2002 13:

[PHP] Re: sendmail_path help

2002-07-10 Thread Chris Earle
Can you just use the built-in mail function? mail("[EMAIL PROTECTED]", "Errors", $ObjectGET->EMAIL, // doesn't have to be an object "From: [EMAIL PROTECTED]\n" ."Reply-To: [EMAIL PROTECTED]\n" ."X-Mailer: PHP/" . phpversion()); "Ricky Dhatt" <[EMAIL PROTECTED]> wrote in mes

RE: [PHP] need help about this

2002-07-10 Thread Peter
means the table ur trying to create already is there... if u don't want to keep the table do a DROP tablaename in mysql or if not then change the name of the table you are trying to create > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 1

Re: [PHP] sort problem

2002-07-10 Thread Analysis & Solutions
Please post the relevant table and field names. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C

[PHP] need help about this

2002-07-10 Thread aromania
MySQL Error : Database Error Error Number: 1050 Table 'book_auth' already exists what this meant? what should i do for correct this thaank you for your help sincerly your -- tjandra ==

Re: [PHP] Date formatting

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:25:08PM -0500, Rw wrote: > > "01-02-2003" > > Is there a handy function to convert that to other ways of expressing the > date such as: > > "01/02/03" $temp = preg_replace('/^(\d{2})-(\d{2})-(\d{2})(\d{2})$/', '\\1/\\2/\\4', $date); > "2003-01-02" $temp = preg_r

Re: [PHP] Appending to a file

2002-07-10 Thread Chris Earle
Thanks again for this response. The computer is a Win2k server. Thanks for the tips. :) "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF508A5FE@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF508A5FE@EXCHANGE... > or use the unix command "wc" > > $num_lines =

Re: [PHP] Editing files by line

2002-07-10 Thread Chris Earle
That's what I was talking about :). I wish there was something built in that would just let me append a file where I want, that would make things a little easier. Oh well, thanks a lot for the help that makes sense (and I think it works). "Martin Towell" <[EMAIL PROTECTED]> wrote in message 641

Re: [PHP] Automatic Form creation

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 11:14:51AM -0600, CM wrote: > Are there any php scripts or classes that do Automatic Form Creation? If it > worked from a MySQL datbase that would be a plus. Check out my SQL Solution class: http://www.sqlsolution.info/ Makes it really easy to generate dynamic form elem

Re: [PHP] Development Tools

2002-07-10 Thread Chris Earle
I too am using a plain old text editor for PHP (Notepad), but I did enjoy the environment of Interdev for ASP... I think by far the best feature most development tools have to offer is the syntax highlighting, I like seeing comments in green/grey, with the plain text and vars in black, and a lot

RE: [PHP] Appending to a file

2002-07-10 Thread Martin Towell
or use the unix command "wc" $num_lines = `wc -l $file`; Martin -Original Message- From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 2:13 PM To: PHP List Subject: Re: [PHP] Appending to a file On Wed, Jul 10, 2002 at 12:45:01PM -0400, Chris Earle wrot

RE: [PHP] Editing files by line

2002-07-10 Thread Martin Towell
I dodn't know of any single function that does what you want, but you can do this: $contents = file($filename); // each line has it's own array position $contents[$line] = $newline; $content = implode("\n", $contents); $f = fopen($filename, "w"); fputs($f, $content); fclose($f); (not tested, b

Re: [PHP] Appending to a file

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:45:01PM -0400, Chris Earle wrote: > I'm just curious if there's a function that allows you to see how many lines > there are in a file. I don't recall there being one. Simple way: $Array = file('file.name'); echo count($Array); --Dan -- PHP cla

[PHP] Editing files by line

2002-07-10 Thread Chris Earle
I was wondering if there was a function that would allow me to "jump" to a certain line if a file and then write from there? I'm searching php.net without any luck :(. Also, if there is not specific function, is there a trick that gives the same effect (without reading the entire file line by li

RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Martin Towell
I use in both php3 and php4 and it works fine. All the commands that I have used are all forward compatible. I even have some php2 code that still works in php4! Martin -Original Message- From: George Hester [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 1:41 PM To: [EMAIL PR

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
> Run the command manually at a shell prompt. What happens? Here's what > happens for me on WinNT. In an error condition, say my password is > invalid, it retuns the error message then a blank line and then I'm back > at the prompt. So, if system() is true to the manual, that blank line is > t

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread George Hester
Thanks that worked just fine. But now I am irritated as hell. Obviously there is no backwards compatibility with new releases. Does this mean if I install a new version of PHP then all books published before that date are worthless? Seems so. For example in a book discussing PHP 3 it says:

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 07:04:58PM -0700, Fargo Lee wrote: > But if system() thinks it is a success because the command executed, even > though MySQL returns an internal error on the command line, why is'nt the > last line of the MySQL error message stored in the variable as the system() > manual

RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Balaji Ankem
Yes..That is right!!! :-) -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:53 AM To: Balaji Ankem Cc: [EMAIL PROTECTED] Subject: Re: [PHP] HTTP_USER_AGENT? It works for you because you have register_globals set to "on" in php.ini. If yo

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Tyler Longren
It works for you because you have register_globals set to "on" in php.ini. If you set it to "off" it won't work any longer. -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 11 Jul 2002 08:07:48 +0530 "Balaji Ankem" <[EMAIL PROTECTED]> wrote: > It is

RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Chris Kay
Have you tried $_SERVER["HTTP_USER_AGENT"] --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 V

[PHP] sendmail_path help

2002-07-10 Thread Ricky Dhatt
I've been trying to tweak my sendmail_path to work with some batch emails I have to sent out[1]. What'd like to do is set within a virtual site in httpd.conf: php_admin_value sendmail_path = "/usr/sbin/sendmail -t -oQ/var/spool/mqueue_batch -ODeliveryMode=q" Problem is when I do this, my email

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread George Hester
I wish I could say the same. Thanks. -- George Hester _ "Balaji Ankem" <[EMAIL PROTECTED]> wrote in message 005901c22883$f22d5840$[EMAIL PROTECTED]">news:005901c22883$f22d5840$[EMAIL PROTECTED]... > It is working fine for me!!! > > > -Original Message- > F

Re: [PHP] sigh... forms

2002-07-10 Thread Chris Earle
I don't have time to actually make the function for you, but I know it could be easily done with a single function and a double for loop, which could go through an two-dimensional array of the questions (first element), answers (next group except last), and the right answer (last element). basica

Re: [PHP] Script File Permissions

2002-07-10 Thread Chris Earle
That "clever guy" is my brother, so I know what buttons to push. I actually got the ability to be able to edit files through my scripts, so it does work. Thanks for the help/input! "Alberto Serra" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ðÒÉ×ÅÔ! > > Ch

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Justin French
Try: ... you might have a newer version of PHP (4.1+), which uses the global arrays like: $_SERVER $_POST $_GET $_SESSION $_COOKIE ... Justin French on 11/07/02 12:32 PM, George Hester ([EMAIL PROTECTED]) wrote: > I have this in my web site not in an executable folder: > > > > My Fi

RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Balaji Ankem
It is working fine for me!!! -Original Message- From: George Hester [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [PHP] HTTP_USER_AGENT? I have this in my web site not in an executable folder: My First PHP Program No problem.

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Andrew Brampton
the $HTTP_USER_AGENT varible contains nothing... Try doing a phpinfo(); to see what the correct varible to use is, it is most likly $_SERVER['HTTP_USER_AGENT'] since the way these varibles are handled changed a few versions ago Andrew "George Hester" <[EMAIL PROTECTED]> wrote in message [EMAIL

RE: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Peter
using dan's test below if u add a '/s' like so $output = system('dir /s c:\books', $return_var); you will get all contents os subdir's as well how ever i suggest working on a format as this tree's out along the page so maybe if u add a '/w' after the '/s'as well that will sort of so

[PHP] HTTP_USER_AGENT?

2002-07-10 Thread George Hester
I have this in my web site not in an executable folder: My First PHP Program No problem. I then put this in the same folder: My Second PHP Program Nothing appears. What's wrong? -- George Hester _ -- PHP General Mailing List (http://www.php

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
But if system() thinks it is a success because the command executed, even though MySQL returns an internal error on the command line, why is'nt the last line of the MySQL error message stored in the variable as the system() manual suggests it should be when system() thinks it is a success? "Analy

[PHP] Re: PHP & gd-2.0

2002-07-10 Thread Ricky Dhatt
I've done it, and it's quite a pain. Try http://www.php.net/~rasmus/gd.html and look for Rasmus's posts on google groups for some insight. One problem I had was that configure kept finding old gd's; I had go thru my system and rename them temporarly to get it to work. "Mike" <[EMAIL PROTECTED]>

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Fargo Lee
I ran a few tests as well and the few system commands I tried only saved the *last* line of the output in a variable on success as the manual suggests it should - better than nothing - but not the entire output as you seem to suggest you were able to do and what I have been trying to do. "Analysi

Re: [PHP] setcookie then redirect

2002-07-10 Thread Chris Shiflett
David Busby wrote: > List, > I'm trying to set a cookie like this: > function redirect() { > if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) { > $to = func_get_arg(0); > header("HTTP/1.1 301\n"); > header("Location:http://".$_SERVER['SERVER_NAME'].$to."\n");

Re: [PHP] File Uploading Question

2002-07-10 Thread Justin French
on 11/07/02 10:10 AM, Nick Oostveen ([EMAIL PROTECTED]) wrote: > I've got a (hopefully) simple question which is indirectly related to php. Very indirectly. Infact, it's completely a HTML/CSS question. Try the comp.infosystems.www.authoring.stylesheets newsgroup. Justin French -- PHP Gene

Re: [PHP] reports and reporting options?

2002-07-10 Thread Anas Mughal
also, check out: http://www.yourlegacy.org/annualReports/readme.pdf Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: php.net/pdf On Wed, 10 Jul 2002, Jeff D. Hamann wrote: > I've got a project that requires lots of "goofy" reports. These reports are > more than a simple html table (which would

[PHP] caching dynamic thumbnail

2002-07-10 Thread Roger Thomas
just would like to confirm here whether thumbnail images that i generated dynamically with gd is cached by browsers. a) i have a html frontend to call the php script that does that thumbnail. this html file, say, view.htm contains these lines: b) the thumbnailing works perfectly. but is thi

[PHP] Re: File Uploading Question

2002-07-10 Thread David Duong
Go to http://www.cs.tut.fi/~jkorpela/forms/file.html; It gives an example. Press Find on Page (ctrl+F for Internet Explorer) and type in "Style Sheet", you should find what you are looking for by reading the paragraph and any below that concern Style Sheet. For more info about Style Sheets do a

Re: [PHP] strange stuff in a class

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 09:50:27AM -, Alex Elderson wrote: > > class test { > function test() { > $globals['test2'] = &$this; > } > } > $test1 = new test(); > > The problem hier is that $globals['test2'] is a copy of > $globals['test1'] not a > references. Use "$GLOBAL

[PHP] File Uploading Question

2002-07-10 Thread Nick Oostveen
I've got a (hopefully) simple question which is indirectly related to php. I'm currently developing an application which includes functionality to allow users to upload image files. Does anyone here know of a way to customize the look of the HTML "file" input type? By this I mean changing the

Re[2]: [PHP] (OT) Erik Hegreberg - need headers for abuse@online.no

2002-07-10 Thread Nookie
Hello Justin, Thursday, July 11, 2002, 1:35:50 AM, you wrote: JF> Jason, JF> I too have this problem, and got the same response from them. JF> But I believe they weren't stripped out by your mail client, but by the PHP JF> list itself... because I didn't *forward*, I copied and pasted. JF> Ei

Re: [PHP] setcookie then redirect + Answer

2002-07-10 Thread David Busby
Read your data from $_COOKIE not $_COOKIES. David Busby wrote: > List, > I'm trying to set a cookie like this: > function redirect() { > if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) { > $to = func_get_arg(0); > header("HTTP/1.1 301\n"); > header("Location

Re: [PHP] (OT) Erik Hegreberg - need headers for abuse@online.no

2002-07-10 Thread Justin French
Jason, I too have this problem, and got the same response from them. But I believe they weren't stripped out by your mail client, but by the PHP list itself... because I didn't *forward*, I copied and pasted. Either that, or they can't be bothered dealing with the real issue :) I don't know w

[PHP] setcookie then redirect

2002-07-10 Thread David Busby
List, I'm trying to set a cookie like this: http://".$_SERVER['SERVER_NAME'].$to."\n"); header("Set-Cookie: sid=$sid;\n\n"); exit(); } } function login() { [... validation code here ...] // set my cookie setcookie("sid", $sid);

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote: > > This suggests, as do a few posts I just noticed in the manual, that > one cannot assign the output of system() and perhaps passthru() and exec() > to a variable. I forgot to mention, that's not accurate. I just ran a test to make su

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote: > > when made to fail MySQL does return an error on the command line yet the > variable does not hold FALSE as the manual suggests it should or anything > else. The behaviour of returning FALSE upon failure has to do with the system() cal

RE: [PHP] Development Tools

2002-07-10 Thread Nick Oostveen
While I can't speak for others, in our office we use template files which contain all HTML and then parse content generated from php scripts into them about 90% of the time. Not only does separating your code from your HTML make it easier to change the look of a site, but it also makes the co

Re: [PHP] varible in url question

2002-07-10 Thread Philip Olson
Please read this manual page, it has examples to suit your needs: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Wed, 10 Jul 2002, sven vandamme wrote: > on my page (lessen.php) > > i have a variable $sort > > if this varible is empty if enterd the p

Re: [PHP] question varibles and url

2002-07-10 Thread Danny Shepherd
What version of PHP are you using? Have you got register_globals on? If they're off you'll need to get the $sort variable by using $HTTP_GET_VARS['sort'] (or $_GET['sort'] if you're using PHP4.1.0 or later) You attachched the wrong file (html output instead of PHP source) You really could do wit

[PHP] Re: PHP & gd-2.0

2002-07-10 Thread Derick Rethans
Mike, I suggest you try the latest snapshot @ http://snaps.php.net/php-latest.tar.gz and configure like this: ./configure --with-gd=php --other options This will use the bundled GD library, which is more current than any 'official' release. The PHP Dev Team decided to bundle it to make sure t

Re: [PHP] Re: Development Tools

2002-07-10 Thread Bret L Conard
I have found dreamweaver intolerable due to it's writing the code. I usually write 8 lines to do something that DW takes 24 to do. (I'm all about slim code:) ). Also, the naming conventions that DW uses for functions and variables is too long and for me makes no sense. (Always with no rhyme or re

RE: [PHP] getdate

2002-07-10 Thread Brian V Bonini
Hmmm, wierd!! The server is physically in PDT I am in EDT but I have the servers time zone set to EDT and as I said "date" verifies the correct time but yet the script returns a time that is 4 hours ahead. Wierd :( > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]

[PHP] Re: newbie regex question..

2002-07-10 Thread David Duong
I am not quite sure but this will do the trick: http://64.4.14.24/spacer.gif\"; width=1 height=2>"; $fixedfile=preg_replace("/src=[^>]*?>/","src=\"\">", $fixedfile); #preg_replace("/[search]/","[replacement]",[string]); exit ($fixedfile); ?> I have made some differences from what you were tryi

Re: [PHP] getdate

2002-07-10 Thread Rasmus Lerdorf
Works fine here. Are you actually in EDT? On Wed, 10 Jul 2002, Brian V Bonini wrote: > Any idea why this is off by 4 hours? > > Server time zone is set correctly, > %date > Wed Jul 10 14:26:18 EDT 2002 > but the script below returns the time as being 4 hours later then that. > > > $dat

[PHP] getdate

2002-07-10 Thread Brian V Bonini
Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. 12) { $hours=$hours-12; $ampm="PM"; } elseif ($hours == 12) { $ampm="PM"; } if ( $mi

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Martin Clifford wrote: > Firstly, you should ALWAYS use an encryption algorithm for passwords. > For my site, I used md5() and match with that. > That way, even if someone does get a hold of the encrypted password, it's not in their best interest > (or maybe it is, if they're bored) t

[PHP] excel COM code example won't work....

2002-07-10 Thread Jeff D. Hamann
I've been trying to get the follwing example to work and it just doesn't seem to be able to handle php variables in some of the excel com function args, like: /* start entering data into the cells */ for( $i = 0; $i < 10; $i++ ) { $var_i = new Variant($i,VT_I4); echo $i. ""; ec

[PHP] Discard the previous message.

2002-07-10 Thread David Duong
Is their a 1 function method to remove an element within an array using its key instead of its position within the array? I am looking for a substitution for placing removing an element without having to make another array just to list all the array elements and then using that to specify where t

[PHP] another splice?

2002-07-10 Thread David Duong
Is their 1 function method to remove an element within an array using its key instead of its position within the element? I am looking for a substitution for placing removing an element without having to make another array just to list all the array elements and then using that to specify where t

RE: [PHP] Development Tools

2002-07-10 Thread Chris Kay
I don't know about anyone else, But in linux I use vi and as of yesterday I downloaded Vi for windows, it has great colours for coding... --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au

[PHP] PHP & gd-2.0

2002-07-10 Thread Mike
Hello, I'm trying to use imagecreatetruecolor & imagecopyresampled to resize some of my images. The problem is I can't get PHP Version 4.0.6 to recognize that I have gd-2.0 installed. I keep getting this error: Fatal error: imagecreatetruecolor(): requires GD 2.0 or later. I have these files in

RE: [PHP] varible in url question

2002-07-10 Thread Chris Kay
Php4? or 3? Have you tried $_GET["sort"] --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vu

Re: [PHP] varible in url question

2002-07-10 Thread Richard Baskett
It works fine on my system. If you have register globals off you'll need to do it this way: Rick And many strokes though with a little axe hew down and fell the hardest-timbered oak. - Shakespeare > From: "sven vandamme" <[EMAIL PROTECTED]> > Date: Wed, 10 Jul 2002 22:40:48 +0200 > To: [EMAI

RE: [PHP] Page not found problem

2002-07-10 Thread Lazor, Ed
Is it doing this for all php based files? Have you tried a php file that only has basic commands? Something like this: -Original Message- only display "No input file specified." message. This message is int

[PHP] varible in url question

2002-07-10 Thread sven vandamme
on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and sh

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I'm definitely curious and want to check out the debugging tools, performance analyzer, and database connectivity tools provided by PHPEd. I get the impression most developers do not integrate coding and content. Is this correct? -Ed -Original Message- These first two things are immedi

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I am too. I've developed an approach to coding with Dreamweaver that allows me to take advantage of WYSIWYG and my own style of coding at the same time. The MX version of Dreamweaver is supposed to add support for code snipets, and a few other things. I'm looking forward to checking them out. O

Re: [PHP] question varibles and url

2002-07-10 Thread Richard Baskett
I think you sent the wrong file... Rick Until you have learned to be tolerant with those who do not always agree with you; until you have cultivated the habit of saying some kind word of those whom you do not admire; until you have formed the habit of looking for the good instead of the bad ther

[PHP] question varibles and url

2002-07-10 Thread @cid
on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and sh

RE: [PHP] HTTP authentication

2002-07-10 Thread Varsha Agarwal
Hi, Thanks for the explaination. But that code does not pop up any login window. Do I need to do any settings for that?? --- Matt Schroebel <[EMAIL PROTECTED]> wrote: > > From: Varsha Agarwal > [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 10, 2002 4:30 PM > > >I thought it will ask som

RE: [PHP] HTTP authentication

2002-07-10 Thread Matt Schroebel
> From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 10, 2002 4:30 PM >I thought it will ask some user name and > password thing but it just displays me the string > "text to send if user hits cancel". > This is the code: > > header("WWW-Authenticate: Basic realm=\"My

Re: [PHP] Crash Course on PHP WORKS :: Registering Globals

2002-07-10 Thread Philip Olson
Please read: http://www.php.net/manual/en/language.variables.predefined.php Regards, Philip Olson On Wed, 10 Jul 2002, vins wrote: > OK if you are running php on apache and your form variables don't pass > through > fire up your editor and edit php.ini and turn "Register Globals ON"

Re: [PHP] Page not found problem

2002-07-10 Thread Chen
Chris, Thank you for the response. I think this is the php setting. If the user enter a page name 12345.pdf and there is no such page, the browse will show the page cannot be found and the HTTP 404 error. But if user enter 12345.php3 or 12345.html(IIS mapping these two kind of files to php.exe),

Re: [PHP] Re: Development Tools

2002-07-10 Thread Mark McCulligh
Just wanted to let you know the tab things is for indenting your code. You can highlight a couple rows hit tab to indent them together. Cool feature for moving blocks of code around and making the code look nice. Bad feature if you wanted the normal tab function. Mark. _

[PHP] HTTP authentication

2002-07-10 Thread Varsha Agarwal
Hi, I am reading HTTP authentication in php manual. It does not explain it from the basics of it. Can anyone tell me what exactly will the output of the following code? I thought it will ask some user name and password thing but it just displays me the string "text to send if user hits cancel". T

Re: [PHP] Re: Development Tools

2002-07-10 Thread Kevin Stone
Matt, you're little behind on the times. Most of the Homesite 5.0 editor has already been integrated into DreamweaverMX. They even have a Homesite "mode" which is what I use. :) There are many benefits to DreamweaverMX. The FTP functionality in is completely seamless and works very well. DWM

RE: [PHP] Can't get the example to work

2002-07-10 Thread Eugene.McQuade
hmmm...re-did it from scratch and get the same message. I've included the html script from the form as well: Bob's Auto Parts Bob's Auto Parts Order Form Item Quantity Tyres Oil Spark Plugs How did you find Bob's I'm a regular customer TV

Re: [PHP] Re: Development Tools

2002-07-10 Thread Mark McCulligh
>From my understanding the new Dreamweaver MX has Homesite in it. Dreamweaver, UltraDev and Homesite are one. I know in the install program you can pick your interface to look like Dreamweaver, Homesite or go with the NEW MX look. Not sure if this means you can jump back and forth between HomeSi

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Martin Clifford
Firstly, you should ALWAYS use an encryption algorithm for passwords. For my site, I used md5() and match with that. That way, even if someone does get a hold of the encrypted password, it's not in their best interest (or maybe it is, if they're bored) to crack it. I haven't testing the foll

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Richard Baskett
What I have done in the past is create a session variable that tells me that the person using that session is valid. It's really really hard to spoof a session variable. I did it this way after awhile since the original way that I did it was by checking their username/password in the session on

Re: [PHP] Page not found problem

2002-07-10 Thread Chris Hewitt
Chen, If the webserver cannot file a file then this is a webserver problem not php. You need to look at your IIS configuration/documentation. Sorry I can't help further, but I don't use IIS. HTH Chris Chen wrote: >I use php3 with IIS 5.0. When user typed a no existing .html or php3 >page, th

[PHP] Dumb session / cookie / password questions

2002-07-10 Thread Chad Day
I am a little confused about storing stuff in cookies/sessions and how to prevent spoofing of them. A user logs in, his e-mail address or user id and password(md5'ed) is checked against my database. Assuming it matches, I then set a cookie with the users id + email. What is to stop someone from

Re: [PHP] Re: Development Tools

2002-07-10 Thread Matthew K. Gold
The difference between Dreamweaver and Homesite is that Homesite is easier to customize, and it doesn't mess with your code the way that Dreamweaver does. If you're happy with Dreamweaver, you should stick with it. But if you want more control over your code, you should consider switching. Of co

[PHP] Re: Development Tools

2002-07-10 Thread Martin Clifford
Homesite (at least version 5.0) has support for more languages than DW4. Though I believe in DW4 you can customize the syntax highlighting to match any languages that *aren't* supported. I love Homesite 5. Not to mention that it runs a lot faster than DW because it doesn't have to load as ma

Re: [PHP] sort problem

2002-07-10 Thread Chris Hewitt
Ed, Andy Andy said that the points were in the users table. Table layouts would have been useful. It sounds to me as though the users table has not got its points up to date and needs updating from the scores table first. Then do the select on just the users table. My 2p (pence, I'm in the UK

  1   2   3   4   >