php-general Digest 10 Sep 2007 18:59:50 -0000 Issue 5011

Topics (messages 261892 through 261909):

Re: 403 Forbiden
        261892 by: Chris

Segfaults with modphp5 (apache) with threads, and fastcgi question
        261893 by: Felipe Alcacibar
        261894 by: Chris
        261907 by: Felipe Alcacibar
        261908 by: Nathan Nobbe

Public Announcement
        261895 by: Sascha Braun - CEO . Braun Networks
        261898 by: M. Sokolewicz
        261901 by: Wolf
        261904 by: Stut
        261905 by: Robert Cummings
        261909 by: tedd

compile image and download
        261896 by: RosaM72

How to get the child name from within the parent?
        261897 by: Mathijs
        261899 by: Robert.Degen.rwth-aachen.de
        261900 by: Mathijs

Re: Php script for mail in a xhtml page
        261902 by: brian

Re: html2png
        261903 by: Al

PHP make test error report question
        261906 by: aaron.pelsoft.com

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Jesús de Diego Alarcón wrote:
Hello
I've noticed the problem is not well described:

1º There are some times the correct XML appears. However, these times, the
call in Firebug comes with "(403)" and highlihted in red color.

Does your host have any rate-limiting? Maybe you're hitting the server too much and you're being seen as a denial-of-service attack and being denied access.

About permisions, visor directory has 755 also like php.
provincias.php has 777 permisions.

Try what I suggested - access other files in the same folders.

That will tell us whether it's a file specific issue, a folder specific issue or something else.

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
Hi,

I got serous problems with modphp5 in a apache, both are compiled with treads, apache was worker-mpm and php was interpreter level threads, i got lots of segmentation faults in threads. someone can helps me?

At the end of the list, info about configure parameters for apache and php5

I see a alternative, the best is fcgi, but i use lots of php_flag and php_admin_flag, how some way to use it on fcgi??

I got too much problems with this, maybe if i ran a server without threads may works it, but it is no funny.

I hope a answer, thanks...

Felipe


OS: Gentoo Linux
Arch: x86_64

Apache info:
shrike counter # apache2 -V
Server version: Apache/2.2.4 (Unix)
Server built:   Sep  7 2007 08:57:32
Server's Module Magic Number: 20051115:5
Server loaded:  APR 1.2.8, APR-Util 1.2.8
Compiled using: APR 1.2.8, APR-Util 1.2.8
Architecture:   64-bit
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/sbin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"



php configure:
Also have a phpinfo on http://www.chileweb.cl/phpinfo.php

'./configure' '--prefix=/usr/lib64/php5' '--host=x86_64-pc-linux-gnu' '--mandir=/u sr/lib64/php5/man' '--infodir=/usr/lib64/php5/info' '--sysconfdir=/etc' '--cache-file=./config.cache' '-- with-libdir=lib64' '--enable-maintainer-zts' '--enable-cli' '--disable-cgi' '--with-config-file-path=/etc/php/cli-php5' '--with-config-file-scan-dir=/etc/php/cli-php5/ext-active' '--without-pear' '--disable-bcmath' '--with-bz2' '--disable-calendar' '--without-curl' '--without-curlwrappers' '--disable-dbase' '--enable-exif' '--without-fbsql' '--without-fdftk' '--disable-filter' '--enable-ftp' '--with-gettext' '--with-gmp' '--disable-hash' '--with-kerberos=/usr' '--enable-mbstring' '--with-mcrypt' '--without-mhash' '--without-msql' '--with-mssql' '--with-ncurses' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--disable-pdo' '--with-pgsql' '--without-pspell' '--without-recode' '--disable-shmop' '--without-snmp' '--enable-soap' '--enable-sockets' '--without-sybase' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter' '--with-xmlrpc' '--with-xsl' '--disable-zip' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--without-db4' '--without-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-interbase=/usr' '--with-ldap' '--without-ldap-sasl' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli' '--with-unixODBC=/usr' '--without-adabas' '--without-birdstep' '--without-dbmaker' '--without-empress' '--without-esoob' '--without-ibm-db2' '--without-iodbc' '--without-sapdb' '--without-solid' '--with-readline' '--without-libedit' '--without-mm' '--with-sqlite=/usr' '--enable-sqlite-utf8'
--- End Message ---
--- Begin Message ---
Felipe Alcacibar wrote:
Hi,

