On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote:
> On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote:
>
> > How to build an FF extension and how to install it. I'm using Fedora 10
> > operating system.
> > Can someone please provide me with the steps
> > Thanks
> > J.K
>
> Let me
João Cândido de Souza Neto wrote:
> You made a mistake in your code:
>
>
>
> must be:
>
>
>
Not necessarily: what if you have
function the_title()
{
echo "Title";
}
for example...
In response to Sebastiano:
There would be not much point in using something like PHP if it ignore
Thanks, it's now much more clear. I thought that html parts outside
php tags were just dumped to output, no matter of if-else statements
and other conditions. I was *definitely* wrong
2009/7/23 Peter Ford :
> In response to Sebastiano:
>
> There would be not much point in using something like PHP
Hi,
It isn't really a programming question, but rather a structural.
Let's suppose I have a PHP page, which is built by other PHP files' includes.
Which is the better approach:
in a switch-like statement I include the required PHP files, which contain
all the functions, and the HTML code to p
2009/7/23 Sándor Tamás (HostWare Kft.)
> Hi,
>
> It isn't really a programming question, but rather a structural.
>
> Let's suppose I have a PHP page, which is built by other PHP files'
> includes.
>
> Which is the better approach:
> in a switch-like statement I include the required PHP files, w
> -Original Message-
> From: Dengxule [mailto:dengx...@gmail.com]
> Sent: 23 July 2009 10:53
>
>
> Hoping for the coming of the concept of PACKAGE. Seems that
> NAMESPACE will
> be introduced in PHP6.
Already present in 5.3, actually.
Cheers!
Mike
--
Mike Ford,
Electronic Informatio
> -Original Message-
> From: Paul M Foster [mailto:pa...@quillandmouse.com]
> Sent: 23 July 2009 06:13
>
> On Thu, Jul 23, 2009 at 11:57:51AM +0800, ?? wrote:
>
> > But I cannot help myself with the url pattern :
> > /somepath_to_mediawiki/index.php/pagetitle.
> >
> > How can this kin
Go to the ff site and read the docs
bastien
On Wednesday, July 22, 2009, Javed Khan wrote:
> How to build an FF extension and how to install it. I'm using Fedora 10
> operating system.
> Can someone please provide me with the steps
> Thanks
> J.K
>
>
>
--
Bastien
Cat, the other other white
Tom Worster wrote:
> On 7/22/09 6:09 PM, "Shawn McKenzie" wrote:
>
>> Tom Worster wrote:
>>> though the manual is perfectly clear that this should be expected, i was a
>>> bit surprised that the result of the following is 42
>>>
>>> >> function foo(&$a) {
>>> $a = 42;
>>> unset($a);
>>> $a
When I first started programming in PHP I used the second method you
mentioned. I had a single file I called utils.php and it contained
all the functions I could possibly need throughout my site.
Unfortunately, this file grew to be over 10,000 lines and most of the
time I only needed a co
Well if the server your running on is linux based (and I haven't tried
this) you could try adding a nohup and background the task for example
rather than doing:
system('updatedb');
try
system('nohup updatedb &');
It should background the task and let it continue running even when the
php sc
Floyd Resler wrote:
When I first started programming in PHP I used the second method you
mentioned. I had a single file I called utils.php and it contained
all the functions I could possibly need throughout my site.
Unfortunately, this file grew to be over 10,000 lines and most of the
t
I think he is confusing the "unset" semantic.
Unset just destroy a variable, but not the content of it.
Take a look at the output of this simple script:
function avoid_global_scope()
{
$a = 'foo';
var_dump( get_defined_vars() );
$b =& $a;
var_dump( get_defined_vars() );
unset(
'Tis true. I just find dealing with the smaller files much easier.
At the time I was using Komodo IDE and it would get very sluggish with
the larger files.
Take care,
Floyd
On Jul 23, 2009, at 9:34 AM, Robert Cummings wrote:
Floyd Resler wrote:
When I first started programming in PHP I
2009/7/23 Ashley Sheridan
> On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote:
> > On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote:
> >
> > > How to build an FF extension and how to install it. I'm using Fedora 10
> > > operating system.
> > > Can someone please provide me with th
On Thu, 2009-07-23 at 14:39 +0100, Luke wrote:
> 2009/7/23 Ashley Sheridan
>
> > On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote:
> > > On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote:
> > >
> > > > How to build an FF extension and how to install it. I'm using Fedora 10
> > > >
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley Sheridan wrote:
>
Wikipedia can hardly be accounted an official source of anything,
especially considering how it gets the content! If you want official,
then http://www.mozilla.com/en-US/firefox/releases/1.5.html is a good
link.
Wikipedia is the official source of Wikipedia information
On Thu, Jul 23, 2009 at 10:15 AM, Robert Cummings wrote:
> Ashley Sheridan wrote:
>>
>>
>> Wikipedia can hardly be accounted an official source of anything,
>> especially considering how it gets the content! If you want official,
>> then http://www.mozilla.com/en-US/firefox/releases/1.5.html is a g
Ashley Sheridan wrote:
On Thu, 2009-07-23 at 14:39 +0100, Luke wrote:
2009/7/23 Ashley Sheridan
On Wed, 2009-07-22 at 23:49 -0400, Paul M Foster wrote:
On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote:
How to build an FF extension and how to install it.
Robert Cummings wrote:
Ashley Sheridan wrote:
>
Wikipedia can hardly be accounted an official source of anything,
especially considering how it gets the content! If you want official,
then http://www.mozilla.com/en-US/firefox/releases/1.5.html is a good
link.
Wikipedia is the official source
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
We're going to need to know how the $_SESSION['fullRestaurantList'] gets
populated. Als
Miller, Terion wrote:
> I keep getting this error while trying to use the field 'ID' to pass in a
> url.. And it's odd because the query is pulling everything BUT the ID which
> is the first field...
>
> code:
> htmlspecialchars(stripslashes($_SESSION['fullRestaurantList'][$i]['name']));
> ?>
On 7/23/09 9:24 AM, "Kyle Smith" wrote:
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
We're going to need to know how the $_SESSION['
On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote:
> Not that I disagree with your methodology at this time, but you could
> have just made that single big file, include all those little files and
> still had a single load statement in each of your consumer source files.
> With com
Miller, Terion wrote:
On 7/23/09 9:24 AM, "Kyle Smith" wrote:
Miller, Terion wrote:
I keep getting this error while trying to use the field 'ID' to pass in a url..
And it's odd because the query is pulling everything BUT the ID which is the
first field...
code:
We're going to need to
Paul M Foster wrote:
On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote:
Not that I disagree with your methodology at this time, but you could
have just made that single big file, include all those little files and
still had a single load statement in each of your consumer sour
Sorry, list, I did a reply instead of a reply-to-all. This is what I
sent to "Miller, Terion"
Miller, Terion wrote:
Thanks for the link Kyle!! Great thing there...(seriously I didn't know...I
learn something everyday)
Anyways the link to my script is: http://pastebin.ca/1504393
Your ema
On Thu, Jul 23, 2009 at 10:21 AM, Kyle Smith wrote:
> Robert Cummings wrote:
>>
>> Ashley Sheridan wrote:
>> >
>>>
>>> Wikipedia can hardly be accounted an official source of anything,
>>> especially considering how it gets the content! If you want official,
>>> then http://www.mozilla.com/en-US/fi
-Original Message-
From: Shawn McKenzie [mailto:nos...@mckenzies.net]
Sent: 23 July 2009 02:36 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: unsetting a referenced parameter in a function
Tom Worster wrote:
> On 7/22/09 6:09 PM, "Shawn McKenzie" wrote:
>
>> Tom Worster wrote:
Hey all,
we've got a repository here at work, with something like 55,000 files
in it. For the last few years, we've been naming $variables_like_this
and functions_the_same($way_too). And now we've decided to switch to
camelCasing everything and I've been tasked with somehow determining
if it's pos
Eddie Drapkin wrote:
Hey all,
we've got a repository here at work, with something like 55,000 files
in it. For the last few years, we've been naming $variables_like_this
and functions_the_same($way_too). And now we've decided to switch to
camelCasing everything and I've been tasked with someho
PHP Gurus,
I'm currently having a problem with PHP writing text to a PNG image on
one server.
I have various web sites hosted on various servers, and on most of them,
the script that generates the image is writing text properly. I have
ensured that the same fonts are available on all the ser
function toCamelCase( $string )
{
return str_replace( ' ' , '', ucwords( strtolower( strtr($string, '_',
' ') ) ));
}
echo toCamelCase( 'this_is_not_properly_written' );
You can use this simplest function to translate a string to camelCase.
The process could be...
1) parse by PHP
2) transl
In a project with this large number of files, is better if you let the way it
is, doing this now you can crash the project and lost much much time.
Yuri Yarlei.
Programmer PHP, CSS, Java, PostregreSQL;
Today PHP, tomorrow Java, after the world.
Kyou wa PHP, ashita wa Java, sono ato sekai desu.
Dave M G wrote:
PHP Gurus,
I'm currently having a problem with PHP writing text to a PNG image on
one server.
I have various web sites hosted on various servers, and on most of them,
the script that generates the image is writing text properly. I have
ensured that the same fonts are availab
2009/7/23 Dave M G :
> Is there a way I can take the output of phpinfo() from both servers and do a
> compare that will tell me what the differences are?
Just diff the HTML. WinMerge, Kompare, etc etc. Or probably built into
your favourite IDE.
--
PHP General Mailing List (http://www.php.net/)
Eddie Drapkin wrote:
> Hey all,
> we've got a repository here at work, with something like 55,000 files
> in it. For the last few years, we've been naming $variables_like_this
> and functions_the_same($way_too). And now we've decided to switch to
> camelCasing everything and I've been tasked with
David, Robert,
Thank you for replying.
Just diff the HTML.
Unfortunately it is not that easy. Even if the same PHP modules are
present, if they are written into the page in a different place, they
show up as differences. The same goes for all the HTML tags and
everything else, so what I end
From: Dave M G
> Thank you for replying.
>> Just diff the HTML.
>
> Unfortunately it is not that easy. Even if the same PHP modules are
> present, if they are written into the page in a different place, they
> show up as differences. The same goes for all the HTML tags and
> everything else,
From: Dave M G
> I'm currently having a problem with PHP writing text to a PNG image on
> one server.
>
> I have various web sites hosted on various servers, and on most of
them,
> the script that generates the image is writing text properly. I have
> ensured that the same fonts are available
On Thu, Jul 23, 2009 at 1:50 PM, Greg Beaver wrote:
> Eddie Drapkin wrote:
>> Hey all,
>> we've got a repository here at work, with something like 55,000 files
>> in it. For the last few years, we've been naming $variables_like_this
>> and functions_the_same($way_too). And now we've decided to swi
> You might even be able to convert EMPTY(X) to COALESCE(X, '') = ''.
> MySQL seems to be pretty forgiving with its implicit type-casting.
Hmm... The new system I've written properly handles the datatype and
EMPTY... So this would be a hack to much around with regexs to replace
EMPTY in customer b
On Thu, Jul 23, 2009 at 3:39 PM, Matt Neimeyer wrote:
>> You might even be able to convert EMPTY(X) to COALESCE(X, '') = ''.
>> MySQL seems to be pretty forgiving with its implicit type-casting.
>
> Hmm... The new system I've written properly handles the datatype and
> EMPTY... So this would be a h
Thanks
On 7/23/09 9:52 AM, "Kyle Smith" wrote:
Sorry, list, I did a reply instead of a reply-to-all. This is what I
sent to "Miller, Terion"
Miller, Terion wrote:
> Thanks for the link Kyle!! Great thing there...(seriously I didn't know...I
> learn something everyday)
>
> Anyways the link to
2009/7/23 Eddie Drapkin :
> Hey all,
> we've got a repository here at work, with something like 55,000 files
> in it. For the last few years, we've been naming $variables_like_this
> and functions_the_same($way_too). And now we've decided to switch to
> camelCasing everything and I've been tasked
I'm trying to profile a site on our development server to see why it
takes around 4 seconds to generate a pretty basic page. I installed
xdebug to use for the profiling, and now I'm really confused. Even
though it takes around 4 seconds to build the entire page, the profile
says that the total proc
Andrew Ballard wrote:
I'm trying to profile a site on our development server to see why it
takes around 4 seconds to generate a pretty basic page. I installed
xdebug to use for the profiling, and now I'm really confused. Even
though it takes around 4 seconds to build the entire page, the profile
> Thank you for replying.
>> Just diff the HTML.
> Unfortunately it is not that easy. Even if the same PHP modules are
> present, if they are written into the page in a different place, they
> show up as differences. The same goes for all the HTML tags and
> everything else, so what I end up wi
> significant (around 46%), it says they only account for 193ms. What
> could account for that much difference between what xdebug calculates
> versus the total elapsed time?
Are you counting "total elapsed time" from the perspective of the web browser?
If so, YSlow might be helpful:
http://devel
On Thu, Jul 23, 2009 at 4:51 PM, Robert Cummings wrote:
> Andrew Ballard wrote:
>>
>> I'm trying to profile a site on our development server to see why it
>> takes around 4 seconds to generate a pretty basic page. I installed
>> xdebug to use for the profiling, and now I'm really confused. Even
>>
On Thu, Jul 23, 2009 at 5:10 PM, Ben Dunlap wrote:
>> significant (around 46%), it says they only account for 193ms. What
>> could account for that much difference between what xdebug calculates
>> versus the total elapsed time?
>
> Are you counting "total elapsed time" from the perspective of the
> Nope. Basically it connects to a database to load an ACL (which at
> [...]
> I thought xdebug was supposed to be a pretty good profiler. If it
> calculating the time correctly, where are the other ~3.6 seconds
> going?
One night I saw a script wait indefinitely for a response from a tanked
datab
Just an idea: try using the (microtime(true) - $start) approach in
portions of code to try isolate the portion that is taking more time.
Sometimes that helps me to find "the" function that is slowing
everything down.
Jonathan
On Thu, Jul 23, 2009 at 6:18 PM, Andrew Ballard wrote:
> On Thu, Jul 23
On Fri, Jul 24, 2009 at 12:20 AM, Clancy wrote:
> Does anyone know of an extension/utility that will enable PHP to write
> backup files to a
> CD/DVD?
>
> Ideally I would like the CD to appear as 'just another drive'.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, vis
Does anyone know of an extension/utility that will enable PHP to write backup
files to a
CD/DVD?
Ideally I would like the CD to appear as 'just another drive'.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That's what I was just about writting.
If you use linux --> you can shot calls to the system and watch it's
response!
Then all you have to do is to install a cd burning software which have an
ability to control it through the terminal!
Good luck mate!
On Fri, Jul 24, 2009 at 1:47 AM, Diogo Neve
Ashley Sheridan a écrit :
But *how* does it offer more security? You've not actually mentioned
that!
Because you need database slice access to manage the session, and not
only file access in /tmp/ (where sessions belongs, by default). So now
the problem is : and what about the configuration
Thanks a lot. As far as i know, both methods dealing with urls are
WEB-SERVER-TECH. While I was installing mediawiki, i did nothing with the
file "httpd.conf", no changes made on .
The mediawiki install script cannot do nothing to httpd.conf i think.
So i'm confused about how the url-rewriting me
Sándor Tamás (HostWare Kft . ) a écrit :
It isn't really a programming question, but rather a structural.
It is part of our burden ;)
Which is the better approach:
They are no better approch, only bad ones. I'm using to organize my
code in module. Each module require the needed modules. T
On Thu, Jul 23, 2009 at 10:28 PM, Dengxule wrote:
> Thanks a lot. As far as i know, both methods dealing with urls are
> WEB-SERVER-TECH. While I was installing mediawiki, i did nothing with the
> file "httpd.conf", no changes made on .
>
> The mediawiki install script cannot do nothing to httpd.
On Thu, Jul 23, 2009 at 5:32 PM, Ben Dunlap wrote:
> I second Jonathan's suggestion; I would try calling microtime() before and
> after your database query, and before and after anything else that isn't
> strictly "execution of the script".
>
> Ben
I tried this where I could. (The ZF library itsel
Hello everyone,
Lets say I have a file called form.php with the following form on it that
redirects to index.php when submitted. I would like to take the values of
the text fields in the form and put them into an array, then be able to
display the values in that array on index.php Does anyone know
Jason Carson wrote:
> Hello everyone,
>
> Lets say I have a file called form.php with the following form on it that
> redirects to index.php when submitted. I would like to take the values of
> the text fields in the form and put them into an array, then be able to
> display the values in that ar
> Jason Carson wrote:
>
>> Hello everyone,
>>
>> Lets say I have a file called form.php with the following form on it
>> that
>> redirects to index.php when submitted. I would like to take the values
>> of
>> the text fields in the form and put them into an array, then be able to
>> display the val
Jason Carson wrote:
>> Jason Carson wrote:
>>
>>> Hello everyone,
>>>
>>> Lets say I have a file called form.php with the following form on it
>>> that
>>> redirects to index.php when submitted. I would like to take the values
>>> of
>>> the text fields in the form and put them into an array, then
> Jason Carson wrote:
>
>>> Jason Carson wrote:
>>>
Hello everyone,
Lets say I have a file called form.php with the following form on it
that
redirects to index.php when submitted. I would like to take the values
of
the text fields in the form and put them into an
Did you correct the missing double quote in your sending form first?
Warren Vail
-Original Message-
From: Jason Carson [mailto:ja...@jasoncarson.ca]
Sent: Thursday, July 23, 2009 9:33 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: A form and an array
> Jason Carson wrote:
>
>>>
Yes
> Did you correct the missing double quote in your sending form first?
>
> Warren Vail
>
> -Original Message-
> From: Jason Carson [mailto:ja...@jasoncarson.ca]
> Sent: Thursday, July 23, 2009 9:33 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Re: A form and an array
>
>> Jas
On Fri, Jul 24, 2009 at 10:28:52AM +0800, Dengxule wrote:
> Thanks a lot. As far as i know, both methods dealing with urls are
> WEB-SERVER-TECH. While I was installing mediawiki, i did nothing with the
> file "httpd.conf", no changes made on .
>
> The mediawiki install script cannot do nothing t
In php.ini turn the "display_errors" to "on".
If any error,warn or notice shown,copy them and paste here.
So you can tell us what doesn't work.
good luck~
2009/7/24 Jason Carson
> > Jason Carson wrote:
> >
> >>> Jason Carson wrote:
> >>>
> Hello everyone,
>
> Lets say I have a fi
I have it working now. I had a comma where a semicolon should have been.
Silly error on my part but thanks to everyone who tried to help me.
> In php.ini turn the "display_errors" to "on".
> If any error,warn or notice shown,copy them and paste here.
> So you can tell us what doesn't work.
>
> go
I think PATHINFO is probably what i'm looking for.
Paul mentioned the "lookback" feature, i think that is or about the same
thing.
MediaWiki-1.15.1 use the pattern of url for common pages like this :
some_path_to_mediawiki/index.php/something , and the 'something' supports
even non-english charac
Andrew Ballard a écrit :
I'm trying to profile a site on our development server to see why it
takes around 4 seconds to generate a pretty basic page.
Last time I seen this is when I did validate DOM Document without DTD
on local disk :D
Can you put somewhere the essential code that take ti
74 matches
Mail list logo