Re: [PHP] What if 1,000 people access the database at one time?

2002-01-25 Thread Miles Thompson
SELECT wouldn't affect an UPDATE. In terms of timeliness of UPDATEs and SELECTs, that's almost a non-issue as one cannot know in advance what will be updated or inserted. Regards - Miles Thompson At 10:22 AM 1/25/2002 -0500, Phil Schwarzmann wrote: >So let's say Bill is accessin

Re: [PHP] db conversion advice needed

2002-01-24 Thread Miles Thompson
rst time around I tried using Access as the intermediate step, and it insisted on doing arithmetic on those fields, as did Access when I tried to import it directly. I ended up using FoxPro (old DOS version) to create the table, then edited the header to change numeric field to character, deleted

Re: [PHP] on-line athletic training log

2002-01-21 Thread Miles Thompson
Check hotscripts, google, etc. Check phpauction - there is a remarkable similarity: here is an item (training schedule) and inputs which apply to it (results) (results) (results) Miles Thompson At 09:36 AM 1/21/2002 -0500, Brian V Bonini wrote: >I need to build an on-line training log wh

Re: [PHP] Opening more than one database at a time?

2002-01-20 Thread Miles Thompson
Jeff, Can you let MySQL do the work for you, with INSERT ... SELECT? Here's the URL" http://www.mysql.com/doc/I/N/INSERT_SELECT.html HTH - Miles Thompson At 06:20 PM 1/20/2002 -0500, Jeff Lewis wrote: >I am trying to basically copy data from one database to another and am >wo

Re: [PHP] RTFM

2002-01-19 Thread Miles Thompson
B. Yeah - play. It's the only way -- take a function, use it the right way and the wrong way. Can it be combined with other functions. What quirks of punctuation are there, etc etc. You know, I'd forgotten that too -- piddling about brings returns. Now excuse me, I have to go play with an ar

Re: [PHP] open/read file/directory and file test

2002-01-19 Thread Miles Thompson
Juni, It's read the manual time http://www.php.net and use the function search box on the top right for "file" and then for "directory". They are separated, and there are a number of functions. As I don't know Perl I can't answer 3. (I must be morally deficient!) Miles At 04:39 AM 1/20/

Re: [PHP] password=password('$password') <----- ? help me... :P

2002-01-19 Thread Miles Thompson
I've got a typo near the bottom: left(password('$cPasswordf),10)"; should be left(password('$cPassword'),10)"; (Strange, the "f" is nowhere near " ' ") mt At 05:41 PM 1/19/2002 -0400, Miles Thompson wrote: >Hawk, > >Pardon

Re: [PHP] password=password('$password') <----- ? help me... :P

2002-01-19 Thread Miles Thompson
Hawk, Pardon me for not following this thread very closely, but I just played around at the MySQL console. The fields I have are cName c(20) and cPassword(10) This executed OK insert admin (cName, cPassword) values ('Deb', password('peaches')); select cName, cPassword from admin; returned Deb

Re: [PHP] Re: Does anyone have the 'edit_member.php' script ....

2002-01-19 Thread Miles Thompson
You keener!! Eagle eyes! At 11:00 AM 1/19/2002 -0800, you wrote: >The problem is on this line. > >print ("\n"); > >There is a space between the \ and the " before Submit. > >Janet > >- Original Message - >From: "Mike C" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]

Re: [PHP] RTFM

2002-01-19 Thread Miles Thompson
Yes, and keep forgetting about it. Now it's bookmarked again. Miles PS Brian - You can come out now. At 01:46 PM 1/19/2002 -0500, Brian Clark wrote: >* sundogcurt ([EMAIL PROTECTED]) [Jan 19. 2002 13:39]: > > > I would be more than happy to put some mini-tutorials together to send > > you, I'

Re: [PHP] INSERT statement for JOINed tables

2002-01-18 Thread Miles Thompson
Erik, You have to do two inserts. Have a look at http://www.php.ca/manual/en/function.mysql-insert-id.php Do your first insert Call mysql-insert-id(), capturing its output. Use the value returned in your second insert. The returned value is unique to your connection; no need to lock the first

[PHP] Splitting List - newbie & advanced

2002-01-18 Thread Miles Thompson
If anyone wants to pursue this, here's the thread. I do not believe the list should be split, although there is a mix of new and advanced questions. Although the some of these are best answered by an RTFM and a reference to a tutorial, the newcomer benefits by exposure to advanced concepts an

