php-general Digest 5 Mar 2010 00:00:21 -0000 Issue 6621

Topics (messages 302533 through 302547):

Re: App to put a whole PHP Site in CD/DVD
        302533 by: Juan

Re: Memory investigation
        302534 by: dsiembab01.gmail.com

Delayed page display
        302535 by: robert.visualize.info
        302547 by: robert.visualize.info

Entry-Level Slot Available in Denver
        302536 by: Nathan Nobbe

Replacing accented characters
        302537 by: Skip Evans
        302538 by: Ashley Sheridan
        302539 by: Daniel Brown

xoops
        302540 by: Ryan Cunningham
        302546 by: Bastien Koert

Want to learn to work with Zend Framework?
        302541 by: Debbie Otterstetter
        302543 by: dsiembab01.gmail.com
        302544 by: mrfroasty
        302545 by: Daniel Brown

PHP 5.3.2 released!
        302542 by: Johannes Schlüter

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
2010/3/2 Sion Duncan <casti...@aurorais.co.uk>:
> The way I've done this in the past it with XAMPP and a simple autorun.inf
> file.
>
> Code the autorun.inf file to start Apache and MySQL, then launch the users
> web browser (I used IE for this, as i knew everyone would have it
> installed).
>
> The only problem, is that this method only works on windows systems.

That's great. This is what I've been looking form. Thanks!.

Juan

--- End Message ---
--- Begin Message ---
you could read this
http://xdebug.org/docs/execution_trace
and then parse trace files to get the memory usage
create a global to store user functions, I think user function do not populate get_defined_functions(); until the function is called;
$t = get_defined_functions();
$userFunctions = $t['user'];
$file = xdebug_get_tracefile_name();
parse the file and then create a function to call the said variable.
I think you can figure it out.
la...@garfieldtech.com wrote:
Currently it's mostly procedural with some components that are OO. I suspect most of the memory sinks are large arrays (we have a lot of them), but I am not certain of that. Hence my interest in more accurate investigation tools.

--Larry Garfield

dsiemba...@gmail.com wrote:
couple questions Larry is this application composed of classes or straight up no holes barred procedural code?

la...@garfieldtech.com wrote:
That's not really what I'm after.  Let me try an example:

