RE: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread Matthew Loff
FYI-- Page breaks can be designated with CSS (style sheets)... Although that's not a completely cross-platform method. -Original Message- From: * RzE: [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 4:01 AM To: hue micheal; [EMAIL PROTECTED] Subject: Re: [PHP] Print

RE: [PHP] Performance: PHP vs. Visual Basic

2001-09-17 Thread Matthew Loff
Thanks for the clarification... Anyone have any benchmarks of the MySQL ODBC driver? Just out of curiousity... --Matt -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, September 17, 2001 9:47 AM To: Matthew Loff; 'Michael Kimsal'; 'Masami Kawakami' Cc

RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Matthew Loff
Can't be done... 1) Browser sends request 2) PHP page is compiled and executed 3) PHP output is sent to browser 4) Browser displays page/executes javascript/etc. -Original Message- From: Salty Marine [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 16, 2001 3:54 PM To: [EMAIL

RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Matthew Loff
+ 'color_depth=' + screen.colorDepth -Original Message- From: Seb Frost [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 16, 2001 4:13 PM To: Matthew Loff; 'Salty Marine'; [EMAIL PROTECTED] Subject: RE: [PHP] Getting screen resolution and color depth But you could then re-submit the page

RE: [PHP] Performance: PHP vs. Visual Basic

2001-09-16 Thread Matthew Loff
I would agree that the DB is probably the biggest bottleneck... Are you connecting to the DB via ODBC? I'm not an expert at DB stuff outside of the MySQL realm, but I've heard many say ODBC is horribly slow. I don't know ASP that well, but could someone comment on ADODB? It uses OLEDB, not

RE: [PHP] Accessing pdf file thru php

2001-09-12 Thread Matthew Loff
Are you using Internet Explorer? I've found that broken installations of Acrobat will cause that... Try reinstalling acrobat on your computer, and also try using Netscape... See if they work. --Matt -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: [PHP] Problem with Uploading Many Files (22)

2001-09-12 Thread Matthew Loff
What version of PHP are you running? There were a few bugs in the file upload code that have been fixed in recent relases of PHP... --Matt -Original Message- From: Jani Rautiainen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 3:51 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
echo SELECT NAME=\whatever\\n; while($row = mysql_fetch_assoc($yourquery) echo OPTION . ($whatever == $row['value']? SELECTED :) .VALUE=\{$row['value']}\{$row['name']}/OPTION\n; echo /SELECT\n; Just insert a ternary operator in there, and check if the submitted value is equal to the

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
Oops... My bad. I misread the question... Ignore my previous reply. -Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 6:47 PM To: Jared Mashburn; PHP Users Subject: Re: [PHP] Dynamic Form PHP does not know what the user has selected

RE: [PHP] mod_rewrite

2001-09-09 Thread Matthew Loff
Subdomains are first a DNS issue... The first place you have to go is your DNS config, since users.body-builders.org wouldn't exist without an A or CNAME record. I don't know if mod_rewrite can do anything about the subdomains like that, if it can't, you will have to add VirtualHost directives

RE: [PHP] mod_rewrite

2001-09-09 Thread Matthew Loff
[mailto:[EMAIL PROTECTED]] Sent: Sunday, September 09, 2001 1:38 PM To: [EMAIL PROTECTED]; 'Matthew Loff' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] mod_rewrite How about http://wasarrested.com? IO don't know how they do it, but you can enter whatever subdomain you want and it reflecst

RE: [PHP] difference between ?php and ?

2001-09-09 Thread Matthew Loff
There isn't any difference, if your php.ini settings allow it (short_tags, I believe), you can use ? instead of ?php -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 09, 2001 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP] difference between

RE: [PHP] Ordering a query

2001-09-08 Thread Matthew Loff
You could insert a ternary operation... ($order?$order:defaultfield) Is the same as: if($order) echo $order; else echo defaultfield; ... $result = mysql_query(SELECT articles.title,vote.votes,vote.total,articles.date,staff.firstname,artic les.content,articles.id FROM

RE: [PHP] Re: Mailing, which is faster

2001-09-06 Thread Matthew Loff
Doesn't PHP exec sendmail when mail() is called anyway? (Unless you run another MTA, of course) I would think they'd take the same amount of time, unless there is overhead with using popen() --Matt -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: [PHP] Making gd Extensions

2001-09-04 Thread Matthew Loff
Banning PHP from your system just because GD won't compile with it seems a bit drastic... You have to realize that the PHP developers don't really have anything to do with GD, pdflib, etc... they have added support for them into the PHP language, but an issue with one of these external

Re: [PHP] seeking good annotate script

2001-09-01 Thread Matthew A. Schneider
and maintaining the relational database. Try it you'll like it. It's not PHP though (TCL likely). Best regards, Matthew A. Schneider [EMAIL PROTECTED] - Original Message - From: daniel goldin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 31, 2001 10:31 PM Subject: [PHP] seeking good

Re: [PHP] The future of PHP or my 2 cents

2001-08-30 Thread Matthew A. Schneider
running PHP? There, that was my 2 cents worth. Or was that a 2 bit opinion? (I'll leave the next joke to the group) Also, I'll be proactive. Send all monies to me ;) Matthew A. Schneider - Original Message - From: Frederick L. Steinkopf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday

RE: [PHP] im puzzled

2001-08-29 Thread Matthew Loff
You need to specify which item to group the query by. SELECT users.uid FROM users, picks WHERE users.uid picks.user_id GROUP BY users.uid; -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 10:42 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP] GUI for PHP

2001-08-29 Thread Matthew A. Schneider
As someone who has little programming experience I'd have to say jump right in and forget the GUI (I'm not aware of any IDE for PHP). PHP is pretty easy (to learn, becoming a master is something else I suspect) and there is always outstanding support either by reading this newsgroup's archive or

