Re: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Matt Friedman
.htaccess for configuration. best of both worlds. Matt Friedman Spry New Media - Original Message - From: "Ignacio Vazquez-Abrams" [EMAIL PROTECTED] To: "Kevin Cawthorne" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 9:24 AM Subject: Re: [PHP] P

[PHP] OT mod_rewrite says goodbye to POST vars (but interesting)

2001-02-01 Thread Matt Friedman
as I've read every word twice and all the annotations to no avail. Many thanks as always. Matt Friedman Spry New Media -- 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

[PHP] Calling Perl from PHP -- Help --

2001-03-05 Thread Matt Friedman
I'm stumped. I've searched all over and can't figure this one out. I have a perl script that waits for input on the command line. You type in a string and it returns a string. I'd like to be able to this via php, since I can't rewrite the script in php, since it's a little over my head. So,

[PHP] Regex Masters: Please inspect this regex- Pulling urls out of page

2001-03-07 Thread Matt Friedman
rls, no ftp, mms etc... or anything like that. If it's right, then hopefully someone can use it! Matt Friedman -- 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] Seg Fault with fopen

2001-03-18 Thread Matt Friedman
Here's a function I'm trying to use to execute a php and then read the html. I've tried the actual hostname instead of localhost but that's not working either. It's causing a segmentation fault. I'm running linux apache php 4.0.4 Any thoughts? function get_web_page_desc($filename) { $uri =

Re: [PHP] Get info to a perl script and then continue without going to that perl script.

2001-03-26 Thread Matt Friedman
http://php.net/manual/en/function.exec.php $return = exec("/pathtocgi/script.cgi VAR1 VAR2 "); if you want the data returned, its in $return. If there are multiple lines returned, you'll only get the last line in $return. See the manual link to get the full info. Mat

Re: [PHP] Environment extract

2001-03-27 Thread Matt Friedman
. http://www.php.net/ Also, write a short script and run it as so: ? phpinfo(); ? You'll see a myriad of variables and their values. It's also handy for debugging. You can include phpinfo() anywhere to see the output values of your script. Matt Friedman - Original Message - From: "C

Re: [PHP] Executing a PHP file to write an html file

2001-04-01 Thread Matt Friedman
.com/script.php") assuming lynx is installed. Instead of exec, why not just include the script you want to run in your page? Matt Friedman Spry New Media http://www.sprynewmedia.com - Original Message - From: "David Robley" [EMAIL PROTECTED] To: "PHP User" [EMAIL PR

Re: [PHP] Search Engines

2001-04-01 Thread Matt Friedman
to another page. The search spider will not follow the redirect. Other than that, I can't think of more things that a spider wouldn't like that have to do with php. If there are more, please correct me. Matt Friedman Spry New Media http://www.sprynewmedia.com - Original Message - From: &q

[PHP] Re: Delete File Contents?

2001-12-17 Thread Matt Friedman
http://www.php.net/manual/en/function.ftruncate.php Chris writes: I've created a program that runs a process then stores the results to a file on the server. I would like the file to contain only the most recent update, but it seems I can only append to my using fopen. Is there a way

RE: [PHP] Can you fake a onClick?

2001-12-27 Thread Matt Friedman
/somefile.ext You should be able to track each file requested on your site this way. Well, that's one way to do it anyway. Perhaps it will give you an idea... Matt Friedman -Original Message- From: Douglas Harter [mailto:[EMAIL PROTECTED]] Sent: Thursday December 27, 2001 8:14 PM To: Bogdan

RE: [PHP] connect MS Access

2002-01-01 Thread Matt Friedman
Please do not send html emails to this list. Send only plain text emails. Matt Friedman -Original Message- From: gendeng [mailto:[EMAIL PROTECTED]] Sent: Tuesday January 1, 2002 8:23 PM To: [EMAIL PROTECTED] Subject: [PHP] connect MS Access halo... i want to know about connect

RE: [PHP] ask cookie in win2000

2002-01-07 Thread Matt Friedman
; you should search the archives to find an answer. Matt Friedman -Original Message- From: gendeng [mailto:[EMAIL PROTECTED]] Sent: Monday January 7, 2002 8:17 PM To: [EMAIL PROTECTED] Subject: [PHP] ask cookie in win2000 halo... i want to know, why cookie not working in win2000. please

[PHP] ooh forms or better

2002-01-07 Thread Matt Friedman
? Examples would be ideal. I also found phpOpenForms which seems very good; anyone have experience with it? Many thanks, Matt Friedman -- 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] php executing system commands..

