...@silvio-siefke.de
To: php-general@lists.php.net
Sent: Wed, Apr 6, 2011 12:50:20 GMT+00:00
Subject: [PHP] Newbi Question with calculate
Hello,
i have write a script for my Stock portfolio and now im not really find
something which can me help.
In the table php calculate me the Present Value
Hello,
sorry i has not correct write.
The example when is finish can see at
http://silviosiefke.de/finance/stock/stock.php
For this i not use a mysql Database, its normal not so much at data.
I have write the source as Text Files:
http://silviosiefke.de/finance/finished/txt/index.txt
- That
Hi,
i try to create a self signed certificate using this code:
?php
if(!isset($_GET['password']))
{
echo Error Code: 1;
exit(1);
}
if($_GET['password'] == )
{
echo Error Code 2;
At 9:18 PM -0400 3/28/11, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
On 29 March 2011 19:41, D. Dante Lorenso da...@lorenso.com wrote:
On 3/28/11 8:18 PM, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above,
On 3/28/11 8:18 PM, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
/includes/include_file.php
I
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
/includes/include_file.php
Thanks!
Jack
On Mon, Mar 28, 2011 at 09:18:39PM -0400, Jack wrote:
Hello All,
Is there a smarter way to do includes by setting up a path or something
where I don't have to include /home/domain.com/includes/include_file.php
Apparently my path is as shown above, but I would prefer to just put in
Hi.
I have a table called images with 4 columns - `image_id`, `item_name`,
`image_url`, `image_views`
(Where image_id is UNIQUE and AUTO-INCREMENT).
Sometimes, there might be many items with the same name (but not with the
same url).
I want to make sure that each item name has at most 3 images
On 11-02-16 11:37 AM, דניאל דנון wrote:
Hi.
I have a table called images with 4 columns - `image_id`, `item_name`,
`image_url`, `image_views`
(Where image_id is UNIQUE and AUTO-INCREMENT).
Sometimes, there might be many items with the same name (but not with the
same url).
I want to make
On 11-02-16 11:55 AM, Robert Cummings wrote:
On 11-02-16 11:37 AM, דניאל דנון wrote:
Hi.
I have a table called images with 4 columns - `image_id`, `item_name`,
`image_url`, `image_views`
(Where image_id is UNIQUE and AUTO-INCREMENT).
Sometimes, there might be many items with the same name
Morning everyone!
I have a design question... No it's not about the interior of my
house... although I could use some help with that as well...
I am working on a framework for my own use (And maybe one day will
beat out the popular frameworks! Hey I can dream right? :)) and to
increase
On Sat, 2011-02-05 at 11:11 -0500, li...@pruimphotography.com wrote:
Morning everyone!
I have a design question... No it's not about the interior of my
house... although I could use some help with that as well...
I am working on a framework for my own use (And maybe one day will
beat
On Sat, Feb 05, 2011 at 11:11:57AM -0500, li...@pruimphotography.com wrote:
Morning everyone!
I have a design question... No it's not about the interior of my
house... although I could use some help with that as well...
I am working on a framework for my own use (And maybe one day will
On Feb 5, 2011, at 11:19 AM, Ashley Sheridan wrote:
On Sat, 2011-02-05 at 11:11 -0500, li...@pruimphotography.com wrote:
Morning everyone!
I have a design question... No it's not about the interior of my
house... although I could use some help with that as well...
I am working on a
On Feb 5, 2011, at 6:46 PM, Paul M Foster wrote:
On Sat, Feb 05, 2011 at 11:11:57AM -0500, li...@pruimphotography.com
wrote:
Morning everyone!
I have a design question... No it's not about the interior of my
house... although I could use some help with that as well...
I am working on a
Am 24.01.2011 18:08, schrieb Alex Nikitin:
If you declare your arrays, and set k to 0 first, put quotes around array
values and use the correct limit (you can default to -1), you will get
results, here is code and example (hopefully this helps you)
?php
function internal_links($str,
Am 25.01.2011 12:31, schrieb Merlin Morgenstern:
Am 24.01.2011 18:08, schrieb Alex Nikitin:
If you declare your arrays, and set k to 0 first, put quotes around array
values and use the correct limit (you can default to -1), you will get
results, here is code and example (hopefully this helps
On 25 January 2011 12:04, Merlin Morgenstern merli...@fastmail.fm wrote:
Am 25.01.2011 12:31, schrieb Merlin Morgenstern:
Am 24.01.2011 18:08, schrieb Alex Nikitin:
If you declare your arrays, and set k to 0 first, put quotes around array
values and use the correct limit (you can default to
$internal_links=array();
I prefer to init arrays, it also avoids unnecessary notices, and sometimes
weird results, but either one of those while loops should make the desired
array
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{ array_push($internal_links, array('phrase'=$row['phrase'],
Hi there,
I am trying to replace certain words inside a text with php.
Unfortunatelly my function is creating invalid html as output.
For example the words beagle and welpen have to be replaced inside
this text: süße knuffige Beagle Welpen ab sofort
My result looks like this:
zwei süße
Without seeing the code that creates the arrays, it's tough to see the
problem. It looks like the first replacement is catching Beagle Welpen
entirely since the closing /a tag gets placed after Welpen. Then the
second replacement does just Welpen.
Also, you should have quotes around link when
If you declare your arrays, and set k to 0 first, put quotes around array
values and use the correct limit (you can default to -1), you will get
results, here is code and example (hopefully this helps you)
?php
function internal_links($str, $links, $limit=-1) {
On 1/24/2011 8:00 AM, Merlin Morgenstern wrote:
Hi there,
I am trying to replace certain words inside a text with php. Unfortunatelly my
function is creating invalid html as output.
For example the words beagle and welpen have to be replaced inside this
text: süße knuffige Beagle Welpen
On 20 January 2011 19:20, Dotan Cohen dotanco...@gmail.com wrote:
On Thu, Jan 20, 2011 at 19:21, Richard Quadling rquadl...@gmail.com wrote:
That is terrific, at least the first half. The second half, with the
Venn diagrams, is awkward!
When you get heavily nested data, the adjacent list
On 21 January 2011 05:34, Paul M Foster pa...@quillandmouse.com wrote:
On Thu, Jan 20, 2011 at 12:05:53PM -0800, David Harkness wrote:
On Thu, Jan 20, 2011 at 7:00 AM, Richard Quadling rquadl...@gmail.comwrote:
I'd recommend using a nested set approach for the tags
Actually, I'm the customer! But assuming that a customer exists, that
implies compensation, and therefore fair bait.
Then that's different altogether. you get to decide what information
is displayed, and what information is 'sensed', and on what platform.
Yes, but before I get to that stage
If you are doing this often, you could leave spaces in the left and right
values so that you could minimize the number of rows that need to be
updated. The article makes every leaf use x and x+1 for left and right which
forces another update to add a child. If instead you used x and x+20 you'd
On Fri, Jan 21, 2011 at 12:29, Richard Quadling rquadl...@gmail.com wrote:
Changing data in a database is the role of the database engine. It is
much more efficient to have the cost on the insert than it is on the
select.
Agreed. On insert I could even delegate the operation to another
thread
On Fri, Jan 21, 2011 at 4:44 AM, Dotan Cohen dotanco...@gmail.com wrote:
Then I would have to check what values are available when inserting,
and possibly normalise every so often. I'll think about that, and when
I have enough data in the database I'll set up a test system to play
with the
On Jan 21, 2011, at 7:52 PM, Ron Piggott wrote:
Would someone write me a syntax so all the web site addresses in $data turn
into links
$data = “Visit our web site http://www.site.com, http://www.secondsite.org
and http://www.thirdsite.info.”;
My desired results for what I am asking
On Jan 21, 2011, at 6:52 PM, Ron Piggott wrote:
Would someone write me a syntax so all the web site addresses in $data turn
into links
$data = “Visit our web site http://www.site.com, http://www.secondsite.org
and http://www.thirdsite.info.”;
My desired results for what I am asking
On Jan 21, 2011, at 6:52 PM, Ron Piggott wrote:
Would someone write me a syntax so all the web site addresses in $data turn
into links
$data = “Visit our web site http://www.site.com, http://www.secondsite.org
and http://www.thirdsite.info.”;
My desired results for what I am asking
On 20 January 2011 14:32, Dotan Cohen dotanco...@gmail.com wrote:
I am designing an application that make heavy usage of one-to-many
tags for items. That is, each item can have multiple tags, and there
are tens of tags (likely to grow to hundreds). Most operation on the
database are expected
On Thu, Jan 20, 2011 at 18:20, Dotan Cohen dotanco...@gmail.com wrote:
On Thu, Jan 20, 2011 at 17:00, Richard Quadling rquadl...@gmail.com wrote:
I'd have my items table, my tags table and a join table for the two.
My join table is really simple. UniqueID, ItemID, TagID.
Yes, that is the
On 20 January 2011 16:20, Dotan Cohen dotanco...@gmail.com wrote:
On Thu, Jan 20, 2011 at 17:00, Richard Quadling rquadl...@gmail.com wrote:
I'd have my items table, my tags table and a join table for the two.
My join table is really simple. UniqueID, ItemID, TagID.
Yes, that is the first
I cannot agree more with the others about using a join table. While it's
tempting to go with your first solution due to fear of performance issues,
you can usually address performance issues with a technical solution.
Addressing problems that arise from a constraining design choice is much
more
Pseudo = Design Algorithm
Design Algorithm = Actual Code
Actual Code = Alterable db tables
Alterable db tables = manipulated data through the app interface with data
--
The lawyer in me says argue...even if you're wrong. The scientist in
me... says shut up, listen, and then argue. But the lawyer
On Thu, Jan 20, 2011 at 19:21, Richard Quadling rquadl...@gmail.com wrote:
That is terrific, at least the first half. The second half, with the
Venn diagrams, is awkward!
When you get heavily nested data, the adjacent set model (where you
have a parentid for every uniqueid), you very quickly
On Thu, Jan 20, 2011 at 20:50, David Hutto smokefl...@gmail.com wrote:
Pseudo = Design Algorithm
Design Algorithm = Actual Code
Actual Code = Alterable db tables
Alterable db tables = manipulated data through the app interface with data
--
The lawyer in me says argue...even if you're wrong.
Is this a troll? Am I about to be baited?
Baited to deploy what is designed to the consumer's specification?
Surely. From what is wanted to what is needed. Troll on that.
--
Dotan Cohen
http://gibberish.co.il
http://what-is-what.com
--
The lawyer in me says argue...even if you're
On Thu, Jan 20, 2011 at 21:24, David Hutto smokefl...@gmail.com wrote:
Is this a troll? Am I about to be baited?
Baited to deploy what is designed to the consumer's specification?
Surely. From what is wanted to what is needed. Troll on that.
Actually, I'm the customer! But assuming that a
On Thu, Jan 20, 2011 at 2:26 PM, Dotan Cohen dotanco...@gmail.com wrote:
On Thu, Jan 20, 2011 at 21:24, David Hutto smokefl...@gmail.com wrote:
Is this a troll? Am I about to be baited?
Baited to deploy what is designed to the consumer's specification?
Surely. From what is wanted to what is
On Thu, Jan 20, 2011 at 7:00 AM, Richard Quadling rquadl...@gmail.comwrote:
I'd recommend using a nested set approach for the tags
(http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
gives a good explanation on the issues and methodology of nested
sets).
Thanks for the
On Thu, Jan 20, 2011 at 22:05, David Harkness davi...@highgearmedia.com wrote:
Thanks for the link. That article proposes an interesting way to organize
the categories. Have you implemented this in the wild? Clearly the design
would work as it's pretty simple, and I like that it removes the
On Thu, Jan 20, 2011 at 12:21 PM, Dotan Cohen dotanco...@gmail.com wrote:
I understood that. My concern is exactly with adding new nodes. There
is no incrementor (++i) in SQL, so knowingly coding a solution that
will require incrementing two fields in half the database rows seems
On Thu, Jan 20, 2011 at 12:05:53PM -0800, David Harkness wrote:
On Thu, Jan 20, 2011 at 7:00 AM, Richard Quadling rquadl...@gmail.comwrote:
I'd recommend using a nested set approach for the tags
(http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
gives a good explanation
{snip]
...stuff about tedd...
[/snip]
Thank goodness there is someone on the list much older than me.
[snip]
PS: It's not Friday yet.
[/snip]
It is now.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 2:16 AM -0500 1/7/11, Daniel Brown wrote:
On Thu, Jan 6, 2011 at 23:09, Bill Guion bgu...@comcast.net wrote:
Fogging must be a REAL OLD Fashioned term. Please clarify.
It was originally written before man invented the letter 'L', Bill.
No, it was the predecessor to water-boarding.
On Fri, Jan 7, 2011 at 2:33 PM, tedd tedd.sperl...@gmail.com wrote:
At 2:16 AM -0500 1/7/11, Daniel Brown wrote:
On Thu, Jan 6, 2011 at 23:09, Bill Guion bgu...@comcast.net wrote:
Fogging must be a REAL OLD Fashioned term. Please clarify.
It was originally written before man invented
At 8:16 PM -0500 1/5/11, Daniel Brown wrote:
On Wed, Jan 5, 2011 at 19:45, David Harkness
davi...@highgearmedia.com wrote:
[snip!]
Most companies will gladly give their product away to put it in
the hands of soon-to-be-professionals. :)
Tedd had his chance to be professional back in
At 11:37 AM -0500 01/06/11, tedd wrote:
At 8:16 PM -0500 1/5/11, Daniel Brown wrote:
On Wed, Jan 5, 2011 at 19:45, David Harkness
davi...@highgearmedia.com wrote:
[snip!]
Most companies will gladly give their product away to put it in
the hands of soon-to-be-professionals. :)
Tedd
On Thu, Jan 6, 2011 at 23:09, Bill Guion bgu...@comcast.net wrote:
Fogging must be a REAL OLD Fashioned term. Please clarify.
It was originally written before man invented the letter 'L', Bill.
Welcome back, by the way. For someone who only posts once in a
[great[ while, you certainly
At 9:36 PM -0300 1/1/11, Adolfo Olivera wrote:
Hi,
I'm new for php. Just trying to get my hello world going on godaddy
hosting. Can't getting to work. I think sintax it's ok. I was understanding
that my shared hosting plan had php installed. Any suggestions. Thanks,
Happy 2011!!
PS:
At 7:43 PM -0600 1/2/11, Larry Garfield wrote:
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing php.
A little of topic. Wich IDE are you guys using. I'm sort of in a catch
twenty two here. I been alternating
On Wed, Jan 5, 2011 at 11:32, David Harkness davi...@highgearmedia.com wrote:
I do have to say that NetBeans more than Eclipse will randomly become
unusable for unknown reasons: disk and CPU activity spike, code-completion
lags, whatever. Eclipse seems more solid in this regard.
Whereas,
On 11-01-05 01:35 PM, Daniel Brown wrote:
On Wed, Jan 5, 2011 at 11:32, David Harknessdavi...@highgearmedia.com wrote:
I do have to say that NetBeans more than Eclipse will randomly become
unusable for unknown reasons: disk and CPU activity spike, code-completion
lags, whatever. Eclipse seems
On Wed, Jan 5, 2011 at 10:35 AM, Daniel Brown danbr...@php.net wrote:
On Wed, Jan 5, 2011 at 11:32, David Harkness davi...@highgearmedia.com
wrote:
I do have to say that NetBeans more than Eclipse will randomly become
unusable for unknown reasons: disk and CPU activity spike,
On Jan 4, 2011, at 5:27 AM, Steve Staples wrote:
I now use Komodo (the free version) on my ubuntu workstation, and I love
it... I dont know how I managed before.
I use Komodo Edit on OS X and I love it as well, except for the compare
files feature. It's the worst one I've ever used.
On Wed, Jan 5, 2011 at 3:05 PM, tedd tedd.sperl...@gmail.com wrote:
I spent a couple of hours reviewing PHPStorm and it looks *very* promising!
Thank you for sharing your thoughts on PHPStorm. My main performance gripe
with NetBeans has lessened in the year I've been using it, so I'm less
On Wed, Jan 5, 2011 at 19:45, David Harkness davi...@highgearmedia.com wrote:
[snip!]
Most companies will gladly give their product away to put it in the hands of
soon-to-be-professionals. :)
Tedd had his chance to be professional back in the forties (the
eighteen-forties, I believe).
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote:
On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote:
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing
php. A little of topic. Wich IDE are you
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote:
On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote:
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing
php. A little of topic. Wich IDE are
On 1/2/2011 5:56 PM, Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing php.
A little of topic. Wich IDE are you guys using. I'm sort of in a catch
twenty two here. I been alternating vim and dreamweaver. I'm trying to go
100% open source, but I really
everyone I know who uses dreamweaver does so because the people that are
supervising the project want to use dreamweaver, otherwise I haven't found
anyone who actually liked using it. So I don't know if that actually means
anything but that's the way it is.
I guess it would be important to
Tim,
I've come to learn that relying on heavy and non free ides for
developing can kick you in the rear when you have to setup your developement
enviroment after a while. I've have that problem with some previous projects
made with adobe flex, asp.net and sql 2008.
That's the reason why I'm
On Mon, 2011-01-03 at 10:00 -0500, Mujtaba Arshad wrote:
I just went back and read the original post and realized the recent
discussion has nothing to do with it. Awesome.
Yeah, that happens sometimes! The OP changed the subject this time, so
it should be OK ;)
Also, if you can avoid it,
On Mon, Jan 03, 2011 at 12:03:41PM -0300, Adolfo Olivera wrote:
Tim,
I've come to learn that relying on heavy and non free ides for
developing can kick you in the rear when you have to setup your developement
enviroment after a while. I've have that problem with some previous projects
To: Joshua Kehn
Cc: robl...@aapt.net.au; php-general@lists.php.net
Subject: Re: [PHP] Newbie Question
Sorry, here is the code. The .php extension is a requirement? Can't it b
embedded on a .html file?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD
Olivera [mailto:olivera.ado...@gmail.com]
Sent: Saturday, January 01, 2011 8:38 PM
To: Joshua Kehn
Cc: robl...@aapt.net.au; php-general@lists.php.net
Subject: Re: [PHP] Newbie Question
Sorry, here is the code. The .php extension is a requirement? Can't it b
embedded on a .html file?
!DOCTYPE
On Jan 2, 2011, at 11:48 AM, ad...@buskirkgraphics.com wrote:
Add this to your .htaccess file and HTML files will be handled like PHP
files allowing you put PHP in HTML files.
AddType application/x-httpd-php .html
Richard L. Buskirk
I would not recommend this approach, some perfectly
The question was The .php extension is a requirement?
The answer is no.
While me and Ash may completely disagree on the php parser, the simple answer
is there are many ways around running a non .php extension file in php.
mod_rewrite rules in .htaccess files are interpreted for each request
On Jan 2, 2011, at 12:50 PM, ad...@buskirkgraphics.com wrote:
The question was The .php extension is a requirement?
The answer is no.
While me and Ash may completely disagree on the php parser, the simple answer
is there are many ways around running a non .php extension file in php
On Sun, Jan 2, 2011 at 12:16 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote:
Add this to your .htaccess file and HTML files will be handled like PHP
files allowing you put PHP in HTML files.
AddType
On Jan 2, 2011, at 1:17 PM, Adam Richardson wrote:
I tend to disagree with Ashley on this topic. For many websites, I'll start
out making all pages .php, even if they don't require PHP at the moment.
That's for a couple reasons.
1) A few years back, there was certainly a significant
Thanks for the replies. I'll just put a php on all my html containing php.
A little of topic. Wich IDE are you guys using. I'm sort of in a catch
twenty two here. I been alternating vim and dreamweaver. I'm trying to go
100% open source, but I really find dreamweaver easier to use so far.
El ene
On Jan 2, 2011, at 5:56 PM, Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing php.
A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty
two here. I been alternating vim and dreamweaver. I'm trying to go 100% open
source, but
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing php.
A little of topic. Wich IDE are you guys using. I'm sort of in a catch
twenty two here. I been alternating vim and dreamweaver. I'm trying to go
100% open
On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote:
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote:
Thanks for the replies. I'll just put a php on all my html containing
php. A little of topic. Wich IDE are you guys using. I'm sort of in a
catch twenty two here. I
Hi,
I'm new for php. Just trying to get my hello world going on godaddy
hosting. Can't getting to work. I think sintax it's ok. I was understanding
that my shared hosting plan had php installed. Any suggestions. Thanks,
Happy 2011!!
PS: Please, feel free to educate me on how to address the
On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote:
Hi,
I'm new for php. Just trying to get my hello world going on godaddy
hosting. Can't getting to work. I think sintax it's ok. I was understanding
that my shared hosting plan had php installed. Any suggestions. Thanks,
Happy 2011!!
Joshua Kehn wrote:
On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote:
Hi,
I'm new for php. Just trying to get my hello world going on godaddy
hosting. Can't getting to work. I think sintax it's ok. I was
understanding that my shared hosting plan had php installed. Any
suggestions.
On Jan 1, 2011, at 7:50 PM, David Robley wrote:
And normally would need to be saved as a .php file so the contents will be
handled by php.
Cheers
--
David Robley
A fool and his money are my two favourite people.
Today is Boomtime, the 2nd day of Chaos in the YOLD 3177.
Save the
Sorry, here is the code. The .php extension is a requirement? Can't it b
embedded on a .html file?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=
http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type
On Jan 1, 2011, at 8:37 PM, Adolfo Olivera wrote:
Sorry, here is the code. The .php extension is a requirement? Can't it b
embedded on a .html file?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
Jim Lucas has it. You can use the preg_match function to find it. I would
use regexp for that reason. regexp is good for making sure things are typed
the way they need to (mostly used for).
Ravi.
On Sat, Dec 18, 2010 at 5:17 PM, Jim Lucas li...@cmsws.com wrote:
On 12/17/2010 12:52 PM, Sorin
On 12/17/2010 12:52 PM, Sorin Buturugeanu wrote:
Hello all!
I have a question regarding arrays and the way I can use a value.
Let's say I have this string:
$s = 'banana,apple,mellon,grape,nut,orange'
I want to explode it, and get the third value. For this I would normally do:
$a =
Hello all!
I have a question regarding arrays and the way I can use a value.
Let's say I have this string:
$s = 'banana,apple,mellon,grape,nut,orange'
I want to explode it, and get the third value. For this I would normally do:
$a = explode(',', $s);
echo $s[2];
That's all fine, but is there
[snip]
I have a question regarding arrays and the way I can use a value.
Let's say I have this string:
$s = 'banana,apple,mellon,grape,nut,orange'
I want to explode it, and get the third value. For this I would normally
do:
$a = explode(',', $s);
echo $s[2];
That's all fine, but is there a
On Fri, Dec 17, 2010 at 15:52, Sorin Buturugeanu m...@soin.ro wrote:
Hello all!
I have a question regarding arrays and the way I can use a value.
Let's say I have this string:
$s = 'banana,apple,mellon,grape,nut,orange'
I want to explode it, and get the third value. For this I would
Tanks for all of your responses!
I guess a function is the way to go. I just have to see if the situation
comes up enough times to justify the function approach.
@Dan: I really enjoyed your disclaimer :D
--
Sorin Buturugeanu
www.soin.ro
http://www.facebook.com/buturugeanu
Ok, dumb question, and i have tested, but I want to ensure that my tests
were accurate, and behavior is correct.
Ok, i have an integer, that based on what it is, does certain things...
switch ((int)$intval)
{
}
now, if i need to do something on a few of the numbers, then:
case 0:
On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote:
Ok, dumb question, and i have tested, but I want to ensure that my tests
were accurate, and behavior is correct.
Ok, i have an integer, that based on what it is, does certain things...
switch ((int)$intval)
{
}
now, if i need to
On Mon, 2010-11-15 at 22:43 +, Ashley Sheridan wrote:
On Mon, 2010-11-15 at 16:27 -0500, Steve Staples wrote:
Ok, dumb question, and i have tested, but I want to ensure that my tests
were accurate, and behavior is correct.
Ok, i have an integer, that based on what it is, does
why not search them with keywords cli cgi diff?
they are all the Interface to PHP interpretor. one is Command Line
I,another is Common Gateway I.
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)
2010/11/9 Tseveendorj Ochirlantuu tseveend...@gmail.com:
Hello,
I would
On Tue, Nov 9, 2010 at 02:55, Tseveendorj Ochirlantuu
tseveend...@gmail.com wrote:
Hello,
I would like to know what is the difference between follows.
PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46)
and
PHP 5.1.6-pl6-gentoo (cgi-cgi)
They are completely
Hello,
I would like to know what is the difference between follows.
PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:49:46)
and
PHP 5.1.6-pl6-gentoo (cgi-cgi)
One is cli another is cgi-cgi .
Sincerely,
Tseveen.
On Sun, Oct 31, 2010 at 13:50, Ryan Sun ryansu...@gmail.com wrote:
which user it is executed as when request a php script on browser?(suppose
we are on a shared LAMP hosting)
Find out:
?php echo trim(`whoami`); ?
--
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid
which user it is executed as when request a php script on
browser?(suppose we are on a shared LAMP hosting)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If its Apache on Linux (as most hosting will be) then the user will generally
be either apache, www, or http.
Thanks,
Ash
http://www.ashleysheridan.co.uk
201 - 300 of 4510 matches
Mail list logo