Re: [PHP-WIN] Case issue with Mysql on windows

2001-05-15 Thread Tom Mathews
This is down to an issue in phpmyadmin (or should that be PhpMyAdmin?). If you create the tables from the MySQL console (or put the create statements in a file and then run this form the console) the case sensitivity will be retained. Tom Paul Meagher wrote: > I am creating tables in Mysql on W

Re: [PHP-WIN] Code still doesn't function correctly

2001-05-14 Thread Tom Mathews
If at first youdon't succeed, then give up and try a bulldozer approach: - Create a seperate php script for the new window. >From your existing page, open the new window with javascript, passing in the required id parameter to identify the cart contents that you want to display. If you can't ident

Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.

2001-05-10 Thread Tom Mathews
Still not a flame, just a gripe against MS to think about! > > Actually, one thing that I REALLY like about the newer VB development > environment is that it will automatically correct/adjust the case of your > variables/functions to match their definition. This allows me to define > them accor

Re: [PHP-WIN] ISAPI

2001-05-10 Thread Tom Mathews
Where I have the choice on WinNT I always use Apache module, never had any problems with a qualified release version. Tom Tim Uckun wrote: > At 12:13 PM 5/9/2001 -0700, Flint Doungchak wrote: > >Tim, > > > >Unfortunately, the ISAPI module just isn't stable on this platform. Sorry. > > What is t

Re: [PHP-WIN] Problem with submit

2001-05-10 Thread Tom Mathews
Nothing really wrong with the code, just different error reporting set. But, as a couple of cents worth from someone that's learnt the hard way, it is usually preferable to do something like if (!isset($submit)){...} and handle the negative condition first. (Of course this won't be the case if you

Re: [PHP-WIN] symlinks

2001-05-10 Thread Tom Mathews
It's something which I've tried on a pile of occasions, and never really had any success with - the best solution I've found is to put the directories which are symlinks into the include path (Apache), or else run an external module with a pile of typedefs in it. Both ways work, but neither is par

Re: [PHP-WIN] Need someone with some experience

2001-05-10 Thread Tom Mathews
John If what you are really after is to display any records where a given field is duplicated, then I would say that a self join is the best bet. If you just pull 500 consecutive records out into an array, and perform the comparrisoon in php, then what happens if record 500 has a duplicate to rec

Re: [PHP-WIN] anti-advocacy: Larry Seltzer, pcmag May'01 pub.

2001-05-10 Thread Tom Mathews
Tim Uckun wrote: > > > >Finally, one language issue that is a real pet peeve of mine is case > >sensitive variable definitions. This is not a problem in either CFM or ASP. > >While it can be somewhat worked around by setting the PHP error level > >reporting to flag uninitialized variables, it is

Re: [PHP-WIN] Ora_fetch

2001-05-09 Thread Tom Mathews
OK Forget this - I managed to get onto php.net this morning and noticed the helpful comment from Bernard Blundell - if anyone else has this problem, just add the constant , ORA_FETCHINTO_NULLS, to the ora_fetch_into() function: - ora_fetch_into($cursor, &a, ORA_FETCHINTO_NULLS) Tom Mat

[PHP-WIN] Ora_fetch

2001-05-08 Thread Tom Mathews
Hi all I've just had to revert to Ora (as opposed to OCI) functions for a backward site and I'm having a problem: - I'm doing the following 1) ora_parse and ora_exec on a SELECT statement 2) ora_fetch_into on the cursor from (1) What seems to happen is that when it encounters any null values i

[PHP-WIN] Oracle fetch array

