php-general Digest 25 Jan 2006 14:52:57 -0000 Issue 3926

Topics (messages 229203 through 229234):

Re: Google using PHP @ <spam>
        229203 by: Peter Hoskin
        229208 by: Robert Cummings

Re: $_SESSION saves all values but Class -- works on one server butnot 
another?! [second plead for help]
        229204 by: Daevid Vincent
        229224 by: Jochem Maas

Re: imagettftext, text values. How to add a new line? is it \n?
        229205 by: Richard Correia

Re: Problem with Sessions
        229206 by: Richard Correia

Re: 5) [PHP] query problem.
        229207 by: Richard Correia

Re: Book Sample Code Help
        229209 by: Poppy Alexandra

upload_max_filesize
        229210 by: Daniel Lahey
        229211 by: David Robley
        229221 by: Richard Correia

QUARANTINED: Delivery reports about your e-mail
        229212 by: WorkgroupMail Content Filter

Re: Google using PHP @ "Google Store"
        229213 by: Dan Lowe
        229215 by: Angelo Zanetti

E-Mail Filter/Parser
        229214 by: Sascha Braun - immosky AG
        229218 by: Sascha Braun - immosky AG

Re: How to check if an object exists
        229216 by: David Grant

PHP / Apache + Error 500
        229217 by: Thomas
        229219 by: Albert
        229222 by: Jochem Maas
        229230 by: Thomas

Re: php5.0.5 include() terminates script BUGBUGBUGBUG
        229220 by: alex

forwarding from virtual email account to real email account
        229223 by: Binay
        229225 by: Albert
        229226 by: Jochem Maas
        229228 by: Angelo Zanetti

absolute vs relative path?
        229227 by: William Stokes
        229229 by: Jim Moseby
        229232 by: Geoff
        229233 by: Barry
        229234 by: Geoff

Re: Google using PHP @ http://www.google-store.com
        229231 by: tedd

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:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message --- Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site.

Yahoo use PHP and sponsor PHP - yet nobody talks about that :-/

James Benson wrote:
Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com

Nice to see :)


James


---------------------------------------------------------

http://www.ciwcertified.com - Master CIW Designer
http://www.zend.com - Zend Certified Engineer


http://www.jamesbenson.co.uk

---------------------------------------------------------


--- End Message ---
--- Begin Message ---
On Tue, 2006-01-24 at 21:41, Peter Hoskin wrote:
> Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think 
> this is a google owned site.
> 
> Yahoo use PHP and sponsor PHP - yet nobody talks about that :-/

