images in the db
or simnply storing them on the server. You are making a db request and a
file system request. Rather than a single request to the db.
What is a file system if not a database?
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb
much of a performance hit?
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Daevid Vincent [EMAIL PROTECTED] wrote:
I wish PHP would add threading. We write enterprise level products with PHP,
and we end up using DBUS and letting Ruby do all the real work.
submit patch
Kevin
--
Democracy is two wolves and a lamb voting on what to have
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote:
It's coming FROM THE FILE SYSTEM.
databases can be stored on RAW partitions, thus eliminating FILE SYSTEM
overhead
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote:
You really need to TEST your assumption about the DB being faster.
Do you _really_ think I am speaking without testing any of this??
I once wrote an article on this very topic in PHP mag and published the
benchmarks.
Kevin
are yours?
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, I have never run into them. Nor has terraserver which stores
hundreds of thousands of images in its db, although not mysql.
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http
relying on the good
will of the open source/PHP folks for tech support? If we should support
Zend products, why not other commercial applications also?
Is Zend hoping for volunteer contributions for commercial enterprises?
Should we support Zend business partners also?
Kind regards
Kevin
here
scenario,
but where do folks draw the line?
Kind regards
kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
regards
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote:
The correct answer is (b). (PHP 6 won't even have short tags, so get used to
not having them.)
ummm, I think it was decided to stay in php6. I could be mildly/wildly mistaken
Kevin
--
Democracy is two wolves
.
If you want something solid and mature, you cant go past ezPublish and
ezComponents
http://www.ez.no
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
); // one long page, but only called once.
vs.
require (function1.php);// multiple short pages with multiple calls.
require (function2.php);
require (function4.php);
require (function6.php);
require (function8.php);
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada
= explode( ,$string);
$first_word = $array[0];
$rest_words = substr_replace($string,,0,strlen($first_word));
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
Don't forget that you can also do the CSS inline:
body style=background: url(/images/$random_image)
And then also in the CSS file have all the other declarations for the
body tag.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775
letters) and don't appear to have
any punctuation (although it could be just the few I am looking at
that don't).
Is there any way to tell how these passwords were encrypted?
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445
On Sep 5, 2006, at 4:14 PM, Robert Cummings wrote:
On Tue, 2006-09-05 at 15:27 -0700, Kevin Murphy wrote:
I've inherited this website and there is an application that is
running on it that has a bunch of passwords stored in a mysql table.
The problem is, the previous webmaster didn't leave me
. Is that a
mysql part that I am not familiar with and that I should know? I've
been known to miss obvious stuff before.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Sep 5, 2006, at 4:25 PM, Chris W. Parker wrote
?
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Sep 7, 2006, at 12:50 PM, Eric Butera wrote:
On 9/5/06, Kevin Murphy [EMAIL PROTECTED] wrote:
$query = select name from table where name = '$authuser' and
password
Shouldn't that be this instead:
if (($_REQUEST['id'] != black) OR ($_REQUEST['id'] !=
white)) {
echo wrong color;
} else {
echo right color;
}
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
it into BBEdit and use the convert to ASCII command
that solves the problem.
Is there some way I can filter/convert this information before it
gets to the mysql database?
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
I'm looking for something that will convert a the opposite of the date
(w) function. In other words, if I have the number 3, I would
like it to return Wednesday. Is there such a beast out there
besides writing a switch or array or something?
--
Kevin Murphy
Webmaster: Information
like that? Oh, and it has to run on PHP 4.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Sep 18, 2006, at 3:18 PM, Jay Blanchard wrote:
[snip]
I'm looking for something that will convert a the opposite of the date
(w
Kevin Murphy wrote:
Not really. If it were always today that would work, but in this
case, I was thinking of storing a day of the week in a database
(3), and then display the info based on that digit. So assuming
that the number was in fact 3, then:
echo date(D,3);
Would return Wed
This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote:
Hello,
I am attempting to convert this code for generating the digits of pi
from the original C (below) to PHP.
is this for codegolf?
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty
is the winner.
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-9-]+\.[a-zA-Z0-9.-]+$/si, $data))
{ $email_error = yes; }
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Sep 26, 2006, at 9:09 AM, [EMAIL PROTECTED] wrote:
I have an issue with sending email via PHP which may
(preg_match('/ /',$data))
{ $data = str_replace( , ,$data);}
Is there a better way to accomplish this same task? (PHP 4.x). Thanks.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
Works perfect! Thanks.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Oct 3, 2006, at 3:30 PM, Robert Cummings wrote:
On Tue, 2006-10-03 at 15:17 -0500, Richard Lynch wrote:
On Tue, October 3, 2006 1:47 pm, Richard
__clone(){
}
} /*** end of class ***/
Just a thought
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
will port to a
stand alone application without extensive modifications.
Any help would be greatly appreciated.
Thanks,
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote:
My company is looking for a few good PHP programmers.
8--- snip -
As a follow-up, since several people have asked:
---8 --- snip -
How much??
Kevin
--
Democracy is two wolves
This one time, at band camp, Ed Lazor [EMAIL PROTECTED] wrote:
ps... I wonder if .NET will ever support PHP *GRIN*
or perhaps something to counter php-gtk... win32php
that would would be interesting
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty
This one time, at band camp, bruce [EMAIL PROTECTED] wrote:
does php provide the ability to store objects in a session var
yes
http://phpro.org/tutorials/Introduction-to-PHP-Sessions.html#8
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well
This one time, at band camp, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi. I just installed PHP 5.2.0 and I'm running into some strange problems.
xdebug
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP
This one time, at band camp, Stein Ivar Johnsen [EMAIL PROTECTED] wrote:
Hi..
How can I hide Warning messages so they are not shown on screen..:
code properly...
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
This one time, at band camp, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Does anyone know of a good website, which rates PHP programmers? or Does
anyone know of a good, trustworthy, reliable, and reasonably price
programmer(s)?
You get to choose any two of the above only.
enjoy
--
This one time, at band camp, Stut [EMAIL PROTECTED] wrote:
Does anybody know if yes/no?
Quick example here...
http://phpro.org/examples/Mulitple-file-upload.html
Kevin
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote
This one time, at band camp, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote:
*** THIS IS NOT ABOUT HACKING THE SERVER ***
But about getting in the application when you're not allowed to!
So, basically, you want _us_ to do _your_ bug checking??
Kevin
--
Democracy is two wolves and a lamb voting
This one time, at band camp, Rory Browne [EMAIL PROTECTED] wrote:
you can hire - Chris Shiflett.
BWAHAHAHAHAHAHAHH
I actually did laugh...
--
Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote.
--
PHP General Mailing
to all lowercase by doing
something like this? Or is there a better way?
$pattern = /WWW.(.*?) /i;
$replace = a href=\http://www.\\1\;http://www.\\1/a;
$section_notes = preg_replace($pattern,$replace,$section_notes);
--
Kevin Murphy
Webmaster: Information and Marketing
Well the problem would be then that the entire string would be lower
case, and I only can have the link as lower case. Is there a way to
apply strtolower into the preg_match?
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445
. But,
it works now. Thanks for the help.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Nov 30, 2006, at 3:04 PM, Kevin Murphy wrote:
Well the problem would be then that the entire string would be
lower case, and I
On Nov 30, 2006, at 7:50 PM, Jonesy wrote:
On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote:
I have some text that comes out of a database all in uppercase (old
IBM Mainframe that only supports uppercase characters).
I see via other followups that you have your kludge working
On Dec 1, 2006, at 1:56 PM, Richard Lynch wrote:
On Thu, November 30, 2006 5:04 pm, Kevin Murphy wrote:
Well the problem would be then that the entire string would be lower
case, and I only can have the link as lower case. Is there a way to
apply strtolower into the preg_match?
Why not use
one give me an answer of 0 instead of 1. I know
I could do a IF $data == [empty] and then not count if its empty
and just set it to 0, but am wondering if there was a better way.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775
Just what all long suffering image folks have been needing
http://phpro.org/phpdev/New-ImageMagick-Extension.html
When finished, this should be alot of fun.
K
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://jobs.perl.org/job/5100
Please direct any replies to [EMAIL PROTECTED]
Thanks,
--
Kevin Old
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. Obviously I'm doing
something wrong here. I'm using PHP 4.3.4. Any suggestions?
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
Once you see it in email, sometimes the obvious jumps out at you.
Fixed this on my own.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Jan 9, 2007, at 10:41 AM, Kevin Murphy wrote:
I'm having trouble sorting
or submitting the form.
--
Kevin Murphy
Webmaster: Information and Marketing Services
Western Nevada Community College
www.wncc.edu
775-445-3326
On Jan 17, 2007, at 2:20 PM, Jochem Maas wrote:
Kevin Murphy wrote:
On Jan 17, 2007, at 1:39 PM, Brad Fuller wrote:
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 17, 2007 4:05 PM
To: Don; php-general@lists.php.net
Subject: RE: [PHP
Did they finally do it or is April fools com early?
http://digg.com/business_finance/Microsoft_Purchase_Yahoo_For_62_Billion
K
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 2008-03-31 at 17:05 -0700, mike wrote:
You are pathetic. Spamming your own fake digg article to your own fake
news story and didn't even take the effort to host it on another
domain?
BWHAHAHAHHAA
Thanks, nice reaction, made my day,
do you have more?
Kev
--
PHP General Mailing
/tutorials/Creating-Dropdowns-with-PHP-and-Xajax.html
It gives you goodness you desire
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2008-04-06 at 11:02 -0400, Mark Weaver wrote:
So, if I create a user object, set the properties of said user object
and store that object in the user session will that object be available
throughout the application from the session?
This one time, at band camp, Yeti [EMAIL PROTECTED] wrote:
Now i was wondering of what there might be the best way to validate an IPv6
address.
from this url..
http://phpro.org/tutorials/Filtering-Data-with-PHP.html#9
?php
/*** an IP address ***/
$ip =
or incometence.
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, sizeof/count will get you home
Kevin
http://phpro.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Per Jessen [EMAIL PROTECTED] wrote:
No, it's a simple matter of need. People also run apache 1.x, mysql 3.x
etc. There are still Linux 2.2 and 2.4 systems out there too.
4 years its been, thats incompetence.
Kevin
--
PHP General Mailing List (http
.
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and
mediation, which has so far cost me over $1k.
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Richard Heyes [EMAIL PROTECTED] wrote:
I'm interested - why are people still using PHP4? It's been over 4
years (I think) - plenty of time to upgrade to five.
I asked that question and was called a troll...
Kevin
--
PHP General Mailing List (http://www.php.net
This one time, at band camp, Paul Jinks [EMAIL PROTECTED] wrote:
Does anyone know of any good resources on building a tagging system? The
video for now will be held on a normal LAMP machine as will everything
else.
Tagging...
http://phpro.org/tutorials/Tagging-With-PHP-And-MySQL.html
Kevin
This one time, at band camp, Don [EMAIL PROTECTED] wrote:
Does anyone have an example of how to do this?
http://phpro.org/tutorials/Creating-Dropdowns-with-PHP-and-Xajax.html
enjoy,
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Kind regards
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
poorly thought out arguments is baseless. Lastly, you forgot
to send in your dues to the list to ensure unmolested posting of
ridiculous statements.
Please return to your rock and draw up another strategy to offend the
list.
See what I mean?
Kevin
--
PHP General Mailing List (http
, but they all fail at some point. The best you can do is
cater to most _sane_ addresses.
And when the domain name space is opened up, well, you will back to strpos()
and @
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, David Lidstone [EMAIL PROTECTED] wrote:
which with hindsight is completely illogical! I also wasn't aware of the
constants. Is there a simple tutorial / docs you know of for SPL?
http://www.phpro.org/tutorials/Introduction-to-SPL.html
Kevin
--
PHP General
? they are denied access?
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
looking forward to the feedback from the PHP community on
how you like BHTG so please give it a try and let us know!
Thanks,
Kevin
Product Engineer
cyScape, Inc,
www.cyscape.com
Makers of BrowserHawk
and some docs at
http://www.phpro.org/classes/Phproogle-Docs.html
example code can be found at
http://www.phpro.org/examples/Google-Maps-With-PHP-And-Phproogle.html
Kevin
--
This email message (and any accompanying file attachments) may contain
confidential or privileged information
-Equinox.html
Any improvements welcomed
Kind regards
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
i have a class and i would like to store it zithin session.
i was thinking to use serialize/unserialize but it does not work.
http://www.phpro.org/tutorials/Introduction-To-PHP-Sessions.html#8
Kevin
--
PHP General
...
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it Sequel or anything other than
My S. Q. L MY ESS KEW ELL
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/Introduction-to-PHP-and-MySQL.html#45
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
shall
be thankful.
have a look at phpro.org and for an editor, well vi(m) of course ;)
set yourself a project to make something, start coding, and ask lots
of questions.
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/Imagick.html#4
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
enjoy
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
The
speed of development comes as you become more familiar with the environment you
are
developing in.
Try any of the frameworks, or write you own, just avoid Zend.
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Leon du Plessis l...@dsgnit.com wrote:
I used that notation before, and it did not work 100%.
Adapt as follows:
for ($i = 'a'; $i = 'z'; $i++)
if ($i == aa) break; else echo $i;
foreach(range('a', 'z') as $letter ) { echo $letter; }
Kevin
--
PHP
a
document and try to get it into xhtml and then use simplexml. I wonder
how well this would work with [crappy] HTML input.
$dom-loadHTML($html)
Kevin
http://phpro.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This one time, at band camp, Eric Butera eric.but...@gmail.com wrote:
You could also use DOM for this.
http://us2.php.net/manual/en/domdocument.getelementsbytagname.php
http://www.phpro.org/examples/Get-Links-With-DOM.html
Kevin
--
PHP General Mailing List (http://www.php.net
-On-Image-Type.html
http://www.phpro.org/examples/Imagick-Thumbnail-From-Center.html
but _do_ checkout imagick it has all the good toys
http://www.phpro.org/tutorials/Imagick.html
Kevin
http://phpro.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Sorry, I am also new to the etiquette of these mail lists.
Hope this will get you started,
http://www.phpro.org/tutorials/Introduction-to-PHP-templating.html
Kevin
http://phpro.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the makers of PHP and is supposed to be a mature framework and
ready for enterprise level applications.
What a joke.
but, just my $0.02
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2009-02-10 at 03:26 +, Jim Douglas wrote:
http://phpro.org/tutorials/Pagination-with-PHP-and-PDO.html
Does anyone have a link to any examples of paging?
Kevin
http://phpro.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On 24/06/05, Josh Olson [EMAIL PROTECTED] wrote:
for ($i = 0; $i count($array1); i++)
$array1[$i][] = $array2[$i];
from kevin l'huillier
That's basically what Mike wrote (only with array_push instead of []),
and Bob improved upon. And they didn't mix the arrays up.
I was only
On 6/24/05, Brian Dunning [EMAIL PROTECTED] wrote:
What am I doing wrong? This doesn't work. The browser does not even
load the page, no error or anything:
The script looks fine and executed as expected on my machine.
Try executing it from the command-line. Often if nothing loads in
the
On 24/06/05, Jason Barnett [EMAIL PROTECTED] wrote:
OK I'm pretty clear on it, but now I wonder: is variable assignment (=)
the only place where the Zend Engine will copy a reference instead of
reference the reference?
In PHP 4, function arguments work the same way. Unless you use the
Are you viewing this via a web server? It's probably returning
content-type text/html, which means that you might need to
htmlspecialchars() that string.
That's what i was thinking. It looks like how some browsers
would render that string.
Could you copy the relevant code into a message?
On 26/06/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
Kevin L'Huillier wrote:
Could you copy the relevant code into a message?
Sure, either set the content-type to text/plain (to see the raw string
rather than have the browser interpret it as HTML), like this:
Sorry, Jasper. I meant
On 27/06/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
John Taylor-Johnston wrote:
I could just change the field type. But how do you calculate it? I don't
see much to inspire a start. I'm not a full-time coder either. More of a
tinkerer. I don't want someone to do it for me, but need
Paul Nowosielski [EMAIL PROTECTED] wrote:
If a have a string thats 11 characters long how can I strip off the last
two characters?
Jay Blanchard [EMAIL PROTECTED] wrote:
$newString = substr($oldString, 0, 8);
echo $newString;
substr's third argument is length, not position. It also accepts
I agree, your implementation is efficient. It does depend on the data
being entirely proper, however. If you can not be entirely sure (and
you should rarely be), i might add a suggestion that increases code
length, but decreases the chance of problems:
You might consider creating a function to
On 27/06/05, Sebastian [EMAIL PROTECTED] wrote:
i am looking for a simple ad management app to keep track of ad
views/impressions. i was looking at phpadsnews, but it seems way too
much bloat of what i need i to do.
I am not aware of any such package, however you may way to keep
in mind that
On 27/06/05, Dr. Brad Lustick [EMAIL PROTECTED] wrote:
I'm a novice trying to understand the exact construction of code for doing an
HTTP 301 permanent redirect for a server
coded in PHP. Could someone please tell me how I would handle the following
example?
In my opinion you should save exceptions for, well, EXCEPTIONal
problems. Either that or you use exceptions for a large system that
discriminates against specific types of errors and handles each error
type in a totally different way. Can we say bloat?
Depending on the system, malformatted
Wouldn't
$newUrl = 'https://' . substr( $_SERVER['SERVER_NAME'], 4 )
be a _hell_ of a lot faster?
If one considers micro-seconds 'a _hell_ of a lot faster', then _maybe_
And it could be slower if you avoid sending someone from
http://example.com/ to https://ple.com/ by
501 - 600 of 1201 matches
Mail list logo