Re: [PHP] RTFM

2002-01-18 Thread Miles Thompson
If this is going to be pursued, start a new thread...please. Miles At 01:16 AM 1/19/2002 +, Shane Wright wrote: >Hi > >Maybe this list should be split - kindof into a php-newbies and a >php-advanced ? > >-- >Shane > >On Friday 18 Jan 2002 9:39 pm, Richard Crawford wrote: -- PHP General Ma

Re: [PHP] help installing php

2002-01-18 Thread Miles Thompson
;t know enough about dselect.) For the Apache source file look for "ABOUT_APACHE"; for MySQL look for "mit-pthreads". I believe those t wo will be relatively unique, certainly better than looking for README. Regards - Miles Thompson At 02:09 PM 1/18/2002 -0500, Juni Ad

Re: [PHP] help installing php

2002-01-17 Thread Miles Thompson
/PHP/SoothinglySeamless/page1.html You can ignore the SSL stuff and certificates if you don't need them. Regards - Miles Thompson At 07:02 PM 1/17/2002 -0500, Juni Adi wrote: >Hello, > >I'm new to PHP (actually I'm just about to >begin) and have problem with installing.

Re: [PHP] Business objects functionality in PHP

2002-01-17 Thread Miles Thompson
Chris, I don't, but let's this. Geoff Caplan brought up the topic of patterns in PHP for certain frequently used patterns several months ago. So where do I go to look at business objects, or patterns. Miles At 01:39 PM 1/17/2002 -0600, Chris Boget wrote: >Has anyone written (or know of someth

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Miles Thompson
ere are single quotes around numerical fields, etc. The revised die() will print out MySQL's error code and error message, which may or may not be helpful. This may still not work, but we've more information to work on. Please let us know what happens. Cheers - Miles Thompson At 07:1

Re: [PHP] mysql_fetch_row - how do I fetch a specific row?

2002-01-16 Thread Miles Thompson
Paul, The obvious question is "Why do that?" If there is a certain criteria you want to meet, it's generally better to do that in your select statement. Having got that out of the way, $result = mysql_query("SELECT * FROM a_table"); $num_rows = mysql_num_rows($result); returns the number of

Re: [PHP] Linux Book

2002-01-16 Thread Miles Thompson
'Reilly's DNS and BIND. Pretty massive topic. If you've been through all this stuff, then at least you will know what book is right when you see one. I'm interested in hearing what others will suggest. Miles Thompson At 10:58 AM 1/16/2002 -0800, Dennis Gearon wrote: >

Re: [PHP] Lazy evaluation?

2002-01-16 Thread Miles Thompson
0700, mike cullerton wrote: >on 1/16/02 5:57 AM, Miles Thompson at [EMAIL PROTECTED] wrote: > > > For "or" statements it does, but not && or xor. I don't know about you, but > > I wouldn't want lazy evaluation on a conditional statement involving &quo

Re: [PHP] Parsing?

2002-01-16 Thread Miles Thompson
Doing this: cp file_i_want_to_look_at.php file_i_want_to_look_at.phps http://www.domain.name/file_i_want_to_look_at.phps will display coloured source listing in the browser. Is that what you want? This is referenced somewhere in the docs, and even if you only rename a file to phps it is som

Re: [PHP] Lazy evaluation?

2002-01-16 Thread Miles Thompson
on operator precedence. Have a great one - Miles Thompson http://www.cqagroup.ca At 09:53 AM 1/16/2002 +0100, Alexander Deruwe wrote: >Hey all, > >Does PHP support lazy evaluation? Meaning that if: > >if (isset($HTTP_POST_VARS['submit']) > && $HTTP_PO

Re: [PHP] apache authentication

2002-01-14 Thread Miles Thompson
ribers have IE 5.5 and work in an environment where the company directs what browser will be used. This has become a sticky issue, and all suggestions will be welcome. (Including that I RTFM, if I've missed a particular section.) Regards - Miles Thompson At 11:35 AM 1/14/2002 -0800, [EM

Re: [PHP] Mysql

2002-01-14 Thread Miles Thompson
You need some tutorials on using MySQL and PHP. There are some good ones at thickbook http://www.thickbook.com, you can also search, using Google, for "tutorial MySQL PHP". You will find good ones at WebMonkey, DevShed and Zend. Good luck and welcome - Miles Thompson At 03:46 AM

Re: [PHP] Php.ini file missing

2002-01-13 Thread Miles Thompson
Check the README or INSTALL docs. The file is there under another name, but right now I can't remember. Something like distribution.ini. Regards - Miles Thompson At 02:03 AM 1/14/2002 +0100, Michael Sciascia wrote: >Hi, >I am new to this list and also to php and I am sorry to alr

Re: [PHP] beginer

2002-01-13 Thread Miles Thompson
Tutorials at http://www.thickbook.com. There are also tutorials at DevShed and WebMonkey, and links at http://www.php.net (or one of its mirrors) Miles Thompson At 12:32 PM 1/13/2002 -0500, Vania Lavielle Castro wrote: >Hi! >somebody say me >how work with sql server and code ph

Re: [PHP] Record Paging Using Arrays

2002-01-13 Thread Miles Thompson
the first which uses TOP, and a second which also uses top and fetches greater than previous result. That would also have the advantage of returning small data sets, faster. Regards - Miles Thompson At 03:24 PM 1/12/2002 -0400, Joe Van Meer wrote: >Hi there, I have a small php/data driven webs

Re: [PHP] Mysql('mydb", "SHOW TABLES FROM mydbname") ???

2002-01-12 Thread Miles Thompson
Well, did you try looping though tables with mysql_fetch_array($tables)? But, how 'bout mysql_list_tables()? Cheers - Miles Thompson PS There's a bunch of other interesting stuff relating to database manipulation there too. /mt At 11:48 AM 1/12/2002 -0800, Chris wrote: >

RE: [PHP] does this work?

2002-01-10 Thread Miles Thompson
Yes, the semi-colon is the command separator. Try it and echo $tempsql. Miles Thompson At 09:16 AM 1/11/2002 +1100, Martin Towell wrote: >is this valid in PHP?? (haven't tried it myself yet...) > >$tempsql = "SELECT COUNT(*) AS count > FROM divisio

Re: [PHP] Passing Variables

2002-01-10 Thread Miles Thompson
PHP is server side. The link would have to load another page, or reload the same page with the function triggered by the link. Maybe this is something you want to do in Javascript? Miles At 05:07 PM 1/10/2002 -0500, Artie Ball wrote: >Hi all, > > Could anyone please tell me if there is

Re: [PHP] Form Question

2002-01-10 Thread Miles Thompson
Julie Meloni has a really nice tutorial on the at http://www.thickbook.com Look for the one on custom error messages. Miles Thompson At 08:54 PM 1/10/2002 +, LaserJetter wrote: >I've noticed on some web pages that when the back button is pressed the data >in the fields is stil

Re: [PHP] echo diferent coluns from left join

2002-01-10 Thread Miles Thompson
$i+1], but I think you get the idea. Miles Thompson At 04:08 PM 1/10/2002 -0200, Rodrigo Peres wrote: >Sorry, Ithink that I not explain right. I nedd to create a list, something >like: > >url site >url site >url_2 site_2 >url_2 site_2 > >When the values returned

Re: [PHP] echo diferent coluns from left join

2002-01-10 Thread Miles Thompson
If I understand you correctly, use Javascript to open a second browser window for url_2. Miles Thompson At 02:49 PM 1/10/2002 -0200, Rodrigo Peres wrote: >Dear List, > >I have this sql command that grabs a result of 3 tables. What i want is if >there's a way to do a while

Re: [PHP] Finding PHP Developers for Remote Project

2002-01-10 Thread Miles Thompson
Here. Grin - Miles Thompson At 11:48 AM 1/10/2002 -0500, Richard Spangenberg wrote: >I may need some help on a project I am working on. >Does anyone know of a good source of PHP developers where I can advertise my >needs? > >Rick > > > >-- >PHP General Mailing

Re: [PHP] quick question

2002-01-10 Thread Miles Thompson
ERE tablename.column='$criteria_integer' "; Or maybe you need another layer of quotes, but I'd vote for clarity. Miles Thompson At 10:44 AM 1/10/2002 -0500, Erik Price wrote: >I thought that $_GET[] and $_POST[] could be used in place of regular >variables... tha

Re: [PHP] Help - sending variable(s)

2002-01-10 Thread Miles Thompson
Go to http://www.thickbook.com and look at Julie Meloni's tutorials, particularly the one for custom error messages as she very nicely works it up over about 3 iterations of the same simple script which includes a form which calls its own script (PHP_SELF). Miles Thompson At 11:50 PM

Re: [PHP] Checking mail origin?

2002-01-08 Thread Miles Thompson
Bogdan, Penny just dropped with what Tom suggested. REad up on how Debian does it, use the web of trust approach. Miles At 12:52 PM 1/9/2002 +1000, Tom Rogers wrote: >Hi >You could get all your users to add an encrypted signature to their emails >and check that on recieipt. >Tom > >At 11:35 A

Re: [PHP] Connecting PHP to a remote mysql database

2002-01-08 Thread Miles Thompson
cific installation instructions. Again, please try first. Miles Thompson At 10:36 AM 1/8/2002 +0100, Félix García Renedo wrote: >Hello, > How could I configure php to access to a remote mysql database? >Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] MSFT Front Page inserts quotes

2002-01-07 Thread Miles Thompson
The dull thud you hear is me giving myself a good whack on the side of the head. I don't want to require a security check / auto-login for every file on the site, so I'm just removing the offending text to an include and trying it that way. Tks - Miles Thompson At 06:35 AM 1/7/

[PHP] MSFT Front Page inserts quotes

2002-01-07 Thread Miles Thompson
these files to PHP I just parse them after they are uploaded to the server, changing all links to point to .php rather than .html and saving the changed files with .php extensions. Regards - Miles Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] Remote Cookie ID and Web Statistics

2002-01-07 Thread Miles Thompson
but fairly new at it. > >Rick > >-Original Message- >From: Miles Thompson [mailto:[EMAIL PROTECTED]] >Sent: Sunday, January 06, 2002 10:52 PM >To: Richard Spangenberg; [EMAIL PROTECTED] >Subject: Re: [PHP] Remote Cookie ID and Web Statistics > > > >Why

Re: [PHP] Another php data gathering question

2002-01-07 Thread Miles Thompson
Use the exec() function to make the system calls you need. Miles Thompson At 10:47 PM 1/6/2002 -0600, Gaylen Fraley wrote: >Is there any way, through PHP, to get the: > >server uptime >processor type >number of cpu's > >I'm trying to find a compatable solution f

Re: [PHP] Remote Cookie ID and Web Statistics

2002-01-06 Thread Miles Thompson
ript, so this is just off the top of my head. A straight PHP solution would be preferable and I assume it's not possible either because the ISP doesn't host it or for some political reason. Miles Thompson At 10:28 PM 1/6/2002 -0500, Richard Spangenberg wrote: >Hello, - for somethin

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Miles Thompson
I've never installed PHP on a Windows box, but on Linux you have to move and rename the php.ini file. It's mentioned in the docs, but for the life of me I can't remember its name right now. Miles Thompson At 11:15 AM 1/4/2002 -0600, Mark wrote: >I apologize if the title o

Re: [PHP] How to clear a populated array

2002-01-04 Thread Miles Thompson
Carlos, Just redeclare the array $Erros = array(); Miles At 05:11 PM 1/4/2002 -0700, Carlos Fernando Scheidecker Antunes wrote: >Hello All, > >I have a populated array that stores user input errors. > >I have been browsing the manual and some books and I couldn't find one thing. > >I've go

Re: [PHP] Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread Miles Thompson
This is an Apache question, not a PHP one. I don't know if your Apache configuration file is named apache.conf or httpd.conf under Windows, but whatever it is, check these settings: ServerRoot - should be set to the location where Apache is installed. DocumentRoot = set to where your web files

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Miles Thompson
tabase. >How do you see that affecting the problem? > >Tx >Torrent >www.ski-info-online.com > > >-Original Message- >From: Miles Thompson [mailto:[EMAIL PROTECTED]] >Sent: 04 January 2002 01:30 >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: Re: [PHP] P

Re: [PHP] Problem with Printer-friendly script

2002-01-03 Thread Miles Thompson
nt1.php?id=Alpbach fetch data from a database? from a flat file? What happens if you fetch the default length of 1k? Miles Thompson At 12:30 AM 1/4/2002 +, ski-info wrote: >I am in the process of producing a script which will allow me to produce >printer-friendly versions of my dyna

Re: [PHP] Can I config PHP RPM?

2002-01-03 Thread Miles Thompson
A simple page containing nothing but will return all the information you need about the modules compiled into PHP. So you may not have to do anything more. There are source rpm's available, but I'm suggesting an alternate route. If you have access and rights on the server, remove the RPM ver

Re: [PHP] Happy new year!

2001-12-31 Thread Miles Thompson
A DYNAMIC, Happy, New Year. PHP is great. Through it, and Linux, I've had a very interesting two years of programming and my career seems to be bending away from desktop apps and towards net-oriented ones. Regards to alll - Miles Thompson On Monday 31 December 2001 08:20 pm, George Ni

Re: [PHP] Select box won't display in Netscape 4.xx

2001-12-31 Thread Miles Thompson
Sounds like a problem with HTML syntax. NS is notoriously fussy and IE remarkably lax. Capture your source and compare against the HTML standard. I'm surprised NS6 is accepting what NS4 is choking on. Happy New Year - Miles PS I'd bet a cup of coffee that a closing tag is missing. At 12:06 P

Re: [PHP] Session troubles

2001-12-29 Thread Miles Thompson
$mine; There's the divide and conquer approach too. What do you see if you comment out the include, then issue a phpinfo() and a die()? HTH and Merry Christmas / Happy New Year - Miles Thompson On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote: > I asked this on php-install list, but

Re: [PHP] WebServer

2001-12-28 Thread Miles Thompson
er list. (Note how apolitical I'm being, not assuming you are using Linux or BSD and Apache.) > Thanks guys in advance You're welcome. There is some really good stuff out there. Miles Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] Create a table with more than 1 column

2001-12-27 Thread Miles Thompson
27;s hope it gets you to your goal. Merry Christmas - Miles Thompson On Thursday 27 December 2001 10:22 am, Rodrigo Peres wrote: > Hi list, > > I am in a big trouble. My deadline is coming and I couldn't solve my > problem yet! I have this script that outputs a table that

Re: [PHP] Mailling Lists

2001-12-26 Thread Miles Thompson
Why not a traditional mailing list manager like mailman? Miles Thompson On Thursday 27 December 2001 12:50 am, Ben Clumeck wrote: > I am creating a mail list and need something that does not require MySQL or > any other databases is there a good one? What is the best one even if >

Re: [PHP] question regarding cookies

2001-12-26 Thread Miles Thompson
gt; variables that I used ($type_sel and $size_sel) then it outputs the data. > > I'll read about IE, it's 5.1 for Mac OS X. > > > Erik > > On Wednesday, December 26, 2001, at 03:12 PM, Miles Thompson wrote: > > Erik > > > > What code are you using to set you

Re: [PHP] question regarding cookies

2001-12-26 Thread Miles Thompson
Erik What code are you using to set your cookie? Are you certain the expiry date is in the future? What browser are you using? There are notes in the online manual (www.php.net/setcookie()) regarding IE. Miles On Wednesday 26 December 2001 04:01 pm, Erik Price wrote: > Hello, > > I am having

Re: [PHP] Fulltext-Search

2001-12-24 Thread Miles Thompson
Lauri, Very impressive. Merry Christmas - Miles Thompson At 03:03 AM 12/25/2001 +0200, Lauri Vain wrote: >Hello Martin, > >At 10:13 PM 12/23/2001 +0100, Martin wrote: > >Hello! Does anybody know a good script to search the own web-server?! > >Would be nice if the script co

Re: [PHP] Fulltext-Search

2001-12-24 Thread Miles Thompson
htdig or mnogo At 10:13 PM 12/23/2001 +0100, Martin wrote: >Hello! Does anybody know a good script to search the own web-server?! >Would be nice if the script could display the whole sentence where the >word was found... > >Martin > > >-- >PHP General Mailing List (http://www.php.net/) >To unsu

Re: [PHP] How to compile Apache/PHP

2001-12-24 Thread Miles Thompson
e is a good idea too. Use "Soothingly Seamless" as the general guide, adding the switches/modules that seem to make sense based on your reading of the Apache and MySQL installation docs. One little quirk. When you install MySQL from source the path to it is different than when y

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Miles Thompson
What's the error, just a parse error on line xx? O tend to do a lot of echo 'ing, so this suggestion may not be much help. How about adding a semicolon? Miles At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote: >Hello: > >In ASP I can write a Conditional statement like this: > ><% If $varA == True

RE: [PHP] Convert tif --> jpg

2001-12-20 Thread Miles Thompson
Any number of image manipulation programs do that, However, try installing CygWin and see if mogrify will run. Miles Thompson At 03:20 PM 12/20/2001 +0100, Roman wrote: >No, I need convert format of image in windows system. > > >-Original Message- >From: Bogdan Stancescu

Re: [PHP] Client Side Printing

2001-12-19 Thread Miles Thompson
Turn that off in the browser print setup dialog. Alternately, there may be a Javascript function to do that, but if I was a user I would not be happy if code in a page messed with my settings. Remember PHP is server-side, not client side. Miles At 10:21 AM 12/19/2001 -0700, Ye Tun wrote: >He

Re: [PHP] Printing file PDF and not seve

2001-12-14 Thread Miles Thompson
George, What have you done to prevent storage of PDF's? I would love to know? We're gnashing our teeth over a distribution problem. Miles Thompson At 11:10 AM 12/14/2001 +, George Pitcher wrote: >Don't think so. The whole premise of PDFs is that they are downloade

Re: [PHP] Single/Double Quotes

2001-12-12 Thread Miles Thompson
treated as a literal. Hope this helps - Miles Thompson At 09:08 AM 12/12/2001 -0500, Gerard Samuel wrote: >Im tring to rewrite some code to use single/double quotes correctly (as >correct as can be). > >If I use >$result=mysql_query('SELECT book FROM ' . TAB_AUTHORS .

Re: [PHP] non-browser PHP downloading?

2001-12-11 Thread Miles Thompson
Open up a console and use lynx. Miles Thompson At 06:26 PM 12/11/2001 -0800, Erik Price wrote: >Is there a way to download PHP without clicking the link in my browser? > Right now I can't use my Xwindows so I need to use wget, curl, or ftp. > I've tried using the hypert

Re: [PHP] Date formatting

2001-12-11 Thread Miles Thompson
Here, play with this. dtAuctionStart is a MySQL date field, so substitute your own connection and var. Have fun - Miles Thompson Some messing about with dates = "; echo date ("Y-m-d", $dtAuctionStart ), ""; //$strDate = $dtAuctionSta

Re: [PHP] Logo proposal

2001-12-11 Thread Miles Thompson
Why are we wasting time and bandwidth? The small oval is fine. If you want to waste time - why an animal? Use a flower, say a peony, to symbolize the blossoming richness and continued growth of PHP. Here's a bouquet, lifted from www.flowerbud.com ... no I shouldn't do that, here's a link ins

Re: [PHP] Accessing PHP archieve

2001-12-11 Thread Miles Thompson
Check the support area of php.net, there's a newsgroup, which is never purged, and a link to the archive. Miles At 09:56 AM 12/11/2001 -0800, Todd Cary wrote: >Is there an archieve for this list server? > >If so, I do I access it? > >Many thanks.. > >Todd > >-- >Todd Cary >Ariste Software >[

Re: [PHP] PHP+MYSQL unable to select database

2001-12-10 Thread Miles Thompson
Have you checked the docs? Have you double-checked the username, password and permissions? Have you added " or die(mysql_error())" to your database connection function? If this site is remote, does your username/password have rights to access the database? Good luck - Miles Thompson

Re: [PHP] Help!

2001-12-09 Thread Miles Thompson
t is my problem, i can't clear the data on a variable. > >The data is from a tag (radio button). I know you know what im >talking about here :) > >Ryan > >--- Miles Thompson <[EMAIL PROTECTED]> wrote: > > > >Pause for a moment and think about it. You're

Re: [PHP] Help!

2001-12-09 Thread Miles Thompson
Pause for a moment and think about it. You're obviously doing a good job in maintaining state, but after your update to the database the var which transfers the data isn't being cleared. Regards - Miles Thompson At 07:07 AM 12/9/2001 -0800, ryan adorable wrote: >Hi, > >

Re: [PHP] Dynamic Document Creation

2001-12-07 Thread Miles Thompson
Wheee! Sounds like fun. If you're headed for the latest version of Word (XP), XML would be the way to go. I would expect specs available at either StarOffice (Open Office) or MSFT. There's also nice formatting with HTML. Miles Thompson At 12:43 PM 12/7/2001 -0500, [ rswfire ] wro

Re: [PHP] "file" with authentication for HTTP

2001-12-07 Thread Miles Thompson
;, and sets PHP_AUTH_USER. Once that's set I can roam all over the site, including pages set by the other scheme. No help here, just an observation. Miles Thompson At 11:31 AM 12/7/2001 +, Nic Skitt wrote: >Hi all, > >Aplogies if this question has already been asked, > >I

Re: [PHP] Re: Redirect Function?!!

2001-12-07 Thread Miles Thompson
RFC 2616 is your friend "14.30 Location The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource wh

Re: [PHP] header("Location:blah...") - passing variables

2001-12-04 Thread Miles Thompson
ving it with a php rather than html extension. Regards - Miles Thompson http://www.cqagroup.ca At 12:47 PM 12/4/2001 -0500, Jim wrote: >There are many different ways to do this ... > >1. Have the same PHP script that validates generate the login page. This >way the script always has

[PHP] Some clients can't see PDF

2001-12-03 Thread Miles Thompson
determine what browser/version they are using. In the meantime, does anyone have any other suggestions? Regards - Miles Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

Re: [PHP] Multiple database seeking

2001-12-03 Thread Miles Thompson
items where item in (select item from recipe where recipe_id = "choc_chip") Database querying isn't a problem, as it's all server side and really fast, no traffic across the wire. If you have a lot of complex queries, really consider something other than MySQL. Cheers - Miles Thomp

Re: [PHP] pages will not refresh publically

2001-12-02 Thread Miles Thompson
Sounds like the old page is cached somewhere along the line. I am assuming that the same server is serving both the Internet and the private network, and there's no "Oops, forgot up upload it." Miles At 08:32 PM 12/2/2001 -0500, Keith Kwasigroch wrote: >I have a W2k box setup with IIS and PH

Re: [PHP] PHP Bulletin Boards...how they work.

2001-12-02 Thread Miles Thompson
What did a search of Google "bulletin board tutorial php" turn up? Then grab some source and analyze it. Miles Thompson At 03:53 PM 12/2/2001 -0600, Anthony Ritter wrote: >I'm using Windows 98 with Apache, mysql and PHP. > >I'm in the process of learning PHP

Re: [PHP] MySQL: copying entire columns

2001-11-30 Thread Miles Thompson
osition doesn't matter, exept to fulfill a human sense of "tidiness". Cheers - Miles Thompson At 01:53 PM 11/30/2001 +0100, Tom Churm wrote: >hi, > >i've created a mysql table from an excel csv dump and the field-order is >not the way i want it. could someone possibl

Re: [PHP] database conection (newby)

2001-11-29 Thread Miles Thompson
In the include file, call it ""dbname.inc", and then at the top of a page needing the database ... Hi > >I'am totaly new in php i work always with asp. >I give the folowing hidden fields to a php script > > > > > >and in my php script i try to make my connection as follows: > >$conn = mysql_con

Re: [PHP] Query help needed

2001-11-29 Thread Miles Thompson
It looks OK, but I have lousy track record of writing out "perfect" sql which doesn't work. Syntax looks OK. 1. What does it look like if you write out the update statement, assign it to a var and then echo the var? 2. Can you try it at the console? 3. Try " or die(mysql_error) ;" to see if yo

Re: [PHP] Re: Printing Reports

2001-11-27 Thread Miles Thompson
int the report on a given printer with the selected set of parameters. Or bypasses the application altogether to have the report writer do the same thing. What about checking MSFT's BizTalk stuff? There may be some XML stuff there which does that? Regards - Miles Thompson At 06:04 AM 11/

Re: [PHP] Printing Reports

2001-11-27 Thread Miles Thompson
What kind of reports? Your question is so general it can't be answered except by saying ... Send the report, to a new browser window if you wish, and then use the browser's controls to print the sucker.Why re-invent what already exists? Miles Thompson At 03:00 AM 11/27/2001

[PHP] Re: [PHP-DB] postgres optimization

2001-11-26 Thread Miles Thompson
Browse the Linux Journal archives. Sometime this year there was an article on tunig PGSQL for performance. Miles Thompson At 02:45 PM 11/26/2001 +0800, you wrote: >hi, > >for php-db list users, i'm not sure if this is off-topic. please >inform me if it is. > >i'd

Re: [PHP] changing a variable according to the input in a checkbox

2001-11-26 Thread Miles Thompson
ere order by cItemId"; There's probably someone on the list who can do it with fewer lines, but I find this clear, and it accommodates all my conditions, and if no choices are made $sql_where does not exist and the SELECT is still valid. I still find the statelessness of web pages

Re: [PHP] Installing PHP 4 on a RAQ3

2001-11-25 Thread Miles Thompson
any assumptions. Oh, best version? Current one, 4.0.6. You mentioned .pkg files, might Cobalt be using a Debian distribution? Log in and try executing dpkg or dselect -- it could be that Cobalt have the installation pointing only to their server. If so, go to the Debian web site and locate some

[PHP] Safely Storing & Delivering PDFs

2001-11-25 Thread Miles Thompson
r Is htaccess (or Apache's security) somehow satisfied by setting the variables? Regards - Miles Thompson At 01:19 PM 10/19/2001 +0200, you wrote: >Hi George > >I had the same problem a while ago. >The only solution i found was to change the link to : >www.blabla.com/pdffile/tes

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Miles Thompson
part of the display code is never reached because the page is calling itself with with an error message to the user. If everything is ok, the user is sent back to the page ($origin) which called the logon script. That value was set thusly: Miles Thompson -- PHP General 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: [EMAIL PROTECTED]

Re: [PHP] Redirect upon execution of script...

2001-11-25 Thread Miles Thompson
this at http://www.thickbook.com. look in the tutorials for something like "Form With Error Message". You just have to adapt the logic to suit your needs. Miles Thompson At 03:56 PM 11/25/2001 +0100, Daniel Alsén wrote: >Hi, > >is there a way to redirect after a script has run? > >

Re: [PHP] Can php do this?

2001-11-25 Thread Miles Thompson
want to think about it as an alternative. I hope the indents preserve, as Python reliese on indentation and a ends it's line. Miles Thompson #! /usr/bin/python "Mails Passwords from sub_list, a MySQL database " import sys, MySQLdb, traceback import rfc822, string, sys import smtpl

Re: [PHP] Classes

2001-11-25 Thread Miles Thompson
ortured syntax used in VB. Miles Thompson At 03:28 AM 11/25/2001 -0800, you wrote: >On Sun, 25 Nov 2001, Rudi Ahlers wrote: > > Can anyone explain classes to me please? On many sites have I seen classes, > >There are people earning PHD's while explaining classes. I know yo

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Miles Thompson
Beauty! /mt At 02:08 PM 11/20/2001 -0800, Rasmus Lerdorf wrote: >if(!(isset($name) && isset($address) && isset($phone)) { > echo "You left one empty."; >} > >On Tue, 20 Nov 2001 [EMAIL PROTECTED] wrote: > > > I am a perl user trying to convert to php > > > > how would i turn this perl into

Re: [PHP] The url of the last site?

2001-11-15 Thread Miles Thompson
Brandon, Go to Juli Meloni's thickbook page, there is a tutorial there on PHP forms which display error message. With a bit of tweaking it's exactly what you want. http://www.thickbook.com Miles Thompson At 09:55 AM 11/15/01 -0800, Brandon Orther wrote: >Hello, > >I

Re: [PHP] PHP & FRAMES Question

2001-11-15 Thread Miles Thompson
rintf(" %s \n", >>$target_url, $myrow["member_id"], $myrow["member_id"]); >> >>typically expands, when the mouse pointer is placed over it, to: >> >>http://hostname/sitename/adm_sub_dtl.php?member_id=T0003 target=sub_detl >> >>This i

[PHP] PHP & FRAMES Question

2001-11-15 Thread Miles Thompson
syntactically correct. Any suggestions will be welcome - Miles Thompson -- PHP General 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: [EMAIL PROTECTED]

[PHP] mail() - s/mime - certificates & PDFs

2001-11-02 Thread Miles Thompson
ction will be appreciated. The other question I have is does the subscriber's email client automatically decrypt the PDF? If so, if the subscriber forwards the message (and attachment) to his own personal list I would assume a decrypted PDF goes, rather than an encrypted one. Some feedback

Re: [PHP] Trailing "/" and Apache

2001-10-29 Thread Miles Thompson
Todd, What is the DirectoryIndex set to in httpd.conf? Normally it's something like DirectoryIndex index.html, index.php (or whatever file you want served as the home page) Miles At 04:55 PM 10/29/01 -0800, Todd Cary wrote: >With Linux and Apache, if I use the IP of http://209.204.111.121/my

Re: [PHP] validating form data...

2001-10-22 Thread Miles Thompson
Divide and conquer Have you tried it one function at a time -- e.g. if (email_is_valid($Email) { do stuff ... also, what values do these tests return? have you echoed the values? HTH - Miles At 02:07 PM 10/22/01 +0200, Toke Herkild wrote: >I've made a script which ought to val

<    1   2   3   4   5   6   >