I got serous problems with modphp5 in a apache, both are compiled with treads, apache was worker-mpm and php was interpreter level threads, i got lots of segmentation faults in threads. someone can helps me?

Firstly the configure line you sent us is wrong. It's for the cli version, not the cgi version.

'--enable-cli' '--disable-cgi'


Does it work with a different version of php?

Try to cut down the code you're looking at (create a test-case)

If really desperate, re-compile php with --enable-debug and create a backtrace (http://bugs.php.net/bugs-generating-backtrace.php)


--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
Chris escribió:
Firstly the configure line you sent us is wrong. It's for the cli version, not the cgi version.

'--enable-cli' '--disable-cgi'


i am using a apache modphp, and also enabled the cli interface, i am not using cgi yet, i want to use fastcgi, but i made a cuestion before.

i am want a take a look for debug-backtrace.

Thanks.

Felipe

--- End Message ---
--- Begin Message ---
you might also want to hop on the #gentoo-php channel on irc.freenode.net

-nathan

On 9/10/07, Felipe Alcacibar <[EMAIL PROTECTED]> wrote:
>
> Chris escribió:
> > Firstly the configure line you sent us is wrong. It's for the cli
> > version, not the cgi version.
> >
> > '--enable-cli' '--disable-cgi'
> >
>
> i am using a apache modphp, and also enabled the cli interface, i am not
>   using cgi yet, i want to use fastcgi, but i made a cuestion before.
>
> i am want a take a look for debug-backtrace.
>
> Thanks.
>
> Felipe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
The Spectral Authoring System is able to keep
round about 300.000 Document Kategories in one
Application.

1.4 Million Screentexts are in use, while still
providing fast access.

The complete Application is Google Standard com-
pliant, without use of mod_rewrite, allowing long
directory pathes.

Its containing the only forum software worldwide
which is completely complying to the google stan-
dard for websites, without leaving holes in its
stucture.

As well there is an ajax driven webmail frontend
comparable to hotmail or yahoo mail included, which
easely can get scaled to keep more than a million
e-mail accounts, in a multidomain environment.

The Blog Module is following the actual blogging
standards, while remaining google compliant as
well as its completely fulltext searchable even
in an multiblog environment.

The shop system is not containing query urls any-
more, without use of mod_rewrite.

It is the best ecommerce and shopping plattform
worldwide.

Its written in PHP5.

--- End Message ---
--- Begin Message ---
1. Who are you?
2. What is this?
3. Why should I care?
4. Don't spam.

Sascha Braun - CEO @ Braun Networks wrote:
The Spectral Authoring System is able to keep
round about 300.000 Document Kategories in one
Application.

1.4 Million Screentexts are in use, while still
providing fast access.

The complete Application is Google Standard com-
pliant, without use of mod_rewrite, allowing long
directory pathes.

Its containing the only forum software worldwide
which is completely complying to the google stan-
dard for websites, without leaving holes in its
stucture.

As well there is an ajax driven webmail frontend
comparable to hotmail or yahoo mail included, which
easely can get scaled to keep more than a million
e-mail accounts, in a multidomain environment.

The Blog Module is following the actual blogging
standards, while remaining google compliant as
well as its completely fulltext searchable even
in an multiblog environment.

The shop system is not containing query urls any-
more, without use of mod_rewrite.

It is the best ecommerce and shopping plattform
worldwide.

Its written in PHP5.

--- End Message ---
--- Begin Message ---
It's such a good bit of software, the website to learn more about it is 
completely useless.

Gotta love it...



---- "M. Sokolewicz" <[EMAIL PROTECTED]> wrote: 
> 1. Who are you?
> 2. What is this?
> 3. Why should I care?
> 4. Don't spam.
> 
> Sascha Braun - CEO @ Braun Networks wrote:
> > The Spectral Authoring System is able to keep
> > round about 300.000 Document Kategories in one
> > Application.
> > 
> > 1.4 Million Screentexts are in use, while still
> > providing fast access.
> > 
> > The complete Application is Google Standard com-
> > pliant, without use of mod_rewrite, allowing long
> > directory pathes.
> > 
> > Its containing the only forum software worldwide
> > which is completely complying to the google stan-
> > dard for websites, without leaving holes in its
> > stucture.
> > 
> > As well there is an ajax driven webmail frontend
> > comparable to hotmail or yahoo mail included, which
> > easely can get scaled to keep more than a million
> > e-mail accounts, in a multidomain environment.
> > 
> > The Blog Module is following the actual blogging
> > standards, while remaining google compliant as
> > well as its completely fulltext searchable even
> > in an multiblog environment.
> > 
> > The shop system is not containing query urls any-
> > more, without use of mod_rewrite.
> > 
> > It is the best ecommerce and shopping plattform
> > worldwide.
> > 
> > Its written in PHP5.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Things to do before spamming a public English mailing list...

1) Make sure your email actually says what the product is
2) Make sure you have a relevant subject line
3) Make sure it's in English
4) Run it through a spelling checker, preferably an English one
5) Stop and think whether the people you're spamming are really gonna care!
6) This one is really important. Make sure you include a URL to the product's website. Oh, and make sure that website actually works, especially when it says it's powered by your product!