2001-05-03 Thread Tom Mathews
In MySQL, you can run something like this: - while ($row1=mysql_fetch_array($result_set)){ $name=$row1[Column1]; $desc=$row1[Column3]; echo"$name$desc"; Does anyone know a way of doing the same with oracle - by which I mean refering to the columns in the array by name rather than by index (ie

Re: [PHP-WIN] Form & MySQL

2001-05-03 Thread Tom Mathews
Johannes is correct, but if you're woried about security remember that MD5 is a one way algorithm - you don't need a key to unscramble it. Tom Johannes Janson wrote: > Hi, > > a simple INSERT would do the job. > To encrypt password use md5(). > > Johannes > > ""fipo2001"" <[EMAIL PROTECTED]> sc

Re: [PHP-WIN] SQL Error - create temporary table

2001-05-02 Thread Tom Mathews
Check with your ISP what access rights you have to the MySQL db - if you don't have create table rights, then you won't be able to crete temporary tables either. Tom John Morrison wrote: > Hi > > I have cobbled together my first PHP/MySQL site which > checks out OK on "localhost" (a WinMe/Xitam

Re: [PHP-WIN] MYSQL Help

2001-04-26 Thread Tom Mathews
1) Command line console is always installed with MySQL - telnet to the remote machine and you should be able to run it with no problems. 2) GUI - I reccommend phpmyadmin - get it from the MySQL site. It has a lot of limitations, but the basic functionality is all fine. Tom edwin wrote: > hi, >

Re: [PHP-WIN] dynamic pulldowns from DB

2001-04-20 Thread Tom Mathews
Depends how neat you want it to be! If you don't mind asking the user to hit a button for each selection, then treat each list as a form with its own submit button. Set the submit action to update the variable that you use for the select to create the next list down. Note that if you do this you w

Re: [PHP-WIN] PHP/MySQL Help

2001-04-10 Thread Tom Mathews
True enough, but life's just a bitch sometimes! I don't create the problems, just work around them. "Svensson, B.A.T." wrote: > >Using quotes (and remebering to escape them) may or may not cure the > problem - it > >seems to be a bit intermittent. It's more reliable just to hard code the > tabl

Re: [PHP-WIN] PHP/MySQL Help

2001-04-10 Thread Tom Mathews
Try using the table name instead of a variable containing the table name. If you must use $tablename within the SQL statement then you should include it in quotes. The error that you are getting is basically saying that MySQL can't find the table that you are looking for, which is true as you have

Re: [PHP-WIN] PHP

2001-04-09 Thread Tom Mathews
If you're not too fussed about security, then the easiest way is to create a cookie and then check for it at the beginning of each page (ie if (!ISSET(CookieName) {}) Tom Synopsis wrote: > any one here , know how to pass the login data to each page a user gose on, > and that page checking it to

Re: [PHP-WIN] Javascript

2001-03-30 Thread Tom Mathews
Thanks all, I was trying the . operator as a concatenator before - must have got my languages mixed up! Tom Tom Mathews wrote: > Window(IDent) > { > >msgWindow=window.open("ContentsWindow.php3?ID=IDent","displayWindow","menubar=no,width=500,height=

[PHP-WIN] Javascript

2001-03-29 Thread Tom Mathews
Before you shout at me, I know that this isn't the right place for this question, but you're all always so helpful that I thought I'd ask anyway (grovel grovel..) I'm playing around with php and javascript again, passing variables from one to the other. I've got stuck on something too basic to me

Re: [PHP-WIN] PHP under WinME

2001-03-27 Thread Tom Mathews
Few things: - 1) Update Apache - 1.3.6 probably came out before WinME went Gold (it's not that old really, but there have been a number of pretty serious bug fixes in the last few releases and its always a good idea to try and stay pretty current) 2) Are you using this on a network with a firewall

Re: [PHP-WIN] Mail submisison of form data

2001-03-27 Thread Tom Mathews
Flint Yeh, that's about the right syntax, but if you are sending duplicate messages from a web server, I'd strongly recommned bcc: in the header instead of cc: Tom Flint Doungchak wrote: > Randall, > > I'm not sure on this so I may need some correction, in theory, you should be > able to put t

Re: [PHP-WIN] PHP's doc_root

2001-03-23 Thread Tom Mathews
The other alternative (for those who don't have control of their DNS fro instance so can't set up a pile of virtual hosts) which I often use when I'm developing is just to set up some alias's to the root of the directory tree that you want to use eg http://localhost/bollox/ would take you to c:\bo

Re: [PHP-WIN] Problem with PHP4.04 installation

2001-03-21 Thread Tom Mathews
Have you set your path to include the php directory - or are you in the php directory? Tom John wrote: > I just get "Bad command or file name" > > Phil Driscoll wrote: > > > > >When I type php.exe -i at a ms-dos prompt, I get no response. > > What do you mean by no response? > > Cheers > > -- >

[PHP-WIN] MS Access

2001-03-20 Thread Tom Mathews
Has anyone out there had any success with connecting to a Microsoft Access database using the following config? Server - Apache on Solaris Access database location - Solaris NFS I know that its a bit hopeful, but I thought that I'd ask anyway! Cheers Tom -- PHP Windows Mailing List (http:/

Re: [PHP-WIN] Need help bad, select element of form using time

2001-03-19 Thread Tom Mathews
Don't know what your problem is? You can get the current time using the time() function - loads of formatting options to output it as you require. To get 15 minute intervals, just put the SELECT for your form element in a while loop. If your problem is which locale you are in, then that's another

php-windows@lists.php.net

2001-03-15 Thread Tom Mathews
Yep - Apache bug - upgrade it! Aleksey Filimonov wrote: > Hi all, > > I have some problems installing php-4.0.4pl1 on apache-1.3.14 on win98... > The apache server is running fine before adding this line in httpd.conf: > LoadModule php4_module c:/php/sapi/php4apache.dll > After adding module apa

Re: [PHP-WIN] PHP405 Install

2001-03-14 Thread Tom Mathews
It sounds an obvious question, but is it a new script you are trying to run, or is it one that could be sitting in the browser cache and you aren't refreshing it properly? Antonio Lopez wrote: > I installed PHP404pl1 with the automatic installer, and all works right. > > Now, i want to install P

Re: [PHP-WIN] Print variables coming from a form not controled by me...

2001-03-13 Thread Tom Mathews
Anything in the querystring can be translated as a php variable. Say you have the string coming in as ...?result=1&age=23... then in the called page/script, the querystring are already variables. eg $result will have the value 1, $age will have the value 23... Hope this is what you're after Tom

Re: [PHP-WIN] Poor PHP performane on Apache on Win 2000 Server

2001-03-12 Thread Tom Mathews
Mark Tipton wrote: > Any ideas on what could be causing such > poor performance? > Microsoft! > > -- > PHP Windows 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

Re: [PHP-WIN] unsupported or undefined function mysql_connect()

2001-03-12 Thread Tom Mathews
Depends which versionof PHP your ISP is running. Prior to v4.x, MySQL module was not included in the standard compilations but had to be deliberately put in. Easiest way to check is to run a script containing phpinfo() on your hosting site. Tom Mark Taylor wrote: > hi all, > > I've been testing

Re: [PHP-WIN] A sample of system function on Windows!!

2001-03-06 Thread Tom Mathews
This is a segment taken straight from Julie Meloni's PHP Essentials. I've used a variation of this on my WinNT dev pc with no problems at all. Tom ' -o $crypted -a $clear"); unlink("$clear"); ?> Antonio Lopez wrote: > Can anyone give me a sample code of system funct

Re: [PHP-WIN] deleting file on server

2001-03-05 Thread Tom Mathews
try the unlink() command Glenn wrote: > hallo! > how can i removing files from my upload folder on the server whit php > > Best regards. > /Glenn > > _ > Free email with personality! Over 200 domains! > http://www.MyOwnEmail.com > > -- > PHP Windows Ma

Re: [PHP-WIN] Reading data from MySQL

2001-03-05 Thread Tom Mathews
When I load data in from a file, I always make sure that the data is seperated using a character which doesn't occur within the data itself - eg if you have data with spaces in it, then don't use space a seperator. eg LOAD DATA LOCAL INFILE "countries.txt" INTO TABLE Countries FIELDS TERMINATED B

Re: [PHP-WIN] How to create a Non-Editable PDF ?

2001-03-02 Thread Tom Mathews
;time is to buy a copy of Exchange and do it in there. > > I haven't tried pdflib, so it's possible that there is an option for the security >settings. > > > -Original Message- > > From: Tom Mathews [mailto:[EMAIL PROTECTED]] > > Sent: March 2

Re: [PHP-WIN] How to create a Non-Editable PDF ?

2001-03-02 Thread Tom Mathews
1) Text It is a feature of Acrobat reader that you can take any pdf file and select text from it and copy this to a clipboard. The only way to prevent this is to use a version of Acrobat reader before 4.0! You should not be able to alter the text using acrobat reader (although using the full versi

Re: [PHP-WIN] RE: [PHP-DB] Resolution detect and redirect

2001-02-28 Thread Tom Mathews
I seem to have missed the question on this one, but my guess from the answer is that you are trying to open a different page based on the screen resolution, presumably so that you can resize the graphics and text accordingly. This method will take a lot of extra development time - you have to wri

Re: [PHP-WIN] Newbie question...

2001-02-23 Thread Tom Mathews
don't like being picky, but you may be thinking of MySQL where % is the multiple character wildcard (eg select 'David!' LIKE '%D%v%';) _ is the single character wildcard (eg select 'David' LIKE 'Davi_'; Tom Ben Cairns wrote: > The wildcard in PHP is a % > > E.G. > select * from YOUR_TABLE where

Re: [PHP-WIN] Reading data from a file

2001-02-23 Thread Tom Mathews
How is your file delimited? This could impact on whether elemdata is a string or actually a real array. That may not be helpful, but here's a handy tip when using file() - remember that it retains the newline character, so you have to be careful about mixing and matching dos/windows type files wi

Re: [PHP-WIN] My Dilema

2001-02-16 Thread Tom Mathews
SELECT SUM(Row_x) FROM Table_y; Tom Ben Cairns wrote: > I have a slight problem with this > > I am returning numerical values (i.e. 22.64, 2.54 etc. All with two Decimal > Places) from a database. I then want to add these together. > > But, I don't know how many rows there are, so I cant do

Re: [PHP-WIN] Re: pdflib put a image to a pdf file

2001-02-14 Thread Tom Mathews
I've never tried, but I'm wandering if it is related to the GIF licensing issue that forced GIF's out of the GD libraries - does anyone know if the same happenned to the PDF libraries? Tom Jason Hoover wrote: > Rainer, > > Here is sample code for placing a .jpg image in pdf. Anyone out there g

Re: [PHP-WIN] mysql and phpmyadmin

2001-02-13 Thread Tom Mathews
Manuela. I tried this for a while, and found that it was actually a problem at one of my ISP's end that they were unable to resolve, so I gave up and installed phpmyadmin on my remote site as well (its not very big if you pare down the unwanted bits). You may have the same problem Tom Manuela wr

Re: [PHP-WIN] PHP 'include' function

2001-02-12 Thread Tom Mathews
ay of doing things when I get some time, but it ain't going to be for a couple of weeks I guess. Tom [EMAIL PROTECTED] wrote: > Mathews, could you dig out that script please? I think I might need > it. > > Bikes > > > > -Original Message- > From: Tom

Re: [PHP-WIN] How to save a file to a blob field?

2001-02-12 Thread Tom Mathews
Easier to diagnose if you tell us what the error was? Winston Valenzuela wrote: > I'm using ODBC to connect to my Interbase 6 database. Using the code: > > $post_stmt = "Insert into > MSGTABLE(firstname,middlename,lastname,msg_subject,msgbody,remote_ip) > values('$fname','$mname','$lname','$subj

Re: [PHP-WIN] PHP 'include' function

2001-02-12 Thread Tom Mathews
I'm going to sound like a database freak, but my solution to nearly all 'dynamic' pages is to pull everything out of a database - My implementation would probably be four fields - ID, Name (to display in the select list), text and image. You query the db to get a list of 'Name's and then use the I

Re: [PHP-WIN] Why do we want to give YOU money?

2001-02-09 Thread Tom Mathews
Is anyone else getting pissed off with the amount of shite coming through this list? Does anyone reply to this stuff with remove messages (from the php lists not your own address!) or is there no designated administrator? If no-one else already does it, then I'll happily take on the responsibility

Re: [PHP-WIN] Modules not loading

2001-02-08 Thread Tom Mathews
Had the same problem with LDAP and GD, but not with any of the others. I tried copying stuff into different paths, but that didn't seem to help either. Eventually I gave up and just used the module instead of the CGI (faster as well!) Tom Erik Ableson wrote: > > > I'm seeing an interesting prob

Re: [PHP-WIN] Slow response from Netscape

2001-02-08 Thread Tom Mathews
Yep, but it may not be anything to do with the cookie - do you have any JavaScript floating around on the same page? Netscape 4.x caches all script that it finds before displaying the page (some people think its better this way - once the page is up there are no delays, but in commercial situation

Re: [PHP-WIN] COUNT(*) fails in PHP3

2001-02-08 Thread Tom Mathews
I run php4 on windows, linux and solaris with MySQL, MSSQL and Oracle 8i and the aggregate functions seem to be fine. Same goes fro php3 on windows and linux with MySQL (except that the aggregate functions are a bit limited here, so its not always worth bothering!). Do you get an error message,

Re: [PHP-WIN] For My Information

2001-02-02 Thread Tom Mathews
1) I think that people use Apache as old versions of IIS were crap. In addition, it is about the widest used server out there in the commercial world (Linux running Apache with PHP3 is I believe the most common config at the moment) so if you're developing something to put on such a site, it's

Re: [PHP-WIN] passing arrays of objects

2001-02-02 Thread Tom Mathews
Hmm - this old chestnut again. Be very careful when passing arrays, sometimes it seems to work swimmingly well, othertimes not so well! There was a lot of discussion about this about a month ago, with people trying the serialise / urlencode techniques and then running into GET problems over the l

Re: [PHP-WIN] Tab Seperated Data

2001-02-02 Thread Tom Mathews
Can't remember the syntax off hand, but if you look under the file handling stuff in the manual, you will see that there is a function which allows you to put a tab delimited file into an array. From there you can do what you want with each of the elements. Ben Cairns wrote: > I have a file wher

Re: [PHP-WIN] FORMATTING HTML IN AND OUT OF MYSQL

2001-02-02 Thread Tom Mathews
.. or www.mysql.com/downloads/contributions - there's a whole class in there to handle HTML with MySQL phobo wrote: > see http://www.php.net/manual/en/function.nl2br.php > > siggy > > - Original Message - > From: "Bikes" <[EMAIL PROTECTED]> > To: "'Robert Trembath '" <[EMAIL PROTECTED]>;

Re: [PHP-WIN] Newbie - Help!!!!!

2001-02-01 Thread Tom Mathews
If there was an error with the DB connection, then the 'or die' clause should pick it up? If nothing has changed between the IIS nad Apache implementation then I don't know what is happenning If however you have changed the table structure at the same time... or maybe don't have any records on you

Re: [PHP-WIN] RE: links to php install bundles and tutorials

2001-02-01 Thread Tom Mathews
of FAQ out there in net land? > Not that I have looked for one. > > kill-9 > > ----- Original Message - > From: "Tom Mathews" <[EMAIL PROTECTED]> > Cc: "php" <[EMAIL PROTECTED]> > Sent: Thursday, February 01, 2001 12:52 PM > Subject: Re

Re: [PHP-WIN] RE: links to php install bundles and tutorials

2001-02-01 Thread Tom Mathews
If there is a FAQ, I've never found it. However, the list is archived daily (twice daily?) on php.net and you can search the archive if you can be bothered! Anyone know who to contact about setting up a FAQ on php.net? Or has anyone got a reliable site with space (and the time to manage) a FAQ? I

Re: [PHP-WIN] RE: PHP vs JSP ?

2001-01-30 Thread Tom Mathews
I agree with Simon It is actually possible to work three tiers with PHP, but not so obviously as JSP does. The hit you take is performance, so it depends on what the application is whether to use JSP or PHP. Personally, for any e-commerce work I use PHP. It's very easy to get it hosted and those

Re: [PHP-WIN] PHP Messages

2001-01-30 Thread Tom Mathews
Ta I forgot about the 'expose PHP' directive Tom Ryan Grove wrote: > Comment out line 113 (or thereabouts) of your php.ini file. That > should do the trick. > > -- > Ryan Grove > [EMAIL PROTECTED] > http://wonko.com/ > - > Eve

[PHP-WIN] PHP Messages

2001-01-26 Thread Tom Mathews
I've just installed PHP 4-04pl1 on a new NT/Apache box and can't remember how to turn off the very irritating "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html " message that appears at the top of any script generated page. Can anyone please remind me how to get rid of this. Cheers Tom --

Re: [PHP-WIN] Is it possible to CONVERT file formats?

2001-01-25 Thread Tom Mathews
This issue cropped up with us a little while ago, but in a slightly different context. We have documents that are created using Word (PC users) and FrameMaker (die hard Unix users that do not want anyone else to be able to edit their work without first taking a degree in pontlessness). All of thes