REST is the new SOAP. Yaml is the new XML. I'm guessing this news
just hasn't made it into any PHP frameworks yet.
that's a very oversimplifying statement.
REST is good for small requests and stuff but there are cases when SOAP
is needed (at least in cases when you have to connect to some
On Thu, 2008-02-14 at 09:29 +0100, Zoltán Németh wrote:
and by the way, symfony has YAML configuration files and a plugin for
REST services.
and Chisimba does YAML configs in the blog module, REST, SOAP and
XML-RPC services as well as a whole whack of XML-ish things.
--Paul
--
Hi,
i still got no answer. Maybe i did not see it, altough i'm trying to read any
single post. But may be i overlooked it due to high traffic. So now i have
set up a filter (hopefully) copying answers to another folder.
Here is the question: Is it possible to disable validation when using
Pauau schreef:
I have a class method which declares a static variable within.However,
across all the instances of the class, the current value on that variable
replicates. Is it the intended functionality? Example: class A {public
function foo() {static $i=0;$i++;
Nathan Nobbe schreef:
On Feb 13, 2008 8:44 PM, Nirmalya Lahiri [EMAIL PROTECTED] wrote:
--- Pauau [EMAIL PROTECTED] wrote:
I have a class method which declares a static variable
within.However,
across all the instances of the class, the current value on that
variable
replicates. Is it the
On Mon, February 11, 2008 1:53 pm, Per Jessen wrote:
Paul Scott wrote:
Either that or in a db, but if you are already in clustering, you
probably have a memcached instance already right?
Am I right in thinking that memcached will replicate session
information
across a cluster, and that
Ritesh Nadhani schreef:
On Feb 13, 2008 6:03 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, February 13, 2008 4:28 am, Ritesh Nadhani wrote:
I have a situation where I have to copy something like 1000 files one
by one to a temporary folder. Tar it using the system tar command and
let the
On Fri, 8 Feb 2008, Per Jessen wrote:
Hiep Nguyen wrote:
let say that user searched and found 10 records,
in the meantime, other users may change any of these 10 records,
so if we saved mysql statement and re-run mysql statement again, the
result might be different. to prevent this problem,
Hi,
I am using phpmailer currently to send email from my applications. My
ISP is restricting the usage of email without SSL/TLS and my SMTP
connections have started to fail...
Any hints on the best approach to send email from php appplciations ?, I
wish I could use my standard gmail/yahoo
julian wrote:
I am using phpmailer currently to send email from my applications. My
ISP is restricting the usage of email without SSL/TLS and my SMTP
connections have started to fail...
Any hints on the best approach to send email from php appplciations ?,
I think the best way is to have a
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Nathan Nobbe schreef:
what you are using is potentially not what you think it is. you are
using
a 'static variable' which is not a static class member.
actually it pretty much *is* the same - the static class member
--- Hiep Nguyen [EMAIL PROTECTED] wrote:
On Fri, 8 Feb 2008, Per Jessen wrote:
Hiep Nguyen wrote:
let say that user searched and found 10 records,
in the meantime, other users may change any of these 10 records,
so if we saved mysql statement and re-run mysql statement again,
the
On Thu, Feb 14, 2008 at 9:23 AM, Hiep Nguyen [EMAIL PROTECTED] wrote:
On Fri, 8 Feb 2008, Per Jessen wrote:
Hiep Nguyen wrote:
let say that user searched and found 10 records,
in the meantime, other users may change any of these 10 records,
so if we saved mysql statement and re-run
Am 2008-02-13 04:28:46, schrieb Ritesh Nadhani:
Now while the copy is going on at server, I want to show some progress
to the user at client side. Most of the tutorial I found on net was
You can use a resized window (JS required) which automaticaly
refresh all 2 seconds and show the status of
Nathan Nobbe schreef:
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Nathan Nobbe schreef:
what you are using is potentially not what you think it is. you are
using
a 'static variable' which is not a static class member.
actually it pretty much *is* the same - the
Jochem Maas wrote:
Ritesh Nadhani schreef:
On Feb 13, 2008 6:03 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, February 13, 2008 4:28 am, Ritesh Nadhani wrote:
I have a situation where I have to copy something like 1000 files one
by one to a temporary folder. Tar it using the system tar
On Thu, Feb 14, 2008 at 9:50 AM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Nathan Nobbe schreef:
what you are using is potentially not what you think it is. you are
using
a 'static variable' which is not a static
On Thu, Feb 14, 2008 at 12:10 PM, Eric Butera [EMAIL PROTECTED] wrote:
On Thu, Feb 14, 2008 at 9:50 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED]
wrote:
Nathan Nobbe schreef:
what you are using is potentially not what you
Thanks all.
I will work on all the options and let you know how it went :)
On Thu, Feb 14, 2008 at 10:37 AM, Nathan Rixham [EMAIL PROTECTED] wrote:
Jochem Maas wrote:
Ritesh Nadhani schreef:
On Feb 13, 2008 6:03 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, February 13, 2008 4:28
Nathan Nobbe wrote:
On Thu, Feb 14, 2008 at 12:10 PM, Eric Butera [EMAIL PROTECTED] wrote:
On Thu, Feb 14, 2008 at 9:50 AM, Nathan Nobbe [EMAIL PROTECTED]
wrote:
On Thu, Feb 14, 2008 at 6:37 AM, Jochem Maas [EMAIL PROTECTED]
wrote:
Nathan Nobbe schreef:
what you are using is potentially
On Thu, February 14, 2008 4:24 am, Siegfried Gipp wrote:
i still got no answer. Maybe i did not see it, altough i'm trying to
read any
single post. But may be i overlooked it due to high traffic. So now i
have
set up a filter (hopefully) copying answers to another folder.
Here is the
On Wed, February 13, 2008 8:19 pm, Nathan Nobbe wrote:
On Feb 13, 2008 6:52 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Wed, February 13, 2008 4:11 pm, Nathan Nobbe wrote:
You may or may not want to file a bug report with curl itself,
depending on whether PHP is doing the stream file
On Thu, February 14, 2008 11:10 am, Eric Butera wrote:
Just FYI the static keyword was quite popular in PHP4 for the
singleton pattern. You could do something like:
I have used and will continue to use the static keyword in functions,
and will most likely never use a class in PHP...
If a
On Mon, February 11, 2008 1:30 pm, mike wrote:
On 2/11/08, Per Jessen [EMAIL PROTECTED] wrote:
Make sure all requests from the same client go to the same server.
This
is often done by IP-address.
isn't that an archaic piece of advice?
It can help reduce the amount of cross-server data, but
On Mon, February 11, 2008 6:34 am, John Papas wrote:
I need to open a remote file with file() and I would like to put it
inside a try-catch but as far as I can tell file() does not raise an
exception if it fails. The following code:
try {
$data =
If the recipient is gmail, then you need to use \r\n because Gmail is
following in the Windows way of ignoring standards... :-(
On Mon, February 11, 2008 6:10 am, Angelo Zanetti wrote:
Hi guys,
I am making email text based on some fields the user fills in and then
email
the admin the
Did you Google for PHP MySQL photo album or PHP MySQL slideshow???
On Thu, February 14, 2008 2:12 pm, Bruce Gilbert wrote:
can anyone reccomend an open source PHP/MySQL based image viewing
application. I am looking to store the images in MySQL and have a
viewer on the page with the option to
On Thu, 2008-02-14 at 15:21 -0500, Eric Butera wrote:
On Thu, Feb 14, 2008 at 3:07 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, February 14, 2008 11:10 am, Eric Butera wrote:
Just FYI the static keyword was quite popular in PHP4 for the
singleton pattern. You could do something
2008. 02. 14, csütörtök keltezéssel 14.07-kor Richard Lynch ezt írta:
On Thu, February 14, 2008 11:10 am, Eric Butera wrote:
Just FYI the static keyword was quite popular in PHP4 for the
singleton pattern. You could do something like:
I have used and will continue to use the static
On Mon, February 11, 2008 9:27 am, Emil Edeholt wrote:
Thanks. Sure, I know how to escape and filter the input.. But since
not
all my sites use PDO yet, and I use some external code it would be a
good idea to also use an sql injection scanner.
Scanning for SQL injection is like a blacklist
can anyone reccomend an open source PHP/MySQL based image viewing
application. I am looking to store the images in MySQL and have a
viewer on the page with the option to click to the next image and
back, possibly with the display of an enlarged image as well as the
option to click on thumbnails
On Sun, February 10, 2008 9:09 pm, Robert Cox wrote:
Is it possible to use the $_SERVER['PHP_AUTH_USER']; construct in a
URL
forwarded site? I am trying to find the authorised user id so that I
can
access an SQL database with it. Anyone got some ideas?
If you do a Location: with a FULL
On Thu, February 14, 2008 8:34 am, julian wrote:
I am using phpmailer currently to send email from my applications. My
ISP is restricting the usage of email without SSL/TLS and my SMTP
connections have started to fail...
Any hints on the best approach to send email from php appplciations ?,
On Mon, February 11, 2008 3:07 pm, mike wrote:
actually right now i have an issue on my system i'm working on
resolving - and it does create some poor experience for users. when
one of my webservers is taken out of the pool (softly due to a
healthcheck failure, not via reboot) those clients
On Thu, Feb 14, 2008 at 3:07 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, February 14, 2008 11:10 am, Eric Butera wrote:
Just FYI the static keyword was quite popular in PHP4 for the
singleton pattern. You could do something like:
I have used and will continue to use the static
On Sun, February 10, 2008 11:52 am, Per Jessen wrote:
nihilism machine wrote:
$ret = mysql_result($r, 0);
mysql_free_result($r);
if ($this-auto_slashes) return stripslashes($ret);
else return $ret;
}
what is $ret, an array?
No, it's a mysql result object.
No, it's a single field
$ford = mssql_query(SELECT name FROM Table GROUP BY name);
while($mustang = mssql_fetch_array($ford))
{
echo $mustang['name'] . /n;
}
OS 2003 Server
PHP 5.2.5
Apache 2.2.8
SQL 2000
For some reason it is NOT clicking what I am missing here.
Second set of eyes please
--
PHP General Mailing
On Thu, Feb 14, 2008 at 4:00 PM, [EMAIL PROTECTED] wrote:
$ford = mssql_query(SELECT name FROM Table GROUP BY name);
What do you see when you replace the above line with this?
$ford = mssql_query(SELECT name FROM Table GROUP BY name) or
die(mssql_get_last_message());
--
/Dan
Daniel P.
At any rate, just seeing this tells me that you've got a real mess on
your hands...
Or you could say, You're going to have some fun cleaning that.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software hosted for you - no
installation, no maintenance, new
On Sun, February 10, 2008 7:45 am, Jakub wrote:
is it possible to make something like gzipped echo?.
My idea was:
$gzOut = gzopen('php://output','w');
but it fails with an error: bWarning/b: gzopen(php://output) [a
href='function.gzopen'function.gzopen/a]: could not make seekable -
Column 'location_city.dst' is invalid in the select list because it is not
contained in either an aggregate function or the GROUP BY clause.
Not fimilar with MSSQL to be honest.
On Thu, Feb 14, 2008 at 4:00 PM, [EMAIL PROTECTED] wrote:
$ford = mssql_query(SELECT name FROM Table GROUP BY
On Mon, February 11, 2008 9:59 am, Eric Butera wrote:
On Feb 11, 2008 10:44 AM, Per Jessen [EMAIL PROTECTED] wrote:
Eric Butera wrote:
I like it from a coding point of view (it's neat and elegant),
but I
don't think it achieves anything else than my initial suggestion
of
using
On Sun, February 10, 2008 12:12 pm, nihilism machine wrote:
public function select_one($sql) {
if ($this-auto_slashes) {
return stripslashes($ret);
If you have to call stripslashes() on data coming FROM MySQL, then you
have really messed up...
You've
Sweet Mother it just clicked.
I got it thank you dan.
On Thu, Feb 14, 2008 at 4:00 PM, [EMAIL PROTECTED] wrote:
$ford = mssql_query(SELECT name FROM Table GROUP BY name);
What do you see when you replace the above line with this?
$ford = mssql_query(SELECT name FROM Table GROUP BY name)
On 2/14/08, Richard Lynch [EMAIL PROTECTED] wrote:
There is some kinda signal you can send to Apache to GRACEFULLY die out.
New connections are refused, but old ones are finished and then the
child exits.
http://apache.org/
There is a graceful restart for sure. Perhaps it's just
I would use date and mktime, personally, as strtotime often does
things I consider strange
On Sun, February 10, 2008 5:46 am, Ron Piggott wrote:
I am trying to calculate what was the date 18 months ago. When I give
the command:
$18_months_ago = strtotime(-18 months);
It comes back with:
Hi people,
I want a class that allows create objects that get the information
consulting the DB. So, I am thinking to do something like this:
class element {
public __construct($id,$type = 'id') {
switch($type) {
case 'id':
$where = sprintf( id = %d ,$id);
break;
case
On Thu, Feb 14, 2008 at 4:13 PM, [EMAIL PROTECTED] wrote:
Column 'location_city.dst' is invalid in the select list because it is not
contained in either an aggregate function or the GROUP BY clause.
Not fimilar with MSSQL to be honest.
Yes, MS SQL is strict and will not allow you to return
Richard Lynch wrote:
If a website is complicated enough to need a class hierarchy, then
something is wrong in your Design. :-) :-) :-)
I don't think anything ever *needs* a class heirarchy, but I wouldn't
say using one indicates a design flaw.
Classes themselves are an invaluable tool for
Greetings,
I am getting an error when I am trying to upload a PDF file through a
script.
When I do a print_r($_FILES) I get the following:
Array
(
[userfile] = Array
(
[name] = document.pdf
[type] =
[tmp_name] =
[error] = 2
On Fri, February 8, 2008 11:54 am, Zoltán Németh wrote:
2008. 02. 8, péntek keltezéssel 12.46-kor Daniel Brown ezt Ãrta:
On Feb 8, 2008 12:35 PM, Richard Lynch [EMAIL PROTECTED] wrote:
I knew it. After silence, Lynch comes back with a vengeance
three hours before the week's stats
Richard Lynch wrote:
On Sun, February 10, 2008 9:09 pm, Robert Cox wrote:
Is it possible to use the $_SERVER['PHP_AUTH_USER']; construct in a
URL
forwarded site? I am trying to find the authorised user id so that I
can
access an SQL database with it. Anyone got some ideas?
If you do a
On Sun, February 10, 2008 9:31 am, Jochem Maas wrote:
Larry Garfield schreef:
http://www.php.net/pdo
All the cool kids are doing it.
not true - some of them use firebird ;-)
And some have figured out that PDO does not quite live up to its
promise (yet) and needs some more work...
opendir/readdir does not promise to deliver the files in any
particular order, no matter what it seems to do on any given day...
Put them in an array and sort() if it's a small list of files.
Or use exec and ls -als or somesuch for a large list of files.
Or...
glob *might* be documented to do
On Thu, February 14, 2008 4:28 pm, Stut wrote:
Richard Lynch wrote:
If a website is complicated enough to need a class hierarchy, then
something is wrong in your Design. :-) :-) :-)
I don't think anything ever *needs* a class heirarchy, but I wouldn't
say using one indicates a design flaw.
On Thu, February 7, 2008 8:35 pm, Andrés Robinet wrote:
1 - I believe the fact that we don't encode (read compile) our
scripts is
tightly related to the fact that we don't have a bytecode interpreter
(say JIT
compiler or something?) bundled into PHP.
Er.
PHP has a bytecode interpreter
On Wed, February 6, 2008 11:13 am, Martin Marques wrote:
Nathan Nobbe escribió:
On Feb 6, 2008 6:13 AM, Martin Marques [EMAIL PROTECTED]
wrote:
I got an update from tzdata on a Debian server due to a daylight
saving
change here in Argentina.
The problem is that, even when the system sees
On Thu, February 14, 2008 5:14 pm, Stut wrote:
I'm only guessing, but instead of classes I would expect you to have a
fair few files that contain lots of functions, correct?
No, just one file with a handful to a dozen functions, really...
If the site is designed correctly, each page is doing
Richard Lynch wrote:
On Thu, February 14, 2008 4:28 pm, Stut wrote:
Richard Lynch wrote:
If a website is complicated enough to need a class hierarchy, then
something is wrong in your Design. :-) :-) :-)
I don't think anything ever *needs* a class heirarchy, but I wouldn't
say using one
On Feb 12, 2008 7:46 PM, Shawn McKenzie [EMAIL PROTECTED] wrote:
Can anyone recommend a preferably visual DB design tool? I normally use
mysql, but one that covered several types wood be cool. I'm on Linux,
so the new mysql workbench is a dud. I used it in an alpha or prior
version and it
Pastor Steve wrote:
Greetings,
I am getting an error when I am trying to upload a PDF file through a
script.
When I do a print_r($_FILES) I get the following:
Array
(
[userfile] = Array
(
[name] = document.pdf
[type] =
[tmp_name] =
Hi all,
CakePHP is a new tool for me, I never worked on any framework
before..! To learn about CakePHP I already read
http://manual.cakephp.org pages and copy the code sample from that
manual. I installed cake in /var/www/html directory. In my Apache
server webroot is /var/www/html. Now my
Nirmalya Lahiri wrote:
CakePHP is a new tool for me, I never worked on any framework
before..! To learn about CakePHP I already read
http://manual.cakephp.org pages and copy the code sample from that
manual. I installed cake in /var/www/html directory. In my Apache
server webroot is
I've got a PHP application that pulls in data from a mySQL database. The data
is a series of wine producers, and many of them have special foreign characters
over the a's and o's.
When I go and view the data from my database using myPHPAdmin, the characters
look fine, but when I pull the
Hello,
on 02/14/2008 12:34 PM julian said the following:
I am using phpmailer currently to send email from my applications. My
ISP is restricting the usage of email without SSL/TLS and my SMTP
connections have started to fail...
Any hints on the best approach to send email from php
On Thu, 2008-02-14 at 18:47 -0800, Rob Gould wrote:
I've got a PHP application that pulls in data from a mySQL database. The
data is a series of wine producers, and many of them have special foreign
characters over the a's and o's.
When I go and view the data from my database using
On Thu, 2008-02-14 at 23:59 -0500, Robert Cummings wrote:
On Thu, 2008-02-14 at 18:47 -0800, Rob Gould wrote:
I've got a PHP application that pulls in data from a mySQL database. The
data is a series of wine producers, and many of them have special foreign
characters over the a's and
On Thu, 2008-02-14 at 16:17 -0600, Richard Lynch wrote:
And some have figured out that PDO does not quite live up to its
promise (yet) and needs some more work...
I am finding this out the hard way, but just with MySQL and PostgreSQL
support (including MySQLi).
Portable, kinda, stable, not
Am Donnerstag, 14. Februar 2008 21:01:42 schrieb Richard Lynch:
You may want to try using http://php.net/exec to run your command line
tool and ignore the PHP one, if it won't let you turn off validation.
Yes, that's what i'm going to do for now. But that won't help if an internet
provider
Am Donnerstag, 14. Februar 2008 21:01:42 schrieb Richard Lynch:
You could also consider filing a Feature Request in
http://bugs.php.net/
Well, the bug reporting page has a bug. A graphical captcha is needed, but
there is no such captcha. Repetitive loading does not change this.
From an
Does anyone know if there's a way to send XML to MSIE7 and avoid
having MSIE mangle the XML with CSS to display it pleasantly as HTML?
I'm building a PHP web service that returns XML to a desktop app that
uses the MSIE7 toolbox, and so it is not able to interpret the XML due
to this
Brian Dunning wrote:
Does anyone know if there's a way to send XML to MSIE7 and avoid
having MSIE mangle the XML with CSS to display it pleasantly as HTML?
Isn't it enough to send it with Content-Type: application/octet-stream ?
/Per Jessen, Zürich
--
PHP General Mailing List
72 matches
Mail list logo