Some additional questions and notes that you may find useful...

* What the heck are "Kategories"? Maybe you mean categories?
* What the heck are "Screentexts"?
* As far as I know Google have never published any standards regarding URLs. Do you have a reference? * Claiming that your product is the only one in the whole wide world to do something is very dangerous. Would you bet the farm on it? Because what with the numerous highly litigious patent owners out there you could well be!
* "blogging standards"?? Another reference needed please.
* "The shop system is not containing query urls anymore, without use of mod_rewrite." What the heck does that mean? You had SQL in your URLs?
* It's the best is it? On what do you base that claim?

-Stut

--
http://stut.net/

Sascha Braun - CEO @ Braun Networks wrote:
The Spectral Authoring System is able to keep
round about 300.000 Document Kategories in one
Application.

1.4 Million Screentexts are in use, while still
providing fast access.

The complete Application is Google Standard com-
pliant, without use of mod_rewrite, allowing long
directory pathes.

Its containing the only forum software worldwide
which is completely complying to the google stan-
dard for websites, without leaving holes in its
stucture.

As well there is an ajax driven webmail frontend
comparable to hotmail or yahoo mail included, which
easely can get scaled to keep more than a million
e-mail accounts, in a multidomain environment.

The Blog Module is following the actual blogging
standards, while remaining google compliant as
well as its completely fulltext searchable even
in an multiblog environment.

The shop system is not containing query urls any-
more, without use of mod_rewrite.

It is the best ecommerce and shopping plattform
worldwide.

Its written in PHP5.

--- End Message ---
--- Begin Message ---
On Mon, 2007-09-10 at 16:39 +0100, Stut wrote:
> Things to do before spamming a public English mailing list...
>
> 6) This one is really important. Make sure you include a URL to the 
> product's website. Oh, and make sure that website actually works, 
> especially when it says it's powered by your product!

I think either the English content version doesn't work, was completely
forgotten about, or was never done. The German content is there though.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
At 4:39 PM +0100 9/10/07, Stut wrote:
Things to do before spamming a public English mailing list...
-snip-

-Stut

-Stut:

<my opinion>
Your time is far too valuable to be wasted on this.
</my opinion>

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Hello List,
This will probably be a some what long post for that apologize. I don't
really know much about PHP, usually If I want to do something I can Google
up an example and make it work for my needs. 
With this one im totally stumped though.
Here is what Im doing and need to do, I have a page where thousands of .png
images are loaded into a div dynamically via links, these images all have a
drag class applied to them and can be placed into a second div to create one
big picture.
 
Once the final image is created in the second div I need the ability to hit
a save button which will compile all these random images into one complete
picture and prompt the user to download the image to their computer
(preferably in .jpg format)
 
People have told me to check out imagecopy, imagecopymerge and imagemagik
which I have. I read all the information provided on php.net and the
imagemagik site. Probably is I totally dont understand how to accomplish
what im trying to do with these functions.
 
If someone could please give me an example of how to do this I would so much
appreciate it.
 
Thank you

-- 
View this message in context: 
http://www.nabble.com/compile-image-and-download-tf4414579.html#a12592516
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
Hello there,

Is there a way to get the child class name from within the parent method?

If so, how?

Thx in advance.

Example:

class MyParent {
 public static function start() {
  // Do something like this???
  return get_child_name(); // returns 'MyChild' in this case
 }
}

class MyChild extends MyParent {
 public static childStart() {
  // Should return the child class name.
  echo parent::start();
 }
}