RE: [PHP] pdflib + pdf_findfont

2001-08-29 Thread Matthew Loff
I got the same error message, and couldn't figure out why... In the example for pdf_findfont(), it has: $font = pdf_findfont($pdf, Times New Roman, winansi, 1); Try changing your embed parameter to 0... $font = pdf_findfont($pdf, Times New Roman, winansi, 0); ... That fixed it for me. Give

RE: [PHP] Question about PDF lib.

2001-08-27 Thread Matthew Loff
It's postscript points, I believe... 72 points per inch. So, an 8.5x11 page is 612x792 points large. --Matt -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 3:59 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP]

[PHP] send mail to mailing list using mail() or smtp?

2001-08-23 Thread Matthew Delmarter
the mail directly to the smtp server? Can you foresee any problems? I look forward to your reply... Regards, Matthew Delmarter -- 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

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Matthew Loff
1) strftime(%T on the %D, strtotime($yourdate)); Should produce: 00:12:45 on the 08-22-2001 You can check the manual page for strftime() to see different ways to format the time to your liking: http://www.php.net/manual/en/function.strftime.php 2) The way you're trying to do that sounds

RE: [PHP] debugger_on() undefined?

2001-08-17 Thread Matthew Loff
PHP docs are weak on debugger_on() because the debugger isn't a feature in PHP 4 :) It was not included in the transition from PHP 3 to 4. You'll have to use a 3rd-party debugger for PHP code. Search the archives for this list, it has been discussed in the past. -Original Message-

RE: [PHP] Re: javascript reference (slightly ot)

2001-08-15 Thread Matthew Loff
JavaScript Reference Guide-- http://rts.ncst.ernet.in/resources/javascript/reference/ I remember having trouble finding a complete object/method reference too, this document really helped me. -Original Message- From: Al [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001

[PHP] stop a batch of mail during send

2001-08-13 Thread Matthew Delmarter
Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In particular I am looking for a browser based solution... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] stop a batch of mail during send

2001-08-13 Thread Matthew Delmarter
Let's say I am mailing 1000 members of a mailing list - is it possible to stop the process once started? In particular I am looking for a browser based solution... Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] MySQL connection

2001-08-09 Thread Matthew Loff
How exactly is the username/password from the mysql_connect() call shown to the browser? I normally just get a PHP error when the db connection can't be made. No code is shown, just a line number. If, in your case, PHP dumps the source code to the browser window when the db connection won't

RE: [PHP] Is there a debugger ???

2001-08-08 Thread Matthew Loff
The debugger is not built into PHP 4, it was a feature in PHP 3. --Matt -Original Message- From: Peter Dowie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 12:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Is there a debugger ??? Hi, I noticed in php.ini there was a

