=([^,]+)/";
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
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
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
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
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
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
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
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
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
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
. 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
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
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
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
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
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
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
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)
--
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
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
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
$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
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
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
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
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
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
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
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
29 matches
Mail list logo