--- End Message ---
--- Begin Message ---
----- Ursprüngliche Nachricht -----
Von: Mathijs <[EMAIL PROTECTED]>
Datum: Montag, September 10, 2007 3:19 pm
Betreff: [PHP] How to get the child name from within the parent?
An: [EMAIL PROTECTED]

> Hello there,
> 
> Is there a way to get the child class name from within the parent 
> method?

Yes.

> If so, how?

1) If you abandon static'ness, you can use 'get_class($this)' within parent 
class' func.
2) Fizzle around with some 'self' as pass over argument.
3) or else.....

But - I can't recognize any exigence. Could you describe *what* you wanna do so 
you must use this?

> 
> Thx in advance.
> 
> Example:
> 
> class MyParent {
>  public static function start() {
>   // Do something like this???

>   return get_child_name(); // returns 'MyChild' in this case

I don't know this function. I couldn't even find it at php doc.
WHAT is that ?

>  }
> }
> 
> class MyChild extends MyParent {

>  public static childStart() {

public static function childStart() {

>   // Should return the child class name.
>   echo parent::start();
>  }
> }
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

So far.

Rob

--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
----- Ursprüngliche Nachricht -----
Von: Mathijs <[EMAIL PROTECTED]>
Datum: Montag, September 10, 2007 3:19 pm
Betreff: [PHP] How to get the child name from within the parent?
An: [EMAIL PROTECTED]

Hello there,

Is there a way to get the child class name from within the parent method?

Yes.

If so, how?

1) If you abandon static'ness, you can use 'get_class($this)' within parent 
class' func.
2) Fizzle around with some 'self' as pass over argument.
3) or else.....

But - I can't recognize any exigence. Could you describe *what* you wanna do so 
you must use this?


I need this because i want to make a default Flow-Control class.
Other classes can extend from this flow class, and pass an array with the kind of flow they want.

Some of these methods are in the child-class and there for i need its name.

But i didn't checked non-static part yet.
Going to try this.

Thx.


Thx in advance.

Example:

class MyParent {
 public static function start() {
  // Do something like this???

  return get_child_name(); // returns 'MyChild' in this case

I don't know this function. I couldn't even find it at php doc.
WHAT is that ?

 }
}

class MyChild extends MyParent {

 public static childStart() {

public static function childStart() {

Oeps, forgot that.

  // Should return the child class name.
  echo parent::start();
 }
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


So far.

Rob

--- End Message ---
--- Begin Message ---
Chris wrote:
brian wrote:

- You can do without the "echo" by using, eg. <?= $message ?>


Yet later in another thread you complain about short_tags being an option.. can't have it both ways.

Oh, is that so? Let's see what i wrote ...

-- snip --
... Better yet, PHP should do away with <? ?> altogether but allow
<?= ?>, which is *very* helpful (to those of us who choose to use it).
-- snip --

Leave it as <?php echo $message; ?>

it's more portable - it will work on every single php server and you won't have any issues moving your code around.


-- snip --
I do agree that developing with short_open_tags = on is a Bad Idea if the app will not be under one's control.
-- snip --

But thanks. I know you were really trying.

brian

--- End Message ---
--- Begin Message --- Like I said "... or Imagemagick command line using exec()." It's been a stable release for years.

Kevin Waterson wrote:
This one time, at band camp, Al <[EMAIL PROTECTED]> wrote:
The Imagick php extension is at RC2 and like all beta ware,
should not be considered for a production environment.


Imagick PHP extension, easiest, or Imagemagick command line using exec().

Imagick to read a pdf and output it as a jpeg:

header('Content-type: image/jpeg');
$obj = new Imagick('xxxxx.pdf');
$obj->SetImageFormat('jpeg');
echo $obj;

Your want to use montage, resizing and write the result to a file, etc.




--- End Message ---
--- Begin Message --- Hello, first of all I want to make sure I am emailing the correct location/list. I have recently installed php-5-2-3 and built it from source. First time user and very green. I
used:

./configure --prefix=/opt/php-4.4.7 --with-apxs2=/opt/apache/bin/apxs --enable-mbstring
?with-imap=/opt/imaptemp/imap-2006k-src

as my configure command. I then completed it with make and make install, and then make test. It passed the test but returned a number of failures as well. I chose to send the report to whomever at PHP at the end of the make test, but I would like to know if there was anything critical in the test summary. Can you confirm where I need to send this request to and obtain some help?

Thanks in advance for anybodies help and direction,

Aaron

--- End Message ---

Reply via email to