RE: [PHP] Algorithm for repeating calendar events

2001-07-13 Thread Matthew Loff
ortunately, I'm 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: Th

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 M

[PHP] Variable name declarations?

2001-07-13 Thread Matthew Aznoe
s, it could help commenting 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

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

2001-07-13 Thread Matthew Loff
tion will be: mysql -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 en

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 his.

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 tr

[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, etc.,

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

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

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: Jaso

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

2001-07-16 Thread Matthew Loff
-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 in four seperate html pages included directly (no links to inclu

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 [mailto:[EM

RE: [PHP] GEt Command

2001-07-17 Thread Matthew Loff
$site = fopen( 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 an

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 so

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

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 inter

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 htmlspecia

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 been

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 (line break) tag. The paragraph tag would also work nicely: IP ADDRESS"; echo "$remote_admin"; ?> Or you could start to get fancy by doing it with a table: "; echo "IP ADDRES

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 To:

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: Ope

[PHP] mailing in batches

2001-07-23 Thread Matthew Delmarter
do I get 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

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

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 should

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 ze

[PHP] Newbie Help

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

[PHP] PHP Constructors

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

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: Advanced Search Enter text in a form (snippet from form, close window if cancel is clicked, redirect window1 to new url, close window): print ""; print "field1\n"; print "\n"; print "\n"; print "\n"; Now the p

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

[PHP] naming conventions

2001-07-26 Thread Matthew Delmarter
e? In short I want to know if more than personal preference is involved in naming fields... 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 PR

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 ... ... 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 optimize your

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 permissions

[PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
Hi all, I want to store the results of a multiple select input box in a mysql db. The box looks like this: name I cannot seem to store the array in a database and then output the result using foreach. Any tips? Regards, Matthew Delmarter Web Developer AdplusOnline.com Ltd

RE: [PHP] storing array in mysql

2001-07-30 Thread Matthew Delmarter
ge! I should admit that I am only just getting used to arrays... Matthew -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 3:03 PM To: 'Matthew Delmarter' Subject: RE: [PHP] storing array in mysql Have you tried serialize()'ing it

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

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

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 "\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 => "Novemb

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 "\n"; $month_names = array(1 => "January", 2 => "February", 3 => "March", 4 => "April", 5 => "May", 6 => "June", 7 => "July", 8 => "August", 9 => "September", 10 =>

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

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 Su

[PHP] dynamic variable names?

2001-07-31 Thread Matthew Delmarter
array. I would expect it to replace ##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]

[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
ic example 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 P

[PHP] using placeholders and db results

2001-08-05 Thread Matthew Delmarter
f $row->firstname and $row->lastname 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 PRO

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++)

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

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: \n"; echo '

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 To:

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 wor

[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] 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 12:58

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

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

2001-08-23 Thread Matthew Delmarter
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] 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] Questi

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: [PH

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

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 libraries

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, Septemb

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 st

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
Message- From: Felix [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 subd

RE: [PHP] difference between

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 mailto:[EMAIL PROTECTED]] Sent: Sunday, September 09, 2001 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP] difference between http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

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: [PH

RE: [PHP] Dynamic Form

2001-09-12 Thread Matthew Loff
echo "\n"; while($row = mysql_fetch_assoc($yourquery) echo "{$row['name']}\n"; echo "\n"; Just insert a ternary operator in there, and check if the submitted value is equal to the database row's value... If so, add "SELECTED" to the OPTION tag. --Matt -Original Message- From:

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

RE: [PHP] Getting screen resolution and color depth

2001-09-16 Thread Matthew Loff
screen.width + "x" + screen.height + '&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] Ge

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 ODB

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'; 'Masa

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: * R&zE: [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 4:01 AM To: hue micheal; [EMAIL PROTECTED] Subject: Re: [PHP] Print curr

[PHP] PHP code critique

2001-09-19 Thread Matthew Simpson
RRAY in PHP would be faster?). Thanks, Matthew Source Code: http://www.symatec-computer.com/_tmp/index.php.txt

Re: Re[2]: [PHP] Please help!!! Trying to write some chat script!

2001-09-19 Thread Matthew Simpson
I whole-heartedly agree with this statement. There are several great Java clients (including IRC clients) for chatting, but I have never seen a server side scripting chat implementation worth anything. - Original Message - From: "Emile Bosch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

[PHP] include() problem...

2001-09-20 Thread Matthew Walker
I try and do an include, I get the following error. Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='') in /usr/local/httpd/htdocs/test.php on line 2 Help? Please? I'm at a loss as to how to fix this, and I kind of need to. -- Matthew Walker Ecommer

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
(.:/usr/lib/php) and when I do 'print_r(ini_get("include_path"));' it prints it properly. But when I try and do an include, I get the following error. Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='') in /usr/local/httpd/htdocs/te

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Check the permissions on both the directory and the

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Okay... This is odd. Despite the fact that 'print_r(ini_get("include_path"));' returns the right include_path, I just checked the php.ini file, and lo and behold, there is no include path set. So... Have I just discovered a bug? -Original Message- From: Matthew W

RE: [PHP] Just for fun:

2001-09-20 Thread Matthew Loff
-Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 8:32 PM To: PHP Users Subject: [PHP] Just for fun: Here is a question, just for fun: What is the biggest function (In terms of line count) you have ever written? I just finished one tha

[PHP] Sessions and include()...

2001-09-21 Thread Matthew Walker
What happens if you use include() to include a file from another server, and that file sets a session? Does the session get set for the domain of the wrapper page, or does it get set for the domain of the included page? -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs

RE: [PHP] Re: Sessions and include()...

2001-09-22 Thread Matthew Walker
But those pieces would need to use the same session as if they were on /our/ server. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 10:25 PM To: Matthew Walker Cc: [EMAIL PROTECTED] Subject: [PHP] Re: Sessions and include()... I believe

RE: [PHP] Disk Usage

2001-09-22 Thread Matthew Loff
chdir() to the directory you want the size of, and do: $usage = (int)`du -sk`; // size in kilobytes $usage = (int)`du -sb`; // size in bytes Now $usage will have the size in integer form. -Original Message- From: Scott Poarch [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 2

RE: [PHP] Disk Usage

2001-09-22 Thread Matthew Loff
y itself. Good luck! -Matt -Original Message- From: Scott Poarch [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 22, 2001 10:37 PM To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED] Subject: Re: [PHP] Disk Usage I appreciate the help. I understand the 'du -sk', b

RE: [PHP] Disk Usage

2001-09-23 Thread Matthew Loff
lto:[EMAIL PROTECTED]] Sent: Sunday, September 23, 2001 4:11 AM To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED] Subject: Re: [PHP] Disk Usage Well, it's an intriquing idea, but I'm not getting any success out of it. thanks for the suggestion. I'll keep plugging away. -- Sco

RE: [PHP] Even more text document stuff!!

2001-09-24 Thread Matthew Loff
Read the manual. (Déjà vu?) http://www.php.net/manual/en/function.fread.php Even has an example that says -- "get contents of a file into a string" -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 7:42 PM To: [EMAIL PROTECTED] Subject:

[PHP] DB.php, and how to use?

2001-09-25 Thread Matthew Walker
ne provide a quick set of examples for how to use the class functions? I haven't done OO programming in a long time, and I've never done it in PHP. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG ant

[PHP] display query results at random

2001-09-25 Thread Matthew Delmarter
ta was returned from the query - it's just a matter of knowing how to get it! Can anyone help? I am sorry if the question is confusing, but I can't think of a better way to explain it at the moment (i'm tired)... Matthew -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] display query results at random

2001-09-25 Thread Matthew Delmarter
record 5 //I specifically want record 5 details here What I meant by 'random' was that it's not in the order returned by the mysql query. Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 3:56 PM To: [EMAIL PROTEC

[PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
e Autoincriment ID of the last insert you performed. How do I get that information with the PEAR DB module? -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.281 / Viru

<    1   2   3   4   5   6   7   8   9   10   >