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
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:
?php
$size = GetImageSize (testimg.jpg,$info);
if
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('?xml version=1.0?', '', $contents);
The ? in the string ends my php block.
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
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
--
Steven Jarvis
Web Developer
Arkansas Democrat
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
session_register(), session_is_registered
(say, if I set
the values of that array manually in the php code).
Any suggestions would be very helpful!
Thanks,
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
at this point to cut the
empty entries
foreach ($color as $key = $val) {
if ($val) {
$tmp[] = $val;
}
}
$color = $tmp;
That will remove empty values from $color.
Ahh. That's exactly what I needed!
Thanks,
Steven
Steven Jarvis
Web Developer
Arkansas Democrat-Gazette
Northwest Edition
'$bodycopy[0]/p\n;
}
Even with the version at the end there, I get A echoed to the screen.
If I try a print_r($bodycopy), it says Array.
Where did I screw up?
Thanks!
Steven
--
Steven Jarvis
Web Publishing Manager/Web Developer
NWAnews.com:
Arkansas Democrat-Gazette, Northwest Edition
Northwest
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
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,
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=$1section=$2 [L]
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 along
13 matches
Mail list logo