Re: [PHP] Printing long strings

2001-02-25 Thread Miles Thompson
Clayton, Have a look at http://www.php.net/manual/en/function.addslashes.php I've not used them, there are also references to stripslashes, you may need to experiment a bit. Miles At 07:56 PM 2/25/01 -0500, Clayton Dukes wrote: >How can I get php to print a long string and ignore any of the c

[PHP] Copying Files to the Web Directory

2001-02-26 Thread Miles Thompson
t;). None have worked. I've also tried executing the commands directly using system(), all without effect, no errors, nothing. Do I have to change the group of www.website.com to nobody? That seems to be an awful security hole. Stymied in Nova Scotia - Miles Thompson -- PHP General Mai

Re: [PHP] Copying Files to the Web Directory

2001-02-27 Thread Miles Thompson
>to write to a directory, it has to be writable to this directory. A >possible solution would be to compile a PHP executable and run a script from >cron to copy the files periodically. By using cron and a cgi-version of PHP >you can run it as your desired user. > >Jason > &g

Re: [PHP] Stream Content

2001-02-27 Thread Miles Thompson
You're going to spend a lot of time keeping track of where you are. Miles Thompson At 08:16 AM 2/27/01 -0700, Karl J. Stubsjoen wrote: >Does anyone know how to stream information to a browser (without the client >having to hit refresh)? What do I need to get started? We want to

Re: [PHP] Members area

2001-02-27 Thread Miles Thompson
t the members? 5. Have the members add information to the database? Which database are you using? What kind of information do you want to capture? We need more information - Miles Thompson PS Have you looked at the PHP & database tutorials at various php sites, like www.thickbook.com, dev

Re: [PHP] Members area

2001-02-28 Thread Miles Thompson
oodies, >ect and i want to get the information out my database for that >specific member, how would i connect to my database, what would i select from >"members" (my database) to get the field for that one person, so i can put >there infomation when the logg in the members

Re: [PHP] Need Function generating integers

2001-03-01 Thread Miles Thompson
Use MySQL's autoincrement ? Miles At 10:29 AM 3/1/01 +, M. A. Ould-Beddi wrote: >I need a sequence of small integers for primary >keys in mysql tables; I want php to generate them. >How can I do that? > >Thanks > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail

[PHP] php, secure pages & htdig

2001-03-04 Thread Miles Thompson
Coli Viebrock's "Search This!" article. If anyone has any experience or suggestions for an alternate search engine I'll welcome them. Regards - Miles Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Inserting DATE in mySQL!!

2001-03-05 Thread Miles Thompson
What field type are you using to store time? Echo your $sql and compare it to MySQL's documentation on the time column and how you have defined the field. Miles At 03:51 AM 3/5/01 -0800, Thomas Edison Jr. wrote: >I'm using the following code to insert date into my >mySQL table named "Booking". I

Re: [PHP] using php generate html file?

2001-03-06 Thread Miles Thompson
Go to www.thickbook.com where Julie Meloni has a tutorial on form with custom error messages, or something similar. Anyway, it uses a form, buttons, input fields, and generation of custom error messages and re-display of the form. All the principles you need are there. Miles Thompson At 12

Re: [PHP] email with multiple records

2001-03-07 Thread Miles Thompson
Embarrassing, isn't it? Do you have a loop building messages, with something like $msgbody .= $data_to_send THat little " . " caught me. I was emailing usernames and passwords -- fortunately it was an obvious error. Miles At 01:22 PM 3/7/01 -0500, WreckRman2 wrote: >I wrote a small script l

Re: [PHP] passing variables again

2001-03-07 Thread Miles Thompson
variables which will control the generation of HTML, thereby controlling the display. Miles Thompson At 08:43 PM 3/7/01 +, george wrote: >I am trying to write a script which allows you to build a PHP mailto form >online, but I am stuck > > if you go to www.wisemonkeydesign.co.uk/wis

Re: [PHP] Remote Scripting

2001-03-07 Thread Miles Thompson
Karl, Check the archives, if you haven't done so already. I think this was already discussed in the last week of February, although not under the same heading as yours. Miles At 02:05 PM 3/7/01 -0700, Karl J. Stubsjoen wrote: >Hello, > >I'm interested in the technology "Remote Scripting". Ba

[PHP] PHP Site - New Design

2001-03-08 Thread Miles Thompson
s is the way the web is going?" point of view? Or did someone simply forget us old (50+) guys with bifocals? Anyone tried it with Amaya? Miles Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

[PHP] Re: [PHP-DB] newbie: MySQL importing data from a variable

2001-03-12 Thread Miles Thompson
No problem. Initialize the counter before your loop, like so: $counter = 1; In the loop, print out the value of the counter and increment it by 1: echo $counter++; The "++" added to counter instructs PHP to increase the value by 1 AFTER the operation and is a shorthand way of saying