RE: [PHP] MySQL connection

2001-08-08 Thread Matthew Loff
Ha ha... hardcore the user/password Sorry... I realize you gave a good answer, just had to laugh. :) -Original Message- From: Attila Strauss [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL connection hi, there

RE: [PHP] form validataion?

2001-08-08 Thread Matthew Loff
Usually if-statements and regex's are used to validate data... If you just want to make sure the form is filled out completely, you could do this: (which is how I do it) if(empty($name) || empty($address) || empty($phone)) { // Form is not complete echo 'Name: INPUT TYPE=TEXT

RE: [PHP] 3rd include

2001-08-08 Thread Matthew Loff
For reference, in case anyone cares-- from within functions, I usually just do: global $HTTP_POST_VARS; extract($HTTP_POST_VARS); ...to account for the scope of the form vars. -Original Message- From: Mark Roedel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:08 PM

RE: [PHP] Images

2001-08-07 Thread Matthew Loff
Resizing a whole page of large images on the fly every time is going to put a heavy load on your CPU... If you insist on doing that, see the PHP image functions available through the GD library... http://www.php.net/manual/en/ref.image.php I recommend you use PHP 4.0.6 with GD 2.0.x... With

RE: [PHP] Splitting Text

2001-08-06 Thread Matthew Loff
You can do this several ways... Either use explode(): http://www.php.net/manual/en/function.explode.php ...to split the retrieved data by a space as the delimeter, then use a for() loop to print X number of words... E.g.: $array = explode( , $db_string); for($i = 0; $i 25; $i++)

[PHP] field sizes

2001-08-05 Thread Matthew Delmarter
Hi all, I am curious about how to best define the size of fields in mysql. Is there some size that are better used than others? For example without thinking about it to much I would tend to size fields in multiples of 10 - 20, 50, 100, 200 etc... Is this the best answer? Regards, Matthew

[PHP] is there a performance hit using flush() ?

2001-08-05 Thread Matthew Delmarter
is displaying the results of a mail program as it fires off mail to hundreds of members in a database. Will this slow down the execution of the script at all - or much? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] using placeholders and db results

2001-08-05 Thread Matthew Delmarter
respectively... but nothing happens. I presume it is a variable problem... Can anyone help with this code? Matthew -- 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

RE: [PHP] Attitude of B van Ouwerkerk

2001-07-31 Thread Matthew Loff
I agree with the try to answer your own question first theory that you propose... I have used PHP for almost 2 years now, and just subscribed to this list a month or two ago, but have yet to ask a single question... But I realize we're all at different skill levels, and so far, I haven't done

RE: [PHP] Trouble creating a list on months

