[PHP-WIN] Re: problems with mysql connections not closing

2003-09-02 Thread Chris Kranz
Chris, not sure if this is related to my question aka mysql_pconnect are u using mysql_pconnect or plain mysql_connect to connect to the database? This is the behaviour I'm getting, but with apache1.3.27/php4.3.2/mysql4.013 that was my first question to the guy who originally developed the

[PHP-WIN] Re: stuck with substr now .......

2003-09-02 Thread Chris Kranz
and for this i need to splitt the title retrieved from db to two strings .. $array = explode( /r/n, $stringToSplit ); print $array[0]; //first part print $array[1]; //second part -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] problems with mysql connections not closing

2003-09-01 Thread Chris Kranz
OS: Win 2k Web Server: Apache 1.3.27 PHP: 4.1.2 MySQL: 3.23.39 really can't tell if this is a coding issue, a software issue, or just a random bug somewhere... basically we have a fairly large intranet, serving up several thousand pages/hits everyday to mainly mac/pc users. somewhere, in all

[PHP-WIN] Re: MS Word COM Object formatting

2003-08-22 Thread Chris Kranz
you should be able to ... in word ... open up the html page from word itself, and then save it as a word doc... thinking in my head, soemthing along the lines of... $file=bios.html $word=new COM(Word.Application) or die(Cannot start word for you); $word-visible =0 ; $word-Documents-Open($file);

[PHP-WIN] COM - ADODB connection...

2003-08-21 Thread Chris Kranz
so i have something like this... $xlsFile = $_FILES['fileupload']['tmp_name']; //the file we're reading is the one we just uploaded $conn= new COM(ADODB.Connection) or die( did not connect ); $conn-Open(Driver={Microsoft Excel Driver (*.xls)};DBQ=$xlsFile;ExtendedProperties=Excel 8.0;);

RE: [PHP-WIN] Unable to Fork error using exec() or system()