function foo($id) {
  static $foos = array();

  if (empty($foos[$id]) {
    $foos[$id] = load_foo($id);
  }
  return $foos[$id];
}

When load_foo() is slow (e.g., lots of DB traffic or remote-server calls or whatever), such caching can have a significant performance boost. Sometime after foo() has been called 15 times from 30 places in code, when I get to the end of the request (or just every time I call foo() would be fine) I want to be able to do something like:

$cost = get_memory_used_by($foos);

So that I can determine how much memory that caching is costing me over the lifetime of the page, and determine if it's a worthwhile trade-off.

--Larry Garfield

dsiemba...@gmail.com wrote:
function check_memory_usage(&$memory)
{
    $memory[] = memory_get_usage();
    return $memory;
}

something like this?
you can put it wherever you like and returns an array for further processing. You could optionally add a second argument to set the index to a name and check if the name exists to add 1 to the end of the name so your indexes stay maintained.



--- End Message ---
--- Begin Message ---
I have a script that retrieves several queued email messages from a MySQL
database and sends them out, printing out progress as it goes along; for
example:

        ema...@example.com ... sent
        ema...@example.com ... sent
        ema...@example.com ... sent

Either "sent" or "failed" is displayed based on the result of the mail() call.

When accessing the script however, the browser(?) waits until the script has
completely processed prior to displaying the page (instead of displaying it in
progress).  Other scripts on the same system display in progress, and it's
unclear what's different/special about this one.

The page header contains several hundred characters, and line breaks are
included after each "sent", so I don't think it's a browser buffering issue.
The behavior is the same in both Firefox & IE.

The engine is PHP 5.2 under Apache.  And none of the ob_ functions are being
used.  I did try adding a flush(), but the behavior is still the same.

So what else could cause the page to buffer completely prior to being
displayed?

Any insights appreciated,
  Robert


--- End Message ---
--- Begin Message ---
Additional info:

php.ini has output_buffering=4096.  Calling flush() or ob_implicit_flush()
within the script doesn't seem to help.  However setting
        php_value output_buffering off
in .htaccess does the trick.

Any ideas what else to try?  Would like a script-only solution that is not
php.ini/htaccess dependent.

Thanks,
  Robert



--- End Message ---
--- Begin Message ---
hi all,

we have a fresh opening for an entry-level php developer in stapleton (north
east denver).

feel free to hit me up off-list w/ questions or of course, if you are
interested in the position, thx,

-nathan

  *Required Skills (Proficiency expected)*

. PHP5 – Object Oriented Concepts a must

. Markup Languages - HTML, XML, (XSL nice to have)

. Javascript - understanding of AJAX concepts a plus

. SQL - table relationships, query writing, best-practices

. One or more text editor / IDE (emacs / vim preferred)

. *nix interaction – shell navigation, text editing

. Version Control - SVN OK, GIT preferred

*Ideal Experience*

. Symfony experience

. Propel ORM experience (or other)

. jQuery experience

. Ubuntu (Other Debian derivatives) Linux

*Nice to Haves*

. Action Script 2 / 3 / Flex

*Description*

Welcome to Colorado Timberline, home of a diverse array of outerwear and
novelty products along with a gamut of decorative services. Colorado
Timberline is nestled in the industrial district in Stapleton, Colorado
where our domestic warehouse of roughly 3 million units resides.

As an entry-level application developer you will initially focus on support
of existing applications which are being replaced by senior developers as we
speak. As our platform matures to a 2.0 revision end-to-end, new development
opportunities will become available and you will have a chance to make your
mark.

Colorado Timberline uses a hybrid of Windows & Linux technologies, however
you will be focused almost entirely on the Linux side of the house. That
said, you should be proficient with Linux, ideally Ubuntu or other Debian
derivatives. A desktop will be provided for you, but you are free to use a
personal laptop if you wish. The senior development staff prefers to run a
development stack on personal laptops, so if that works for you, you'll fit
right in. We have been using gitosis internally for a couple of months now
and will be scrapping the last of the SVN repositories soon. You have to
have *some* prior knowledge of version control to qualify for consideration
here; if it's not git knowledge, we'll square you away.

High-level coding decisions belong to our senior architect who has over 15
years experience in software engineering. We are very open-minded, stubborn
folks when it comes to design, meaning, may the best idea win, but we stick
to design decisions and try to marginalize slop. We run PHP5 for mostly
everything that's custom. Essentially our code is designed to accept &
process orders for our merchandise. There are a lot of sub-systems;
all-in-all, the system is of moderate size. At one end of the stack there
are e-commerce front-ends, and at the other end of the stack are industrial
printing devices..; a great place to get introduced to the software
engineering industry!

*Office Environment*

Colorado Timberline isn't a huge company; there's about 60 of us at the
Stapleton location. We have a mixed crowd and several departments, which is
enough to be a small community of hard working folks. Attire is casual,
sometimes professional. Hours are semi-flexible, but we like to have a good
amount of overlap each day so we can all stay on track.

*Salary & Benefits*

This is an entry-level position, the salary is $35,000 initially, then
$40,000 after 90 working days. We have a competitive health package and 401k
option which will also become available after 90 days.

*Start Date*

* *Immediately

--- End Message ---
--- Begin Message ---
Hey all,

Does anyone have a function that replaces accented characters
with the non-accent equals?

I can't figure out how to get them out of the Ubuntu keyboard
the way it is configured so I've just tried three different
functions off the Internet and none of them have worked.

Thanks,
Skip
--
====================================
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---
--- Begin Message ---
On Thu, 2010-03-04 at 11:57 -0600, Skip Evans wrote:

> Hey all,
> 
> Does anyone have a function that replaces accented characters
> with the non-accent equals?
> 
> I can't figure out how to get them out of the Ubuntu keyboard
> the way it is configured so I've just tried three different
> functions off the Internet and none of them have worked.
> 
> Thanks,
> Skip
> -- 
> ====================================
> Skip Evans
> PenguinSites.com, LLC
> 503 S Baldwin St, #1
> Madison WI 53703
> 608.250.2720
> http://penguinsites.com
> ------------------------------------
> Those of you who believe in
> telekinesis, raise my hand.
>   -- Kurt Vonnegut
> 


Ubuntu should have gucharmap which should let you copy and paste
accented characters.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
On Thu, Mar 4, 2010 at 12:57, Skip Evans <s...@bigskypenguin.com> wrote:
> Hey all,
>
> Does anyone have a function that replaces accented characters
> with the non-accent equals?

    This one by Sven on 21-APR-2005:

<?php
function transcribe($string) {
    $string = strtr($string,
       "\xA1\xAA\xBA\xBF\xC0\xC1\xC2\xC3\xC5\xC7
        \xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1
        \xD2\xD3\xD4\xD5\xD8\xD9\xDA\xDB\xDD\xE0
        \xE1\xE2\xE3\xE5\xE7\xE8\xE9\xEA\xEB\xEC
        \xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF8
        \xF9\xFA\xFB\xFD\xFF",
        "!ao?AAAAAC
        EEEEIIIIDN
        OOOOOUUUYa
        aaaaceeeei
        iiidnooooo
        uuuyy");
    $string = strtr($string, array("\xC4"=>"Ae", "\xC6"=>"AE",
"\xD6"=>"Oe", "\xDC"=>"Ue", "\xDE"=>"TH", "\xDF"=>"ss", "\xE4"=>"ae",
"\xE6"=>"ae", "\xF6"=>"oe", "\xFC"=>"ue", "\xFE"=>"th"));
    return($string);
}
?>

    If you search via Google for 'php accented characters function'
you'll see some user notes with code samples.  I grabbed the one above
from strtr() on php.net, and there are several others there and other
places --- like on the preg_replace() page, if memory serves.


-- 
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Looking for hosting or dedicated servers?  Ask me how we can fit your budget!

--- End Message ---
--- Begin Message ---
Hi all

I am fairly new to the forum but I have a question that maybe I could get
some input on, I have a client that is looking to run a new informational
site. The basis of which allows visitors to post up their events or
functions for free, the site will be geographically based by area, ie one
for New York one for New Jersy etc.

End user posts their article for their restaurant or gig bake sale etc, they
can post pics and video as well as text all for free. site needs to include
advertising areas for the income revenue stream portion of the site so would
need rotating banner ads and headers etc.

My client has been advised to use Xoops, I have not used xoops before, I am
familiar with CMS from using Magento but obviously this is more leaning
toward e commerce than informational. The site needs to be self managing as
far as content, just with a moderator approving the postings. any feedback
or maybe suggestions as to any other OS or PHP driven I could look at using
or implementing for this site would be greatly appreciated. I need something
stable and also expandable as there are many major corporate sponsors in the
wings for this project, ie AT&T, Dell etc etc

-- 
-- 
Regards

Ryan Cunningham
1 352 624 3262
constructme...@gmail.com
www.constructmedia.com

The information contained in this message may be privileged, confidential,
and protected from disclosure. If the reader of this message is not the
intended recipient, or any employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution, or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify
us immediately by replying to the message and deleting it from your
computer. Thank you. Construct Media. CMI 2008

Please note all photo images should be sent in the largest highest quality
format you have available, you also verify in sending the images they are
free from copyright and usage terms and that you are the owner of such art
work and are legally allowed to use this material. You agree that in
supplying the artwork to Construct Media you shall not hold CMI responsible
for any copyright infringement and or violation that may result from the
finished article or any part there of. You also agree to allow Construct
Media to use the images, and or manipulate them for artistic use in your
work. You also agree that your work may be used in the capacity of previous
work, Portfolio, or web examples to showcase our clients, in return for this
usage all links to your URL will always remain in tact and you shall benefit
from the free advertising.Construct Media. © CMI 2006-2010

--- End Message ---
--- Begin Message ---
On Thu, Mar 4, 2010 at 1:27 PM, Ryan Cunningham
<constructme...@gmail.com> wrote:
> Hi all
>
> I am fairly new to the forum but I have a question that maybe I could get
> some input on, I have a client that is looking to run a new informational
> site. The basis of which allows visitors to post up their events or
> functions for free, the site will be geographically based by area, ie one
> for New York one for New Jersy etc.
>
> End user posts their article for their restaurant or gig bake sale etc, they
> can post pics and video as well as text all for free. site needs to include
> advertising areas for the income revenue stream portion of the site so would
> need rotating banner ads and headers etc.
>
> My client has been advised to use Xoops, I have not used xoops before, I am
> familiar with CMS from using Magento but obviously this is more leaning
> toward e commerce than informational. The site needs to be self managing as
> far as content, just with a moderator approving the postings. any feedback
> or maybe suggestions as to any other OS or PHP driven I could look at using
> or implementing for this site would be greatly appreciated. I need something
> stable and also expandable as there are many major corporate sponsors in the
> wings for this project, ie AT&T, Dell etc etc
>
> --
> --
> Regards
>
> Ryan Cunningham
> 1 352 624 3262
> constructme...@gmail.com
> www.constructmedia.com
>
> The information contained in this message may be privileged, confidential,
> and protected from disclosure. If the reader of this message is not the
> intended recipient, or any employee or agent responsible for delivering this
> message to the intended recipient, you are hereby notified that any
> dissemination, distribution, or copying of this communication is strictly
> prohibited. If you have received this communication in error, please notify
> us immediately by replying to the message and deleting it from your
> computer. Thank you. Construct Media. CMI 2008
>
> Please note all photo images should be sent in the largest highest quality
> format you have available, you also verify in sending the images they are
> free from copyright and usage terms and that you are the owner of such art
> work and are legally allowed to use this material. You agree that in
> supplying the artwork to Construct Media you shall not hold CMI responsible
> for any copyright infringement and or violation that may result from the
> finished article or any part there of. You also agree to allow Construct
> Media to use the images, and or manipulate them for artistic use in your
> work. You also agree that your work may be used in the capacity of previous
> work, Portfolio, or web examples to showcase our clients, in return for this
> usage all links to your URL will always remain in tact and you shall benefit
> from the free advertising.Construct Media. © CMI 2006-2010
>

Drupal, joomla or Wordpress could fit the bill nicely

-- 

Bastien

Cat, the other other white meat

--- End Message ---
--- Begin Message ---
Zend has an upcoming Framework: Fundamentals class that some of you may
be interested in.  You can find more information at this webpage:
http://www.zend.com/en/services/training/course-catalog/zend-framework 

 

Class dates/times:

March 15, 16, 17, 18, 19, 22, 23, 24 & 25 from 8-10am PST

 

All classes are on-line and led with a live instructor.

 

Please let me know if you have any questions.

 

Debbie


--- End Message ---
--- Begin Message ---
no

Debbie Otterstetter wrote:
Zend has an upcoming Framework: Fundamentals class that some of you may
be interested in.  You can find more information at this webpage:
http://www.zend.com/en/services/training/course-catalog/zend-framework
Class dates/times:

March 15, 16, 17, 18, 19, 22, 23, 24 & 25 from 8-10am PST

All classes are on-line and led with a live instructor.

Please let me know if you have any questions.

Debbie



--- End Message ---
--- Begin Message ---
Looks expensive, definately NO

On 03/04/2010 08:05 PM, Debbie Otterstetter wrote:
Zend has an upcoming Framework: Fundamentals class that some of you may
be interested in.  You can find more information at this webpage:
http://www.zend.com/en/services/training/course-catalog/zend-framework



Class dates/times:

March 15, 16, 17, 18, 19, 22, 23, 24&  25 from 8-10am PST



All classes are on-line and led with a live instructor.



Please let me know if you have any questions.



Debbie




--
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
Typo:40WPM
url:http://www.mzalendo.net
url:http://www.zanbytes.com


--- End Message ---
--- Begin Message ---
On Thu, Mar 4, 2010 at 14:59, mrfroasty <mrfroa...@gmail.com> wrote:
> Looks expensive, definately NO

    Then do not reply.  It was an offer to the community at large, not
just you and the other top-poster.  ;-P

-- 
</Daniel P. Brown>
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/

--- End Message ---
--- Begin Message ---
Hello!

The PHP development team would like to announce the immediate
availability of PHP 5.3.2. This release focuses on improving the
stability of the PHP 5.3.x branch with over 70 bug fixes, some of which
are security related.  All users of PHP are encouraged to upgrade to
this release.

Security Enhancements and Fixes in PHP 5.3.2:
  * Improved LCG entropy. (Rasmus, Samy Kamkar)
      * Fixed safe_mode validation inside tempnam() when the directory
        path does not end with a /). (Martin Jansen)
      * Fixed a possible open_basedir/safe_mode bypass in the session
        extension identified by Grzegorz Stachowiak. (Ilia)

Key enhancements in PHP 5.3.2 include:
  * Improved LCG entropy. (Rasmus, Samy Kamkar)
  * Added support for SHA-256 and SHA-512 to php's crypt. (Pierre)
  * Added protection for $_SESSION from interrupt corruption and
    improved "session.save_path" check. (Stas)
  * Fixed bug #51059 (crypt crashes when invalid salt are given). 
    (Pierre)
  * Fixed bug #50940 Custom content-length set incorrectly in Apache
    sapis. (Brian France, Rasmus)
  * Fixed bug #50847 (strip_tags() removes all tags greater then 1023
    bytes long). (Ilia)
  * Fixed bug #50723 (Bug in garbage collector causes crash). (Dmitry)
  * Fixed bug #50661 (DOMDocument::loadXML does not allow UTF-16). (Rob)
  * Fixed bug #50632 (filter_input() does not return default value if
    the variable does not exist). (Ilia)
  * Fixed bug #50540 (Crash while running ldap_next_reference test
    cases). (Sriram)
  * Fixed bug #49851 (http wrapper breaks on 1024 char long headers).
    (Ilia)
  Over 60 other bug fixes.

Full release announcement:
     http://www.php.net/archive/2010.php#id2010-03-04-1
Downloads:
     Source:  http://php.net/downloads.php
     Windows: http://windows.php.net/download/
ChangeLog:
     http://www.php.net/ChangeLog-5.php#5.3.2


--- End Message ---

Reply via email to