Re: [PHP] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Kim Christensen
going, preferrably the GD part which seems to be the issue :-) Best regards -- Kim Christensen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regular expression to extract from the middle of a string

2006-07-14 Thread Kim Christensen
, $string, $matches); print_r($matches); Voila! (Untested for now, I'm pretty drunk so sorry if it ain't workin out like you want to) -- Kim Christensen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regular expressions or something else?

2006-04-12 Thread Kim Christensen
= this is where the contents of your search result page goes; preg_match_all('|a[^]*href=([^]+)[^]*([^]+)\/a|U', $text, $links, PREG_SET_ORDER); print_r($links); -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php+ ajax

2006-02-21 Thread Kim Christensen
On 2/20/06, David Dorward [EMAIL PROTECTED] wrote: Element ids may not contain square brackets in HTML documents. Get your facts straight, David. Square brackets works fine in HTML documents as long as you escape the ID when you need to reference them by JS. -- Kim Christensen [EMAIL PROTECTED

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Kim Christensen
-check. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: JPG Compression [detached thread]

2006-02-21 Thread Kim Christensen
compress the jpg? http://php.net/manual/en/function.imagejpeg.php -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HOSTNAME Environment variable

2006-02-21 Thread Kim Christensen
to check the contents of /proc/sys/kernel/hostname, and even changing it by issuing: echo your_hostname /proc/sys/kernel/hostname If it still doesn't work, reboot to be sure. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php+ ajax

2006-02-21 Thread Kim Christensen
on this? Sorry for being rude, David - had a bad morning! -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: need a php multiple/mysql choice quiz

2006-02-20 Thread Kim Christensen
On 2/20/06, Dan Parry [EMAIL PROTECTED] wrote: what kind of mushrooms? rainbow colored ones =) Think they're illegal in the UK... Then move out of there quicker than fast, they're too tasty to miss! -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] php+ ajax

2006-02-20 Thread Kim Christensen
interprets it as an element ID - not an array. Something like this might work: [snip] (HTML) input name=search[min_price] id=search[min_price] (JS) var min_price= document.getElementById('search\[min_price\]').value ; [/snip] -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Recursive permissions

2006-02-19 Thread Kim Christensen
with that checkbox is setting permissions through chmod on the ftp automagically after each file has been uploaded. Do you have shell access to the particular host? -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/LDAP Authentication

2006-02-19 Thread Kim Christensen
to some expample scripts, articles, or sites. Thanks. http://php.net/ldap As always, read the docs and check the user comments. You won't need any more examples :-) -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-18 Thread Kim Christensen
and you should be set to go - check phpinfo() afterwards to see if it loads ok. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Clear POST variables

2006-02-18 Thread Kim Christensen
for existing form values before processing them, but who doesn't...) and, depending on where on the site everything takes place, redirect them to a proper place. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recursive permissions

2006-02-18 Thread Kim Christensen
be 755. http://php.net/manual/en/function.umask.php -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] installing php 4.4.2 on windows system

2006-02-16 Thread Kim Christensen
Windows applications. It still ain'¨t necessary, but preferred. Either way works :-) -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] please help me I try to post my question to Php.net 2-3 times

2006-02-16 Thread Kim Christensen
;, $contents); This regular expression will replace all whitespace (spaces/newlines/carriage returns) with the character nbsp;, which in HTML yields a blank space. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS Groups?

2006-02-16 Thread Kim Christensen
On 2/16/06, William Stokes [EMAIL PROTECTED] wrote: Anybody know any good CSS groups? I don't want to post here non PHP related stuff http://www.css-discuss.org/ -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Clear POST variables

2006-02-16 Thread Kim Christensen
in the top which checks the MD5 hash of the current $_REQUEST array with the one in the $_SESSION array using the same name, if it exists - unset($_REQUEST) before the form is normally parsed and action is taken. (This idea of a script came from one of my co-workers) -- Kim Christensen [EMAIL

Re: [PHP] menu Q

2006-02-16 Thread Kim Christensen
://www.css-discuss.org/ :-) -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-16 Thread Kim Christensen
really the answer to your question per se, but will probably solve things along the way. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-15 Thread Kim Christensen
)}; } return $rstring; } This should yield a 6 char random string containing digits 0-9 and letters a-z. Good luck! -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's a Blog?

2006-02-14 Thread Kim Christensen
On 2/14/06, Duncan Hill [EMAIL PROTECTED] wrote: WordPress is free, has a neat WYSIWYG editor in version 2, and has a good support community. 5 minutes to install vs an hour to code a basic interface - I'd take the 5 minutes :p That being said, get lost from the PHP user list! :-) -- Kim

Re: [PHP] Finding out DPI using GD

2006-02-14 Thread Kim Christensen
/electronics/pjmt/index.html -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML parsing

2006-02-09 Thread Kim Christensen
On 2/9/06, Peter Lauri [EMAIL PROTECTED] wrote: Or maybe an function that create an array from the XML: $arr = xml_to_array($xml); Any one who can give a really SIMPLE example of this? http://php.net/xml Have you checked the user comments? -- Kim Christensen [EMAIL PROTECTED] -- PHP General

Re: [PHP] XML parsing

2006-02-09 Thread Kim Christensen
happy. Once again, check those user comments. There's some excellent examples there, for two-way parsing XML files! -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REGEX query

2006-02-08 Thread Kim Christensen
of operations will just hog your scripts. -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REGEX query

2006-02-08 Thread Kim Christensen
= '(\(EX\) RV-6 )'; preg_match_all(/\([^\)]+\) ([^\)]+) \)/, $text, $result); echo $result[1][0]; Take care -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Recursive array_push?

2006-01-26 Thread Kim Christensen
, and then execute them through a function - but that's just me it seems :-) -- Kim Christensen [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php