2003-03-24 Thread Chris Kranz
Can you not run your external programs in a batch file? Or will that also run under cmd /c ? chris kranz fatcuban.com -Original Message- From: Dave Marr [mailto:[EMAIL PROTECTED] Sent: 24 March 2003 18:15 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Unable to Fork error using exec

RE: [PHP-WIN] Excel Spreadsheet as a datasource

2003-03-18 Thread Chris Kranz
I've used COM objects to write to Excel spreadsheets and had no-end of problems. But never tried reading from it, well, did minimal reading to find the next blank cell, so I guess it would be much the same. It's pretty simple stuff using the COM object to access it tho. chris kranz fatcuban.com

RE: [PHP-WIN] testing to see if a file exists in a directory

2003-03-11 Thread Chris Kranz
$path_to_file = http://www.yourwebsite.com/pdf/this_file.pdf; If( file_exists( $path_to_file ) ) { //do stuff } chris kranz fatcuban.com -Original Message- From: Herhuth, Ron [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 16:43 To: [EMAIL PROTECTED] Subject: [PHP-WIN] testing

RE: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Chris Kranz
Something like... $array_length = count( $myArray ); $myArray[$array_length + 1] = $new_data; This what your after? I think there might be a function for this tho, but I'm a bit thick :p chris kranz fatcuban.com -Original Message- From: Matt Babineau [mailto:[EMAIL PROTECTED] Sent

RE: [PHP-WIN] PHP array to JS function ???

2003-03-03 Thread Chris Kranz
much difference to your scripting. It can still be dynamic as you like... There may be some way of putting the array into the POST_VARS and then getting JS to read it out of there, but that's just an idea, and I dunno if that'd be supported at all. chris kranz fatcuban.com -Original Message

RE: [PHP-WIN] Re: php.ini

2003-03-03 Thread Chris Kranz
Or... Extension_dir = c:\php\extensions I think as default they've unpacked there? Not meaning to split hairs :p chris kranz fatcuban.com -Original Message- From: J.Veenhuijsen [mailto:[EMAIL PROTECTED] Sent: 03 March 2003 08:05 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: php.ini

RE: [PHP-WIN] Re: destroying COM objects

2003-02-28 Thread Chris Kranz
in PHP won't do this, and you quickly get a flooded machine with no memory or CPU power :p chris kranz fatcuban.com -Original Message- From: Michael Power [mailto:[EMAIL PROTECTED] Sent: 28 February 2003 11:58 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Re: destroying COM objects Rich

RE: [PHP-WIN] file write issues...

2003-02-27 Thread Chris Kranz
to write a null string, which apparently gives an erro :) Thanks for the help anyway ;) chris kranz fatcuban.com -Original Message- From: Sven Schnitzke [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 09:30 To: 'Chris Kranz' Subject: AW: [PHP-WIN] file write issues... Hi Chris, code runs

RE: [PHP-WIN] File Upload Help Needed

2003-02-25 Thread Chris Kranz
http://www.php.net/manual/en/features.file-upload.php Surprisingly enough, straight from the manual ;) chris kranz fatcuban.com -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 17:13 To: PHP Subject: [PHP-WIN] File Upload Help Needed PHP

[PHP-WIN] file write issues...

2003-02-25 Thread Chris Kranz
in there incase it was having trouble creating the file... which it's not, coz the file gets created fine. any help please? :) chris kranz http://www.fatcuban.com/ fatcuban.com

RE: [PHP-WIN] File Upload Help Needed

2003-02-25 Thread Chris Kranz
difference is $home_dir comes from my config file, and detects for itself what system it's on. chris kranz fatcuban.com -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 18:10 To: 'Chris Kranz' Subject: RE: [PHP-WIN] File Upload Help Needed

RE: [PHP-WIN] File Upload Help Needed

2003-02-25 Thread Chris Kranz
resources in there. chris kranz fatcuban.com -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 17:13 To: PHP Subject: [PHP-WIN] File Upload Help Needed PHP List, I'm new to PHP and I'd like to create a File Upload Page for my

RE: [PHP-WIN] Problems installation of Apache 2.0.44

2003-02-18 Thread Chris Kranz
You also need the file php4ts.dll in either the apache directory, the windows root, or in the path directive... chris kranz fatcuban.com -Original Message- From: Luis Ferro [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 15:07 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] Problems

RE: [PHP-WIN] Previous and Next Buttons

2003-02-17 Thread Chris Kranz
your currently on, and it should be fairly straight forward... Hope this helps anyway... chris kranz fatcuban.com -Original Message- From: Matt Babineau [mailto:[EMAIL PROTECTED]] Sent: 17 February 2003 15:03 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Previous and Next Buttons Hi All

RE: [PHP-WIN] Re: PHP or Apache isn't playing nice

2003-02-13 Thread Chris Kranz
Ah, missed this when I first looked at your problem. If you can't change register_globals in the php.ini file, try using $_GET[mod] instead of $mod chris kranz fatcuban.com -Original Message- From: wisi [mailto:[EMAIL PROTECTED]] Sent: 10 February 2003 03:57 To: [EMAIL PROTECTED

RE: [PHP-WIN] quotes and backslashes

2003-02-12 Thread Chris Kranz
Checkout the stripslashes() and addslashes() functions. Very cool for stuff like this, and very easy :) chris kranz fatcuban.com -Original Message- From: Per Lundberg [mailto:[EMAIL PROTECTED]] Sent: 12 February 2003 09:00 To: Bobo Wieland Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN

RE: [PHP-WIN] PWS or IIS?

2003-02-12 Thread Chris Kranz
to try some scripting, then maybe PWS is better, as you don't have to run it as a service all the time, but if your gonna be doing stuff all the time, again, IIS is a better bet. Hope this helps... chris kranz fatcuban.com -Original Message- From: m1nt ch3w [mailto:[EMAIL PROTECTED

RE: [PHP-WIN] PHP or Apache isn't playing nice

2003-02-12 Thread Chris Kranz
This may just be me, and I could be wrong, but I've had problems with relative paths and such using windows boxes before. Windows had always been an ass to me on this. You may need to try specifying the directory absolutely. Are you getting any error messages? chris kranz fatcuban.com

RE: [PHP-WIN] reading lines from a file

2003-02-11 Thread Chris Kranz
, that's just asking for trouble, especially if you make a mistake... (thinks back to his recursive directory delete function) Hehe :) chris kranz fatcuban.com -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] Sent: 11 February 2003 15:13 To: Ignatius Reilly Cc: Php

RE: [PHP-WIN] I get a File Download dialogue box

