tives.
Now, do I expect threading in the near future? NO. PHP does present some
special issues for this feature. However, I hope we all will carefully
consider where we want PHP to be in the future language market whenever we
consider any new features, be they arrays, threading, or mind
P does present some
special issues for this feature. However, I hope we all will carefully
consider where we want PHP to be in the future language market whenever we
consider any new features, be they arrays, threading, or mind control ;)
I'll not speak anything further on this thread.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
s in?
>
> I know a lot of people here use Gmail accounts on the list, maybe one of
> them knows something that could help you?
>
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
Brandon, to reply all in gmail, click on the downward arrow right beside the
repl
ashion. Do you know of any examples where this actually improved
performance? If so, I'd like to see them so I could experiment more with
the ideas.
Thanks,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
plements multiple http calls with
one connection, if you'd be so kind ;) Maybe I'll fiddle with the parallel
processing again.
Thanks,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
be used for the subsequent exchanges of text using symmetric
encryption because symmetric encryption is much faster, and example
algorithm is RSA.)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
I can load the files and parse out what is
> between the tags, but I was hoping for a "GetElementByClass" way to do
> this.
>
> So, is there one?
>
Perhaps I'd try this:
http://simplehtmldom.sourceforge.net/manual.htm
<http://simplehtmldom.sourcef
://www.amazon.com/Practical-Common-Lisp-Peter-Seibel/dp/1590592395/ref=sr_1_1?ie=UTF8&s=books&qid=1270429493&sr=1-1
http://www.amazon.com/Programming-Erlang-Software-Concurrent-World/dp/193435600X/ref=sr_1_2?ie=UTF8&s=books&qid=1270429533&sr=1-2
There are others, but I limited my suggestions to books I own.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
lly
been using more constructors in C# and Java and PHP to create immutable
objects (private instance vars and private setters, but public getters.)
Although it does require more knowledge of the underlying object structure
in surrounding code, it also affords me immutability, which has it's own
merits.
Just my OPINIONS ;)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
(it would cause issues down the road if one
table insert worked and another failed.) Additionally, I'd recommend using
prepared statements to avoid SQL injection (I'd mention validation your POST
data, too ;)
See the tutorial below:
http://www.phpro.org/tutorials/Introduction-to-PHP-PDO
On Sat, Apr 10, 2010 at 7:56 PM, Gary wrote:
> Adam
>
> Thanks for your reply, but I think I am totally confused. Not so much by
> your answer (although I admit I did not get it to work yet), but by the
> entire multiple table issue. Several books I use talk about the import
On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim wrote:
>
> On Apr 15, 2010, at 8:55 AM, tedd wrote:
>
> At 4:13 PM -0400 4/14/10, Al wrote:
>>
>>> Incidentally, about formatting scripts, one of the reasons I like phpEdit
>>> is that it has a terrific code beautifier. You can set it for phpDoc or
>>
needs preclude this type of approach), but
I thought I'd toss out the idea as this approach has proved more effective
and efficient for websites I maintain.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
vulnerability in one of the libraries leveraged to provide
the hosting environment could also have provided the entry (PHP makes for a
capable deliverable, but it doesn't have to provide the key for a hacking
situation.)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
to a constant, and you can compose them in a myriad of ways.
I don't claim to know the rationale, but once you get used to it, it's not a
big deal. I just tend to use classes that allow a value to be set once and
only once for these types of situations.
Happy coding ;)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
needs
> to be in it, so a random function sitting outside is something I want to
> avoid if possible.
>
> Alternatively, if anyone knows a better way than using usort I'm all
> ears!
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
Try using an array to pass in the function:
usort($array, array('ClassName', 'staticMethodName'));
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Thu, Apr 22, 2010 at 2:25 PM, Ashley Sheridan
wrote:
> On Thu, 2010-04-22 at 14:26 -0400, Adam Richardson wrote:
>
> On Thu, Apr 22, 2010 at 2:12 PM, Ashley Sheridan
> wrote:
>
> I've not had to do this before, and now that I am, I've hit a bit of a
> wall:
&g
a scheme where I create the variable, then unset
it in the constructor and rely on the magic method. I know you were
concerned about the performance of magic methods, and I don't have a
solution for that :(
For example:
name);
unset($this->size);
$this->_vars = $instance_vars;
}
function __get($name)
{
return $this->_vars[$name];
}
}
$obj = new PHPClass($instance_vars = array('name' => 'Billy', 'size' =>
1000));
echo $obj->name;
?>
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
/sperling.com http://ancientstones.com http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Well, because each author can have multiple articles and each article can
have multiple authors, the many-to-many relationship can use a junction
table:
http://en.wikipedia.org/wiki/Junction_table
In this case articles_authors.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
that solutions asks for trouble (something I often do,
but avoid publicly advocating ;)
The solution I suggested still maintains all of the documentation
capabilities (at least in my NetBeans), but enforces protection. It's not
perfect, but it does work relatively well.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
r whatever for the view portion of the app.
>
> I just say this because Junction tables really don't save you much and
> infact this it's very clear what your doing.
>
> David
>
> -Original Message-
> From: Adam Richardson [mailto:simples...@gmail.com]
&g
w years ago, there is no real loser anymore,
they all are very nice and have their advantages.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
gt;
>
Maybe something like this situation (a few years back, but perhaps still
relevant):
http://www.issociate.de/board/post/384415/Undefined_pg_prepare()_in_5.6.1.html
<http://www.issociate.de/board/post/384415/Undefined_pg_prepare()_in_5.6.1.html>
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
Thank you for Contacting Us!"; } else { echo "An error occured while
> sending your message, review your information and please try again."; } ?>
> on it... when i take out the like "
> $header = "From: {$name} < {$from} >";" i just get a blank screen, but it
> dosen't send the e-mail i know i'm missing something really obvious,
> but
> i just can't see it.
> Thanks,
> Watson
>
Maybe you just miscopied, but are you missing the brackets on the post array
vars (e.g., $from=$_POST["from"]) ?
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
an also leverage existing technologies. In addition to quiz
generators available online, Google Docs allows you to create forms that
store responses in spreadsheets (Create New -> Form). You can choose from a
variety of response types (text, multiple choice, etc.), and it works quite
well.
Just tossing out ideas ;)
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
', '$model', '$caliber',
'$condition', '$price', '$description','$image_file_name', ' ',
'$available');
> INSERT INTO images (id, image_file) VALUES('','$image_file')";
> $sqlResult
quot;;
Shouldn't it read:
INSERT INTO images(image_file) VALUES ('$image_file')";
That's assuming you have id set to auto-increment, so no id in the first or
second set of parentheses. Additionally, the ", before the $image_file var
would cause issues, too.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Sat, May 1, 2010 at 6:54 PM, Gary wrote:
>
> "Adam Richardson" wrote in message
> news:aanlktinqixxb9oipu4op2xztrze_vwpbymaywziwb...@mail.gmail.com...
> > >
> >> $sqlStatements = "INSERT INTO guns (manufacturer, type, model, caliber,
> >>
accessible interface.
Here's the links just in case you haven't already read-up (that is, if this
even applies to you):
http://www2.ed.gov/policy/gen/guid/fpco/ferpa/index.html
If you've already researched this or you're not in the US, I apologize for
the irrelevant info.
Happy coding,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
gt; for free - you are supposed to be a web developer after all, how do you
> expect to do that if you haven't read the manual(s) and don't understand the
> technologies?
>
> Your website is not just your personal homepage, it's your online presense
> and the message you are sending out to associates, friends and clients alike
> (both current and potential).
>
> I won't say anything specific about your website, other than lol (you know
> it's really bad) - just take it on the chin, if possible heed the good
> (honest) advice you've been given, and get back on with what you're doing -
> we all make mistakes and go down incorrect tech paths from time to time :)
>
> Best,
>
> Nathan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Daevid asked the list for a an app that facilitated SVN/CVS, and when nobody
provided options, he crafted a solution of his own and then offered it back
to the list.
Please, let's keep to the content of the thread, or if you have some
unprompted feedback, why not provide that off-list. The critical commentary
would likely be better received. Additionally, the commentary has taken all
focus from a resource he was trying to offer to the community, which isn't
good for archiving purposes, either.
Thanks for the resource, Daevid.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
m, or the event parser, whatever you're
comfortable with) to grab the info from the elements of second page and use
the data as you need to in the generation of the first page. Without much
work, you could even set up a short-term cache of the first page just so it
renders quickly most of the time.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
p://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I'd avoid the target attribute, as it's deprecated in the strict versions
(and I'd avoid it for the reasons Andrew mentioned.)
For reading, here's a nice resource to start with:
http://www.456bereastreet.com/archive/200603/the_target_attribute_and_opening_new_windows/
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Fri, May 14, 2010 at 4:49 PM, Ashley Sheridan
wrote:
> On Fri, 2010-05-14 at 13:18 -0400, Adam Richardson wrote:
>
> On Fri, May 14, 2010 at 8:59 AM, Andrew Ballard wrote:
>
> > On Thu, May 13, 2010 at 5:18 PM, Ashley Sheridan
> > wrote:
> > > On Thu, 2010-0
2010/5/19 MSc. Carlos Pollán Estrada
> Hola colegas.
> Neceseto saber con qué función de PHP (si la hay) puedo optener la versión
> del MySQL que estoy utilizando.
> Gracias de antemano.
>
> Salu2
>
>
>
> MSc. Carlos Pollán Estrada.
> Esp. Ciencia
on($message){ return strtoupper($message);}, $when =
Interceptor::BEFORE);
$obj->greet("Hello");
// outputs "HELLO"
Sorry, I didn't use inheritance in any of my work. That said, there are
some php aspect oriented projects out there and perhaps their code could
provide some clues as to how to get what you're looking for:
http://code.google.com/p/php-aop/
http://www.aophp.net/
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
$question1 .'';
break;
case '2':
echo '' .
$question2 .'';
break;
case '3':
echo '' .
$question3 .'';
break;
case '4':
echo '' .
$question4 .'';
break;
case '5':
echo '' .
$question5 .'';
break;
case 'Results':
echo 'You results are: Go to the
home page and do the test again!';
break;
default:
echo 'We received an invalid
option';
break;
}
} else {
default:
echo 'Welcome to PHP simple
test, Please click on Start button
to begin you test.
Click Here to Begin!';
}
OR, disable E_NOTICE level warnings (the corresponding array value for an
undefined index will be null):
http://php.net/manual/en/errorfunc.configuration.php
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
ing that
you can talk someone into a hosting upgrade :)
For reference, here's a javascript implementation of AES I've used in the
past (there's a port of the corresponding PHP to use linked on the same
page):
http://www.movable-type.co.uk/scripts/aes.html
But, again, I hope you c
m1 = $_POST['form1'];
> $form2 = $_POST['form2'];
>
> echo "Start Time " . $start_time . "";
> echo "End Time " . $end_time . "";
> echo "Semester " . $semester . "";
> echo "Start Location " . $form1 . "";
> echo "End Location " . $form2 . "";
>
> ?>
>
> I get values for start_time, end_time and semester, but not the last two
> values. What have I done wrong here?
>
> Thanks for your help.
>
> Alice
>
>
> _
> The New Busy is not the old busy. Search, chat and e-mail from your inbox.
>
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Where are you setting the variables $start and $end?
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
ibe, visit: http://www.php.net/unsub.php
>
>
Is that last part correct, or did you miscopy? It appears there's no
opening bracket on this if:
if (!($result = @ mysql_query ($query, $db)))
Which would mean that only the next statement is impacted by the if. And,
the next statement, which calls your displayEvents() function, is only
called if the query is unsuccessful.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
better
understanding of what works:
OS Commerce Module:
http://addons.oscommerce.com/info/4556
MyPHPGoogleCheckout:
http://code.google.com/p/myphpgooglecheckout/
Zen Cart Module:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=314
Google's documentation is pretty pathetic in this case.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
arrays to pass in the patterns and replacements,
then one array item could later be replaced by another (see comment and
example on this page by info at gratisrijden dot nl):
http://php.net/manual/en/function.preg-replace.php
If that's the case, you have to carefully structure the order of the array
items so-as to preclude one replacement having the opportunity to override a
subsequent replacement.
Sorry if I misunderstood. You might want to create a simple example of code
showing what you're working through.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
> Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Because the lower range of UTF-8 matches the ascii character set
e a completely new
component is being used.
Outside of PHP (Scala, Objective C, F#, etc.), it seems like inheritance is
advocated much less frequently, due to the power and simplicity of
composition (e.g., change behavior at runtime, requires less knowledge of
the parent classes.)
Quoting the Head
On Thu, May 27, 2010 at 1:14 PM, la...@garfieldtech.com <
la...@garfieldtech.com> wrote:
> On 5/27/10 12:10 PM, Adam Richardson wrote:
>
> Larry,
>>
>> I've thought about this very issue before (java developers sometimes
>> lament
>> this issue, too
most
> appropriate,
> > and/or the architecture is not directly under your control. And, as I
> said
> > at the beginning, I tend to error on the side of duplication. I just try
> to
> > never put myself in that situation :)
> >
> > Adam
> >
> > --
On Thu, May 27, 2010 at 4:13 AM, Andre Polykanine wrote:
> Hello Adam,
>
> You did understand me exactly and perfectly).
> Ordering arrays is a good idea but I don't know how to do that
> exactly.
> For instance, there's a cypher called Polybius square. You write in
&
On Thu, May 27, 2010 at 3:59 PM, Waynn Lue wrote:
> I've seen @inheritDoc used in Java before, though I'm not sure about
> the php support.
>
> Waynn
>
> On 5/27/10, Adam Richardson wrote:
> >>
> >>
> >> > Larry,
> >> >
>
sn't
> >> found. Try changing it to include_once() and see if you can _any_
> > output.
> >
> > We struggled with this as well. require terminates the process without
> > any indication of why it stopped. No error, no exception, not even a
> > whimper.
that another topic in Javascript or something else?
>
> Alice
>
>
> > --
> > ---
> > http://sperling.com http://ancientstones.com http://earthstones.com
>
> The New Busy is not the old busy. Search, chat and e-mail from your inbox.
> Get started.
&g
>
$childclass = end(explode('\', $class_name_with_ns));
also is it possible to get the name() into the static variable if only
static method is called?
Not sure I understand this part.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
that "keys are stored in encrypted format and that key- encrypting
keys are stored separately from data- encrypting keys.")
However, I'd strongly recommend letting a payment gateway do the heavy
lifting. You let the payment gateway store the credit card details, and
when you want to process another transaction for a visitor, you use the id
for the visitor that's stored in your DB (if they already have set up an
account) to process the request.
For example, this type of scheme is documented at Rackspace (PDF):
http://cloudsites.rackspacecloud.com/index.php/Can_I_host_a_PCI_compliant_site_on_Cloud_Sites%3F
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
be, visit: http://www.php.net/unsub.php
>
>
$re1 = '/^[a-zA-Z]+$/';
$re2 = '/^[a-zA-Z ]+$/';
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
dy too
>curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // get the response
> as a string from curl_exec(), rather than echoing it
>curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); // don't use a
> cached version of the url
>//curl_setopt($ch, CURLOPT_TIMEOUT, 4);
>$returnData = curl_exec($ch);
>if (curl_errno($ch)) print "\n\ncURL error:
> ".curl_error($ch)."\n\n";
>$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
>curl_close($ch);
>
>if ( $httpcode == "200" )
>{
>$PASS = true;
>}
>
>if ($OPTION['debug']) echo "\nDART API JSON-RPC POST method ".(
> ($PASS) ? "SUCCESSFULL" : "FAILED" ).".\n\n";
>
>if ($PASS)
>return json_decode($returnData,true);
>//return $returnData;
>else
>exit();
> }
> ?>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Thanks for sharing. It's nice to see the example code for working with SSL
using curl.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
Use the constant() function:
echo constant( $my . $const );
http://www.php.net/manual/en/function.constant.php
-Original Message-
From: Tanel Tammik [mailto:keevit...@gmail.com]
Sent: Friday, June 04, 2010 3:08 PM
To: php-general@lists.php.net
Subject: [PHP] constant from variable
Hi,
n't own the PHP book, I've
reviewed it at the book store and recommend it to some friends who have
taken up PHP, too, and they've been very pleased with the resource.
I hope you have an enriching, enjoyable experience as you learn PHP.
Adam
--
Nephtali: PHP web framew
rally prove true, and
I believe that it is generally a better approach to avoid storing images in
a DB. However, I hope we still take the opportunity to make sure the
numbers back up the generalized approach in the specific case at hand, and
we're addressing the true bottlenecks in ou
On Sun, Jun 6, 2010 at 10:39 PM, Raymond Irving wrote:
> Hello,
>
> I'm experiencing another issue when attempting to use
> DOMDocument::loadXML()
> to load the following HTML code:
>
> $html = '
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
>
>
>