Zack,
Your not going to find {title} when $var = "TITLE". Everything PHP is case
sensitive. Also $string is not changed if there are matches, ereg_replace
returns the modified string.
HTH
Dustin
> I tried ereg_replace("\{" . $var . "\}",$value,$string) and
> it didnt return
>
There are FTP functions if it's an FTP download. You could also use socket
functions to create the request if it's HTTP. Check your system for the
utility called wget, you could exec() wget to retrieve the file also.
Dustin
> -Original Message-
> From: Jeroen Jochems [mailto:[EMAIL PRO
> I'm doing a page where the front page will show "news"
> stories. What I'd
> like is if the story is longer than X words/chars/etc, the
> index page will
> show the first X words, then a link for the full story.
>
> Does anyone have a good idea on how to split after a certain number of
> wor
> I have a variable(s) that hold the string:
>
> "name"
>
> and I'd like to kill the quotes so it contains:
>
> name
>
> I am aware of the strlen() function but can find the concant
>
> Little Help?
>
> Mike
If you *know* the variable is quoted you could also do:
$new = substr($variable, 1
Hi,
Can someone confirm this behavior on their system. I've tried it on 4.0.2
and 4.03pl1, both on Linux boxes, both with the same results.
echo "One Character: " . exec("echo 't'",$tmp) . "\n";
echo "One Character: " . $tmp[0] . "\n";
echo "Two Characters: " . exec("echo 'te'",$tmp) . "\n";
My
I've used the tag in Internet Exploder to talk to the server via
javascript. It may be possible using a regular frame also. Here's the low
down on how I did it.
1.) Some onclick, onchange ... action calls a javascript function that looks
like this
function getData() {
d
6 matches
Mail list logo