Sure they do. Rasmus works for Yahoo and every once in a while one of
his posts will happen to contain a reference (and no, not as a
gratuitous plug :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Thank you, but again, not the problem.

The same code is on both servers. I'm not transfering from one server to
another. Only from page to page ON THE SAME SERVER. 

This has to be a configuration problem IMHO.

> -----Original Message-----
> From: James Benson [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 24, 2006 3:45 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: $_SESSION saves all values but Class -- 
> works on one server butnot another?! [second plead for help]
> 
> Take a look at the following functions:-
> 
> http://php.net/serialize
> http://php.net/unserialize

--- End Message ---
--- Begin Message ---
Daevid Vincent wrote:
No no no. I'm NOT passing data between servers. It's just two pages on the
same server. One that sets up the session/class and the other page just
re-loads the session.
When I talk about two different servers, I copy the entire source/db schema
from one server to the other so they are clones for all intents and
purposes.

One server works the way I'd expect.
The other doesn't.
SAME code on both. Same schema. Nearly identical LAMP versions.

keyword is 'Nearly' - please take into account that the behaviour
of php can change from version to version (sometimes the change is
completely unintentional and unwanted.):

[EMAIL PROTECTED]:/lockdown# php --version
PHP 5.0.3 (cli) (built: Jan  5 2006 13:18:18)

PHP5.0.3

Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.9, Copyright (c) 2003-2005, by Zend
Technologies
    with Zend Optimizer v2.6.0, Copyright (c) 1998-2005, by Zend
Technologies

the not working box doesn't run the Zend stuff - try turning it
off to see if that break your working machine (doubtful)


NOT WORKING BOX:
vmware apache2-php5 # php --version
PHP 5.0.5-pl3-gentoo (cli) (built: Dec 14 2005 15:44:04)

PHP5.0.5 (or even PHP5.0.5-pl3-gentoo what exotic flavor that might be)


given that the not working box is running php5.0.5 and the working box
a prior version gives me the sneaking suspicion (spelling!?) that
you may be looking at a reference related problem.

I assume your php CLI is from the same build as the apache module (or
whatever sapi your websaerver uses), correct? (otherwise you'll need
to look at the version info in phpinfo() as viewed via your webbrowser)

Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies
This is why I'm saying, it's not my PHP code or database or anything like
that.
It must be some kind of server configuration, but I can't figure out what it
would be. I've compared the php.ini files and don't see anything that seems
relevant.

the session is not set to auto start on the not working server per chance?




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 4:54 PM
To: php-general@lists.php.net
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

You say it's working on one box and not on the other? Maybe I'm wrong (and sounds like I am) but I thought that you couldn't pass objects between scripts even with serialize()?

Certainly sounds like it was working for you... can anyone clarify what objects/variables/data types can be passed from script to script and what can't?

tg, try the manual.


I know things like database connections can't be shared (that is, you can't assign a MySQL connect link to a variable then pass that variable/connect to the next script, it needs to reconnect the next time around.. or am I wrong about that too? hah)

-TG
God I'm tired

= = = Original message = = =

Thought I'd give this another shot since I still can't figure it out after
nearly a week...

I have a gentoo server that doesn't save/restore the CLASS portion of a session, but it does retain other $_SESSION values. This code works fine on
a debian box.

WORKING BOX:
[snip]



--- End Message ---
--- Begin Message ---
hey,

Check the properties at
http://www.weberdev.com/Manuals/PHP/function.imagettftext.html

You can try second imagettftext with new X and Y co-ordinates.

Thanks
Richard

On 1/25/06, Louie Miranda <[EMAIL PROTECTED]> wrote:
>
> imagettftext($im, $size, 0, 2, 13, $text_color,
> "includes/resources/SHELAS.TTF", "$text");
>
> I have generated this image text width=300 x height=300. The value of the
> $text is
>
> Hello World
>
> I want to get the second word which is World into the second line. I have
> tried \n but it has no effect.
>
> Would that be possible? Please help.
>
> --
> Louie Miranda
> http://www.axishift.com -- under development
>

--- End Message ---
--- Begin Message ---
upgrade to 4.4.X

4.2 has known problems in session handling.

Thanks,
Richard

On 1/24/06, Barry <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I got a very funny problem.
> I wonder if anyone else encountered that.
>
> I start a Session at Shop startpage to keep some arrays and such.
> Stuff you need for the Cart and so. so fine so good.
>
> But when the customer goes through that Page some session vars just get
> NULL.
> Not the whole session dies. nah just a few vars O_o
>
> I dont understand that.
> It happens not often, but at least 2 times a week.
>
> I have no var overwriting them.
>
> I wonder if anyone has an issue for that.
>
> Btw its PHP 4.2-2 running on a Red Hat system under GNu linux.
>
>
> really no idea what that is >_>
>
> Thanks
>         Barry
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Remove those brackets "<" and ">".

Or

print htmlentities($email_address);

Thanks
Richard

On 1/24/06, Duffy, Scott E <[EMAIL PROTECTED]> wrote:
>
> Viewing in browser? If so view source.
>
> -----Original Message-----
> From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 25, 2006 7:01 AM
> To: PHP List
> Subject: (SCL: 5) [PHP] query problem.
>
> Hi guys.
>
> I got an entry in a field called emailfrom in my table (MySQL db).
>
> The data in that field is: Sams Bank <[EMAIL PROTECTED]>
>
> I then do the following to retrieve the info, using a DB class
>
> $recordset=$conn->Execute("SELECT * FROM wiml_history WHERE id =
> $task_id");
> $row=$recordset->GetArray();
>
> $emailfrom=$row[0]['emailfrom'];
>
> then I echo what I get out and I just get Sams Bank
>
> It doesnt bring back the whole entry in that field,
> however when I manually change the info in the field in the DB to:
>
> Sams Bank [EMAIL PROTECTED], it retrieves it correctly.
>
> Why does the < > cause that not to be displayed? or is it retrieving it
> correctly but not showing it because of the < > (which might be
> conflicting with HTML tags?
>
> thanks in advance
>
>
> --
>
>

--- End Message ---
--- Begin Message ---
which doesn;t actually answer my question :-) you see I have my suspicions
about a book named 'Spidering Hacks' - if it was meat I doubt it would be
kosher or halal.



Hello Jochem

It's actually an interesting text with an evil name. I agree the title might sounds suspicious so to answer your question : no. No link farms or spambots, very much kosher and halal :)


I maintain several web sites so I battle spam and spambots on a daily basis, so I understand you being suspicious.

Thanks again for your help getting the code working.



Pop

_________________________________________________________________
Make your dream car a reality http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fcarpoint%2Eninemsn%2Ecom%2Eau&_t=12345&_r=emailtagline&_m=EXT
--- End Message ---
--- Begin Message --- A client has started experiencing problems with uploading files larger than the default 2M set in php.ini. The problem only started occurring a few weeks or so ago, and I cannot figure out how to get around it. I have a php.ini file in the /public_html folder that reads:

post_max_size 8388608
upload_max_filesize 8388608

I've also tried peppering the code with calls to ini_set ('upload_max_filesize', '8388608'); In desparation, I've also tried a .htaccess file that reads:

<IfModule mod_php5.c>
    php_value upload_max_filesize 8388608
</IfModule>
<IfModule mod_php4.c>
    php_value upload_max_filesize 8388608
</IfModule>

Nothing seems to work. This didn't used to be a problem. I can upload files smaller than 2M just fine. Any ideas?

TIA

--- End Message ---
--- Begin Message ---
Daniel Lahey wrote:

> A client has started experiencing problems with uploading files
> larger than the default 2M set in php.ini.  The problem only started
> occurring a few weeks or so ago, and I cannot figure out how to get
> around it.  I have a php.ini file in the /public_html folder that reads:
> 
> post_max_size 8388608
> upload_max_filesize 8388608
> 
> I've also tried peppering the code with calls to ini_set
> ('upload_max_filesize', '8388608');   In desparation, I've also tried
> a .htaccess file that reads:
> 
> <IfModule mod_php5.c>
>      php_value upload_max_filesize 8388608
> </IfModule>
> <IfModule mod_php4.c>
>      php_value upload_max_filesize 8388608
> </IfModule>
> 
> Nothing seems to work.  This didn't used to be a problem.  I can
> upload files smaller than 2M just fine.  Any ideas?
> 
> TIA

Have you checked the value for MAX_FILE_SIZE in the upload form?


Cheers
-- 
David Robley

Someone threw a beer at Clinton. He dodged it. No doubt a draft.

--- End Message ---
--- Begin Message ---
check MAX_FILE_SIZE attribute of file tag.

Also does your webserver impose any file upload limit?

Thanks
Richard


On 1/25/06, Daniel Lahey <[EMAIL PROTECTED]> wrote:
>
> A client has started experiencing problems with uploading files
> larger than the default 2M set in php.ini.  The problem only started
> occurring a few weeks or so ago, and I cannot figure out how to get
> around it.  I have a php.ini file in the /public_html folder that reads:
>
> post_max_size 8388608
> upload_max_filesize 8388608
>
> I've also tried peppering the code with calls to ini_set
> ('upload_max_filesize', '8388608');   In desparation, I've also tried
> a .htaccess file that reads:
>

--- End Message ---
--- Begin Message ---
The message "Delivery reports about your e-mail" from Bounced mail, sent on 
1/25/2006 08:21 was quarantined because it contained either an executable file, 
a batch file or a screen saver file. All of these types of attachments are 
considered security risks. Please consult your mail administrator who can 
release the message.

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

On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote:

Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site.

It's implied right on the front page it's not directly run by Google.

"Produced for Google Inc. by Merchandise Mania Limited"

My guess is this is an outsource deal Google did because they don't want to get into the business of manufacturing t-shirts and coffee mugs. If you do a Google search for "Google Store" this site will show up as a sponsored link.

 -dan

--
Any event, once it has occurred, can be made to appear inevitable
by a competent historian.             -Lee Simonson




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


Dan Lowe wrote:

On Jan 24, 2006, at 9:41 PM, Peter Hoskin wrote:

Its hosted from 85.13.206.209.reverse.coreix.net - somehow I don't think this is a google owned site.


It's implied right on the front page it's not directly run by Google.

"Produced for Google Inc. by Merchandise Mania Limited"

My guess is this is an outsource deal Google did because they don't want to get into the business of manufacturing t-shirts and coffee mugs. If you do a Google search for "Google Store" this site will show up as a sponsored link.

 -dan

well at least they endorse it!

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

I started to write an E-Mail Parser so E-Mails from different Internet
Plattforms can be sorted automatically into an customer database.

Everything is working pretty fine, but only if all expected fields
appear in the Mail from the sending plattform.

But sometimes the Mails send out by a plattform doesnt contain all
fields the filter expects. And i dont know how to write the foreach
loop I am using to walk over the current field to check if the start
element of the next needed field occours so the parsing for the needed
element can stop somewhere and start reading the next field element.

A Filter looks like that, at the moment:

Array
(
    [attribute] => Array
        (
            [plattform] => plattform.com
        )

    [firstname] => Array
        (
            [attribute] => Array
                (
                    [read_init] => Name: 
                    [read_from] => Name: 
                    [read_to] =>  
                )

        )

    [name] => Array
        (
            [attribute] => Array
                (
                    [read_init] =>  
                    [read_from] =>  
                    [read_to] => Anschrift: 
                )

        )

    [adress] => Array
        (
            [attribute] => Array
                (
                    [read_init] => Anschrift:
                    [read_from] => Anschrift:
                    [read_to] => ,
                )

        )

    [plz] => Array
        (
            [attribute] => Array
                (
                    [read_init] => ,
                    [read_from] => , 
                    [read_to] =>  
                )

        )

    [city] => Array
        (
            [attribute] => Array
                (
                    [read_init] =>  
                    [read_from] =>  
                    [read_to] => E-Mail:
                )

        )

    [email] => Array
        (
            [attribute] => Array
                (
                    [read_init] => E-Mail: 
                    [read_from] => E-Mail: 
                    [read_to] => Telefon:
                )

        )

    [phone] => Array
        (
            [attribute] => Array
                (
                    [read_init] => Telefon: 
                    [read_from] => Telefon: 
                    [read_to] => Folgender
                )

        )

    [comment1] => Array
        (
            [attribute] => Array
                (
                    [read_init] => ussert:
                    [read_from] => ussert:
                    [read_to] => Kommentar: 
                )

        )

    [comment2] => Array
        (
            [attribute] => Array
                (
                    [read_init] => Kommentar: 
                    [read_from] => Kommentar: 
                    [read_to] => ===
                )

        )

    [headline] => Array
        (
            [attribute] => Array
                (
                    [read_init] => berschrift: 
                    [read_from] => berschrift: 
                    [read_to] => Anzeige 
                )

        )

    [object] => Array
        (
            [attribute] => Array
                (
                    [read_init] => Objekt Nr: 
                    [read_from] => Objekt Nr: 
                    [read_to] => )
                )

        )

)

And the filter funltion looks like that, at the moment:

private function filter_email($message)
    // Filter upcomming email messages into the immetix database
    {
        
        if (is_dir($this -> filter_folder)) {
        
                        if ($filters = opendir($this -> filter_folder)) {
                                
                                while(($filter = readdir($filters)) !== false) {
                                
                                        if ($filter != "." && $filter != "..") {
                                                
                                                $xml = new xml_mm($this -> 
filter_folder.$filter);
                                                
                                                if (!empty($xml -> 
email_filter['attribute']['plattform']) &&
substr_count(strtolower($message), $xml ->
email_filter['attribute']['plattform'])) {
                                                        
                                                        unset($xml -> 
email_filter['attribute']);
                                                        
                                                        foreach($xml -> 
email_filter as $key => $value) {
                                                        
                                                                if ($pos = 
strpos($message, $xml ->
email_filter[$key]['attribute']['read_init'])) {
                                                                                
                                                                        
$message = substr($message, $pos + strlen($xml ->
email_filter[$key]['attribute']['read_from']), strlen($message) - $pos);
                                                                }
                                                                
                                                                $this -> 
element[$key] = trim(substr($message, 0,
strpos($message, $xml -> email_filter[$key]['attribute']['read_to'])));
                                                        }
                                                }
                                        }       
                                }
                                closedir($filters);
                        }       
                }
    }

It would be nice to know how i can iterate over the next elements of the
email filter array till a valid field part is found and the iteration
can start with the next element of the filter, from the last occourance
of a valid read_init string.

Hope i described my problem well enough, otherwise please ask, because
this filter seems to be a pretty cool script, because there is not found
anything similar at google at this time :))

