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

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

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] Magic quotes good or Bad?

2006-04-05 Thread Peter Hoskin
/path/to/www AllowOverride All /Directory 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

Re: [PHP] int to string

2006-04-05 Thread Peter Hoskin
$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] int to string

2006-04-05 Thread Peter Hoskin
. 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] 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] 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

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(); -- PHP General

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

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,

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 .\n; } William Stokes wrote: Hello, Any idea how to sort

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

2006-05-10 Thread Peter Hoskin
does not exist? You get an error, thats what. array_key_exists('1',$_POST) should be used. 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 text type=file , 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

Re: [PHP] Re: Upload File

2006-05-10 Thread Peter Hoskin
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
Jochem Maas wrote: Peter Hoskin wrote: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , 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

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 library

Re: [PHP] Google using PHP @ spam

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

[PHP] pcntl_fork?

2006-01-30 Thread Peter Hoskin
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] pcntl_fork?

2006-01-30 Thread Peter Hoskin
,$childcount) 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
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
that helps! Regards, Peter Hoskin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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