Hi,
Shouldn't it be:
$item_amount_in_store = 223;
$update_amount = 7;
$item_amount_in_store += $update_amount;
$update_amoint_in_store is now 227;
The 3rd line seems wrong as you didn't use the same variable.
--
Raphaël Khaïat
06.72.89.57.29
On Mon, Jun 24, 2013 at 1:59 PM, Karl-Arne Gjersøyen
On 24 Jun 2013, at 12:59, Karl-Arne Gjersøyen wrote:
> $item_amount_in_store = 223;
> $update_amount = 7;
> $update_item_amount_in_store += $update_amount;
> $update_amoint_in_store is now 227;
>
> Why? That should be 230!
Because you're using $item_amount_in_store and $update_item_amount_in_st
On Tue, Apr 2, 2013 at 3:35 PM, Mark wrote:
> Hi Bastien,
>
> That is indeed getting very close to what i was looking for. Thanks a lot!
>
I've just finished up a project using simpleSamlPhp.
http://simplesamlphp.org/
There's quite a few modules, but I've only used the SAML one, so YMMV.
-nat
Hi Bastien,
That is indeed getting very close to what i was looking for. Thanks a lot!
On Tue, Apr 2, 2013 at 9:46 PM, Bastien wrote:
> Check out
> http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php from
> Phil sturgeon.
>
> Bastien Koert
>
> On 2013-04-02, at 3:41 PM, Mark
Check out
http://philsturgeon.co.uk/blog/2011/09/ninjauth-social-integration-php from
Phil sturgeon.
Bastien Koert
On 2013-04-02, at 3:41 PM, Mark wrote:
> Hi Andy,
>
> To be honest, that's also not what i'm looking for, but might be a
> good starting point to extend on. Depends on how you
Hi Andy,
To be honest, that's also not what i'm looking for, but might be a
good starting point to extend on. Depends on how you made it :) I cant
promise that i'ill be working on it. I might be for some future
project in my company but it might very well not happen as well.
On Tue, Apr 2, 2013 a
I started building one at my last job, though it was part of a framework I
was developing. I knew I was going to need to authenticate against both
LDAP and old-fashioned database username/md5-password columns. (Ah, legacy
user databases.)
If it would be useful, I could dig out what I had and try
On Tue, Apr 2, 2013 at 12:27 AM, Sorin Badea wrote:
> Hi Mark,
> I think a simple Google search would be faster. Anyway, an unified way for
> 3rd party authentication doesn't exist from my knowledge, but for Persona
> you could use the sample from mozilla github account
> https://github.com/mozill
On Tue, Apr 2, 2013 at 12:25 AM, David OBrien wrote:
>
>
>
> On Mon, Apr 1, 2013 at 5:26 PM, Mark wrote:
>>
>> Hi,
>>
>> I stumbled upon this payment library: http://ci-merchant.org/ which
>> abstracts the different payment backends away and exposes a new easy
>> to use interface for the app deve
Hi Mark,
I think a simple Google search would be faster. Anyway, an unified way for
3rd party authentication doesn't exist from my knowledge, but for Persona
you could use the sample from mozilla github account
https://github.com/mozilla/browserid-cookbook .
Good luck,
Sorin!
On Tue, Apr 2, 2013
On Mon, Apr 1, 2013 at 5:26 PM, Mark wrote:
> Hi,
>
> I stumbled upon this payment library: http://ci-merchant.org/ which
> abstracts the different payment backends away and exposes a new easy
> to use interface for the app developer to use. Thus making it very
> easy to use different payment pro
On Sun, Feb 10, 2013 at 12:19 AM, Stephen wrote:
> On 13-02-09 04:11 PM, Matijn Woudt wrote:
>
>> On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling wrote:
>>
>>
>> Jonathan:
>>
>> No offense to your routine, but you may want to review this:
>>
>> http://sperling.com/php/**authorization/log-on.php
> Most likely they end up in the logs instead of the screen. Try check
> the logs (on linux, they are usually in /var/log/apache).
This is being hosted on 1and1.com, so I don't think I direct access to
those directories, but I have found a 'logs' folder off of the root.
Looking through that I see
On Sat, Feb 9, 2013 at 10:08 PM, Jonathan Eagle wrote:
> My 'display_errors' is "ON" and my 'error_reporting' is "22517". I'm
> not sure what that means but it looks as if I should be getting error
> messages somewhere.
>
> Jonathan
>
>
Most likely they end up in the logs instead of the screen. T
On Sat, Feb 9, 2013 at 9:59 PM, Tedd Sperling wrote:
> On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote:
>
> > I'm having a problem with a very straightforward routine;
>
>
> Jonathan:
>
> No offense to your routine, but you may want to review this:
>
> http://sperling.com/php/authorization/log-
My 'display_errors' is "ON" and my 'error_reporting' is "22517". I'm
not sure what that means but it looks as if I should be getting error
messages somewhere.
Jonathan
On 2/9/2013 4:02 PM, Stuart Dallas wrote:
> On 9 Feb 2013, at 21:00, Jonathan Eagle wrote:
>
>> Stuart,
>>
>> Thanks for getti
Matijn,
Thanks for the suggestion. Your suspicions were correct. I am now
tracking down the culprit.
Jonathan
On 2/9/2013 2:34 PM, Matijn Woudt wrote:
> On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle wrote:
>
>>
>>
>> I'm having a problem with a very straightforward routine; one that works
>>
On 9 Feb 2013, at 21:00, Jonathan Eagle wrote:
> Stuart,
>
> Thanks for getting back to me you were right - I had misread the
> headers_sent() Return Value statement. When I went back and tested
> it turns out that the 'initialize' routine is somehow prematurely
> sending output out. So,
Stuart,
Thanks for getting back to me you were right - I had misread the
headers_sent() Return Value statement. When I went back and tested
it turns out that the 'initialize' routine is somehow prematurely
sending output out. So, now I have to figure out which of the ten
called routines an
On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote:
> I'm having a problem with a very straightforward routine;
Jonathan:
No offense to your routine, but you may want to review this:
http://sperling.com/php/authorization/log-on.php
If anyone finds an error, please post.
Cheers,
tedd
__
On 9 Feb 2013, at 19:00, Jonathan Eagle wrote:
> I'm having a problem with a very straightforward routine; one that works
> in one PHP installation but not on the other. The only difference that I
> can see between the working version and the non-working version is that
> the one that doesn't wor
On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle wrote:
>
>
> I'm having a problem with a very straightforward routine; one that works
> in one PHP installation but not on the other. The only difference that I
> can see between the working version and the non-working version is that
> the one that
oh my bad:)! there is a cool solution,I forgot the blank page!:) yep!
solved:)
window.open('download.php', '_blank' );
now I can count up,and download:)
$(".button").click(function(){
var id=$(this).attr('id');
var dataString = 'id='+ id ;
$.ajax({
type: "POST",
url: "download_number.
Thanks Tedd,
ajax works fine now,when submiting a button it will show the number and it
doesn't have any problem
$(function() {
$(".button").click(function(){
var id=$(this).attr('id');
var dataString = 'id='+ id ;
$.ajax({
type: "POST",
url: "download_number.php",
data: dataString,
On Oct 14, 2012, at 7:41 AM, Negin Nickparsa wrote:
> I wanted to refresh the download count when clicking the button first is it
> possible?
Yes, it is possible.
The following is an example of a server-side php script refreshing a Web page
via a javascript client-side action:
http://php1.net/
> I have read in some places on the net that PHP is not suitable for WebSockets
> due to it's nature. That WebSockets are designed for long running
> threads/processes which each maintain multiple event-driven connections,
> whereas PHP was designed around the short-lived single process procedur
On Mon, Aug 13, 2012 at 9:01 AM, Jim Lucas wrote:
> On 8/12/2012 12:06 PM, BRIAN M. FITZPATRICK wrote:
>>
>> I've looked all over the net and I have been unable to find a concrete
>> answer to this question. I am about to start development on a web
>> application that will need to provide real-tim
On 8/12/2012 12:06 PM, BRIAN M. FITZPATRICK wrote:
I've looked all over the net and I have been unable to find a concrete answer
to this question. I am about to start development on a web application that
will need to provide real-time updates of data to user's browsers. WebSockets
are ideal f
>> [snip] Is this list less busy than it used to be? Or is it just me? When I
>> used to be on this list ISTR sometimes being overwhelmed by email. [/snip]
>
> One other factor is Stackoverflow
I have no idea, but I assume ^^^ Jay is right. Even if/when I am the total
noob, why post here whe
[snip] Is this list less busy than it used to be? Or is it just me? When
I used to be on this list ISTR sometimes being overwhelmed by email. [/snip]
One other factor is Stackoverflow - there is a tremendous amount of
traffic there for PHP related questions. I have been a subscriber to
this li
Hi,
> My guess: The ecosystem has grown. Now much stuff, that were former
> (probably) asked here, is gone to more specific lists, like ZFs, Symfony,
> and so on. Maybe it's even already solveable via Twitter ;)
It would be nice if everyone had grown to be much better with PHP!
Though I think I'v
Hi,
Just realize, that this is _not_ the internals list. :X There I only read.
Yes, I could send mails here :) We'll see
My guess: The ecosystem has grown. Now much stuff, that were former
(probably) asked here, is gone to more specific lists, like ZFs, Symfony,
and so on. Maybe it's even already
On Wed, Jul 4, 2012 at 6:04 AM, RGraph.net support wrote:
> Hi,
>
>> https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE
>
> Yikes. That's a littled bit worrying. Or does it really mean that
> everyone is getting much better with PHP? :-)
>
> --
> Richard, RGra
Hi,
> https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE
Yikes. That's a littled bit worrying. Or does it really mean that
everyone is getting much better with PHP? :-)
--
Richard, RGraph.net support
RGraph: JavaScript charts for your website
http://www.rgr
Well, I think you are right. Take a look at this graph of the number of
messages posted starting in 1998. The stackoverflow.org effect?
messages -
https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE
Erwin
2012/7/4 RGraph.net support
> Hi,
>
> Is this list
On Thu, Jun 28, 2012 at 7:23 PM, Daevid Vincent wrote:
> Is there a way to customize the 'Username' and 'Password' strings in a 401
> auth dialog box?
>
> I want to change mine to say "Webmaster ID" and "Authentication Key".
>
> http://php.net/manual/en/features.http-auth.php
>
>
This http://www
we got off list, without meaning to, it seems.
Here are the last few posts in the thread:
>
>>> On Fri, Jun 1, 2012 at 12:46 AM, Govinda
>>> wrote:
> Perhaps you should spend some time looking for a better text editor
> for your OS. :) When the current tools I use does not give
On Thu, May 31, 2012 at 11:17 PM, Govinda wrote:
>>
>> You need to get better tools. I found this with Notepad++ for Windows
>> searching "case" within *.php files filter within the root directory
>> of the extracted zip/tarball:
>>
>> H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPur
>
> You need to get better tools. I found this with Notepad++ for Windows
> searching "case" within *.php files filter within the root directory
> of the extracted zip/tarball:
>
>
> H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPurifier\AttrDef\CSS\Font.php
> (6 hits)
> Line
On Thu, May 31, 2012 at 10:48 PM, Tommy Pham wrote:
> On Thu, May 31, 2012 at 10:33 PM, Govinda
> wrote:
>> Hi guys
>>
>> anyone here using HTMLpurifier and CSStidy together? (like e.g. to allow
>> users to create their own external style sheets via form input)
>>
>> ...for example, in the way
On Thu, May 31, 2012 at 10:33 PM, Govinda wrote:
> Hi guys
>
> anyone here using HTMLpurifier and CSStidy together? (like e.g. to allow
> users to create their own external style sheets via form input)
>
> ...for example, in the way this post's answer explains how to use
> HTMLpurifier and CSSt
Hello,
> Sounds like the package maintainer is a minimum of six years
> behind the times, or they've done some forking to it. We don't
> support any third-party packages, so that would be something you'd
> need to discuss with them, but - in all likelihood - someone just
> hasn't removed the "
On Wed, Mar 28, 2012 at 09:39, Meike Stone wrote:
> Hello,
>
> in the packet description of the php5-sockets in the SuSE Linux
> Enterprise Server 11 (SLES11) is
> the package php5-sockets in the additional SDK available, but marked
> as "experimental" (see below).
> Is this the true, where can I
Search engines would still be indexing the original page's title. I
need each unique URL to have its own unique, robot friendly title.
Again, this question is strictly within WP context.
On Mon, Feb 13, 2012 at 6:49 PM, Bastien wrote:
>
>
> Bastien Koert
>
> On 2012-02-13, at 5:34 PM, Haluk Kar
Bastien Koert
On 2012-02-13, at 5:34 PM, Haluk Karamete wrote:
> Yeah, but n the context of wordpress, that does not fly.
> If I do a die; in the middle of wp's tinymce editor, and check back
> the page, the title is already out there.
>
> first 5 lines would be something like
>
>
>
>
>
Yeah, but n the context of wordpress, that does not fly.
If I do a die; in the middle of wp's tinymce editor, and check back
the page, the title is already out there.
first 5 lines would be something like
the wordpress page title we were trying toi change is already
here...
http://gmpg.org/x
On Mon, Feb 13, 2012 at 17:15, Haluk Karamete wrote:
Please keep the replies on the list for all to benefit, including
the archives.
> Isn't it TinyMCE considered a WYSIWYG one? but, anyway, that's beside
> the main point.
Indeed. Hence:
" even web-based things like TinyMC
On Mon, Feb 13, 2012 at 15:50, Haluk Karamete wrote:
> you may find it weird, actually very weird, but is the following possible>
>
> load up a post or page into the admin panel and place something like
> this in to the editor;
>
>
> //assume exec-PHP already active
>
> $current_page_url_here = g
Based on the terms you're using it sounds like this is a Wordpress
question. You'd have a lot better chances of getting an answer if you
query a group of WP gurus/geeks.
Marc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Nov 25, 2011, at 16:18, "Andreas" wrote:
> Like you have /foo.css and for some reason or another you move it to
> /lib/css and rename it to bar.css.
> Now it'd be nice if an IDE was aware of all the references within a site
> and update the affected urls.
Check out PhpStorm from JetBrains. I
Andreas wrote:
> Is there a decent design app that can automatically update links
> within the pages of a php site whenever a referred file gets moved or
> renamed?
>
> Like you have /foo.css and for some reason or another you move it to
> /lib/css and rename it to bar.css.
> Now it'd be nice if
you can use find and replace feature in some IDEs to accomplish your task
..
Dreamweaver do the job but with links inside HTML code
On Sat, Nov 26, 2011 at 2:17 AM, Andreas wrote:
> Hi
>
> Is there a decent design app that can automatically update links within
> the pages of a php site whenever
Why not just create a no named function in the top of the class. This this way
it loads on include.
Richard Buskirk
Sent from my iPhone
On Mar 31, 2011, at 12:56 AM, "D. Dante Lorenso" wrote:
> All,
>
> I want to build a config file class that gets called statically. Is there
> such a thing
class Daz_Config {
private static $instance;
private function __construct(){
$this->load();
}
private function load() {
...
}
public function get($key) {
...
}
public static getInstance(){
if (!self::$instance) self::$instance = new Daz_Config();
On 31 March 2011 06:56, D. Dante Lorenso wrote:
> All,
>
> I want to build a config file class that gets called statically. Is there
> such a thing as a static constructor? Example:
>
> class Daz_Config {
> public static function load() {
> ...
> }
> public static function get($key) {
>
There is such thing, but its not called static constructor, its called
singleton pattern
class SingletonA
{
public static instance;
public SingletonA(){}
public static function getInstancce()
{
if(self::instance != null)
{
return self::instanc;
}
return new Singleton
On Mon, 2011-03-28 at 07:36 +0200, Hans Åhlin wrote:
> 2011/3/28 Negin Nickparsa :
> > in php i have a file to upload i want to save this file in a table and then
> > retreive it from table in another situation is it possible?
> >
> I assume you are thinking of saving it in a MySQL table?
> If so
2011/3/28 Negin Nickparsa :
> in php i have a file to upload i want to save this file in a table and then
> retreive it from table in another situation is it possible?
>
I assume you are thinking of saving it in a MySQL table?
If so read this http://dev.mysql.com/doc/refman/5.0/en/blob.html
--
> Is anyone else out there in the same boat?
Actually we have found the complete opposite so there might be some
people who are in the same boat as you but certainly not all.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, Dec 21, 2010 at 8:36 AM, Richard Quadling wrote:
> If I have an abstract class of Task and I want all subclasses of Task
> to have a private method _runTask, is there a way to enforce this?
>
I cannot think of a reason to force a class to have a specifically-named
*private* method. Since
Whitetail hunting season, for most of the American Midwest anyway. :)
On Nov 23, 2010, at 2:01 PM, Steve Staples wrote:
> On Tue, 2010-11-23 at 20:55 +0100, Peter Lind wrote:
>> On 23 November 2010 20:52, Steve Staples wrote:
>>> tap tap tap... testing testing... 1, 2, 3
>>>
>>> Hello?
On Tue, Nov 23, 2010 at 14:52, Steve Staples wrote:
> tap tap tap... testing testing... 1, 2, 3
>
> Hello? No activity since yesterday at like 6pm EST... am i not
> getting messages, or has there not been any activity?
>
> Just curious... carry on about your business... :P
Some of the
On Tue, Nov 23, 2010 at 14:55, Peter Lind wrote:
>
> http://news.php.net/php.general - please, next time, don't spam tons of
> people.
We've never really minded the occasional list-ping. In fact, if
you check those same archives through the decade, you'll see that even
the most senior membe
On Tue, 2010-11-23 at 20:55 +0100, Peter Lind wrote:
> On 23 November 2010 20:52, Steve Staples wrote:
> > tap tap tap... testing testing... 1, 2, 3
> >
> > Hello?No activity since yesterday at like 6pm EST... am i not
> > getting messages, or has there not been any activity?
> >
> > Just
On 23 November 2010 20:52, Steve Staples wrote:
> tap tap tap... testing testing... 1, 2, 3
>
> Hello? No activity since yesterday at like 6pm EST... am i not
> getting messages, or has there not been any activity?
>
> Just curious... carry on about your business... :P
>
http://news.php.ne
On 16 November 2010 13:30, Jay Blanchard wrote:
> [snip]
> http://www.wampserver.com/en/
> [/snip]
>
> And yes, I know that this is Apache - I am just not a fan of IIS.
>
>
I quite like it. It probably does way so much more than I need or want
and I think I can do everything that I can on Apache.
Richard Quadling wrote:
On 16 November 2010 13:21, Jay Blanchard wrote:
[snip]
Hi Folks, is it possible to install PHP on IIS? If yes, can someone
please guide me on how to go about doing it? Thanks
[/snip]
http://www.wampserver.com/en/
Jay, if that had been wimpserver ...
I think it's
On Tue, 16 Nov 2010 12:16:25 +0530
Himani Aggarwal wrote:
> Hi Folks, is it possible to install PHP on IIS? If yes, can someone
> please guide me on how to go about doing it? Thanks
Now, why would you wanna do something crazy like that?! :)
--
PHP General Mailing List (http://www.php.net/)
T
[snip]
http://www.wampserver.com/en/
[/snip]
And yes, I know that this is Apache - I am just not a fan of IIS.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 16 November 2010 13:21, Jay Blanchard wrote:
> [snip]
>>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone
> please guide me on how to go about doing it? Thanks
> [/snip]
>
> http://www.wampserver.com/en/
>
Jay, if that had been wimpserver ...
--
Richard Quadling
Twitter :
[snip]
>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone
please guide me on how to go about doing it? Thanks
[/snip]
http://www.wampserver.com/en/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 2010-11-16, at 6:55 AM, Richard Quadling wrote:
> On 16 November 2010 06:46, Himani Aggarwal wrote:
>> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please
>> guide me on how to go about doing it? Thanks
>>
>
> PHP on IIS. Certainly.
>
> http://docs.php.net/manual/e
On 16 November 2010 06:46, Himani Aggarwal wrote:
> Hi Folks, is it possible to install PHP on IIS? If yes, can someone please
> guide me on how to go about doing it? Thanks
>
PHP on IIS. Certainly.
http://docs.php.net/manual/en/install.windows.iis7.php : IIS7 specific
instructions.
http://docs.
Himani,
See
http://blogs.iis.net/bills/archive/2006/09/19/how-to-install-php-on-iis7-_2800_rc1_2900_.aspx?WT.mc_id=soc-c-in-loc--cfp.
Also, see
http://blogs.iis.net/donraman/archive/2009/10/07/installing-php-on-windows.aspx?WT.mc_id=soc-c-in-loc--cfp
On Tue, Nov 16, 2010 at 12:16 PM, Himani Aggarw
On Tue, Nov 9, 2010 at 2:10 PM, Adam Richardson wrote:
>>
>> If the cookie needs to be encrypted, why not just encrypt it and worry less
>> about the transport layer? Or just down one hash value id cookie and pull
>> back the secure data for action just on the server?
>>
>> Bastien
>
>
> The issue
>
> If the cookie needs to be encrypted, why not just encrypt it and worry less
> about the transport layer? Or just down one hash value id cookie and pull
> back the secure data for action just on the server?
>
> Bastien
The issue highlighted in Yannick's question wouldn't be resolved by merely
On 2010-11-08, at 9:58 AM, Adam Richardson wrote:
>>
>> Couldn't Yannick also use $_SERVER['HTTPS'] and take action for the
>> session
>> and cookies accordingly?
>>
>> Regards,
>> Tommy
>
>
> Not to my understanding.
>
> When a visitor makes a request, the browser must determine which co
>
> Couldn't Yannick also use $_SERVER['HTTPS'] and take action for the
> session
> and cookies accordingly?
>
> Regards,
> Tommy
Not to my understanding.
When a visitor makes a request, the browser must determine which cookies are
appropriate for transmitting in the request. By the time PHP p
> -Original Message-
> From: Adam Richardson [mailto:simples...@gmail.com]
> Sent: Sunday, November 07, 2010 2:22 PM
> To: PHP-General
> Subject: Re: [PHP] Is session_start() using encrypted cookies with HTTPS
>
> On Sun, Nov 7, 2010 at 2:39 PM, Yannick Warnier
&
On Sun, Nov 7, 2010 at 2:39 PM, Yannick Warnier wrote:
> Hi all,
>
> It came to my attention through the Netcraft newsletter[1] that cookies
> in a web application are not always sent encrypted when a server is
> contacted through HTTPS.
>
Not quite. Requests and responses over HTTPS are encrypt
t: Friday, October 22, 2010 5:45 PM
> > To: Daniel P. Brown
> > Cc: PHP General
> > Subject: Re: [PHP] Is there a way to write to the php error log from a
> php
> > script?
> >
> >
> > On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote:
> >
> &
> -Original Message-
> From: Tamara Temple [mailto:tamouse.li...@gmail.com]
> Sent: Friday, October 22, 2010 5:45 PM
> To: Daniel P. Brown
> Cc: PHP General
> Subject: Re: [PHP] Is there a way to write to the php error log from a php
> script?
>
>
> On Oct
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote:
On Fri, Oct 22, 2010 at 20:24, Tamara Temple
wrote:
I'm trying to log some data for debugging and don't have use of the
standard
output to do so. I'd like to write the info to the php error log.
Can this
be done from within PHP? I've sea
On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote:
> I'm trying to log some data for debugging and don't have use of the standard
> output to do so. I'd like to write the info to the php error log. Can this
> be done from within PHP? I've searched the web site for logging functions,
> but cannot
> -Original Message-
> From: Paul M Foster [mailto:pa...@quillandmouse.com]
> Sent: Saturday, June 12, 2010 10:40 PM
>
> this in PHP. I can convert from '.' to '+' (as in most
> languages) in my
> mind, but embedding variables in strings was a harder habit
> to break. My
> opinion is th
On Fri, Jun 11, 2010 at 05:29:50PM -0400, tedd wrote:
> As for the Python "print" problem, I don't do Python -- so, it can
> win the lottery, or die, I don't care.
The issue, as I recall, is that for Python 3, they are changing print
(without parentheses) to require parentheses. This change alo
At 5:28 PM -0700 6/11/10, Daevid Vincent wrote:
> -Original Message-
> From: Ahmed Mohsen [mailto:mre...@gmail.com]
>
Hey Daevid, does this form
improve anything in processing time or it's just for the sake of
readability?
Technically it does have a microscopic speed increase, b
Simon J Welsh wrote:
On 12/06/2010, at 8:43 AM, Daevid Vincent wrote:
Also, for the love of God, please don't embed a variable into a literal
string and use preprocessing.
Do it like so:
If you're doing it like that, you may as well use:
Fixed that for you :)
Cheers,
Rob.
--
E-Mail D
On 12/06/2010, at 8:43 AM, Daevid Vincent wrote:
>> -Original Message-
>> From: tedd [mailto:tedd.sperl...@gmail.com]
>>
>> I believe, just because it can be done doesn't mean that it
>> should be done.
>>
>> My practice is *never* to use >
>> In fact, my practice is to not only use
> -Original Message-
> From: Ahmed Mohsen [mailto:mre...@gmail.com]
> Sent: Friday, June 11, 2010 4:25 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] is
> On 6/11/2010 11:43 PM, Daevid Vincent wrote:
> >> -Original Message-
> &g
On 6/11/2010 11:43 PM, Daevid Vincent wrote:
-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com]
I believe, just because it can be done doesn't mean that it
should be done.
My practice is *never* to use
I am sure there will be some that think that my practice is an
overkill,
On 6/12/2010 12:34 AM, tedd wrote:
At 2:19 PM -0700 6/11/10, Daevid Vincent wrote:
EVERY other tag in an XML document is just straight up "html" :
Just curious -- like html tags:
Or do you have to change them to:
How does XML handle those tags?
Cheers,
tedd
If they have no content
On 6/11/2010 4:07 PM, David Harkness wrote:
*PHP* files? I would have flagged that as the problem rather than
disabling
short tags.
Yeah, whoever created their site originally mixed XML/HTML/PHP all
in the same file (all the files were .html but contained xml and php
snippets) so I h
On Fri, Jun 11, 2010 at 2:51 PM, Ashley M. Kirchner wrote:
> They had every single file starting with:
>
>
>
*PHP* files? I would have flagged that as the problem rather than disabling
short tags.
David
On 6/11/2010 11:40 AM, Daevid Vincent wrote:
I use short tags and I output XML all the time.
I think there's a difference to note here. You're outputting XML
from PHP, versus files having XML tags in the files ... I ran into a
problem with short tags not too long ago when a client t
At 2:19 PM -0700 6/11/10, Daevid Vincent wrote:
EVERY other tag in an XML document is just straight up "html" :
Just curious -- like html tags:
Or do you have to change them to:
How does XML handle those tags?
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com htt
At 1:43 PM -0700 6/11/10, Daevid Vincent wrote:
> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com]
> In fact, my practice is to not only use
the echo argument with a (), like:
>
I am sure there will be some that think that my practice is an
overkill, or not "g
> -Original Message-
> From: David Harkness [mailto:davi...@highgearmedia.com]
> Sent: Friday, June 11, 2010 1:13 PM
> To: PHP General
> Subject: Re: [PHP] is
> On Fri, Jun 11, 2010 at 11:16 AM, Ashley Sheridan
> wrote:
>
> > For on I believe,
&
> -Original Message-
> From: tedd [mailto:tedd.sperl...@gmail.com]
>
> I believe, just because it can be done doesn't mean that it
> should be done.
>
> My practice is *never* to use
> In fact, my practice is to not only use the echo argument with a (), like:
>
>
>
> I am sure ther
On Fri, Jun 11, 2010 at 11:16 AM, Ashley Sheridan
wrote:
> For which can cause issues when outputting the XML declaration line unless
> it's broken into two parts, which is messier than '
Can you give an example of how this breaks? I don't see any problems with
' ?>
unless you are trying t
1 - 100 of 1376 matches
Mail list logo