RE: [PHP] delete html

2001-10-21 Thread Matthew Loff
The main manual seems to be down right now, probably being rebuilt... Take a look at: http://www.php.net/manual/en/html/ strip_tags() is under "String Functions", and has been around for a while. -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21,

RE: [PHP] enable truetype string function in gd

2001-10-21 Thread Matthew Loff
That URL was probably better than any other answer you'll get... Do a phpinfo() and give us some insight into your install. -Original Message- From: Brian Clark [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 5:34 PM To: PHP is not a drug. Subject: Re: [PHP] enable truetype

RE: [PHP] = 0 and = "0"

2001-10-25 Thread Matthew Loff
The only reason I could see that not working is if PHP is typecasting "test" to (int) in the second example... $qty = "0"; (string) "test" = "test"; (string) "0" != "test" (evaluates true) $qty = 0; (int) "test" = 0; (when cast to int) 0 != 0 (evaluates false) e.g. By comparing an int to

RE: [PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Matthew Loff
Response.Clear Response.Redirect Doesn't that imply that ASP buffers the output? The problem with redirecting the browser after you output data isn't a PHP issue, it's the HTTP spec. I think the best solution would be to turn on output buffering, then immediately flush the output buffer when y

RE: [PHP] I'm not , log me out....

2001-10-27 Thread Matthew Loff
I found sessions to be kind of fussy to get working, perhaps that's just because I didn't have any experience with them until the last site I did... A simple call to session_unset() won't erase the session, but should clear whatever username/passkey (I say passkey, assuming/hoping it's encrypte

RE: [PHP] Problem with very big array !

2001-10-29 Thread Matthew Loff
What prevents you from doing this iteratively, (not loading all 150,000 rows into memory, but processing each row sequentially)? -Original Message- From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 11:44 AM To: Php General MailingList Subject: [PHP] Probl

RE: Re[3]: [PHP] split array in 2 halfs

2001-10-31 Thread Matthew Loff
More generally, this should work: $smallarray1=array_slice($bigarray, 0, sizeof($bigarray) / 2); $smallarray2=array_slice($bigarray, sizeof($bigarray) / 2); I haven't tested it though... -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 4:32 PM

RE: [PHP] documentation comment

2001-11-04 Thread Matthew Loff
I would have to agree on a global scale. However, strictly in discussion of server-side languages, I haven't seen ASP documentation as complete/useful as PHP's... I have never had to use anything besides the PHP manual to solve a problem in writing something. -Original Message- From:

RE: [PHP] Transfer variable to next web-page

2001-11-17 Thread Matthew Loff
Richard already answered the variable part, but I thought I'd point out that you need to use double quotes in your HTML tags... Single quotes are incorrect... text for button "); ?> Or... text for button "); ?> Or... Better yet, why not just: text for button See the PHP ma

RE: [PHP] Re: alzheimers and confused

2001-11-17 Thread Matthew Loff
I was waiting for someone to meantion de Morgan! 10 points for Mr. Elab. Ha ha... -Original Message- From: jimmy elab [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: alzheimers and confused de Morgan and Boole, not Alzhe

RE: [PHP] MySQL INSERT

2001-11-18 Thread Matthew Loff
Did you check the PHP manual? Sounds to me like you just described the mysql_insert_id() function verbatim. http://www.php.net/manual/en/function.mysql-insert-id.php -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 18, 2001 11:21 PM To: php Sub

RE: [PHP] exporting

2001-11-19 Thread Matthew Loff
I always stick with PHP for web apps, but I am in a similar situation, I have to write a script that generates statistics and item reports from a database... The client wanted them in Excel format... I could have done CSV, but for the sake of aesthetics, I decided to go with a native Excel export

RE: [PHP] PHP 4.1 out?

2001-11-28 Thread Matthew Loff
http://snaps.php.net/ Again, the whole "not fully tested" issue comes to play... I'd avoid using these on a production server, obviously. :) -Original Message- From: Mike Eheler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 4:04 PM To: Zeev Suraski; [EMAIL PROTECTED]

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Matthew Loff
Can't be done easily with PHP right now... To get that type of functionality, you'd need to write it in Perl using the SpreadSheet::WriteExcel module. http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html -Original Message- From: Brian Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesda

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Matthew Loff
sage- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 1:02 AM To: 'Matthew Loff'; 'Brian Lee'; [EMAIL PROTECTED] Subject: RE: [PHP] MySQL to Excel with mutiple sheets > Can't be done easily with PHP right now... To get that type o

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread Matthew Loff
PEAR DB, XML, and Gemini tables) http://www.nusphere.com/products/tech_library.htm -Original Message- From: jimmy elab [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 1:34 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL to Excel with mutiple sheets Matthew Loff wrote: > &g

RE: [PHP] Speed of Images from DB

2001-11-30 Thread Matthew Loff
It would be mighty handy for MySQL to have a binary file column type, like Oracle, where the file was stored externally, outside of the rest of the table data... Anyone heard of any plans to implement this? -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]]