Thanks for your help.

Best Regards,

Sascha Braun

--- End Message ---
--- Begin Message ---
But how can i get the next key in a foreach loop?

Can't see how i can use a continue statement in that circumstance?

Am Mittwoch, den 25.01.2006, 11:28 +0200 schrieb Geoff:
> Possibly the continue statement would help you?
> 
> Geoff.
> 
> 
> On 25 Jan 2006 at 10:12, Sascha Braun - immosky AG wrote:
> 
> > Hi,
> > 
> > I started to write an E-Mail Parser so E-Mails from different Internet
> > Plattforms can be sorted automatically into an customer database.
> > 
> > Everything is working pretty fine, but only if all expected fields
> > appear in the Mail from the sending plattform.
> > 
> > But sometimes the Mails send out by a plattform doesnt contain all
> > fields the filter expects. And i dont know how to write the foreach
> > loop I am using to walk over the current field to check if the start
> > element of the next needed field occours so the parsing for the needed
> > element can stop somewhere and start reading the next field element.
> > 
> > A Filter looks like that, at the moment:
> > 
> > Array
> > (
> >     [attribute] => Array
> >         (
> >             [plattform] => plattform.com
> >         )
> > 
> >     [firstname] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => Name: 
> >                     [read_from] => Name: 
> >                     [read_to] =>  
> >                 )
> > 
> >         )
> > 
> >     [name] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] =>  
> >                     [read_from] =>  
> >                     [read_to] => Anschrift: 
> >                 )
> > 
> >         )
> > 
> >     [adress] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => Anschrift:
> >                     [read_from] => Anschrift:
> >                     [read_to] => ,
> >                 )
> > 
> >         )
> > 
> >     [plz] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => ,
> >                     [read_from] => , 
> >                     [read_to] =>  
> >                 )
> > 
> >         )
> > 
> >     [city] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] =>  
> >                     [read_from] =>  
> >                     [read_to] => E-Mail:
> >                 )
> > 
> >         )
> > 
> >     [email] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => E-Mail: 
> >                     [read_from] => E-Mail: 
> >                     [read_to] => Telefon:
> >                 )
> > 
> >         )
> > 
> >     [phone] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => Telefon: 
> >                     [read_from] => Telefon: 
> >                     [read_to] => Folgender
> >                 )
> > 
> >         )
> > 
> >     [comment1] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => ussert:
> >                     [read_from] => ussert:
> >                     [read_to] => Kommentar: 
> >                 )
> > 
> >         )
> > 
> >     [comment2] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => Kommentar: 
> >                     [read_from] => Kommentar: 
> >                     [read_to] => ===
> >                 )
> > 
> >         )
> > 
> >     [headline] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => berschrift: 
> >                     [read_from] => berschrift: 
> >                     [read_to] => Anzeige 
> >                 )
> > 
> >         )
> > 
> >     [object] => Array
> >         (
> >             [attribute] => Array
> >                 (
> >                     [read_init] => Objekt Nr: 
> >                     [read_from] => Objekt Nr: 
> >                     [read_to] => )
> >                 )
> > 
> >         )
> > 
> > )
> > 
> > And the filter funltion looks like that, at the moment:
> > 
> > private function filter_email($message)
> >     // Filter upcomming email messages into the immetix database
> >     {
> >             
> >             if (is_dir($this -> filter_folder)) {
> >     
> >                     if ($filters = opendir($this -> filter_folder)) {
> >                             
> >                             while(($filter = readdir($filters)) !== false) {
> >                             
> >                                     if ($filter != "." && $filter != "..") {
> >                                             
> >                                             $xml = new xml_mm($this -> 
> > filter_folder.$filter);
> >                                             
> >                                             if (!empty($xml -> 
> > email_filter['attribute']['plattform']) &&
> > substr_count(strtolower($message), $xml ->
> > email_filter['attribute']['plattform'])) {
> >                                                     
> >                                                     unset($xml -> 
> > email_filter['attribute']);
> >                                                     
> >                                                     foreach($xml -> 
> > email_filter as $key => $value) {
> >                                                     
> >                                                             if ($pos = 
> > strpos($message, $xml ->
> > email_filter[$key]['attribute']['read_init'])) {
> >                                                                             
> >                                                                     
> > $message = substr($message, $pos + strlen($xml ->
> > email_filter[$key]['attribute']['read_from']), strlen($message) - $pos);
> >                                                             }
> >                                                             
> >                                                             $this -> 
> > element[$key] = trim(substr($message, 0,
> > strpos($message, $xml -> email_filter[$key]['attribute']['read_to'])));
> >                                                     }
> >                                             }
> >                                     }       
> >                             }
> >                             closedir($filters);
> >                     }       
> >             }
> >     }
> > 
> > It would be nice to know how i can iterate over the next elements of the
> > email filter array till a valid field part is found and the iteration
> > can start with the next element of the filter, from the last occourance
> > of a valid read_init string.
> > 
> > Hope i described my problem well enough, otherwise please ask, because
> > this filter seems to be a pretty cool script, because there is not found
> > anything similar at google at this time :))
> > 
> > Thanks for your help.
> > 
> > Best Regards,
> > 
> > Sascha Braun
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> 