2001-07-31 Thread Matthew Loff
Try this: function month_list() { echo select name=\month\\n; $month_names = array(1 = January, 2 = February, 3 = March, 4 = April, 5 = May, 6 = June, 7 = July, 8 = August, 9 = September, 10 = October, 11 = November, 12 =

RE: [PHP] Trouble creating a list on months

2001-07-31 Thread Matthew Loff
Oops! I forgot to include the parameter... function month_select($month) { echo select name=\month\\n; $month_names = array(1 = January, 2 = February, 3 = March, 4 = April, 5 = May, 6 = June, 7 = July, 8 = August, 9 = September, 10 = October,

[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
Is it possible to dynamically assign a variable name? For example: variable name is $var_.name or $var_.$name Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] dynamic variable names?

2001-07-31 Thread Matthew Loff
RTFM... Read the Fabulous Manual. :) ha ha... It's possible, and downright easy. http://www.php.net/manual/en/language.variables.variable.php -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 10:58 PM To: PHP Mailing List Subject

[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
##firstname## with the value of $row[firstname]... but nothing happens. Matthew -- 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] Find and Replace

2001-07-30 Thread Matthew Loff
Instead of using numbers, I use this system: chmod a+rwx (all users read/write/execute) chmod u+rwx (owner of file read/write/execute) chmod g+rwx (group read/write/execute) chmod o+rwx (all users read/write/execute) The plus + can be substituted with a minus - to remove specific

[PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
? Regards, Matthew Delmarter Web Developer AdplusOnline.com Ltd www.adplusonline.com Phone: 06 8357684 Cell: 025 2303630 -- 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

RE: [PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
argument supplied for foreach(). I am using: $array = unserialize($db_result-lists_actual); foreach($array AS $val) { echo $val; }; I hope the problem is clear, I am thoroughly confused at this stage! I should admit that I am only just getting used to arrays... Matthew

[PHP] search based on array

2001-07-30 Thread Matthew Delmarter
How do I search mysql based on an array? For example suppose I had an array of array(1,2,3). And I want to search like so: SELECT * FROM table WHERE id=arrayvalues Regards, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] search array for value

2001-07-30 Thread Matthew Delmarter
How do I search an array? For example if I want to know if $array contains 1... Regards, Matthew Delmarter -- 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

RE: [PHP] my php script is very slow. help?

2001-07-27 Thread Matthew Loff
If you're only doing one DB query per page, then the query is probably what's taking the longest. Log into mysql, and execute EXPLAIN SELECT ...rest of query ... It'll tell you how MySQL plans on performing the query across the rows of the table(s). You can use the information it provides to

[PHP] PHP Constructors

2001-07-26 Thread Matthew Schubert
I was reading through the PHP manual and got to the section on constructors. snip class A { function A() { echo I am the constructor of A.br\n; } function B() { echo I am a regular function named B in class A.br\n; echo I am not a constructor in A.br\n; } } class B extends

RE: [PHP] Re: download a pdf file

2001-07-26 Thread Matthew Loff
If the PDF file is publicly accessible via a web server, you should be able to simply do: header(Location: http://www.server.com/file.pdf;); -Original Message- From: kaab kaoutar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 7:47 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

[PHP] Open window2 (javascript), enter info in a form, then close window2 and refresh window1. help.

2001-07-26 Thread Matthew DeChant
I've gotten this far: URL to open an advanced search window(window2) from window1: a href=\javascript:newWindow = window.open('db_viewMD.php?dsn=$dsndb=$dblm=$lmadvsrch=true','advsrch','h eight=$vsize,width=310,scrollbars=$bln,resizeable=yes'); newWindow.focus()\)Advanced Search/a Enter text

[PHP] assigning a part of the name of a variable with another variable before php replaces it with the value

2001-07-26 Thread Matthew DeChant
Specifically, If I have 3 HTTP_POST_VARS: HTTP_POST_VARS[client] = test1 HTTP_POST_VARS[directory]= test2 HTTP_POST_VARS[password] = and I don't know the names of the vars ahead of time, how would I run a check to see if they exist and then get the specific POST_VARS's value. This is what

RE: [PHP] Learning PHP

2001-07-25 Thread Matthew Loff
O'Reilly book and PHP manual? That's the best you're going to get. (Others will recommend other books, but the O'Reilly one is great to start with) Good luck! -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 9:06 PM To: [EMAIL PROTECTED]

RE: [PHP] The BIG Question

2001-07-25 Thread Matthew Loff
That's like saying What's C++ good for? Well, not quite... Ha ha... I get a bit carried away... But it's close enough. PHP does what you want it to do... Database-driven sites are covered frequently on this list because PHP's database support is extensive and very easy to use. You

RE: [PHP] Regular Expression Question

2001-07-25 Thread Matthew Loff
http://www.php.net/manual/en/function.substr.php string substr (string string, int start [, int length]) Substr returns the portion of string specified by the start and length parameters. If start is positive, the returned string will start at the start'th position in string, counting from

[PHP] Newbie Help

2001-07-25 Thread Matthew Schubert
I was reading through the PHP manual and got to the section on constructors. snip class A { function A() { echo I am the constructor of A.br\n; } function B() { echo I am a regular function named B in class A.br\n; echo I am not a constructor in A.br\n; } } class B extends

RE: [PHP] Zip Code Locator?

2001-07-24 Thread Matthew Loff
Ben-- Thanks for pointing that out... I've been looking for info like that for a long time! Much appreciated. --Matt -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 1:23 PM To: Vincent P. Cocciolone Cc: [EMAIL PROTECTED] Subject: Re:

RE: [PHP] Syntax Eyes

2001-07-24 Thread Matthew Loff
Output control functions will let you buffer the output, and you can decide to send a header instead of flushing the buffer to the client: http://www.php.net/manual/en/ref.outcontrol.php ob_start() flush() should accomplish this all for you. -Original Message- From: Clayton Dukes

RE: [PHP] Networking

2001-07-23 Thread Matthew Loff
I don't see why you wouldn't be able to access that share... Did you try escaping the path? e.g. chdir(computer\\dir); -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 6:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Networking Hey does any

RE: [PHP] Capitalize Function ??

2001-07-23 Thread Matthew Loff
I think ucfirst() only does the first character of the string... ucwords() will do all the parts of the name. The only shortcoming I've found is if people put in a middle initial and add a period to it, or put a nickname in quotes... ucwords() skips those. -Original Message- From:

[PHP] mailing in batches

2001-07-23 Thread Matthew Delmarter
a script to run in the background? I am only familiar with processing script within an html page that is returned to a client. Will a script like this keep running even if a browser window is closed? Also is there any examples of this kind of app? Regards, Matthew Delmarter Web Developer

RE: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE...

2001-07-22 Thread Matthew Loff
Whew! They're giving away a lot of vacations if we -all- qualify... :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 4:06 PM To: [EMAIL PROTECTED] Subject: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE... You have

Re: [PHP] PHP.... i suck at it

2001-07-22 Thread Matthew Garman
Well, there are a few ways to do it. The secret is to know a little bit of HTML. Another poster suggested using the br (line break) tag. The paragraph tag would also work nicely: ?php echo pIP ADDRESS/p; echo p$remote_admin/p; ? Or you could start to get fancy by doing it with a table:

RE: [PHP] formatting host output

2001-07-22 Thread Matthew Loff
If $lookup is passed from the client, then you should be careful with that exec() call... http://www.php.net/manual/en/ref.exec.php Use one of the escape...() functions, perhaps? -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 12:47 AM

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-21 Thread Matthew Garman
Ahh yes, that was exactly what I needed. (I knew it was simple!) But that brings up another question: whenever I have POST information propagate over more than one page, is it generally a good idea to *always* use htmlspecialchars () on my data? I.e., even if the data shouldn't need

[PHP] Secure Access to Remote MySQL DB

2001-07-18 Thread Matthew Aznoe
Greetings, I am developing an application that will access a MySQL database remotely from another server. I would like to be able to use a standard database connection using the 3306 port if possible for ease of development, but I certainly do not want to be sending unencrypted data

RE: [PHP] Secure Access to Remote MySQL DB

2001-07-18 Thread Matthew Aznoe
- From: Mauricio T?llez Jim?nez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 12:03 PM To: Matthew Aznoe Cc: Php-General-Digest Subject: Re: [PHP] Secure Access to Remote MySQL DB CONTENT-DISPOSITION: INLINE I think that SSL is the more transparent choice. Cheers. On Wed, Jul 18

Re: [PHP] Re: a good PHP editor

2001-07-18 Thread Matthew Garman
On Wed, Jul 18, 2001 at 06:43:55PM -0400, Tom Malone wrote: I think that both TextPad and NoteTab are excellent editors, with TextPad being the better of the two. If it hasn't been mentioned already, check out vim (www.vim.org). I got hooked on it using by using Linux. This summer I'm

RE: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread Matthew Loff
INPUT TYPE=HIDDEN NAME=name_of_variable VALUE=value_of_variable -Original Message- From: Tim Olsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 2:12 AM To: [EMAIL PROTECTED] Subject: [PHP] passing variables from forms to the same page repetatively People, I have 4 forms

RE: [PHP] How to add a new color to JPEG

2001-07-17 Thread Matthew Loff
I don't know a way around the problem you're describing with your version of PHP, but PHP 4.0.6 with GD 2.0.1 allows you to call ImageCreateTrueColor(), which eliminates the 256-color limitation with JPEG files-- solved my problem right away. -Original Message- From: Jennifer

RE: [PHP] GEt Command

2001-07-17 Thread Matthew Loff
$site = fopen( http://www.whatever.com/ http://www.whatever.com/, r); $contents = fread($site, 102400); fclose($site); -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 2:08 PM To: [EMAIL PROTECTED] Subject: [PHP] GEt Command Does

Re: [PHP] learning PHP from scratch

2001-07-17 Thread Matthew Garman
On Tue, Jul 17, 2001 at 04:55:11PM +1000, Jason Rennie wrote: This approach worked pretty well with previous people i teached PHP, but they already had some sort of programming background. This guy hasn't. I find that he has some difficulties picking it up. And I have some

[PHP] report generation with PHP

2001-07-16 Thread Matthew Garman
Hello: I wrote an small web application that interfaces a Microsoft Access database. The database is fairly small and simple: it is a listing of employees, their phone number(s) and their department. My interface allows folks to view the phone list, search for a name, list by department,

[PHP] php file extensions with IIS

2001-07-16 Thread Matthew Garman
I installed PHP 4.0 on an MS Windows 2000 server (running IIS 5.0). It processes files whose extension is .php but displays files with .php3 and .php4 extensions as text. I might have specified such behavior in the original installation. But now I can't find out where to associate other

Re: [PHP] report generation with PHP

2001-07-16 Thread Matthew Garman
On Mon, Jul 16, 2001 at 05:19:41PM +0300, Marius Andreiana wrote: În 16 Jul 2001 09:07:17 -0500 garman a scris: I forgot to mention that I already looked into the PDF extensions. Although it looks like it would do exactly what I want, the PDFLib isn't free for You can generate xml in

[PHP] image forwarding through a proxy?

2001-07-16 Thread Matthew Garman
At the organization I'm interning at this summer, we have an intranet web. My job is to update, maintain and enhance it. On the main intranet web page, there's a weather channel magnet that displays the local weather conditions. Now, since not everyone has inTERnet access, some people simply

RE: [PHP] REPOST: converting multiple URL values for the same variable into an array

2001-07-16 Thread Matthew Loff
If PHP won't overload them to an array, you could parse $QUERY_STRING manually. -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 11:06 PM To: 'Kurt Lieber'; 'PHP General List (E-mail)' Subject: RE: [PHP] REPOST: converting multiple URL

RE: [PHP] learning PHP from scratch

2001-07-16 Thread Matthew Loff
I am not sure how easy it would be to learn PHP from scratch without any prior programming experience... In my case, knowing C and HTML very well made learning PHP easy as pie... I think both are great starting points for someone who wants to do PHP well. -Original Message- From:

RE: [PHP] Web application?

2001-07-14 Thread Matthew Loff
Just for reference, I originally meantioned a comparison of PostgreSQL beta vs. MySQL latest-- here's the article: http://www.phpbuilder.com/columns/tim2705.php3?page=1 I'm curious to hear comments on stability of Postgres, since the author of that article meantions it as a concern of

RE: [PHP] Alternative to phpMyAdmin

2001-07-14 Thread Matthew Loff
You probably mean SSH tunnel, which is quite feasable-- Hank Marquardt posted this earlier to the list: --- BEGIN QUOTE --- Works just fine ... as does postgres -- ssh -N -2 -f -C -c blowfish -L3306:yourdatabase.server.here:3306 [EMAIL PROTECTED] or the other usual

RE: [PHP] Algorithm for repeating calendar events

2001-07-13 Thread Matthew Loff
on a Windows platform. Is there any way to get this functionality on Win32? I downloaded the tar.gz file with teh libmcal library in it, but I have no idea what I would do next. -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 1:43 PM

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Matthew Loff
Unfortunately, it doesn't -- you bring up a good point. It does support the compressed client/server protocol, which would make it harder to intercept-- but encryption is not an option yet on the client. I don't suppose there's any way on Win32 to use an SSH tunnel, is there? -Original

[PHP] Variable name declarations?

2001-07-13 Thread Matthew Aznoe
by describing the variable name as it is being declared, and it would encourage a better coding style. Does anyone else have any thoughts on this? Matthew Aznoe [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: [PHP] Passwords and SSH port forwarding (was: Alternative to phpMyAdmin)

2001-07-13 Thread Matthew Loff
-h 127.0.0.1 for postgres examples, change the port numbers (3306) to 5432 On Fri, Jul 13, 2001 at 06:39:51PM -0400, Egan wrote: On Fri, 13 Jul 2001 12:28:37 -0400, Matthew Loff [EMAIL PROTECTED] wrote: Does mysql-front encrypt the password before it travels the net? It does support

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Matthew Loff
I second that recommendation-- MySQL-Front is downright excellent! http://www.mysqlfront.de/ -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 6:47 AM To: Steph; [EMAIL PROTECTED] Subject: RE: [PHP] Alternative to phpMyAdmin mysql front

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Matthew Loff
Message- From: Alexander Skwar [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 2:15 PM To: Matthew Loff Cc: 'Steve Brett'; 'Steph'; [EMAIL PROTECTED] Subject: Re: [PHP] Alternative to phpMyAdmin So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 : I second

RE: [PHP] Algorithm for repeating calendar events

2001-07-12 Thread Matthew Loff
libmcal is a pain in the butt to set up, but once it's set up, it has some great features... I had to write a PHP page that handled scheduling of appointments, and mcal saved me a lot of time, after I spent the initial 2 hours pulling my hair to set it up. :) -Original Message- From:

RE: [PHP] Thumbnail Generation from DB Stored Images.

2001-07-12 Thread Matthew Loff
Jason-- There are many reasons I don't quite recommend creating the thumbnails on the fly with ImageMagick: 1) I've heard many say that storing/retrieving images from MySQL databases isn't the greatest idea, because you end up with -huge- tables, which leads to long query times. 2) Resizing a

RE: [PHP] Protecting a directory

2001-07-12 Thread Matthew Loff
With PHP, not without creating an index file. If the server is apache, you can simply create a .htaccess file in the directory, containing: order deny,allow deny from all I'm pretty sure that should do it. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] PHP installed - MySql Server can't connect

2001-07-12 Thread Matthew Loff
Maybe his mysql.sock file isn't in /var/lib/mysql/mysql.sock? Mine is /tmp/mysql.sock -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 1:31 AM To: Gaylen Fraley Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP installed - MySql Server can't

RE: [PHP] Variable Next To Variable?

2001-07-11 Thread Matthew Luchak
and then arsort the array. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] What I'm doing is having a form page ask, How many children do you want to sign up? Then it spits out form fields for as many children as they asked for. So each field has name=C_Last_Name$x

RE: [PHP] HTML tags in database fields

2001-07-11 Thread Matthew Luchak
; closed but not opened tags... Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] Hello. I wrote a comments application that allows the use of some HTML tags for text formatting (ib). I ran into a problem of users not closing the tags (/i/b), so when I

RE: [PHP] Mail Bcc to a $variable?

2001-07-11 Thread Matthew Loff
Ahh! I forgot to meantion the \n at the end of the headers in my original post... -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 1:37 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Mail Bcc to a $variable? Like this...

RE: [PHP] Running for loop and concat. variables...

2001-07-11 Thread Matthew Luchak
I think using isset should do it. try: for ($i = 0; $i = $ffromx; $i++) { if (isset($ffrom.$i)){ echo $ffrom.$i.BR;} } Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED

RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
Since IDs can disappear when records are delted, I think it's best to do a COUNT() first, then retrieve your listings with SELECT * FROM table WHERE blah LIMIT offset,number_to_retrieve; -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ...

2001-07-11 Thread Matthew Loff
Have you tried a non-persistant connection? Does that work? mysql_connect()? -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 3:12 PM To: php list Subject: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in ... I'm

RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
; } but that's also a quick-n-dirty way, becuase it doesnt know when the first/last record is... however, that's less quick and less dirty than the original code i posted TIMTOWTDI - there's more than one way to do it. :) -Original Message- From: Matthew Loff [mailto:[EMAIL PROTECTED

RE: [PHP] using GetImageSize in a directory of images

2001-07-11 Thread Matthew Loff
(This is assuming you'll have all images in the directory, and no other file types...) $directory = opendir(./); $dirEntry = readdir($directory); // Skip . $dirEntry = readdir($directory); // Skip .. while($dirEntry = readdir($directory)) { // GetImageSize Code for Each $dirEntry

RE: [PHP] mail() function 30minute delay??

2001-07-11 Thread Matthew Loff
Sendmail should (by default) attempt to send the mail immediately... If it can't deliver it on that attempt, then it should be queued to send again later (30 mins?)... Unless you've configured sendmail differently, it should attempt to deliver as soon as the mail is sent from PHP. You can

<    5   6   7   8   9   10   11   >