Re: [PHP] Remember my username & password

2001-03-19 Thread Miles Thompson
] = "lookfor" and $HTTP_SERVER_VARS[ "PHP_AUTH_PW" ]="mehere". If these vars don't exist or don't match the values assigned to htdig with the -u parameter in the calling script, execution falls through to my real security scheme, otherwise it is bypassed and h

Re: [PHP] Reading one line, and no more.

2001-03-19 Thread Miles Thompson
http://www.php.net/manual/file There are a slew of file operations, you can read lines, sets of characters, position the pointer in a specific place. Fill your boots. Miles Thompson At 09:59 PM 3/19/01 +0100, Richard wrote: >Greetings. > > How can I read one specified row

Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Miles Thompson
Jason, Netscape is really fussy about closing tags. Have you checked to make certain you don't have a table open? Try capturing the source of the page and running it through tidy. (Available at http://www.w3.org/People/Raggett/tidy/ ) Miles At 10:55 PM 4/14/01 -0700, Jason Caldwell wrote: >I

Re: [PHP] Which is better coding style...

2001-04-19 Thread Miles Thompson
Amen! For both elimination of trailing {'s , and a good clear break. I don't know how trailing {'s came about, but I find the blocks are harder to follow. I consider them HIDDEN rather than trailing, but I cut my teeth on Pascal, and FoxPro. While we're at it, how about plain old carriage retu

RE: [PHP] php FTP

2001-04-25 Thread Miles Thompson
Interesting - looks just great with Netscape Navigator 4.7; Netscape 6.1 and Opera 5.? My IE 5.x does not show the links, the title or the background, nor does it have "blind" hot area where the links are at the top of the page. That could be my IE and I curse Microosft daily. I can't uninsta

Re: [PHP] Sort an array

2001-04-30 Thread Miles Thompson
The PHP online manual is very easy to use. Start at http://www.php.net/array and you'll find all the functions that act on array downl the left side of your browser, including a fantastically rich set of sort options. Miles At 12:19 PM 4/30/01 -0700, Brandon Orther wrote: >Hello, > >Is there

[PHP] Emanuel virus

2001-05-01 Thread Miles Thompson
mantec. Maybe it has another name? Feeling like a leper - 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] Cant add new Header

2001-05-04 Thread Miles Thompson
Right - you can't send anything, even a blank line, before a header. You will have to do some restructuring/rearrangement of your code Miles At 11:00 AM 5/4/01 -0700, Andy wrote: >Hello, > >I am a newi. > >Currently I try to relocate the viewed page after entering successful a >form. > >I tryed

Re: [PHP] Setting paths in PHP

2001-05-10 Thread Miles Thompson
uot;); >echo fread ($fd,filesize( $link)); >fclose ($fd); chdir( $cwd ); ?> Cheers - Miles Thompson At 10:07 PM 5/10/01 +0200, Johan wrote: >My question: how do you set a path using php or html? >

Re: [PHP] Site search engine suggestion.

2001-05-12 Thread Miles Thompson
There's a link on the ht:dig site for PHP scripting, but it will pretty well work right out of the box. Miles At 02:31 PM 5/12/01 +0200, B. van Ouwerkerk wrote: >>Any suggestion for a better site search program? > >I know quite a few people who really love htdig. Don't know if it's better. > >N

Re: [PHP] Newbie Question.

2001-05-12 Thread Miles Thompson
will bet the switches to use for checking status, starting, stopping, et.c This should be enough to get you going, and hope it helps. Miles Thompson PS Did I read the version of Apache correctly? 1.2? If so, go get the latest 1.3, 1.2 is really old. /mt At 12:04 PM 5/12/01 -0700, you

Re: [PHP] Newbie Question.

2001-05-12 Thread Miles Thompson
Sorry, should be ./httpd --help Miles At 01:52 PM 5/12/01 -0300, Miles Thompson wrote: > >or >./hhtpd --help -- 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 administ

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2001-05-15 Thread Miles Thompson
you started - Miles Thompson At 09:45 AM 5/15/01 -0400, [EMAIL PROTECTED] wrote: >Dear sir, >I am new to php.kindly recommend me tutorials tp get started. >thanks >asif > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For

Re: [PHP] ORDER PROBLEMS

2001-05-15 Thread Miles Thompson
Databases can calculate averages _very_ quickly and it may be better to do that in your SELECT statement. Heres an extract from the manual: AVG(expr) Returns the average value of expr: mysql> select student_name, AVG(test_score) from student GROUP

Re: [PHP] I have a problem with phpMySqlAdmin

2001-05-16 Thread Miles Thompson
Seamless Install" you will get two excellent tutorials. Good luck - Miles Thompson At 04:00 PM 5/16/01 +0200, Enrique Ivorra Gómez wrote: >I sent you my phpinfo(). > >I dont put on INTERNET becouse it's on a Intranet. > > > >System Linux porky.devel.redhat.com 2.2.5-22