2003-02-10 Thread Chris Kranz
Need a bit more info to say for sure... But check that PHP is setup properly on the web server, follow the install instructions... What server you running? Have you followed the config instructions fully? chris kranz fatcuban.com -Original Message- From: news [mailto:[EMAIL PROTECTED

[PHP-WIN] Problem closing COM object

2003-02-02 Thread Chris Kranz
every time the script is run. I've tried several different methods of closing it, that's why this code is a little longer than the examples around... Code: ... $ex-Application-ActiveWorkbook-Close(False); $wkb-Release(); $ex-Quit(); $ex-Release(); unset($wkb); unset($ex); chris kranz fatcuban.com

RE: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Chris Kranz
seem to remember it clearly, that's why I used NetPBM instead at the time... chris kranz fatcuban.com -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:19 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Fw: [PHP-WIN] GD library

RE: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Chris Kranz
Sup: http://gallery.menalto.com/modules.php?op=modloadname=GalleryFAQfile=i ndexmyfaq=yesid_cat=3categories=3+-+Gallery+Graphics+Toolkitsparent_ id=0 chris kranz fatcuban.com -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:19 AM

RE: [PHP-WIN] PHP on IIS4 problem

2003-01-21 Thread Chris Kranz
Also check that your browsing to the files across http://localhost and not file://c:/www/blah.php chris kranz fatcuban.com -Original Message- From: Veselina Jecheva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 9:11 AM To: Patrick Chemali; [EMAIL PROTECTED] Subject: Re

RE: [PHP-WIN] Who is foo what is bar?

2003-01-21 Thread Chris Kranz
Hehe!!! It's one of those classic terms that spans across many languages and dates back quite a long time. Whenever I pickup a programming book, somewhere in there, you'll find the infamous foo and bar... chris kranz fatcuban.com -Original Message- From: Mikey [mailto:[EMAIL PROTECTED

RE: [PHP-WIN] Moving an uploaded file keeps failing

2003-01-20 Thread Chris Kranz
to as an absolute directory. Windows doesn't handle relative file copies too well. It's caught me out on that a few times. TBH, not sure on all the syntax, as I do things very differently... a lot simpler to be honest... Good luck... chris kranz fatcuban.com -Original Message- From: Stephen Edmonds

RE: [PHP-WIN] Moving an uploaded file keeps failing

2003-01-20 Thread Chris Kranz
move_uploaded_file(d:\\temp\\ . $_FILES['userfile']['tmp_name'], d:\\blah.txt); see if that creates a file called blah.txt if it does, then you gonna have to name your file, rather than just tell it d:\ chris kranz fatcuban.com -Original Message- From: Matt Babineau [mailto:[EMAIL

RE: [PHP-WIN] Re: Subject: cookies problem (FIXED)

2003-01-19 Thread Chris Kranz
surely if headers had already been sent, it would give an error telling you so. In my files, the page is displayed properly, in full, with no errors... but cookies are missing from the server and being sent. chris kranz fatcuban.com -Original Message- From: Neil Smith [mailto:[EMAIL

RE: [PHP-WIN] New guy to PHP Mail Parse question

2003-01-19 Thread Chris Kranz
Make sure you have global variables set on in your php.ini If you can't change this, then try doing $_POST['variable name'] to get the form fields... Unless your submitting your form using GET ofcourse, then use $_GET chris kranz fatcuban.com -Original Message- From: Rafael Alan

RE: [PHP-WIN] forms, php

2003-01-19 Thread Chris Kranz
For starters. $username = $_POST['username']; in your form, you declare name, not username is this code you've given from the page login.php? is it simply submitting to itself? chris kranz http://www.fatcuban.com/ fatcuban.com -Original Message- From: Adrian Partenie [mailto

RE: [PHP-WIN] cookies problem

2003-01-18 Thread Chris Kranz
I've had the same problem myself. Seems to happen with a default install of IIS 5 etc. etc. I've changed the php.ini so it should create and save the cookies, but it just ignores them. Sorry, no solution, I just made workarounds :( chris kranz fatcuban.com -Original Message- From: Ed

RE: [PHP-WIN] Re: PHP Search

2003-01-17 Thread Chris Kranz
a script to index and categorise each page first. Pull out text and stick in in the database with relations to what colour it is for instance. Would make your actual search script run a lot faster that's for sure... chris kranz fatcuban.com -Original Message- From: Radovan Radic [mailto

RE: [PHP-WIN] What kind of Editor you used to build PHP script ?

2003-01-16 Thread Chris Kranz
Line numbers... Colours are nice, but I like it simple. And line numbers are about as nice as I like :) I pretty much stick to dreamweaver MX, but I disable most of the crap in it. Just plain line numbers, and some colouring :) Suites me just fine!!! chris kranz fatcuban.com -Original