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

2006-07-14 Thread Kim Christensen
=([^,]+)/"; preg_match($pattern, $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] PAGE TURNED BECOME SOURCE CODE VIEW..

2006-07-14 Thread Kim Christensen
e code samples to get things 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 expressions or something else?

2006-04-12 Thread Kim Christensen
ledge if you're a programmer. $text = "this is where the contents of your search result page goes"; preg_match_all('|]*href="([^"]+)"[^>]*>([^<]+)<\/a>|U', $text, $links, PREG_SET_ORDER); print_r($links); -- Kim Christensen [EMAIL PROT

Re: [PHP] php+ ajax

2006-02-21 Thread Kim Christensen
meone could shed a light 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] HOSTNAME Environment variable

2006-02-21 Thread Kim Christensen
after changing it. You might want 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] Re: JPG Compression [detached thread]

2006-02-21 Thread Kim Christensen
ction that lets you 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
t /etc/hostname manually afterwards to double-check. -- 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 Christens

Re: [PHP] php+ ajax

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

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

Re: [PHP] PHP/LDAP Authentication

2006-02-19 Thread Kim Christensen
. Can someone point me 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.ne

Re: [PHP] Recursive permissions

2006-02-19 Thread Kim Christensen
robably does 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] Recursive permissions

2006-02-18 Thread Kim Christensen
ed within that directory will also 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] Clear POST variables

2006-02-18 Thread Kim Christensen
m handling code not run (i always check 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

Re: [PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-18 Thread Kim Christensen
dll" in it. Restart your web server 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] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-16 Thread Kim Christensen
ttp://php.net/manual/en/ref.mysqli.php This isn't 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] menu Q

2006-02-16 Thread Kim Christensen
a PHP related issue. I don't know. But this one is really > bothering me. http://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] Clear POST variables

2006-02-16 Thread Kim Christensen
tion loads, I include a script 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) --

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 unsubsc

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

2006-02-16 Thread Kim Christensen
ss whitespace. Try using REGEX: $contents =3D file($filename); echo preg_replace("/\s/", " ", $contents); This regular expression will replace all whitespace (spaces/newlines/carriage returns) with the character  , which in HTML yields a blank space. -- Kim Christensen [EMAIL PR

Re: [PHP] installing php 4.4.2 on windows system

2006-02-16 Thread Kim Christensen
h that has been set for all 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] HN CAPTCHA at http://www.phpclasses.org

2006-02-15 Thread Kim Christensen
$rstring .= $letters{mt_rand(0, $maxsize)}; } 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] Finding out DPI using GD

2006-02-14 Thread Kim Christensen
kage: http://www.ozhiker.com/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] What's a Blog?

2006-02-14 Thread Kim Christensen
om the PHP user list! :-) -- 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
n > I would be very 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] 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 PRO

Re: [PHP] REGEX query

2006-02-08 Thread Kim Christensen
n. $text = '(\(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

Re: [PHP] REGEX query

2006-02-08 Thread Kim Christensen
ays the solution to your problem - in most cases, using regex for this kind 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

[PHP] Recursive array_push?

2006-01-26 Thread Kim Christensen
s with strings, 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