--- End Message ---
--- Begin Message ---
Derrick,

Derrick Shoemake wrote:
> It appears that the error I was getting wasn't really related to my
> problem. I'm getting a error in httpd-error.log
> 
> httpd in free(): error: junk pointer, too high to make sense
> [Tue Jan 24 17:11:32 2006] [notice] child pid 22665 exit signal Abort
> trap (6)
> 
> Is there any way to track down where the code is failing? It's not
> creating any dump file that I can see. I don't mind digging into this to
> either report a bug to php.net,  apache.org or even just fix the code
> myself and submit a patch to someone, but I'm a little new to the php
> and apache working together.

This might be related to PHP, but I would start out by asking around the
Apache community.

David
-- 
David Grant
http://www.grant.org.uk/

--- End Message ---
--- Begin Message ---
Hi there!

I am sitting with something of a mystery and was wondering if there is
someone out that might have dealt with this before:

I have developed a site that runs well and fine on my machine
(XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as
Cache_Lite.

The site has been put up on the live server and works (mostly) fine there
too, with the exception of Internal Server errors 500, ever so often. It's
pretty random and can happen to any of the scripts (they all run through a
single index.php script that instantiates objects that then spit out the
resulting html).

I had a look at the Apache log file I got from the SP ... no clue. All I
know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

They say that it is not their server but my scripts, however, if that was
the case I would get these errors on my machine too. Also, the randomness of
this also indicates that it can't really be my php scripts, otherwise it
would happen all the time.

Does anybody have any suggestion as to how I can solve this issue? I know
this is pretty vague information, but it's all I have (hence the confusion).

Thanks,
Thomas


SPIRAL EYE STUDIOS 
P.O. Box 37907, Faerie Glen, 0043

Tel: +27 12 362 3486
Fax: +27 12 362 3493 
Mobile: +27 82 442 9228
Email: [EMAIL PROTECTED]
Web: www.spiraleye.co.za 

--- End Message ---
--- Begin Message ---
Thomas wrote:
> I had a look at the Apache log file I got from the SP ... no clue. All I
> know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

Did you look at the access_log or error_log?

The error_log should give you an indication of why it is happening.

Do you try to access system files or use a lot of memory? Are you sure that
the production server has all the modules installed that your testing server
has? Quite important, is the same version installed on your testing server
as on the production server?

> They say that it is not their server but my scripts, however, if that was
> the case I would get these errors on my machine too. Also, the randomness
> of this also indicates that it can't really be my php scripts, otherwise 
> it would happen all the time.

Yes and no. You can only say that with certainty if your test and production
environments are the same. 

If you are absolutely 100% certain that it is not your scripts, start
looking at the differences between what you have and what your ISP provides.

Alternatively test it on another server as well. 

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006/01/24
 

--- End Message ---
--- Begin Message ---
Thomas wrote:
Hi there!

I am sitting with something of a mystery and was wondering if there is
someone out that might have dealt with this before:

I have developed a site that runs well and fine on my machine
(XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as

php5.WHAT?

Cache_Lite.

it's not completely impossible that HTML_Template_Flexy or Cache_Lite run
on either php5.1 and above OR on php5.0.4 and below but not both.


The site has been put up on the live server and works (mostly) fine there
too, with the exception of Internal Server errors 500, ever so often. It's
pretty random and can happen to any of the scripts (they all run through a
single index.php script that instantiates objects that then spit out the
resulting html).

I had a look at the Apache log file I got from the SP ... no clue. All I
know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

php5.WHAT?

I would suggest getting both systems to run the same version of the software
packages you mention. it might cut out a few unknowns.


They say that it is not their server but my scripts, however, if that was
the case I would get these errors on my machine too. Also, the randomness of
this also indicates that it can't really be my php scripts, otherwise it
would happen all the time.

Does anybody have any suggestion as to how I can solve this issue? I know
this is pretty vague information, but it's all I have (hence the confusion).

Thanks,
Thomas


SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen, 0043

Tel: +27 12 362 3486
Fax: +27 12 362 3493 Mobile: +27 82 442 9228
Email: [EMAIL PROTECTED]
Web: www.spiraleye.co.za

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

PHP5.0.4, on both systems. I suspect that either of the PEAE modules cause
some server id10t error (if indeed the issue is on my side).

Thomas

-----Original Message-----
From: Jochem Maas [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2006 03:00 PM
To: Thomas
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP / Apache + Error 500

Thomas wrote:
> Hi there!
> 
> I am sitting with something of a mystery and was wondering if there is
> someone out that might have dealt with this before:
> 
> I have developed a site that runs well and fine on my machine
> (XP/Apache2/PHP5/MySQL5). I am using PEAR::HTML_Template_Flexy as well as

php5.WHAT?

> Cache_Lite.

it's not completely impossible that HTML_Template_Flexy or Cache_Lite run
on either php5.1 and above OR on php5.0.4 and below but not both.

> 
> The site has been put up on the live server and works (mostly) fine there
> too, with the exception of Internal Server errors 500, ever so often. It's
> pretty random and can happen to any of the scripts (they all run through a
> single index.php script that instantiates objects that then spit out the
> resulting html).
> 
> I had a look at the Apache log file I got from the SP ... no clue. All I
> know is that they use Apache 1.x/PHP5/Linux/MySQL(v4?).

php5.WHAT?

I would suggest getting both systems to run the same version of the software
packages you mention. it might cut out a few unknowns.

> 
> They say that it is not their server but my scripts, however, if that was
> the case I would get these errors on my machine too. Also, the randomness
of
> this also indicates that it can't really be my php scripts, otherwise it
> would happen all the time.
> 
> Does anybody have any suggestion as to how I can solve this issue? I know
> this is pretty vague information, but it's all I have (hence the
confusion).
> 
> Thanks,
> Thomas
> 
> 
> SPIRAL EYE STUDIOS 
> P.O. Box 37907, Faerie Glen, 0043
> 
> Tel: +27 12 362 3486
> Fax: +27 12 362 3493 
> Mobile: +27 82 442 9228
> Email: [EMAIL PROTECTED]
> Web: www.spiraleye.co.za 
> 

--- End Message ---
--- Begin Message ---
thanks all for your help.. i have upgraded to php5.1.2 and the problem has 
resolved itself...as it stands for me php5.0.5 cannot handle multiple 
include statments..
regards alex
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> David Hall wrote:
>> Jochem Maas wrote:
>>
>>>>
>>>> the first and second line you can alter it or just switch between 
>>>> pending if you want it to display the file or just to tell you if it 
>>>> exists or not.... so...applying this code just before my include 
>>>> statments all verifys ok....(thats the file exists) if i use line 1 
>>>> nothing appears....it says the file exists according to line 2 yet it 
>>>> wont display....??? of course i REM either line out 
>>>> accordingly.....so...the register page starts with an include called 
>>>> session.php in that session.php i have another 3 includes... 
>>>> mailer.php,database.php and form.php each tested for line 2 and ok but 
>>>> not for line 1 nothing appears if i move that phpinfo.php file around 
>>>> into those directories(folders and subfolders) and test it then it ok's 
>>>> for line 1 i get a display and ok for line 2 too. but of course 
>>>> phpinfo.php when called doesnt have another include statement in it... 
>>>> i really cant explain it perhaps php 5.0.5 doesnt support multiple 
>>>> include statements....strange???
>>>
>>>
>>> thats just silly.
>>
>>
>> it just isn't displaying errors, doing all this nonsense with file exists 
>> is a waste of time, just add two lines to the top of your script (that 
>> includes the file):
>>
>> error_reporting(E_ALL);
>> ini_set('display_errors','on');
>>
>> (or set these values in the php.ini if you have access to that)
>> and look at what that tells you.  You might not understand the error at 
>> first, but hopefully you will.  My guess is that it will tell you it 
>> can't parse your included file.
>
> right - waste of time - not displaying errors.
> I have documented a problem that has existed since php5beta3 - namely 
> under certain
> conditions (only ever in big codebases in seems) a failed require 
> statement will NOT
> GENERATE ANY ERRORS REGARDLESS OF THE RELATED INI SETTINGS AND CAUSE THE
> ENGINE TO STOP PROCESSING. (you might guess that this problem is a little 
> annoying!)
>
> so the OP _may_ be a blithering idiot who hasn't turned on error reporting 
> to
> full BUT there is a very good chance that php is borking on one of his 
> includes/requires
> and crapping out WITHOUT any errors being reporting.
>
> so its seems like it should be nonsense but it reality there is a real 
> issue the OP
> could walking into.
>
>>
>> David Hall
>> 

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


Is it possible that we create a virtual email account(no physical existence) 
e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. 
[EMAIL PROTECTED] so that if any body sends the email to virtual email account 
[EMAIL PROTECTED] will be automatically forwarded to the real email account 
[EMAIL PROTECTED] Is it achievable using PHP ? Please throw some light as this 
becoming a major requirement of my client.

Thanks in adance,
Binay

--- End Message ---
--- Begin Message ---
Binay wrote:
> Is it possible that we create a virtual email account(no physical 
> existence) e.g [EMAIL PROTECTED] which will be associated with a real email
> account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual
> email account [EMAIL PROTECTED] will be automatically forwarded to the real
> email account [EMAIL PROTECTED] Is it achievable using PHP ? Please throw 
> some light as this becoming a major requirement of my client.

What you described here is called MAIL FORWARDING or often MAIL ALIASSING.

It is a functionality of your mail server.

Contact your ISP for assistance on setting this up. If you run your own mail
server look at the docs.

If you want to use PHP for this (not recommended because the mail server can
do it already) you need to write a script which check email on one account
and then email it to the other accounts.

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.22/239 - Release Date: 2006/01/24
 

--- End Message ---
--- Begin Message ---
Binay wrote:
Hi All,


Is it possible that we create a virtual email account(no physical existence) 
e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. 
[EMAIL PROTECTED] so that if any body sends the email to virtual email account 
[EMAIL PROTECTED] will be automatically forwarded to the real email account 
[EMAIL PROTECTED] Is it achievable using PHP ? Please throw some light as this 
becoming a major requirement of my client.

how is it possible that you can list the following solutions/skills on
your website and not know what an email alias is???

Web Application Development
Website Design & Development
Web Hosting
Search Engine Ranking Services
Content Management Solution
e-Commerce Solutions
B2B & B2C Portal Development
Intranet & Extranet Solutions
Document Management System
e-CRM Solutions
Supply Chain Management
Sales Force Automation
Workflow Management Solutions


Thanks in adance,
Binay

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

Binay wrote:
Hi All,


Is it possible that we create a virtual email account(no physical existence) 
e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. 
[EMAIL PROTECTED] so that if any body sends the email to virtual email account 
[EMAIL PROTECTED] will be automatically forwarded to the real email account 
[EMAIL PROTECTED] Is it achievable using PHP ? Please throw some light as this 
becoming a major requirement of my client.

Thanks in adance,
Binay

in the server configuration software (eg PLESK or cPAnel) you can create email address that just redirect as soon as an email is sent to them, so Im not sure where PHP ties in, but this could be what you are looking for?
--- End Message ---
--- Begin Message ---
Hello,

I Have a web site on one server and a test site on another. How can I build 
the hyperlinks so that they work on both servers without modification.

For example build this link dynamically:
"http://www.domain.com/www/test.php

In test server the same should be:
"http://internalserver/www/test.php

Thanks
-Will 

--- End Message ---
--- Begin Message ---
> Hello,
> 
> I Have a web site on one server and a test site on another. 
> How can I build 
> the hyperlinks so that they work on both servers without modification.
> 
> For example build this link dynamically:
> "http://www.domain.com/www/test.php
> 
> In test server the same should be:
> "http://internalserver/www/test.php
> 

Well, for hyperlinks to local pages, you can leave off the domain part all
together.  So in the above example you would just use "/www/test.php".  Any
hyperlinks to remote servers would be the same in test as they are in
production.

JM

--- End Message ---
--- Begin Message ---
On 25 Jan 2006 at 15:19, William Stokes wrote:

> Hello,
> 
> I Have a web site on one server and a test site on another. How can I build 
> the hyperlinks so that they work on both servers without modification.
> 
> For example build this link dynamically:
> "http://www.domain.com/www/test.php
> 
> In test server the same should be:
> "http://internalserver/www/test.php

Non-php solution:

Use relative links. Instead of referring to a page as 
"http://www.domain.com/www/test.php";, rather just use 
"/www/test.php" or even just "/test.php", if the script containing 
that link is already in /www. Thus your links will look the same on 
both versions.

php-based solution:

If you must have absolute URLs (maybe to do redirects or SSL) use:
$_SERVER["SERVER_NAME"]
it will return either "www.domain.com" or "internalserver". So you 
can build your links as:

<?php
$url = 'http://' . $_SERVER["SERVER_NAME"] . '/www/test.php';
?>

Geoff.

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

--- End Message ---
--- Begin Message ---
Geoff wrote:
On 25 Jan 2006 at 15:19, William Stokes wrote:


Hello,

I Have a web site on one server and a test site on another. How can I build the hyperlinks so that they work on both servers without modification.

For example build this link dynamically:
"http://www.domain.com/www/test.php

In test server the same should be:
"http://internalserver/www/test.php


Non-php solution:

Use relative links. Instead of referring to a page as "http://www.domain.com/www/test.php";, rather just use "/www/test.php" or even just "/test.php", if the script containing that link is already in /www. Thus your links will look the same on both versions.

/test.php would refer to root.
so it would be www.domain.com/test.php
not www.domain.com/www/test.php (!)

probably a small typo ;)

Barry

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

On 25 Jan 2006 at 15:22, Barry wrote:

> Geoff wrote:
> > On 25 Jan 2006 at 15:19, William Stokes wrote:
> > 
> > 
> >>Hello,
> >>
> >>I Have a web site on one server and a test site on another. How can I build 
> >>the hyperlinks so that they work on both servers without modification.
> >>
> >>For example build this link dynamically:
> >>"http://www.domain.com/www/test.php
> >>
> >>In test server the same should be:
> >>"http://internalserver/www/test.php
> > 
> > 
> > Non-php solution:
> > 
> > Use relative links. Instead of referring to a page as 
> > "http://www.domain.com/www/test.php";, rather just use 
> > "/www/test.php" or even just "/test.php", if the script containing 
> > that link is already in /www. Thus your links will look the same on 
> > both versions.
> 
> /test.php would refer to root.
> so it would be www.domain.com/test.php
> not www.domain.com/www/test.php (!)
> 
> probably a small typo ;)

Oops, twas indeed. Well spotted :->

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

--- End Message ---
--- Begin Message ---
Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com

Nice to see :)

James

It would be nice to see them being w3c compliant, but they aren't.

tedd

--
--------------------------------------------------------------------------------
http://sperling.com/

--- End Message ---

Reply via email to