On 24 April 2010 14:45, Parham Doustdar parha...@gmail.com wrote:
Hi,
I have created a PHP file, and wrote a string of Farsi letters in it. In
the
head section of the HTML, I put:
META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=UTF-8
There appears to be something wrong with
On Sat, 2010-04-24 at 15:38 +0200, Michiel Sikma wrote:
On 24 April 2010 14:45, Parham Doustdar parha...@gmail.com wrote:
Hi,
I have created a PHP file, and wrote a string of Farsi letters in it. In
the
head section of the HTML, I put:
META HTTP-EQUIV=Content-Type
a...@ashleysheridan.co.uk
Newsgroups: php.general
To: Michiel Sikma mich...@thingmajig.org
Cc: Parham Doustdar parha...@gmail.com; php-general@lists.php.net
Sent: Saturday, April 24, 2010 6:16 PM
Subject: Re: [PHP] Question: Farsi characters showing as jibberish
On Sat, 2010-04-24 at 15:38 +0200, Michiel
guesses aloud. :-)
- Original Message -
From: Ashley Sheridan a...@ashleysheridan.co.uk
Newsgroups: php.general
To: Michiel Sikma mich...@thingmajig.org
Cc: Parham Doustdar parha...@gmail.com; php-general@lists.php.net
Sent: Saturday, April 24, 2010 6:16 PM
Subject: Re: [PHP
-general@lists.php.net
Sent: Saturday, April 24, 2010 6:16 PM
Subject: Re: [PHP] Question: Farsi characters showing as jibberish
On Sat, 2010-04-24 at 15:38 +0200, Michiel Sikma wrote:
On 24 April 2010 14:45, Parham Doustdar parha...@gmail.com wrote:
Hi,
I have created a PHP
On 24 April 2010 16:07, Parham Doustdar parha...@gmail.com wrote:
Hi Ashley and Michiel,
It appears it is something in Apache or my server program on Windows (I am
using Uniform Server; a portable webserver from
http://www.uniformserver.com). The reason I got to such a conclusion is
this:
Hi,
It probably did because I added the line,
AddDefaultCharset UTF-8
to my .htaccess a few moments ago. :-)
Michiel Sikma mich...@thingmajig.org wrote in message
news:o2p6cda1ded1004240726l272f04fbmdd2fb996e2580...@mail.gmail.com...
On 24 April 2010 16:07, Parham Doustdar parha...@gmail.com
On Wed, 2010-01-27 at 03:31 -0800, Ryan Park wrote:
Hypothetically say that I have MySQL with petabytes of data. I want to
use XSL as my template language. But in order to use XSL, I need to make
XML filled with petabytes of data. This does not sound elaborate way to
use XSL/XML; I would
My only reason doing this because I could use XSL as my templating
engine; achieve the separation of content, design, and code. But in
order to use XSL I need to use XML. XML needs to big if I want to use
the data from the huge MySQL database.
On 1/27/2010 3:32 AM, Ashley Sheridan wrote:
On
On Wed, 2010-01-27 at 03:39 -0800, Ryan Park wrote:
My only reason doing this because I could use XSL as my templating
engine; achieve the separation of content, design, and code. But in
order to use XSL I need to use XML. XML needs to big if I want to use
the data from the huge MySQL
Ryan Park wrote:
Hypothetically say that I have MySQL with petabytes of data. I want to
use XSL as my template language. But in order to use XSL, I need to
make XML filled with petabytes of data. This does not sound elaborate
way to use XSL/XML; I would rather use PHP/MySQL/Smarty. Is there a
At 3:39 AM -0800 1/27/10, Ryan Park wrote:
My only reason doing this because I could use XSL as my templating
engine; achieve the separation of content, design, and code. But in
order to use XSL I need to use XML. XML needs to big if I want to
use the data from the huge MySQL database.
On
Yup,
you put result in an array
$result = array('status' = 'good');
and return encoded string
return Json_Encode($result);
your client will get a string
'{status: good}'
and you use your client tech(eg. javascrpt) to decode this string and finall
get an object
On Fri, Jan 8, 2010 at 3:43 PM,
Thank you Ruan!
This is just what I was looking for!
Anthony
Ryan Sun ryansu...@gmail.com wrote in message
news:f7f19ac21001081308r4b202d45vedaf3561536ad...@mail.gmail.com...
Yup,
you put result in an array
$result = array('status' = 'good');
and return encoded string
return
Hi Aditya,
You can store question and answer in database.
if user provides correct answer increase veritable ($score)
you can use switch case to generate character (like in facebook apps)
Navneet.
On Fri, Dec 25, 2009 at 9:41 PM, aditya shukla
adityashukla1...@gmail.comwrote:
Merry
On Tue, Nov 24, 2009 at 6:22 AM, Al n...@ridersite.org wrote:
This bothers since the current working directory is effectively where my
original script resides; is it not? If so, doesn't the include Net/SMTP.php
on line 206 look for the path relative to it and not in
/home1/youstart/php/?
When
Brady Mitchell wrote:
On Tue, Nov 24, 2009 at 6:22 AM, Al n...@ridersite.org wrote:
This bothers since the current working directory is effectively where my
original script resides; is it not? If so, doesn't the include Net/SMTP.php
on line 206 look for the path relative to it and not in
I'm not sure where is the problem, but can't you just define every changing
part in your template as variables and assign them as needed from php?
If you need to change the image url, just make it a variable, like in
background:url(images/{$img})
Then you just assign the variable as needed in
Ups! By mistake I didn't reply to all. Resending. Sorry.
De: Parham Doustdar parha...@gmail.com
Para: php-general@lists.php.net
Enviado: martes, 22 de septiembre, 2009 9:41:44
Asunto: [PHP] Question: Wai-aria?
Hello there,
I
have asked on the mailing lists
On Sun, 20 Sep 2009 12:07:39 +0430
Parham Doustdar parha...@gmail.com wrote:
Hello there,
I'm guessing that when a row in a MySQL table is removed, the ID
colomns of the rows which come after that row are not changed. For
example: 1 2
3
4
Now, if I want to remove the third rows, the ID
On Sun, 2009-09-20 at 01:06 -0700, Lars Torben Wilson wrote:
On Sun, 20 Sep 2009 12:07:39 +0430
Parham Doustdar parha...@gmail.com wrote:
Hello there,
I'm guessing that when a row in a MySQL table is removed, the ID
colomns of the rows which come after that row are not changed. For
On Sep 20, 2009, at 3:37 AM, Parham Doustdar parha...@gmail.com
wrote:
Hello there,
I'm guessing that when a row in a MySQL table is removed, the ID
colomns of the rows which come after that row are not changed. For
example:
1
2
3
4
Now, if I want to remove the third rows, the ID
At 12:07 PM +0430 9/20/09, Parham Doustdar wrote:
Hello there,
I'm guessing that when a row in a MySQL table is removed, the ID
colomns of the rows which come after that row are not changed. For
example:
1
2
3
4
Now, if I want to remove the third rows, the ID colomn would be
something like:
On Sun, Sep 20, 2009 at 12:07:39PM +0430, Parham Doustdar wrote:
Hello there,
I'm guessing that when a row in a MySQL table is removed, the ID colomns of
the rows which come after that row are not changed. For example:
1
2
3
4
Now, if I want to remove the third rows, the ID colomn
Hello there,
Thanks a lot. The Javascript class worked like a charm. I'm glad I asked! :)
Thanks for all the answers, everyone. I seem to have communicated my intent
wrong, when it came to my algorithm, but basically, yes, it was not based on
the MVC model, and yes, it did filter the SQL table,
Parham Doustdar wrote:
Hello there,
I've been asked to create something like the tables you usually see, where the
headers are actually links and when you click the links, the table gets sorted
based on the header. Are there any classes that you know of that would do the
job? My current idea
Jim Lucas wrote:
Parham Doustdar wrote:
Hello there,
I've been asked to create something like the tables you usually see,
where the headers are actually links and when you click the links, the
table gets sorted based on the header. Are there any classes that you
know of that would do the
--- On Sun, 9/13/09, Parham Doustdar parha...@gmail.com wrote:
From: Parham Doustdar parha...@gmail.com
Subject: [PHP] Question: Sorting through table headers?
To: php-general@lists.php.net
Date: Sunday, September 13, 2009, 6:55 AM
Hello there,
I've been asked to create something like the
On Sunday 09 August 2009 02:47:37 pm Parham Doustdar wrote:
Hi there,
I've heard of frameworks, but I don't quite know what they are used for.
I've done a little search on the internet, but even though I've been able
to find different PHP frameworks, I'm not quite sure what they offer, or in
On Sat, Jul 25, 2009 at 1:31 AM, Daniel Kolbokolb0...@umn.edu wrote:
Andrew Ballard wrote:
On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballardaball...@gmail.com wrote:
From what I can tell, the numbers I see in WinCacheGrind
look like they are off by about a factor of 10 pretty
uniformly.
On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballardaball...@gmail.com wrote:
From what I can tell, the numbers I see in WinCacheGrind
look like they are off by about a factor of 10 pretty
uniformly.
Andrew
Apparently the difference is indeed WinCacheGrind, as a number of
other people have left
Andrew Ballard wrote:
On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballardaball...@gmail.com wrote:
From what I can tell, the numbers I see in WinCacheGrind
look like they are off by about a factor of 10 pretty
uniformly.
Andrew
Apparently the difference is indeed WinCacheGrind, as a number
Andrew Ballard wrote:
I'm trying to profile a site on our development server to see why it
takes around 4 seconds to generate a pretty basic page. I installed
xdebug to use for the profiling, and now I'm really confused. Even
though it takes around 4 seconds to build the entire page, the profile
Nope. Basically it connects to a database to load an ACL (which at
[...]
I thought xdebug was supposed to be a pretty good profiler. If it
calculating the time correctly, where are the other ~3.6 seconds
going?
One night I saw a script wait indefinitely for a response from a tanked
database,
On Thu, Jul 23, 2009 at 5:32 PM, Ben Dunlapbdun...@agentintellect.com wrote:
I second Jonathan's suggestion; I would try calling microtime() before and
after your database query, and before and after anything else that isn't
strictly execution of the script.
Ben
I tried this where I could.
Marcus Gnaß wrote:
like with programming questions in general.
Should have read my own post before sending! ;) Should be programming
languages!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Excellent, thanks for your help guys, you've been really helpful :)
On 3 Mar 2009, at 10:20, Marcus Gnaß wrote:
Matthew Croud wrote:
Hello,
First post here, I'm in the process of learning PHP , I'm digesting
a few books as we speak.
I'm working on a content heavy website that provides a
Hi,
First post here, I'm in the process of learning PHP , I'm digesting a few
books as we speak.
I'm working on a content heavy website that provides a lot of information, a
template system would be great and so i've been looking at ways to create
dynamic data with a static navigation
Matthew Croud wrote:
Hello,
First post here, I'm in the process of learning PHP , I'm digesting a
few books as we speak.
I'm working on a content heavy website that provides a lot of
information, a template system would be great and so i've been looking
at ways to create dynamic data with a
On Tue, Mar 03, 2009 at 09:01:06AM +, Matthew Croud wrote:
Hello,
First post here, I'm in the process of learning PHP , I'm digesting a
few books as we speak.
I'm working on a content heavy website that provides a lot of
information, a template system would be great and so i've been
2009/3/3 Matthew Croud m...@obviousdigital.com
First post here, I'm in the process of learning PHP , I'm digesting a few
books as we speak.
I'm working on a content heavy website that provides a lot of information,
a template system would be great and so i've been looking at ways to create
On Tue, 3 Mar 2009 20:46:40 +, stuttle wrote:
[...]
As far as templating systems go I personally don't think they add anything
to the equation unless you're working with designers who are already
familiar with something. Separation of logic and content is important,
abstraction away from PHP
I'll put in a +1 for Subversion. I use it and love it.
I have the actual repository sitting on a linux box and usually use
TortiseSVN to update, and commit to the repository.
It's pretty easy to use, and was much easier to setup than I expected. I
simply apt-get install svn, and then edited
So, for my purposes.. after trying a handful of solutions.. open source and
commercial.. I think I've decided that Reliable Software's Code Co-op
is what's going to work best for me.
My trial is almost up, so as soon as my next paycheck comes, I think I'll
be purchasing the full version for
I use GIT and Subversion. Subversion is still a bit hard to use (branching
etc) and not distributed but that was before i knew about GIT :-P. You have
a central repository that you need to commit to and it's still quite CVS
like (which is really confusing and horrible).
GIT is nice and fast and
My two cents,
It's not bad, but you need to be aware of collisions. We set it up
with a folder for each developer and it contains the main application
code.
The upside is that we each have our own code base so we don't affect
each other when cutting new code. The downside is that we can
: Micah Gersten mi...@onshore.com
To: Richard Heyes rich...@php.net
Cc: TG tg-...@gryffyndevelopment.com, php-general@lists.php.net
Date: Wed, 31 Dec 2008 20:06:25 -0600
Subject: Re: [PHP] Question about version control.. sorta..
Richard Heyes wrote:
The other issue is that I run Windows. So
On Thu, Jan 1, 2009 at 7:33 AM, TG tg-...@gryffyndevelopment.com wrote:
Thanks for the recommendations, everyone. I decided to give Subversion
another try, since I had a server already set up from when I tried this a
while ago. Reinstalled TortoiseSVN for Windows and got it all configured.
What I'd ideally like to do is be able to use a CVS type system to keep
incremental backups of the code.
Space is so cheap these days I don't think is particularly useful to
do incremental backups unless you have a hell of a lot of data. I
simply do full backups daily. Now...
So instead of
Richard Heyes wrote:
The other issue is that I run Windows. So if there's something nice and
WinGUI, that'd be nice. Please no you should be running linux
You should be running linux. Muhaha.
responses. I don't have anything against Linux or Mac, they're great
systems. But I
On Wed, Dec 31, 2008 at 9:40 AM, TG tg-...@gryffyndevelopment.com wrote:
Ok.. so I know about CVS and SVN and unfortunately haven't had as much
experience with them as I'd like. I've used them, but always in a really
basic sense and always on systems that have already been set up. A friend
Mike -- I've bottom posted my reply, as is the convention for this list (and
most others). Scroll down.
From: Mike Peloso [mailto:mpel...@princeton.edu]
Sent: Thursday, December 18, 2008 9:56 AM
To: Boyd, Todd M.
Subject: Php question from Newsgroup
Todd,
I have attached a few jpgs to
Boyd, Todd M. tmbo...@ccis.edu wrote in message
news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu...
Mike -- I've bottom posted my reply, as is the convention for this list
(and most others). Scroll down.
From: Mike Peloso [mailto:mpel...@princeton.edu]
Sent: Thursday,
On Thu, 2008-12-11 at 11:30 +0100, Xaver Thum wrote:
Hi,
I want to set a link like
a href=http://www.anyurl.com?mypar=17color=red; ...
into my HTML file; that works fine.
But if I specify a hex color like #CC instead of red,
a href=http://www.anyurl.com?mypar=17color=#CC;
On Thu, Dec 11, 2008 at 05:30, Xaver Thum xaver.t...@t-online.de wrote:
But if I specify a hex color like #CC instead of red,
a href=http://www.anyurl.com?mypar=17color=#CC; ...
the color is ignored (probably because # starts a PHP comment).
Is there any workaround for this problem
PROTECTED]
Cc: PHP General php-general@lists.php.net
Subject: Re: [PHP] question about corrupt db?
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten
[EMAIL PROTECTED] wrote:
Terion Miller wrote:
could a corrupt db
-general@lists.php.net
Subject: Re: [PHP] question about corrupt db?
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten
[EMAIL PROTECTED] wrote:
Terion Miller wrote:
could a corrupt db make php pages stop functioning
Terion Miller wrote:
could a corrupt db make php pages stop functioning?
My pages no longer go anywhere, I went back found the original scripts and
still it didn't fix the problem (thought I had messed the code up) so it has
to be something external of the code its doing this locally on my box
On Mon, 2008-12-01 at 15:12 -0600, Micah Gersten wrote:
Terion Miller wrote:
could a corrupt db make php pages stop functioning?
My pages no longer go anywhere, I went back found the original scripts and
still it didn't fix the problem (thought I had messed the code up) so it has
to be
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote:
Terion Miller wrote:
could a corrupt db make php pages stop functioning?
My pages no longer go anywhere, I went back found the original scripts
and
still it didn't fix the problem (thought I had messed the code up) so
Terion Miller wrote:
could a corrupt db make php pages stop functioning?
My pages no longer go anywhere, I went back found the original scripts and
still it didn't fix the problem (thought I had messed the code up) so it has
to be something external of the code its doing this locally on my box
-Original Message-
From: Terion Miller [EMAIL PROTECTED]
Sent: Monday, December 01, 2008 4:23 PM
To: Micah Gersten [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Subject: Re: [PHP] question about corrupt db?
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED
On Mon, Dec 1, 2008 at 3:40 PM, Wolf [EMAIL PROTECTED] wrote:
-Original Message-
From: Terion Miller [EMAIL PROTECTED]
Sent: Monday, December 01, 2008 4:23 PM
To: Micah Gersten [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Subject: Re: [PHP] question about corrupt db
-general@lists.php.net
Subject: Re: [PHP] question about corrupt db?
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED] wrote:
Terion Miller wrote:
could a corrupt db make php pages stop functioning?
My pages no longer go anywhere, I went back found the original scripts
01, 2008 4:23 PM
To: Micah Gersten [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Subject: Re: [PHP] question about corrupt db?
On Mon, Dec 1, 2008 at 3:12 PM, Micah Gersten [EMAIL PROTECTED]
wrote:
Terion Miller wrote:
could a corrupt db make php pages stop
Maybe try the normal Windows System Logs?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
-Original Message-
From: Terion Miller [EMAIL PROTECTED]
Sent: Monday, December 01, 2008 4:23 PM
To: Micah Gersten [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Subject: Re: [PHP
]
wrote:
-Original Message-
From: Terion Miller [EMAIL PROTECTED]
Sent: Monday, December 01, 2008 4:23 PM
To: Micah Gersten [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Subject: Re: [PHP
This one time, at band camp, Sudhakar [EMAIL PROTECTED] wrote:
hi
how do i go about displaying an address which appears on google maps for a
business on a web page.
what are the steps.
if some one knows about this please let me know.
http://www.phpro.org/classes/Phproogle.html
and
You are trapped on a desert island with the Baldwin Brothers.
The food and rum have run out and you have a gun with a
single bullet. Who do you shoot?
Line them all up and shoot them in a oner... ;-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org
At 12:58 PM + 11/9/08, Richard Heyes wrote:
You are trapped on a desert island with the Baldwin Brothers.
The food and rum have run out and you have a gun with a
single bullet. Who do you shoot?
Line them all up and shoot them in a oner... ;-)
--
Richard Heyes
On XBOX Ghost Recon
On Sun, 2008-11-02 at 13:43 +1300, Sudhakar wrote:
hi
how do i go about displaying an address which appears on google maps for a
business on a web page.
what are the steps.
if some one knows about this please let me know.
thanks
Have you actually tried looking at Google's API for
hey sudhakar..
when you're changing database apps, you're normally going to have to change
the connection codem as well as possibly the query structure for your
different select/insert/etc.. queries.
there should be plenty of examples/tutorials on the net, as well as in the
php.net website.
You also need to make sure that your server has the mysql drivers
installed. A linux server does not come with this support natively.
On Mon, Oct 27, 2008 at 6:19 AM, bruce [EMAIL PROTECTED] wrote:
hey sudhakar..
when you're changing database apps, you're normally going to have to change
On Mon, 2008-10-27 at 07:41 -0700, Robbert van Andel wrote:
You also need to make sure that your server has the mysql drivers
installed. A linux server does not come with this support natively.
On Mon, Oct 27, 2008 at 6:19 AM, bruce [EMAIL PROTECTED] wrote:
hey sudhakar..
when you're
Robbert van Andel wrote:
You also need to make sure that your server has the mysql drivers
installed. A linux server does not come with this support natively.
He's not using mysql, he's using sql server.
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List
We use a linux webserver but have a need to connect to MSSQL databases.
Since I used Fedora, I was lucky enough to find the PHP-MSSQL package but
that has only been available via yum recently. My first attempt at
connecting to MSSQL was much more difficult when I was using FC3.
On Mon, Oct 27,
Sorry, that was a typo. I meant MSSQL.
On Mon, Oct 27, 2008 at 2:12 PM, Chris [EMAIL PROTECTED] wrote:
Robbert van Andel wrote:
You also need to make sure that your server has the mysql drivers
installed. A linux server does not come with this support natively.
He's not using mysql,
if i have to connect to a sql databse instead of my sql database as some
companies use sql database, how can i change the php code to connect, run a
query and close connection to the sql database.
apart from changing the code to connect to sql database is there something
else i need to do.
I am trying real hard to write clean code...
Print it out and stick it in the washing machine... :-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 7 Oct 2008, at 12:48, Jason Pruim wrote:
On Oct 7, 2008, at 7:41 AM, Stut wrote:
On 7 Oct 2008, at 12:38, Jason Pruim wrote:
I am trying to track down an error and can't seem to figure it
out... Here is the error out of my log:
[Tue Oct 7 07:31:43 2008] [error] PHP Warning: date()
On 7 Oct 2008, at 12:38, Jason Pruim wrote:
I am trying to track down an error and can't seem to figure it
out... Here is the error out of my log:
[Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects
parameter 2 to be long, string given in /Volumes/RAIDer/webserver/
At 1:08 PM +0100 10/7/08, Stut wrote:
On 7 Oct 2008, at 12:48, Jason Pruim wrote:
Thanks for the quick response... You were right... I did a var_dump
both on $row['timein'] and $row['timeout'] and the error was
because of the way that I update the records. for time in, I insert
a new record,
On Oct 7, 2008, at 7:41 AM, Stut wrote:
On 7 Oct 2008, at 12:38, Jason Pruim wrote:
I am trying to track down an error and can't seem to figure it
out... Here is the error out of my log:
[Tue Oct 7 07:31:43 2008] [error] PHP Warning: date() expects
parameter 2 to be long, string given
On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote:
I am trying real hard to write clean code...
Print it out and stick it in the washing machine... :-)
The way I used to write code I'd have to soak it in bleach for a week
before having a chance of it coming out clean! :P
--
Jason Pruim
On Tue, 2008-10-07 at 07:54 -0400, Jason Pruim wrote:
On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote:
I am trying real hard to write clean code...
Print it out and stick it in the washing machine... :-)
The way I used to write code I'd have to soak it in bleach for a week
before
Luckily for me it all still worked afterwards!
The pen drive or the code? :-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2008-10-07 at 19:47 +0100, Richard Heyes wrote:
Luckily for me it all still worked afterwards!
The pen drive or the code? :-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.phpguru.org/RGraph
Both!
Ash
www.ashleysheridan.co.uk
--
PHP
LKSunny schreef:
Hello,
i want on inner EOF do something, calculate and call function ? can not ? if
yes, how to ?
no you can't, store the results of calculation and function calls in
variables and use them in the HEREDOC statement.
a HEREDOC declaration is just a string declaration like
At 12:48 PM +0800 9/30/08, LKSunny wrote:
Hello,
i want on inner EOF do something, calculate and call function ? can not ? if
yes, how to ?
?
echo EOF
some text
can i calculate on inner EOF ? 10*100 display 1000 ?
can i add function on inner EOF ? date('Y') display 2008 ?
any more text.
On Fri, 2008-07-11 at 18:03 +0200, Yeti wrote:
?php
/*
I have a question here regarding object orientation in PHP and any other
language.
Let's start with some hypothetical code:
*/
// --- 1st CLASS
class ParkingLot {
var size; // size in sq feet
var max_number_of_cars;
Object-oriented programming, with it's class and object approach,
is meant to model real life more closely than functional programming.
In, a parking space is physically inside a parking lot, but a
parking space is not a subclass of a parking lot. It's not a variation
or mini parking
Corrected code example:
(too early in the morning to think)
?php
class ParkingLot {
var $size;
var $num_spaces;
var $spaces = array();
}
class ParkingSpace {
var $ps_ID;
var $occupied_by;
var $st_time;
}
?
In the above class definition, simply populate the $spaces array
On Fri, Jul 11, 2008 at 12:03 PM, Yeti [EMAIL PROTECTED] wrote:
?php
/*
I have a question here regarding object orientation in PHP and any other
language.
Let's start with some hypothetical code:
*/
// --- 1st CLASS
class ParkingLot {
var size; // size in sq feet
var
[snip]
I understand my error in thinking now.
Apple can't extend Tree.
Oak, Evergreen or Willow extend Tree.
I thank you all for helping me to understand.
[/snip]
By jove, I think he's got it!
Parking space could be a member variable of parking lot, that would make
sense.
--
PHP General
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2008 1:51 PM
To: Eric Butera; php php
Subject: RE: [PHP] Question regarding OO
[snip]
I understand my error in thinking now.
Apple can't extend Tree.
Oak, Evergreen or Willow extend Tree
Hey,
Dude you could use it this way
input type='checkbox' name='something' value='1'
input type='checkbox' name='something' value='2'
input type='checkbox' name='something' value='3'
Once u submit it,
do a small server side validation
if(isset($_POST['something'] || $_POST['something']) != ){
sorry it needs to be a array for checkbox for the example below. So you
could use is_empty() instead. something like that.
input type='checkbox' name='something[]' value='1'
input type='checkbox' name='something[]' value='2'
input type='checkbox' name='something[]' value='3'
On Tue, Jul 8,
Jason Pruim wrote:
The problem I'm running into though, is when a value has not changed
it doesn't get $_POSTed back
Are you certain about that? I'm pretty certain _all_ values are posted
back, regardless of whether they've changed or not. Otherwise, how
would you ever get a hidden value
Jason Pruim [EMAIL PROTECTED] wrote:
Hi everyone!
So it's been a nice long weekend, I come in to work and try and mess
with a project that I'm working on to get some new features added. All
was going well until I realized that now my application is breaking...
Here's the
101 - 200 of 1077 matches
Mail list logo