Did you mean to say That is a method call.?
Bob McConnell
-
From: Joshua Kehn
That is a function call. In Java:
class Code
{
public static void function do_command(){ }
}
Code.do_command();
Regards,
-Josh
Joshua Kehn |
Bob-
Yes, yes I did.
And note that my Java code is incorrect, that should simply be public static
void, no function.
This is what I get for taking a week to code everything in Node.js.
Regards,
-Josh
Joshua Kehn | josh.k...@gmail.com
: [PHP] newbie question about code
To: PHP General list php-general@lists.php.net
I'm looking at someone's code to learn and I'm relatively new to
programming. In the code I see commands like:
$code-do_command();
I'm not really sure what that means. How would that look in procedural
style
Node.js, wouldn't that be javascript rather than java? :P
Thanks,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Joshua Kehn josh.k...@gmail.com
Date: Fri, Sep 10, 2010 19:32
Subject: [PHP] newbie question about code
To: Bob McConnell r...@cbord.com
Cc: Adam Williams
,
Ash
http://www.ashleysheridan.co.uk
- Reply message -
From: Joshua Kehn josh.k...@gmail.com
Date: Fri, Sep 10, 2010 19:32
Subject: [PHP] newbie question about code
To: Bob McConnell r...@cbord.com
Cc: Adam Williams adam_willi...@bellsouth.net, PHP General list
php-general
At 2:27 PM -0400 9/10/10, Joshua Kehn wrote:
Adam-
That is a function call. In Java:
class Code
{
public static void function do_command(){ }
}
Code.do_command();
Regards,
-Josh
Not just Java, but does I've seen this in several languages.
Javascript is one. But realize that Java is
This is what I get for taking a week to code everything in Node.js.
It is a Friday, so I'll let my curiosity get the best of me and ask a
follow-up on something non-PHP. What insights/impressions do you have
regarding Node.js after a week of working with it?
Thanks,
Adam
--
Nephtali:
I would check this out to give you a decent understanding of php's oop.
http://php.net/manual/en/language.oop5.php
Chris.
On Fri, Sep 10, 2010 at 2:27 PM, Adam Williams
adam_willi...@bellsouth.netwrote:
I'm looking at someone's code to learn and I'm relatively new to
programming. In the
Adam-
It is unique. I'm writing code that really can't be done any other way. How it
handles events, sockets, etc is exceptional. The best part is everything now is
JavaScript. The server (Node.js) is written in JavaScript. MongoDB is
JavaScript. The frontend used to manage the WebSocket is
On Fri, Sep 10, 2010 at 3:03 PM, Joshua Kehn josh.k...@gmail.com wrote:
Adam-
It is unique. I'm writing code that really can't be done any other way. How
it handles events, sockets, etc is exceptional. The best part is everything
now is JavaScript. The server (Node.js) is written in
SELECT * FROM contacts WHERE state = 'CA' and name = 'bob' or
name = 'sam' or name = 'sara'
--
Thanks - Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SELECT * FROM contacts WHERE state = 'CA' and (name = 'bob' or name =
'sam' or name = 'sara')
--Rick
On Jun 18, 2010, at 4:30 PM, Dave wrote:
SELECT * FROM contacts WHERE state = 'CA' and name = 'bob' or
name = 'sam' or name = 'sara'
--
Thanks - Dave
--
PHP General Mailing
On Fri, Jun 18, 2010 at 16:30, Dave deal...@gmail.com wrote:
SELECT * FROM contacts WHERE state = 'CA' and name = 'bob' or
name = 'sam' or name = 'sara'
We begin by asking on the right list (my...@lists.mysql.com, CC'd
by courtesy).
You're on the right track though. Try a
Thanks Daniel and Rick!
I will start using this...
We begin by asking on the right list (my...@lists.mysql.com, CC'd
by courtesy).
Thanks,
Dave
deal...@gmail.com
[db-10]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, Jun 18, 2010 at 17:06, deal...@gmail.com deal...@gmail.com wrote:
I will start using this...
We begin by asking on the right list (my...@lists.mysql.com, CC'd
by courtesy).
It was just an end-of-the-week jab, Dave. I mean, that's the
correct list to use, but the response
Dan Joseph wrote:
On Wed, Apr 21, 2010 at 8:38 PM, David McGlone da...@dmcentral.net
wrote:
Are we gonna have to have a discussion on the use of threading? LOL
We just might. Personally, I use it to sow holes in the toe of my
socks.
My newsreader supports threading.
--
Per
On Wed, 2010-04-21 at 00:08 +0200, Nick Balestra wrote:
Hello everybody,
I am NIck, from Locarno (southern switzerland) i am getting into php
development for my own start-up company, maybe there are other people near me
that would be nice to know for networking and alike. I will post here
At 12:08 AM +0200 4/21/10, Nick Balestra wrote:
Hello everybody,
I am NIck, from Locarno (southern switzerland) i am getting into php
development for my own start-up company, maybe there are other
people near me that would be nice to know for networking and alike.
I will post here all my
On 21 April 2010 18:02, tedd tedd.sperl...@gmail.com wrote:
Welcome Nick.
Do you own a bank? :-)
Cheers,
tedd
C'mon, this is the PHP list, not COBOL :)
But yes, welcome to the list. Frequenting a list is one of the best things
you can do when learning a language. Don't be afraid to
What's wrong with asking if PHP supports threading?
On Wed, Apr 21, 2010 at 5:33 PM, Michiel Sikma mich...@thingmajig.orgwrote:
On 21 April 2010 18:02, tedd tedd.sperl...@gmail.com wrote:
Welcome Nick.
Do you own a bank? :-)
Cheers,
tedd
C'mon, this is the PHP list, not
On Wed, Apr 21, 2010 at 6:21 PM, Brandon Rampersad brandon.add...@gmail.com
wrote:
What's wrong with asking if PHP supports threading?
Nothing? PHP itself does not. You can check out fork though. I've never
personally used it with PHP, but I did for a Perl project years ago. I
guess it
-Original Message-
From: Dan Joseph [mailto:dmjos...@gmail.com]
Sent: Wednesday, April 21, 2010 4:49 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Hello everybody - php newbie from switzerland
On Wed, Apr 21, 2010 at 6:21 PM, Brandon Rampersad
brandon.add...@gmail.com
On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote:
What's wrong with asking if PHP supports threading?
Nothing really, I was just kidding.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Apr 21, 2010 at 8:09 PM, David McGlone da...@dmcentral.net wrote:
On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote:
What's wrong with asking if PHP supports threading?
Nothing really, I was just kidding.
--
PHP General Mailing List (http://www.php.net/)
To
On Wed, 2010-04-21 at 20:12 -0400, Dan Joseph wrote:
On Wed, Apr 21, 2010 at 8:09 PM, David McGlone da...@dmcentral.net wrote:
On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote:
What's wrong with asking if PHP supports threading?
Nothing really, I was just kidding.
--
On Wed, Apr 21, 2010 at 8:38 PM, David McGlone da...@dmcentral.net wrote:
Are we gonna have to have a discussion on the use of threading? LOL
We just might. Personally, I use it to sow holes in the toe of my socks.
--
-Dan Joseph
www.canishosting.com - Unlimited Hosting Plans start @
Hello everybody,
I am NIck, from Locarno (southern switzerland) i am getting into php
development for my own start-up company, maybe there are other people near me
that would be nice to know for networking and alike. I will post here all my
questions if i don't find any answer already on this
On Tue, Apr 20, 2010 at 6:08 PM, Nick Balestra n...@beyounic.com wrote:
I am NIck, from Locarno (southern switzerland) i am getting into php
development for my own start-up company, maybe there are other people near
me that would be nice to know for networking and alike. I will post here all
On 31 March 2010 05:45, Matty Sarro msa...@gmail.com wrote:
That explains it perfectly, thanks you!
On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham tommy...@gmail.com wrote:
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote:
Hey all!
This is probably my second post on the
After looking up the === operator, I see exactly what you mean. Thanks for
your help everyone. I think the confusion was that I was always under the
impression that assignment is either true or false; I would never have
guessed it was equal to the value assigned. Your examples really helped to
Hey all!
This is probably my second post on the list, so please be gentle. Right now
I am running through the Heads First PHP and MySQL book from O'Reilly.
It's been quite enjoyable so far, but I have some questions about some of
the code they're using in one of the chapters.
Basically the code
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote:
Hey all!
This is probably my second post on the list, so please be gentle. Right now
I am running through the Heads First PHP and MySQL book from O'Reilly.
It's been quite enjoyable so far, but I have some questions about
That explains it perfectly, thanks you!
On Wed, Mar 31, 2010 at 12:40 AM, Tommy Pham tommy...@gmail.com wrote:
On Tue, Mar 30, 2010 at 9:22 PM, Matty Sarro msa...@gmail.com wrote:
Hey all!
This is probably my second post on the list, so please be gentle. Right
now
I am running through
$content = ... a bunch of text with some !--protected--protected
information!--/protected-- with some more text with some more
!--protected--tabletrtdmore protected
text/td/tr/table!--/protected-- and even !--protected--bsome
protected contentb!--/protected--;
I want to replace any content
try http://www.php.net/manual/en/function.preg-replace-callback.php.
you need to read a bit on 'regular expressions'
http://www.gskinner.com/RegExr/ will be handy in crafting a suitable
regex to capture your 'tags'
~viraj
On Thu, Jan 7, 2010 at 2:16 PM, John Taylor-Johnston
Great. Ok. Thanks. [I'm a top quoter)]. I'll look at it.
This was my dirty way of hacking it:
if (($current_user-id == 0) ($user_ID == 0))
{
$content = str_replace('!--protected--', 'bProtected !--', $content);
$content = str_replace('!--/protected--', '-- Content/b a
href=/wp-login.php[Log
- Original Message
From: MEM tal...@gmail.com
To: Tommy Pham tommy...@yahoo.com; php-general@lists.php.net
Sent: Sat, October 10, 2009 2:49:23 AM
Subject: RE: [PHP] Newbie: Array of objects iteration
MEM,
http://www.php.net/language.oop5.reflection
Regards,
Tommy
MEM,
http://www.php.net/language.oop5.reflection
Regards,
Tommy
And brand new world opens in from of my eyes... O.O.
I will search more info on this on the net... just for the records, as
properties names is concern, I couldn't find any better I suppose:
2009/10/10 MEM tal...@gmail.com:
MEM,
http://www.php.net/language.oop5.reflection
Regards,
Tommy
And brand new world opens in from of my eyes... O.O.
I will search more info on this on the net... just for the records, as
properties names is concern, I couldn't find any better I
;-)
De: MEM tal...@gmail.com
Para: php-general@lists.php.net
Enviado: jue,8 octubre, 2009 22:59
Asunto: [PHP] Newbie: Array of objects iteration
Hello all,
I'm grabbing all records from a table using:
$records = $stmt-fetchAll(PDO::FETCH_OBJ);
return $records;
In order
Fernando Castillo Aparicio wrote:
I think you are just looking for the key in the wrong place. Try:
foreach ( $records as $record ) {
foreach( $record as $column=$value ) {
echo $column is $value\n;
}
}
You've got the columns names in each record, not in the global
07:23
To: php-general@lists.php.net
Subject: Re: [PHP] Newbie: Array of objects iteration
Fernando Castillo Aparicio wrote:
I think you are just looking for the key in the wrong place. Try:
foreach ( $records as $record ) {
foreach( $record as $column=$value ) {
echo
De: MEM tal...@gmail.com
Para: Lester Caine les...@lsces.co.uk; php-general@lists.php.net
Enviado: vie,9 octubre, 2009 12:40
Asunto: RE: [PHP] Newbie: Array of objects iteration
@LinuxManMikeC and all @All
Thanks. I was more or less aware of that possibility
Correct about my example, although I'm not sure if you get each record as
an array or as an object. Anyway, you can iterate both.
And if you want to get the column names, I suppose you could use
array_keys() on the first record if you receive an array, or maybe
get_object_vars() if it's an
Right now, I have something like this:
foreach ($objRecord as $record)
{
//we will have a new line.
$xls_file .=\n;
foreach ($record as $column=$value)
{
$xls_file .= $value.\t;
}
}
The only thing I need now, is to put on top, the
Dear all, it's done.
Can I call your help for the remain issues please, I'm sure they are easy to
explain, and at some extend, common:
http://pastebin.com/m691d3e66
Instead of saving to the database, if I do a print_r or a var_dump, I get
the charsets quite ok.
However, they do not appear
Done.
print utf8_decode($xls_file);
Regards,
Márcio
-Original Message-
From: MEM [mailto:tal...@gmail.com]
Sent: sexta-feira, 9 de Outubro de 2009 18:19
To: 'MEM'; 'Fernando Castillo Aparicio'; 'Lester Caine'; 'php-
gene...@lists.php.net'
Subject: RE: [PHP] Newbie: Array
- Original Message
From: MEM tal...@gmail.com
To: MEM tal...@gmail.com; Fernando Castillo Aparicio f_c_a_1...@yahoo.es;
Lester Caine les...@lsces.co.uk; php-general@lists.php.net
Sent: Fri, October 9, 2009 6:22:05 AM
Subject: RE: [PHP] Newbie: Array of objects iteration
Right
Hello all,
I'm grabbing all records from a table using:
$records = $stmt-fetchAll(PDO::FETCH_OBJ);
return $records;
In order to display the values we can do:
foreach ($records as $record)
{
echo $record-id;
echo $record-name;
}
Hi all
I posted this on the PHP-db list, but it is sunday.. and with so
little traffic today, perhaps no one will mind if I post this here
too? (with hoped I'll get a quicker pointer?).
I'm translating some code from another server-side language into PHP,
and I need something that
Hi all,
When I do this:
$associacao_dao-listar($limit, $offset);
I can var_dump the correct $limit.
I can var_dump the correct $offset.
I CAN'T access the object that I was hoping to get, called $records.
After this, I was hoping to do var_dump($records); and see the stdClass
object.
Here
Try:
$records = $associacao_dao-listar($limit, $offset);
-TG
- Original Message -
From: MEM tal...@gmail.com
To: php-general@lists.php.net
Date: Sat, 1 Aug 2009 17:13:09 +0100
Subject: [PHP] Newbie: can't access a return value.
Hi all,
When I do this:
$associacao_dao-listar($limit
Hello
Richard, that is exactly what I was looking for. thanks alot
Paul, I didn't know its possible to use error_reporting(), that's a good
hint thanks.
btw if you guys know any simple php application that I can study and learn
faster than going through books please let me know. I tried
Hello
I have a very simple test form named pass.php :
form action=pass.php method=POST
username : input type=text name=user br /
password : input type=password name=pass br /
input type=submit value=gop
/form
?php
$user=$_POST['user'];
$pass=$_POST['pass'];
if(($user==myname)($pass=mypass))
On Mon, Jul 27, 2009 at 10:31 PM, A.a.kblue...@gmail.com wrote:
Hello
I have a very simple test form named pass.php :
form action=pass.php method=POST
username : input type=text name=user br /
password : input type=password name=pass br /
input type=submit value=gop
/form
?php
form action=pass.php method=POST
username : input type=text name=user br /
password : input type=password name=pass br /
input type=submit value=gop
/form
?php
$user=$_POST['user'];
$pass=$_POST['pass'];
if(($user==myname)($pass=mypass))
echo access granted;
else
echo access denied;
On Mon, Jul 27, 2009 at 09:01:16PM -0700, Richard S. Crawford wrote:
form action=pass.php method=POST
username : input type=text name=user br /
password : input type=password name=pass br /
input type=submit value=gop
/form
?php
$user=$_POST['user'];
$pass=$_POST['pass'];
On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote:
On Tue, Jul 21, 2009 at 10:06 PM,
c...@hosting4days.comc...@hosting4days.com wrote:
newbie ...
- is there a calendar module for date fields?
- so that a small calendar pops up - then you can click on a date, to add
to a
Check jQuery UI
On 7/22/09, c...@hosting4days.com c...@hosting4days.com wrote:
newbie ...
- is there a calendar module for date fields?
- so that a small calendar pops up - then you can click on a date,
to add to a field - like google or yahoo calendars has...?
BTW: I saw this - but it
On Wed, Jul 22, 2009 at 3:50 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote:
On Tue, Jul 21, 2009 at 10:06 PM,
c...@hosting4days.comc...@hosting4days.com wrote:
newbie ...
- is there a calendar module for date fields?
- so
On Wed, 2009-07-22 at 08:59 -0400, Andrew Ballard wrote:
On Wed, Jul 22, 2009 at 3:50 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote:
On Tue, Jul 21, 2009 at 10:06 PM,
c...@hosting4days.comc...@hosting4days.com wrote:
newbie
On Wed, Jul 22, 2009 at 9:02 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
Sorry, my bad, I misread the URL. Having a lot of stress here at the
moment getting my laptop fixed :-/
Isn't that called withdrawal? ;-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wed, 2009-07-22 at 09:08 -0400, Andrew Ballard wrote:
On Wed, Jul 22, 2009 at 9:02 AM, Ashley
Sheridana...@ashleysheridan.co.uk wrote:
Sorry, my bad, I misread the URL. Having a lot of stress here at the
moment getting my laptop fixed :-/
Isn't that called withdrawal? ;-)
Not
On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote:
That is javascript thing, not PHP.
The Yahoo UI has a nice one, here you have an example:
http://developer.yahoo.com/yui/examples/calendar/
calcontainer_clean.html,
and here the module reference:
http://developer.yahoo.com/yui/calendar/
On Wed, 2009-07-22 at 08:41 -0700, c...@hosting4days.com wrote:
On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote:
That is javascript thing, not PHP.
The Yahoo UI has a nice one, here you have an example:
http://developer.yahoo.com/yui/examples/calendar/
calcontainer_clean.html,
On Wed, Jul 22, 2009 at 08:41:23AM -0700, c...@hosting4days.com wrote:
snip
Another newbie question: storing dates and times...
I'm trying to build a simple notepad page where I can attach a date
and even time field. So this Tigra or yahoo calendar will be great
date picker helper.
This
Hi all,
A little doubt caught me while I was writing this snippet of code for
a wordpress template:
?php if (the_title('','',FALSE) != 'Home') { ?
h2 class=entry-header?php the_title(); ?/h2
?php } ?
I always thought that php was called only between the ?php ? tags,
and I'm pretty sure that's
Here is a simple but effective one, which has the advantage of
optionally doing datetime.
-- -- http://www.rainforestnet.com
If anyone knows of others that do both date and datetime, I'd love to
see them.
Ken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
newbie ...
- is there a calendar module for date fields?
- so that a small calendar pops up - then you can click on a date,
to add to a field - like google or yahoo calendars has...?
BTW: I saw this - but it doesn't seem to be the right thing ( more
meant for Converter issues) for what
On Tue, Jul 21, 2009 at 10:06 PM,
c...@hosting4days.comc...@hosting4days.com wrote:
newbie ...
- is there a calendar module for date fields?
- so that a small calendar pops up - then you can click on a date, to add
to a field - like google or yahoo calendars has...?
BTW: I saw this - but
2009/7/19 MEM tal...@gmail.com:
Pagination is the generically applicable class - it should know
nothing about what specifically it's paginating.
Ok... but I need to grab values of my DAO classes, I mean, even if we
paginate images on a directory or records on a database table, the pagination
Hello,
I have a Animals DAO class that I'd like to apply a pagination class to it.
Between this two classes, there will be a composition relation (more
precisely, an association one). My question is:
Is a Pagination that has a Animal. OR Is a Animal that has a pagination?
Should we create on
Pagination is the generically applicable class - it should know
nothing about what specifically it's paginating.
Ok... but I need to grab values of my DAO classes, I mean, even if we paginate
images on a directory or records on a database table, the pagination should
have a $limit, and a
2009/7/19 MEM tal...@gmail.com:
Hello,
I have a Animals DAO class that I'd like to apply a pagination class to it.
Between this two classes, there will be a composition relation (more
precisely, an association one). My question is:
Is a Pagination that has a Animal. OR Is a Animal that has
I don't know how your other classes are arranged,
myPDO.class.php - Singleton. Makes the connection to the database possible.
generalDAO.class.php - Abstract DAO Class, grabs the myPDO instance and could
have other methods on the future that are shared for all the DAO classes.
2009/7/19 MEM tal...@gmail.com:
I don't know how your other classes are arranged,
myPDO.class.php - Singleton. Makes the connection to the database possible.
generalDAO.class.php - Abstract DAO Class, grabs the myPDO instance and
could have other methods on the future that are shared for
I would say your pagination logic belongs in myPDO.class.php. Where I
have this functionality it's as simple as two arguments to the method
that gets data, $page and $perpage. Setting both to false would
retrieve all rows.
Interesting but, still no clue, on this side, about how to
2009/7/19 MEM tal...@gmail.com:
I would say your pagination logic belongs in myPDO.class.php. Where I
have this functionality it's as simple as two arguments to the method
that gets data, $page and $perpage. Setting both to false would
retrieve all rows.
Interesting but, still no clue, on
Thanks Daniel for your suggestions.
What I have found are:
1) I'm assuming the key is good. A value of 1947143245 is returned.
2) I have set the permission of the shared memory (program.SCShared) to
777 octal (full read/write/execute access). The group and owner of the file
is my login
Hi
I have a query regarding shared memory created under Linux and then
accessing it by PHP script.
For my application, I have created a shared memory block in Debian Linux
using the shm_open(..), ftruncate(...) and mmap(...) function calls.
The shared memory block is of size 6304 bytes long. It
On Thu, May 21, 2009 at 10:15, Richard W rw180...@gmail.com wrote:
Any help will be greatly appreciated, especially answering 2) as to why I
can't read the data.
Are you certain that the problem lies within the shmop reading?
Check to see if the file is actually being accessed properly,
[Newbie]
Hi folks,
I'm trying to set up some basic php send mail scripts - and I'm curious of
the best way to go...
I checked these basics out:
http://us.php.net/manual/en/function.mail.php
And got this code below going, but I'll bet I need a bit more - like adding
authentication - smtp -
On Tue, May 5, 2009 at 1:20 PM, revDAVE c...@hosting4days.com wrote:
[Newbie]
Hi folks,
I'm trying to set up some basic php send mail scripts - and I'm curious of
the best way to go...
I checked these basics out:
http://us.php.net/manual/en/function.mail.php
And got this code below
On 5/5/09 1:41 PM, Bastien Koert phps...@gmail.com wrote:
On Tue, May 5, 2009 at 1:20 PM, revDAVE c...@hosting4days.com wrote:
And got this code below going, but I'll bet I need a bit more - like adding
authentication - smtp - port - sending user / pass etc.
Any hints how to get this to
On 5/5/2009 10:41 AM, Bastien Koert phps...@gmail.com wrote:
Thanks Bastien - I'll check them out...
use phpmailer or pear mailer
On 5/5/2009 10:59 AM, Tom Worster f...@thefsb.org wrote:
use phpmailer or pear mailer
agree. php's interface is a bit basic. and if you compile php with
On 5/5/09 2:07 PM, revDAVE c...@hosting4days.com wrote:
I'm working with php 5 so is the 1.2.0b1 (beta) safe to use or should I go
with the older stable 1.1.14?
i don't know if the beta is safe but i always use the most recent stable
release of whatever-it-may-be unless i have a compelling
And got this code below going, but I'll bet I need a bit more - like adding
authentication - smtp - port - sending user / pass etc.
Any hints how to get this to the next level?
Hi Dave,
As others have said, it is convenient to use a library/framework to send
mails from your PHP script
Hi all,
Ok. Here is a code that I'm studying:
class Connection extends PDO {
private $dsn = 'mysql:dbname=testes;host=127.0.0.1';
private $user = 'root';
private $password = '';
public $handle = null;
function __construct( ) {
try {
if (
Hello,I have been asked to install an existing PHP/MySQL application on a
system using Windows Vista.
I have installed PHP 5.2.8, MySQL 5.1.31 and IIS 7.0. PHP is working as
expected (I created a test page which displays the output from phpinfo()).
The application in question posts to a login
Hibbert Miller wrote:
Hello,I have been asked to install an existing PHP/MySQL application on a
system using Windows Vista.
What application are we talking about here?
Is it a known Open/Closed source application? Is it supposed to run on
windows?
I have installed PHP 5.2.8, MySQL 5.1.31
technically can I store flash file into Mysql DB using PHP?
what point should I pay attention for that?
Thank you
--
View this message in context:
http://www.nabble.com/Newbie%3A-can-I-store-flash-file-into-Mysql-DB-tp20224150p20224150.html
Sent from the PHP - General mailing list archive at
On 29 Oct 2008, at 10:20, vuthecuong wrote:
technically can I store flash file into Mysql DB using PHP?
Yes.
what point should I pay attention for that?
The blob field type.
But I would recommend against it. Why not store the files on disk and
only store the filenames in the DB?
-Stut
Stut wrote:
On 29 Oct 2008, at 10:20, vuthecuong wrote:
technically can I store flash file into Mysql DB using PHP?
Yes.
what point should I pay attention for that?
The blob field type.
But I would recommend against it. Why not store the files on disk and
only store the
On 29 Oct 2008, at 10:32, vuthecuong wrote:
Stut wrote:
On 29 Oct 2008, at 10:20, vuthecuong wrote:
technically can I store flash file into Mysql DB using PHP?
Yes.
what point should I pay attention for that?
The blob field type.
But I would recommend against it. Why not store the
Stut wrote:
On 29 Oct 2008, at 10:32, vuthecuong wrote:
Stut wrote:
On 29 Oct 2008, at 10:20, vuthecuong wrote:
technically can I store flash file into Mysql DB using PHP?
Yes.
what point should I pay attention for that?
The blob field type.
But I would recommend against it.
On Wed, Oct 29, 2008 at 6:20 AM, vuthecuong [EMAIL PROTECTED] wrote:
technically can I store flash file into Mysql DB using PHP?
what point should I pay attention for that?
Thank you
--
View this message in context:
Bastien Koert a écrit :
We used to do that here, and there was significant performance impact after
the database got to be about 12Gb, with minor impact showing after only a
few Gb. I ended up having to write a script that stripped all the data from
the Db into the file system.
What engine
On Wed, Oct 29, 2008 at 9:29 PM, Lupus Michaelis
[EMAIL PROTECTED][EMAIL PROTECTED]
wrote:
Bastien Koert a écrit :
We used to do that here, and there was significant performance impact
after
the database got to be about 12Gb, with minor impact showing after only a
few Gb. I ended up
IIRC. That's covered under magic quotes . You should be able to turn that off
via a config switch in php.ini or .htaccess.
-Original Message-
From: Govinda [EMAIL PROTECTED]
Date: Mon, 1 Sep 2008 20:21:10
To: PHP-General Listphp-general@lists.php.net
Subject: [PHP] newbie - PHP
You guys got me on the right track, but:
On my Mac OS10.5.4/Apache2/webmin local (dev) setup (of which I know
very little) I managed to find php.ini.default, make a copy while
renaming to php.ini, open the copy (php.ini), and change that on
to an off (the only one of the 3 that was on).
101 - 200 of 1847 matches
Mail list logo