Re: [PHP] Parsing images

2006-05-11 Thread Peter Hoskin
There are often easier solutions due to poor design. Seen many sites setting the value in cookies, or hidden form elements, etc. Sites made by people who can't do their jobs in other words :) Regards, Peter Hoskin Dan Harrington wrote: > Using ImageMagick, ray tracing algorithms, an OCR

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Jochem Maas wrote: > Peter Hoskin wrote: >> Renzo Clavijo wrote: >> >>> hi all.. >>> >>> I'm gonna be more precise: >>> >>> I wrote a form with fields , then i need to >>> know how >>> to upload the files to t

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
esystems are much quicker at seeking. As I said, images are binary and sql is ascii - does it sound suited to you? Google, don't argue - many will agree with me. Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
Renzo Clavijo wrote: > hi all.. > > I'm gonna be more precise: > > I wrote a form with fields , then i need to > know how > to upload the files to the MySQL server (postgreSQL wold be > appreciated). It > implies: Which field(s) must have the table where I'll save the > image?. Is > there an exampl

Re: [PHP] Is there an easier way of doing this?

2006-05-10 Thread Peter Hoskin
20 + items which can be > checkboxes, when submitted do I need to go through each one and add it > to the datasbase or maybe some kind of loop?. http://pear.php.net/package/HTML_QuickForm/ may be of use. You could use a combination of exportValues() and foreach. Its added validation makes it

Re: [PHP] sorting troubles

2006-04-22 Thread Peter Hoskin
hmm, should also see http://www.php.net/sort Peter Hoskin wrote: > See explode, http://www.php.net/explode > > $var = 'A20,B16,B17C14,C15,D13,D12'; > $array = explode(',',$var); > > foreach ($array as $key => $value) { > echo $value ."\

Re: [PHP] sorting troubles

2006-04-22 Thread Peter Hoskin
See explode, http://www.php.net/explode $var = 'A20,B16,B17C14,C15,D13,D12'; $array = explode(',',$var); foreach ($array as $key => $value) { echo $value ."\n"; } William Stokes wrote: > Hello, > > Any idea how to sort this? > > I have a column in DB that contains this kind of data, > A20,B1

[PHP] cURL & cookies

2006-04-22 Thread Peter Hoskin
Hi, I'm trying to produce an sms sending script, however having problems with curl and storing cookies. The login page works fine, however the second http request returns a login page rather than authenticated content. Additionally, in the headers a different cookie value for JSESSIONID is set. I

Re: [PHP] session_destroy

2006-04-19 Thread Peter Hoskin
Should not make any difference. Try it instead of posting. Regards, Peter Hoskin Shannon Doyle wrote: That’s just it, I am not setting a session cookie. Just starting a session with the following :- session_name("XPCSESS"); session_start(); $sessID = session_id(); -- P

Re: [PHP] session_destroy

2006-04-18 Thread Peter Hoskin
I've also had this issue from time to time. Used the following to destroy it under all circumstances. if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } session_destroy(); Shannon Doyle wrote: Hi People, Trying to get a session to destro

Re: [PHP] httpd: PHP Notice: Undefined index: autoplay

2006-04-14 Thread Peter Hoskin
Thanks for the duplicate posts. Perhaps read the error message? Look at line 9 of /a/www/data/filname/garbled/radio.blog/index.php The variable is being set incorrectly. Regards, Peter Hoskin Noah wrote: Hi there, I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a FreeBSD

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
ly this is an EXAMPLE and not a COMPLETE SOLUTION. Want a complete solution? $88 AUD/hr. Want to criticize? look at the for loop, its infinite. $i isn't set, the first call to it should actually be $i = 0 Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
; case 1: $return .= 'One '; break; } } return $return; } Regards, Peter Hoskin Do I get a cookie? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Magic quotes good or Bad?

2006-04-05 Thread Peter Hoskin
or this is: AllowOverride All You should note in a virtual hosting environment, this is typically disabled. See http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse a Makefile

2006-04-03 Thread Peter Hoskin
Makefile's are not ini files. ini files have the structure [section] variable=value [section2] variable2=value2 Makefiles have the structure variable=value Benjamin D Adams wrote: I'm trying to parse a Makefile, (FreeBSD Ports) I plan on dumping the Makefile vars to a MySQL Database. Would I

Re: [PHP] PHP/Dreamweaver CSS issue

2006-04-03 Thread Peter Hoskin
Lack of information means no answer for you. More to the point, this is a CSS question... not a PHP one. There is a difference. The Doctor wrote: I am trying to modularize a Web Page using one of Dremweaver's CSSes. It works in Firefox but it falls about in IE. Is IE at fault or the modular

Re: [PHP] Here is a silly question

2006-04-03 Thread Peter Hoskin
Site must be down... search google for site:smarty.php.net Believe me, it does exist. tedd wrote: At 5:56 AM +1000 4/4/06, Peter Hoskin wrote: Nobody else has mentioned it, so I thought I would. http://smarty.php.net - PHP Templating Engine And that goes somewhere? tedd -- PHP General

Re: [PHP] Here is a silly question

2006-04-03 Thread Peter Hoskin
Nobody else has mentioned it, so I thought I would. http://smarty.php.net - PHP Templating Engine Mace Eliason wrote: Hi, This is come thing that I have struggled with now and again. I usaually us php code to make it work, but was wondering how others deal with this I use includes in most

Re: [PHP] PHP hosting with multiple domains?

2006-02-04 Thread Peter Hoskin
Russell Jones wrote: Host-Gator has a fantastic, cheap reseller program, although you aren't sharing space within 1 account. My real recommendation would be ServerPronto though. $29.95/mo for a dedicated with 40gig space. Lovely cogent bandwidth too... you get what you pay for, which in this cas

Re: [PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
on in the script. Hope that helps! Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
. "\n"; } pg_close($connection_result); exit(); } } echo 'took ' . (time() - $time) . ' seconds' . "\n"; ?> IE: you were connecting to the DB too early, at a point where it wasn't needed. On another note, my new script that forks uses approx 24mb of memory - a very nice cut down on its usage :D Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
wait($status); continue; } else { echo $childcount ." ". posix_getpid() ." ". posix_getppid() ."\n"; exit(); } } ?> Each fork seems to be able to see the value of $childcount... so I just need to create a function to work with a particular row

[PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
reach this way would be appreciated Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google using PHP @

2006-01-24 Thread Peter Hoskin
Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site. Yahoo use PHP and sponsor PHP - yet nobody talks about that :-/ James Benson wrote: Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to se