RE: [PHP] XML and PHP - dynamic hell

2001-12-01 Thread Matthew Loff
Did you try adding: header("Content-Type: text/xml"); To the top? -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 01, 2001 12:34 AM To: [EMAIL PROTECTED] Subject: [PHP] XML and PHP - dynamic hell I'm having one page output XML for other sites to p

RE: [PHP] xml header

2001-12-05 Thread Matthew Loff
The proper content type is text/xml. --Matt -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 3:11 PM To: Tyler Longren Cc: [EMAIL PROTECTED] Subject: Re: [PHP] xml header Hmmm. I'm thinking of the http headers. Assume you have an xml file

RE: [PHP] Why does it take so long?

2001-07-01 Thread Matthew Loff
I do the majority of my site development on a combination of Athlon 800 w/Win2k for graphics, and a P-133 w/16 megs of RAM running Slackware Linux (gulp!)... The Linux box performance with PHP is actually decent-- EXCEPT when doing database queries locally. I tried running queries on Mysql loca

RE: [PHP] Class/Func Librarys

2001-07-01 Thread Matthew Loff
Take a look at: http://phpclasses.upperdesign.com/browse.html -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 01, 2001 11:29 AM To: [EMAIL PROTECTED] Subject: [PHP] Class/Func Librarys Hey, Just Wondering if any one knows, any sites that havea

RE: [PHP] Function Reqest/Question

2001-07-02 Thread Matthew Loff
The best way I've seen this done is: But putting it within while(0), you can simply break; from it... There may be better ways... Any other suggestions? -Original Message- From: scott [gts] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 02, 2001 3:33 PM To: php Subject: RE: [PHP] Fu

RE: [PHP] help in getting results from mysql

2001-07-02 Thread Matthew Loff
If you aren't concened about multiple entries with the same date, you could try: $rs1 = mysql_query("select * from tablename where item_id=34 and item_type_id=3 order by date desc limit 1"); $last_date=mysql_result($rs1,0,0); Although I don't know how efficient of an SQL query that is... Perha

RE: [PHP] second try - Mysql php install

2001-07-02 Thread Matthew Loff
If you don't see mysqld running when you do a ps, then the problem is starting mysql... Mysql doesn't report errors in starting up to the terminal... You need to find the log file... The log file should be stored in your /mysql/data directory. The logfile should be named [domain].log... S

RE: [PHP] configuring with gd for TTF

2001-07-03 Thread Matthew Loff
If you still can't get it working, post the contents of your config.log file, that can help diagnose it. I figured out a problem with gd 2.0.x not linking properly with PHP 4.0.6 by analyzing the config.log file... -Original Message- From: Ray Hilton [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Troubleshooting syntax ?

2001-07-03 Thread Matthew Loff
I can't suggest any syntax checkers off-hand, but a suggestion for future work... I keep track of TABLE, TR, TD, etc. by indenting them like PHP/C code... Perhaps that would alleviate this from happening again in the future for you... TABLE TR TD /TD

RE: [PHP] Using PHP + GD to make bar graphs?

2001-07-03 Thread Matthew Loff
This may or may not be overkill for what you're doing, but it looks like a superb class: http://www.aditus.nu/jpgraph/index.php I've seen several other graphic classes as well... But this looks to be the best. -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Help Meeeeeeeeeee!!!!!!

2001-07-03 Thread Matthew Loff
[I realize this is off-topic, I apologise] Would this have to be done with ODBC? Or are there any easy ways to link to the MySQL API libs via VB? I'm curious to know too... -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 10:34 PM To: [

RE: [PHP] Help Meeeeeeeeeee!!!!!!

2001-07-03 Thread Matthew Loff
(sorry for the off-topic still) http://www.mysql.com/Downloads/Contrib/MYSQLX.EXE A MySQL ActiveX control that can be accessed from VC++, VB, etc... Uses the MySQL API instead of ODBC... Sounds pretty versatile. -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] writing a query that returns similar numbers

2001-07-04 Thread Matthew Loff
This should work too: $sql = "SELECT rowid FROM numbers WHERE ABS(number - mynumber) <= 10"; -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 04, 2001 1:24 PM To: [EMAIL PROTECTED]; PHP Mailingliste Subject: Re: [PHP] writing a query that returns

RE: [PHP] Executing UNIX commands with PHP

