On Wednesday, October 1, 2003, at 04:16 PM, Leif K-Brooks wrote:
Steven Jarvis wrote:
I'm just starting to experiment with mod_rewrite on Apache 1.3.x and
php 4.3.3. Register_globals is off.
I have the following rules in my .htaccess file (which sits in the
site's root dir
I'm just starting to experiment with mod_rewrite on Apache 1.3.x and
php 4.3.3. Register_globals is off.
I have the following rules in my .htaccess file (which sits in the
site's root dir along with paper.php):
RewriteEngine On
RewriteRule ^/([a-z]+)/([a-z]+)/$ paper.php?paper=$1§ion=$2 [L]
The
h..
>
> $str = serialize($ary);
>
> .. and turn a serialized string back into an array with..
>
> $ary = unserialize($str);
>
> The string can be stored in either a TEXT or TINYTEXT field. Is this
> what
> you wanted to know?
Yes. That worked.
> I had trouble following your code after the for loop.
> $headline, $byline and $bodycopy are variable names stored in the
> database?
Yes. Sorry about that. I should have explained what those variables were.
In any case, your solution worked for me.
thanks!
Steven
--
Steven Jarvis
Web Publishing Manager/Web Developer
NWAnews.com:
Arkansas Democrat-Gazette, Northwest Edition
Northwest Arkansas Times
Benton County Daily Record
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echo "$headline\n
$byline\n";
// just as a test, not looping through the array. Loop code not
included.
echo "$bodycopy[0]\n";
}
Even with the version at the end there, I get "A" echoed to the screen.
If I try a
s just habit. Unfortunately, that
particular hosting provider enables them.
>>
>> First question: is there something I can do at this point to cut the
>> empty entries
>
> foreach ($color as $key => $val) {
> if ($val) {
> $tmp[] = $val;
> }
> }
> $
}
echo "";
}
However, I'm putting that bad array in the database, and I still get
extra option entries, because I have no idea how many extras to remove.
So, I feel like I should be doing something BEFORE I do the db insert.
Other than that, the d
I want to do the following:
Big chunk of text is stored in variable $a. Paragraph breaks are
signalled by two line breaks.
I want to just extract the first paragraph (i.e., all the text up to the
first set of two line breaks) from $a.
How would I do this?
I tried exploding $a into an array,
variable and use
unset() and isset() (in place of session_is_registered().
I apologize for the noise.
Steven
On Thursday, March 28, 2002, at 01:21 PM, Steven Jarvis wrote:
> The manual says:
>
>> If you are using $HTTP_SESSION_VARS/$_SESSION, do not use
>>
PHP and I'm just getting started using sessions. The
book I'm using to learn sessions isn't new enough to include how to deal
with the new $_SESSION global variables array, and the manual's dire
warning isn't explained thoroughly enough for me.
Thanks!
Steven
--
Stev
her stuff you can run with Apache (perl, etc.).
It's not as easy to administer as WebSTAR, but it's in some ways more
flexible and more powerful.
HTH,
Steven
--
Steven Jarvis
Web Developer
Arkansas Democrat-Gazette
Northwest Edition
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to do some string replaces on XML files to import them into a
prprietary db that doesn't understand XML.
I need to strip the XML tags out of the file.
However, when I use this line:
$contents = str_replace('', '', $contents);
The ?> in the string ends my php block.
I know there's
I've read the manual, and I'm still stuck, partially due to the manual
itself. This is the first time I've dealt with this particular issue
(parsing IPTC info from JPEGs).
The example provided in the manual entry on GetImageSize:
Gives me the following error on php 4.0.6:
Warning: Call-time
I'm pretty new to PHP, and I need to re-format some date data, but I
can't figure out how to do it. This may be a "doh!" question, but I've
looked through the manual, and I can't seem to find what I'm looking for.
I have some dates formatted as mm/dd/yy that I need to convert to
mmdd so I
13 matches
Mail list logo