2002-01-11 Thread Matt Friedman
Try the backtick too. print pre . `ls -l` /pre; Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Friday January 11, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] Event based applications?

2002-01-12 Thread Matt Friedman
JavaScript runs on the client, PHP runs at the server. PHP cannot access client side events directly. JavaScript cannot access the database (actually it can through Internet Explorer, but that's different story...) You'll use a combo of both languages. Matt Friedman Web Applications Developer

RE: [PHP] How should I cache database data for php?

2002-01-21 Thread Matt Friedman
of hardware is cheap for them. They may have several gigs of memory per server and very fast processors. These machines can handle very large peaks in activity. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: Manuel Lemos [mailto

RE: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Matt Friedman
vars do not exist at all. This is a feature, not a bug. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: Pavel Plesov [mailto:[EMAIL PROTECTED]] Sent: Thursday March 14, 2002 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP

[PHP] localization - internationalization

2002-03-25 Thread Matt Friedman
on this subject and your input are appreciated as always. Many thanks, Matt Friedman www.SpryNewMedia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] localization - internationalization

2002-03-25 Thread Matt Friedman
Looking for some more detailed information on this subject. Any experts out there? Thanks, Matt Friedman -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Monday March 25, 2002 10:04 AM To: Matt Friedman Cc: [EMAIL PROTECTED] Subject: Re: [PHP] localization

RE: [PHP] SPAM or ADVERTISING

2002-03-30 Thread Matt Friedman
for their own selfish ends, as you have clearly demonstrated, and they don't care about anyone else. You should be ashamed, but I'm certain that you are not. Matt Friedman Web Applications Developer -Original Message- From: Alienator [mailto:[EMAIL PROTECTED]] Sent: Saturday March 30

RE: [PHP] Has anyone looked at phpinfo today?

2002-04-01 Thread Matt Friedman
I think if you look at today's date, you'll realize why the silly picture on your phpinfo today. Good one guys! That's what I love about php - it's about enjoying programming and making it fun. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From

RE: [PHP] parse error, mysql select

2002-04-01 Thread Matt Friedman
It doesn't like the ; at the end of the statement. I noticed this a while ago. I'd prefer if it didn't choke on the ; but it seems to. It's probably more correct to have the ; there - I don't know why it chokes when going through php. Matt Friedman Web Applications Developer

[PHP] - Flock manual clarification please ;-)

2002-04-06 Thread Matt Friedman
looking for some clarification as to when exactly you may have to follow the snip advice. Thanks as always, Matt Friedman Web Applications Developer www.SpryNewMedia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Matt Friedman
http://www.php.net/manual/en/function.preg-quote.php Found this in the manual in about 3 secs. Try to check the manual first before posting. ;-) Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent

FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Matt Friedman
looking for some clarification as to when exactly you may have to follow the snip advice. Thanks as always, Matt Friedman Web Applications Developer www.SpryNewMedia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

RE: FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Matt Friedman
file and then go on with any processing on the actual data file. After the processing is done release the lock on the lock file. Perhaps there are better ways to do this. What do you think? Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Jim

RE: [PHP] how to popup a new browser window from php

2002-04-19 Thread Matt Friedman
No. You want a client side browser popup. PHP runs on the server. PHP does not run in a browser. Javascript runs on the browser. You need to use Javascript. Matt Friedman Web Applications Developer -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Friday April