2001-07-04 Thread Matthew Loff
You could popen() the command, I believe, and do it interactively... -Original Message- From: Tim Taubert [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 04, 2001 4:47 PM To: PHP Mailingliste Subject: RE: [PHP] Executing UNIX commands with PHP mh this is bad... can i do anything els

RE: [PHP] Parse URL parameters

2001-07-05 Thread Matthew Loff
Those are automatically assigned to $a1 and $a2. -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 3:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse URL parameters How can I parse parameters sent with the URL of an pgp site? Example: I call the

RE: [PHP] how can I call a link? ??

2001-07-05 Thread Matthew Loff
BODY onLoad="otherFrameName.document.location = 'http://serverview_cart.php?add=4ffqe45'" I think that's how you'd do it... Can anyone with more experience in javascript verify? -Original Message- From: Shrout, Ryan [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 3:18 PM To

RE: [PHP] Submiting Data with an '

2001-07-05 Thread Matthew Loff
Use the addslashes() call to automatically escape characters like that. MySQL will not add the slashes into the table cell, so no need to stripslashes() after you SELECT it back out. -Original Message- From: Mike Mike [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 3:19 PM To

RE: [PHP] Email verification (was: [PHP] Removing Invalid Users)

2001-07-04 Thread Matthew Loff
I've had the same experience with VRFY... Our copy of sendmail was preconfigured to allow VRFY from localhost only... There really isn't any surefire way to verify whether an e-mail exists or not, except to try to send to it, correct? -Original Message- From: Steve Werby [mailto:[EMAI

RE: [PHP] ok!

2001-07-07 Thread Matthew Loff
A quick plug for Mysql-front at http://www.mysqlfront.de/ that Hennik meantions here... If you use Win98/ME/2k/NT, and are looking for a utility to admin a MySQL database, this is hands-down the best front end I've ever used... -Original Message- From: Henrik Hansen [mailto:[EMAIL PRO

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Matthew Loff
Make sure the code is like: #!/usr/local/bin/php -q (obviously the location of php may be different, but the above works for me, I'm running a daily e-mail batch from a PHP script via cron) Make sure you chmod ug+x it. -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] S

RE: [PHP] Mosinskis's autoreply

2001-07-08 Thread Matthew Loff
Yep... Getting them here too. -Original Message- From: Ben Bleything [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 8:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Mosinskis's autoreply Just out of curiosity, is everyone else receiving auto-replies from Peter Mosinskis when they

RE: [PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-08 Thread Matthew Loff
I completely agree, Dave... I use IE 6 for browsing, but when I develop sites, I always test them for backwards compatibility all the way down to Netscape 3.0. If your site renders properly in NS 3.0, then you can rest assured it will render correctly for the majority of web users out there.

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

2001-07-10 Thread Matthew Loff
Is this only a problem with PHP/GD versions previous to 4.0.6/2.0.1? Does the new ImageCreateTrueColor() function fix this issue? http://www.php.net/manual/en/function.imagecreatetruecolor.php -Original Message- From: James Cox [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001

RE: [PHP] Blind Carbon Copies? with mail ()???

2001-07-10 Thread Matthew Loff
(Have the To: address be yourself, or a mail account that simply dumps to /dev/null) $to = "[EMAIL PROTECTED]"; $subject = "Subject of Message"; $message = "blah blah blah..." $headers = "From: Optional Name of List <[EMAIL PROTECTED]>\nBCC: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]"

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

2001-07-10 Thread Matthew Loff
I believe the problem is GD previous to version 2.0.1... They could only create images with indexed (256?) colors... I had a PHP script that used GD to resize JPEGs to smaller thumbnails automatically... And it would always reduce them to 256 colors, until I upgraded to PHP 4.0.6, GD 2.0.1, and

RE: [PHP] Blind Carbon Copies? with mail ()???

2001-07-10 Thread Matthew Loff
there, you could always just: $headers = "BCC: " . $bcc_addresses; ...or if you had the BCC e-mail addresses in one-dimensional array... $headers = "BCC: " . implode(",", $bcc_emails_array); Best of luck! -Original Message- From: Marcus James Christian [mailto:

RE: [PHP] Variables

2001-07-10 Thread Matthew Loff
You could always do... If(!strcmp($text1, $text2)) { equal; } else { not equal; } -Original Message- From: James Bartlett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 10:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variables No it doesn't seem to like th

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... $heade

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

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 worki

RE: [PHP] Back/Forward

2001-07-11 Thread Matthew Loff
sql = "SELECT id FROM table WHERE id < '$id' LIMIT 1"; } 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 t

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 $dirEnt

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 re

RE: [PHP] Re: Warning: mail() is not supported in this PHP build

2001-07-11 Thread Matthew Loff
The build date in phpinfo() is the date that configure was run from scratch on the build... Try deleting config.cache in the PHP directory, then rerun configure. -Original Message- From: Kyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 10:44 PM To: [EMAIL PROTECTED] Subj

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 is

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Matthew Loff
-Original 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

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

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 J

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

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 co

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

2001-07-12 Thread Matthew Loff
] Sent: Friday, July 13, 2001 2:01 AM To: Matthew Loff Cc: 'Gaylen Fraley'; [EMAIL PROTECTED] Subject: RE: [PHP] PHP installed - MySql Server can't connect Right, that is basically what I said. On Fri, 13 Jul 2001, Matthew Loff wrote: > > Maybe his mysql.sock file isn'

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

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

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

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

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

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

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

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:

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

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

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

  1   2   >