Re: [PHP] Need more help please!

2001-05-18 Thread Miles Thompson
Taline, You cannot have ANY OUTPUT before sending a header. Strip out every blank line and try again. Tighten it up. A space at the top of the page before "Thanks for the reply but now i have problems with my pop up! Here is the >message in getting. Whats the problem now > >Warning: Supplie

Re: [PHP] Random number

2001-05-18 Thread Miles Thompson
Come on - you haven't even bothered to check the manual. Search for this at php.net Miles At 03:09 PM 5/18/01 -0400, Daniel Coronel wrote: >Hi! >I need to really generate a random number in a function but not like doing >it. >Somebody could help me. Thanks. > >Daniel Coronel. -- PHP General

Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-19 Thread Miles Thompson
Jakob, You mean tidy? I use it to post-process a 'Today's News" page that is created, by script, from a set of other pages. It works very well. Miles Thompson At 03:54 PM 5/19/01 +0200, Jakob Kruse wrote: >Brandon, might I suggest that you start using the HTML Validator at

Re: [PHP] Reports in web browser

2001-05-20 Thread Miles Thompson
Well, I think there's a Javascript function one can use to start printing, but users will hate it. A bigger issue, I would think, would be formatting to preserve indents, column alignment ,etc. We have no control over the resolution of the user's system, size of the browser window, etc. Even e

Re: [PHP] OT PHP Manuals

2001-05-22 Thread Miles Thompson
Why? We have the manuals in two truly portable formats, HTML and PDF, not to mention on-line, annotated HTML. Miles Thompson At 10:37 AM 5/23/01 +0930, Joseph Blythe wrote: >Hey all, > >Just was wondering if anyone knew what was used to make the php manuals in >the windows help

Re: [PHP] Searching a MYSQL DB

2001-05-23 Thread Miles Thompson
art, you could probably find some useful things on line if you search for something like "SQL tutorial". There may also be a tutorial linked from the MySQL web site. So, dig in and have fun. It's pretty straightforward. Regards - Miles Thompson At 09:44 PM 5/23/01 +1200, YoBro wr

Re: [PHP] OT PHP Manuals

2001-05-23 Thread Miles Thompson
My apologies to Joseph, and to the group at large. I didn't read his question carefully, and in retrospect, gave him a pretty asinine answer. Braaay! - Miles Thompson At 10:22 PM 5/22/01 -0300, Miles Thompson wrote: >Why? We have the manuals in two truly portable formats, HTML and

Re: [PHP] Converting MySQL Date (2001-05-21) to Friendly Date (21 May 2001)

2001-05-23 Thread Miles Thompson
Mathew, Great that they're backwards from one another, isn't it? The regular expression wizards probably have some marvellous trick up their sleeve, and Manuel Lemos probably has a class that will do this. You can do it yourself by using substring functions to extract the parts of the date, r

Re: [PHP] Error: Supplied argument is not a valid MySQL result resource

2001-05-24 Thread Miles Thompson
db_connect doesn't exist. Try mysql_connect, or better yet, mysql_pconnect() Online manual at www.php.net. You can get quick results for any function by entering http://www.php.net/name_of_function and it is automatically searched for. Miles At 03:15 PM 5/24/01 +0100, Internaut wrote: >Hello

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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

[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] 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/

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[PHP] Re: [PHP-DB] PHP + Postgresql + Linux = Frustration

2002-01-26 Thread Miles Thompson
gram would be if everything was compiled in by default. Hope this is helpful. If you have more problems, there is a php-install list which deals with specific installation problems. Regards - Miles Thompson PS These 4 programs were my first experience building on Linux systems, and initially i

Re: [PHP] Control Panel

2002-01-26 Thread Miles Thompson
Spare us1 Miles Thompson On Saturday 26 January 2002 09:39 pm, karthikeyan wrote: > Hi Guys, > > I want a affordable and the best control panel for my website. Though i > can make it myself but it make some time to do that. Do any of you guys > and gals know about this

Re: [PHP] a quick question..

2002-01-27 Thread Miles Thompson
Try this: Store variables in an array, say $msg_array. (For those of Hungarian preference, $arrMessages.) $index = rand (0, $n) echo $msg_array[ $index ] Now this will require a bit of messing about, seeding the randomizer, etc., but you get the idea. Miles Thompson On Sunday 27 January

Re: [PHP] undefined symbol: uncompress

2002-01-27 Thread Miles Thompson
Add the path to libphp4.so to the file /etc/ld.conf.so and run ldconfig or copy libphp4.so to the libexec directory found beneath the main apach directory. It's most likely in the libs directory of your php source directory. The second way is probably the best. HTH - Miles Thompson

<    1   2   3   4   5   6   >