RE: [PHP] basename unix/windows

2002-04-25 Thread Matt Friedman
Replace the \ with / using str_replace or some such function before using basename. Windows will handle either kind of path. Linux does not know the \ as a file path separator. It only knows / Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: ROBERT

RE: [PHP] Removing empty elements from an array

2002-04-28 Thread Matt Friedman
This is what you want. http://www.php.net/manual/en/function.array-filter.php Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday April 28, 2002 10:57 AM To: Craig Westerman; php-general

RE: [PHP] PHP compared to JSP

2002-05-04 Thread Matt Friedman
faster. Many solutions, to my knowledge, requiring Java cost $$$ while LAMP is completely Open source. (Read the licenses for more info). Matt Friedman -Original Message- From: Paras Mukadam [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:36 AM To: [EMAIL PROTECTED] Subject

RE: [PHP] Slow in retriveing webpage

2002-05-04 Thread Matt Friedman
the content almost instantly! Matt Friedman -Original Message- From: Joseph Then [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Slow in retriveing webpage Hi! I want to grab a webpage and I use the file() function to grab it. The URL

RE: [PHP] help !!!

2002-05-04 Thread Matt Friedman
Try www.php.net. Oh, no that's for php. I might know if this was a Delphi list. Hrm... Matt Friedman Web Applications Developer -Original Message- From: Yoel Benitez Fonseca [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:23 PM To: [EMAIL PROTECTED] Subject: [PHP] help

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Matt Friedman
If you want to make sure you get the whole string and it's fairly long, like a paragraph of characters or something, the db field should be a text field. Varchar is definitely no longer than 255 in MSSQL. You've lost the data over 255 chars with your current setup. Matt Friedman Web

RE: [PHP] Re: One more Regular Expression Question...

2002-05-13 Thread Matt Friedman
$regex = a[^]*(.*)/a; is probably better. Plus, use eregi for case insensitive matching. This is probably not perfect, but it'll do what you want. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] gmtime?

2002-05-27 Thread Matt Friedman
Unix epoch is the number of secs since the start date in GMT regardless of where your server is. The timestamp is a GMT value. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: Monday May 27, 2002 7:48

Re: [PHP] Email limit

2001-10-29 Thread Matt Friedman
I imagine that's only limited by your available bandwidth. If you try to send emails out faster than your bandwidth will allow you'll get a slowdown on your email server. I use sleep() between each email to lessen the load on the server. Matt. - Original Message - From: Richard Baskett

Re: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Matt Friedman
Try putting a ? after your quantifier for non-greedy matching. Something like: $the_array=split(A (.*?)/A, $html,-1); Matt. - Original Message - From: brendan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 29, 2001 7:55 PM Subject: [PHP] @#$@# Reg Expressions love

Re: [PHP] Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Friedman
There is a command line version of winzip. I don't know much about it, but a friend of mine was just saying the other day that he had used it to zip some files at the server in an ASP environment. In php you could call the winzip exectutable using exec. In asp you'd use some shell object or

Re: [PHP] what's this???

2001-11-04 Thread Matt Friedman
http://www.php.net/manual/en/language.oop.php This is what you want to read. Matt. - Original Message - From: Christian C. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 04, 2001 7:16 PM Subject: [PHP] what's this??? Hello :c) im looking at some code i found on

Re: [PHP] Problems with the fopen() function

2001-11-10 Thread Matt Friedman
I would try urlencoding the query-string in that url. Or put the url in single quotes instead. Just shots in the dark, but try it out. M. - Original Message - From: Tim Harvey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 10, 2001 9:44 PM Subject: [PHP] Problems

Re: [PHP] Total Newbie - concatenating variables.

2001-11-10 Thread Matt Friedman
Try: for($i=0;$i$count;$i++) { // in the global array, print the variable with the name: item$i print $GLOBALS[item$i]; } or even: for($i=0;$i$count;$i++) { // in the post vars array, print the variable with the name: item$i // this one is probably more secure. print

Re: [PHP] amp; in url's

2001-11-10 Thread Matt Friedman
I'm not sure if this answers your question but it seems to me that amp; is an html encoding whereas if you want to put something in the url you should urlencode it. This will eliminate the s. Matt. - Original Message - From: GaM3R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman
? Thanks, Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -- 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

RE: [PHP] Extending classes multiple times

2001-12-06 Thread Matt Friedman
This is what I had thought. I wasn't sure and needed the clarification. Thanks as always! Matt Friedman -Original Message- From: Harshdeep S Jawanda [mailto:[EMAIL PROTECTED]] Sent: Thursday December 6, 2001 1:55 PM To: Matt Friedman Cc: [EMAIL PROTECTED] Subject: Re: [PHP

[PHP] - References Clarification Please -

2001-12-09 Thread Matt Friedman
would like to elaborate on the reasons for using a reference instead of a copy, please do so; it would be much appreciated. Many Thanks, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] Telnet with php?

2001-02-09 Thread Matt Friedman
there's fsockopen from which you might make a telnet client, methinks, but you'd have to know the protocol etc... look for it at the manual. Matt Friedman Spry New Media http://www.sprynewmedia.com Lead Programmer/Partner email: [EMAIL PROTECTED] phone: 250 744 3655 fax: 250 370 0436

[PHP] Bug? - pg_pconnect failing with pgsql and pg_connect is ok.

2001-02-17 Thread Matt Friedman
. Has anyone run across this behavior? Any ideas why this might be occuring? Is it an apache issue? Matt Friedman

[PHP] PHP.net is slow

2001-04-04 Thread Matt Friedman
I don't know about everyone else but I've found that since the changeover to the new design of the php.net site, it's been very unreliable. I used to be able to look up a function in seconds if I didn't quite remember the usage. Now, I find that the doesn't won't even come up at times. Other

Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Matt Friedman
This is almost always an html problem, not a php one. If a table tag or something isn't closed properly netscape will show a blank screen. IE is more (too) forgiving and assumes it knows where you meant to put the tag. Check your html and you'll fix it. Matt Friedman Spry New Media http

[PHP] Re: [phplib] Sessions in windows

2001-04-17 Thread Matt Friedman
ontrol: max-age=0"); header("Pragma: no-cache"); break; default: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-

Re: [PHP] Advanced Help Needed

2001-04-19 Thread Matt Friedman
. Matt Friedman Spry New Media http://www.sprynewmedia.com Lead Programmer/Partner email: [EMAIL PROTECTED] phone: 250 744 3655 fax: 250 370 0436 - Original Message - From: "Chris Anderson" [EMAIL PROTECTED] To: "Marc Davenport" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

[PHP] assigning to $this in constructor?

2002-12-31 Thread Matt Friedman
return an error object instead of the requested object. Thanks, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shipping Purolator Class?

2002-11-25 Thread Matt Friedman
Hi Folks, Just checking around to see if anyone is using a Purolator web service to determine shipping costs online. Wondering if there are classes available and if the service is hard to use. Thanks very much, Matt Friedman -Original Message- From: John W. Holmes [mailto:[EMAIL

[PHP] (( Purolator Shipping ))

2002-11-25 Thread Matt Friedman
Hi Folks, Just checking around to see if anyone is using a Purolator web service to determine shipping costs online. Wondering if there are classes available and if the service is hard to use. Thanks very much, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] PHP Shipping Rate Question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.php.net/) To

[PHP] php shipping rate question

2002-12-02 Thread Matt Friedman
Hi, I've found a number of UPS rate calculators in php and I'm wondering if anyone has used many shipping calculators written in php. If so, what success have you had? Any stories/recommendations to share? Thanks very much, Matt -- PHP General Mailing List (http://www.php.net/) To