php-general Digest 5 Feb 2008 16:30:11 -0000 Issue 5276

2008-02-05 Thread php-general-digest-help
php-general Digest 5 Feb 2008 16:30:11 - Issue 5276 Topics (messages 268699 through 268722): How to download a file (with browser) using fsockopen() ? 268699 by: szalinski 268700 by: szalinski 268701 by: szalinski 268702 by: szalinski 268703 by:

php-general Digest 6 Feb 2008 06:48:52 -0000 Issue 5277

2008-02-05 Thread php-general-digest-help
php-general Digest 6 Feb 2008 06:48:52 - Issue 5277 Topics (messages 268723 through 268748): Re: How to download a file (with browser) using fsockopen() ? 268723 by: Richard Lynch 268727 by: szalinski Re: text messages 268724 by: Richard Lynch 268742 by:

Re: [PHP] text messages

2008-02-05 Thread Per Jessen
blackwater dev wrote: I know this isn't specific to php but I need to add some code to my php pages to start sending out text messages. If anyone does this, how do you do it? My local setup is like this: I send an email to '[EMAIL PROTECTED]' - that is routed to my telephone server which

Re: [PHP] New search related question

2008-02-05 Thread Jason Pruim
On Feb 4, 2008, at 7:42 PM, Jim Lucas wrote: Daniel Brown wrote: On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's

Re: [PHP] New search related question

2008-02-05 Thread Adam Williams
http://search.mnogo.ru Jason Pruim wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function for someone's website, the website is just static HTML files, and she doesn't want to redo the entire

[PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread George Pitcher
Hi, I've recently installed PAMP (PHP, Apache, MySQL Python) on my Nokia N95. I can do my development in Dreamweaver and move across to the phone and it all works. I have some questions, but won't bother asking if there's no-one else here doing it. Cheers George, in a very wet Edinburgh --

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 14:44 +, George Pitcher wrote: I've recently installed PAMP (PHP, Apache, MySQL Python) on my Nokia N95. I can do my development in Dreamweaver and move across to the phone and it all works. Sounds intruiging! Care to share some resources/links as to how to set

Re: [PHP] New search related question

2008-02-05 Thread Jim Lucas
Jason Pruim wrote: On Feb 4, 2008, at 7:42 PM, Jim Lucas wrote: Daniel Brown wrote: On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-05 Thread Richard Lynch
On Mon, February 4, 2008 9:28 pm, szalinski wrote: Hi I have been working on this download script for quite a while, and I just can't find how to download a remote file via a user's browser using fsockopen. Basically I am wondering if anyone can just give me a simple working example on

Re: [PHP] text messages

2008-02-05 Thread Richard Lynch
On Mon, February 4, 2008 9:15 pm, blackwater dev wrote: I know this isn't specific to php but I need to add some code to my php pages to start sending out text messages. If anyone does this, how do you do it? Do you simply use a free service like teleflip or do you use a paid aggregator

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-05 Thread Richard Lynch
On Fri, February 1, 2008 3:55 am, Paul Scott wrote: Did anyone actually get this mail? More concrete example? What would you like to see? I suspect that some of my mail is getting dropped :( I got the email below, and it made perfect sense... Though I am not sure it would make sense to

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-05 Thread Richard Lynch
On Sun, February 3, 2008 6:08 pm, Jochem Maas wrote: of paginated data combined with user defined filters (e.g. a product list sorted by price, etc and filter on type/category/keyword/etc) If you want GIS to be useful for that, you'd have to pretend that something like type was, say, longitude,

Re: [PHP] How to download a file (with browser) using fsockopen() ?

2008-02-05 Thread szalinski
Thanks for this, it seems to work generally ok, but with one problem. If i get prompted to download the fie, there is no filesize (content-length is missing), so i wouldn't be able to resume the file if it was big! I tried adding another function that gets the headers from the file first,

Re: [PHP] Pass Variable Names to a Function

2008-02-05 Thread Daniel Brown
On Feb 4, 2008 8:24 PM, Richard Lynch [EMAIL PROTECTED] wrote: function silly($var){ return isset($_SESSION[$var]) ? $_SESSION[$var] : ''; } silly('foo'); There's also ? ipitythe('foo'); ? -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? --

Re: [PHP] php competion

2008-02-05 Thread Daniel Brown
On Feb 5, 2008 2:39 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-02-04 at 17:43 -0800, Warren Vail wrote: There's probably even a tee-shirt. As in; been there, done that, got the tee-shirt. Live and learn! :) ^ I'm With Stupid ^ HA! ;-P (Sorry.) -- /Dan

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 11:53 -0600, Richard Lynch wrote: This is actually pretty OT for the PHP list itself, really, unless you want to try to implement GIS in PHP, which would be a particularly Bad Idea (tm) due to the scale, scope, and calculations involved. Err, sorry, but I must correct

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-05 Thread Paul Scott
On Mon, 2008-02-04 at 01:08 +0100, Jochem Maas wrote: the column spec. what kind of geomtery column is it? and A geographical geometry i.e. a projected data set of Geo data. are you using it as a primary key? or some else No, the integer gid is usually a primary key still. The geo data is

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Daniel Brown
On Feb 5, 2008 9:50 AM, Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 14:44 +, George Pitcher wrote: I've recently installed PAMP (PHP, Apache, MySQL Python) on my Nokia N95. I can do my development in Dreamweaver and move across to the phone and it all works. Sounds

Re: [PHP] New search related question

2008-02-05 Thread Daniel Brown
On Feb 4, 2008 7:42 PM, Jim Lucas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Feb 4, 2008 2:48 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone! :) Just a quick question, I've done some googling but haven't been able to find what I need... I am looking at doing a search function

Re: [PHP] string vs number

2008-02-05 Thread Nathan Nobbe
On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. is this possible? how do i force $rowA[0] to be a string

Re: [PHP] string vs number

2008-02-05 Thread Eric Butera
On Feb 5, 2008 1:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54'].

Re: [PHP] string vs number

2008-02-05 Thread Nathan Nobbe
On Feb 5, 2008 1:43 PM, Eric Butera [EMAIL PROTECTED] wrote: I was thinking about saying that, but php is loosely typed, so 54 == '54'. i only mentioned the type cast because it was asked about; actually, there are rare times in php when type casts are called for, such as pulling a value from

Re: [PHP] string vs number

2008-02-05 Thread Casey
On Feb 5, 2008, at 10:43 AM, Eric Butera [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got

Re: [PHP] string vs number

2008-02-05 Thread Nathan Nobbe
On Feb 5, 2008 1:50 PM, Casey [EMAIL PROTECTED] wrote: I believe this is the difference with arrays: $a = array(2 = foo); Array(0 = null, 1 = null, 2 = foo) $a = array(2 = foo); Array(2 = foo) i think the implicit type casting applies there as well: php $meh = array(2=4); php echo

[PHP] string vs number

2008-02-05 Thread Hiep Nguyen
hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. is this possible? how do i force $rowA[0] to be a string ('54')? thanks t. hiep -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] string vs number

2008-02-05 Thread Eric Butera
On Feb 5, 2008 1:48 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:43 PM, Eric Butera [EMAIL PROTECTED] wrote: I was thinking about saying that, but php is loosely typed, so 54 == '54'. i only mentioned the type cast because it was asked about; actually, there are rare times

Re: [PHP] text messages

2008-02-05 Thread blackwater dev
Thanks, We are basically just looking to prototype something with about 50 users for now so I'll check these out. Thanks again! On Feb 5, 2008 12:30 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, February 4, 2008 9:15 pm, blackwater dev wrote: I know this isn't specific to php but I

Re: [PHP] string vs number

2008-02-05 Thread Daniel Brown
On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ? debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. is this possible? how do i force $rowA[0] to be a string ('54')?

RE: [PHP] Re: Tool for programmer team

2008-02-05 Thread Mr Webber
Use Dreamweaver. It has a lo-tech check-in -- check-out capabilities -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Colin Guthrie Sent: Tuesday, January 22, 2008 4:32 AM To: php-general@lists.php.net Subject: [PHP] Re: Tool for programmer team Ronald Wiplinger

Re: [PHP] string vs number

2008-02-05 Thread Jochem Maas
Casey schreef: On Feb 5, 2008, at 10:43 AM, Eric Butera [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:36 PM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi all, i have this php statement: ? if($rowB[$rowA[0]]=='Y') {echo checked;} ?

[PHP] How could i do this on CURL?

2008-02-05 Thread Louie Miranda
I was able to create a working CURL connection and it was great. Although, i have another problem. 1. file: connect - I connect via a CURL to a URL and sends two parameters (application, just wait and hangs) -- this is intentional 2. file: connect - Receives a reply of the two

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Cameron Just
More info can be found here... When I get my Nokia N82 I am going to try it out. http://wiki.opensource.nokia.com/projects/PAMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How could i do this on CURL?

2008-02-05 Thread Manuel Lemos
Hello, on 02/05/2008 10:34 PM Louie Miranda said the following: I was able to create a working CURL connection and it was great. Although, i have another problem. 1. file: connect - I connect via a CURL to a URL and sends two parameters (application, just wait and hangs) -- this

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 13:29 -0500, Daniel Brown wrote: Still debating what device I'll get next, but I want to use it as a mobile server myself. I had been working on a bound-for-trash PDA doing the same a while back, but with what we'll refer to as limited results. I think that the key

Re: [PHP] Fileinfo

2008-02-05 Thread Mad Unix
I did what you recommended i get the same erorr ;;; ; Resource Limits ; ;;; max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request data memory_limit =

[PHP] PHP CLI Problem

2008-02-05 Thread Robbert van Andel
I am having trouble with a PHP CLI script I wrote to help manage my website. The site is on a shared hosting server where the PHP installation is set up as a CGI. The script creates some backups of my databases and sends them to Amazon's S3 service. First off, the script runs great from the

Re: [PHP] Fileinfo

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 22:49 -0800, Mad Unix wrote: I did what you recommended i get the same erorr Depending on your distro, you may have 2 php.ini files. On debian based systems there certainly are. One for Apache to use and another for cli. Check that this is not the case first, you may

Re: [PHP] Fileinfo

2008-02-05 Thread Chris
Mad Unix wrote: I did what you recommended i get the same erorr ;;; ; Resource Limits ; ;;; max_execution_time = 3600 ; Maximum execution time of each script, in seconds max_input_time = 60 ; Maximum amount of time each script may spend parsing request

Re: [PHP] Fileinfo

2008-02-05 Thread Mad Unix
thanks it works now wget http://pecl.php.net/get/Fileinfo-1.0.3.tgz tar -zxf Fileinfo-1.0.3.tgz cd Fileinfo-1.0.3 phpize ./configure make make install Libraries have been installed in: /usr/local/src/Fileinfo-1.0.3/modules If you ever happen to want to link against installed libraries

Re: [PHP] Fileinfo

2008-02-05 Thread Mad Unix
regarding my horde installation it says NOW memory_limit disabled: No If PHP's internal memory limit is turned on and if not set high enough Horde will not be able to handle large data items (e.g. large mail attachments in IMP). If possible, you should disable the PHP memory limit by recompiling

Re: [PHP] Fileinfo

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 23:13 -0800, Mad Unix wrote: thanks it works now Libraries have been installed in: /usr/local/src/Fileinfo-1.0.3/modules Be sure to remember to add the extension to your php.ini now as well with an extension= line and restart your server for the changes to

Re: [PHP] PHP CLI Problem

2008-02-05 Thread Chris
First off, the script runs great from the command line when I type php5 backup.php but when I type ./backup.php I get an error: bash: ./backup.php: No such file or directory. Maybe backup.php that you think it's running is the wrong one. Add something like: echo I am file . __FILE__ . \n;

Re: [PHP] Fileinfo

2008-02-05 Thread Mad Unix
I have only one file [EMAIL PROTECTED] wv-1.0.3]# find / -name php.ini -print /etc/php.ini On Feb 5, 2008 10:55 PM, Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 22:49 -0800, Mad Unix wrote: I did what you recommended i get the same erorr Depending on your distro, you may

Re: [PHP] Fileinfo

2008-02-05 Thread Mad Unix
[EMAIL PROTECTED] html]# cat /etc/php.ini | grep -i fileinfo extension=fileinfo.so [EMAIL PROTECTED] html]# cat /etc/php.ini | grep -i modules ; Directory in which the loadable extensions (modules) reside. extension_dir = /usr/lib64/php/modules ; Note: packaged extension modules are now loaded

[PHP] Re: How could i do this on CURL?

2008-02-05 Thread Louie Miranda
It ain't easy. I have also read the FAQ of cURL http://curl.haxx.se/docs/faq.html#Can_I_use_curl_to_send_a_POST_PU 3.18 Can I use curl to send a POST/PUT and not wait for a response? No. But you could easily write your own program using libcurl to do such stunts. Although, i was able to