php-general Digest 19 Oct 2006 06:30:13 -0000 Issue 4409

Topics (messages 243300 through 243328):

Re: postback for php
        243300 by: Ed Lazor
        243302 by: Fred Moses
        243325 by: Manuel Lemos

Re: php_admin_value, virtual hosts, & upload_tmp_dir
        243301 by: Richard Lynch
        243306 by: Michael Hogsett

Re: book on PHP security
        243303 by: Rory Browne
        243305 by: Richard Lynch

Re: How to recognise url in a block of text
        243304 by: Richard Lynch
        243319 by: AYSERVE.NET

PHP 5.16 and Sihuson
        243307 by: Google Kreme
        243324 by: Chris
        243328 by: Roman Neuhauser

Re: random string
        243308 by: eric1235711

Re: Automatically rounding numbers?
        243309 by: Jochem Maas

Creating thumbnails using Image Functions, then saving to folders
        243310 by: Matthews, Chris
        243311 by: Eric Butera
        243312 by: Børge Holen
        243313 by: Al
        243314 by: Børge Holen

Re: Interchange.
        243315 by: Rory Browne
        243318 by: João Cândido de Souza Neto

Mapped Drive issue
        243316 by: Rob Kritzer
        243317 by: Stut

Re: corrupt image when viewed using PHP
        243320 by: Google Kreme

Sessions /cookies issue
        243321 by: Dave Goodchild
        243327 by: Chris

What is the smallest, fastest web server to run PHP and SSL (on a soekris box)
        243322 by: Daevid Vincent
        243323 by: Jon Anderson

O.T. web site contractor wanted
        243326 by: Dave

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 ---

On Oct 18, 2006, at 8:43 AM, Justin Cook wrote:

I believe he is talking about the concept of postback in ASP.Net. PHP does not have anything built in for this.
  _____

Is that where the same script displays a form and processes the data when the form is submitted?
--- End Message ---
--- Begin Message ---
Miles Thompson wrote:
At 11:48 AM 10/18/2006, M.Sokolewicz wrote:

Ross wrote:
Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this?

R.
please explain, in details, what it is you're looking for. "postback for php - a function to do this" doesn't mean squat to most people. Please EXPLAIN.

- tul

Yes, not a helpful description. Maybe he means a callback function which would do something like
    echo '<a href="'. $_SERVER['PHP_SELF'] .'">Please try again</a>';
and he may have to pass a variable string.

M.



First approximation:
Postback is an ASP.NET mechanism for running server side code as part of a page execution cycle when the user clicks a control which has been set up for this. "<a href="'. $_SERVER['PHP_SELF']..." is an example. A more general example in the PHP world is creating a form with the action referring to the same page. At the beginning of the page, one checks for an action field the value of which is used to dispatch to some code relevant to the action. Both systems can yield similar effects.

For more info, just Google "postback".

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

on 10/18/2006 01:56 PM Ross said the following:
> Looked on google and not found a satisfactory answer. Doies anyone have a 
> funtion to do this?

Take a look at this forms generation class. It comes with a plug-in for
submitting forms via AJAX, thus without page reloading. On the server
side you can get a message and reply to the message to script the
actions that will be executed on the browser side as response.

That was used for instance by this search page that uses AJAX postback
for pagination of results and also for auto completing text in the
search input.

http://www.phpclasses.org/search.html?words=mysql+xml&go_search=1

The forms class with all plug-ins is available here. Take a look in
particular at the test_ajax_form.php script for a post back example.

http://www.phpclasses.org/formsgeneration

-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

--- End Message ---
--- Begin Message ---
On Tue, October 17, 2006 8:57 pm, Michael Hogsett wrote:
> Do you think there's any chance that it would be related to
> some other setting within the php.ini file?

The badly-named and oft-misunderstood "safe_mode" is my GoTo for Blame
Analysis on stuff like this... :-)

This is not Science, but Voodoo Debugging...

YMMV

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
The badly-named and oft-misunderstood "safe_mode" is my GoTo for Blame
Analysis on stuff like this... :-)

I checked.  It's off.

This is not Science, but Voodoo Debugging...

No doubt.

Thanks for the info.

 - Mike

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


--- End Message ---
--- Begin Message ---
Essencial PHP Security, Published by O'Reilly, and written by Chris Shiflett

I've never read it, but "Book", "PHP Security", and "Chris Shiflett" in the
same sentence means you're in for a treat.

Any serious discussion on this list security related generally involves a
request for input from Chris Shiflett.

On 10/18/06, Angelo Zanetti <[EMAIL PROTECTED]> wrote:

HI,

can anyone recommend a really good book on security with PHP?

Thanks in advance



--- End Message ---
--- Begin Message ---
On Wed, October 18, 2006 11:04 am, Angelo Zanetti wrote:
> can anyone recommend a really good book on security with PHP?

http://phpsec.org is also a must-read.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
On Wed, October 18, 2006 3:05 am, Ivo F.A.C. Fokkema wrote:
'<(?:(?:https?)://(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]|[a-zA-Z])[.]?)|(?:[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)))(?::(?:(?:[0-9]*)))?(?:/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)(?:;(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*)(?:/(?:(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)(?:;(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*))*))(?:[?](?:(?:(?:[;/?:@&=+$,a-zA-Z0-9\\-_.!~*\'()]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)))?))?)>';

/^(ht|f)tps?:\/\/([0-9]{1,3}(\.[0-9]{1,3}){3}|([0-9a-z][-0-9a-z]*[0-9a-z]\.)+[a-z]{2,4})\/?[%&=#0-9a-z\/._+-]*\??.*$/i

/((ht|f)tps?:\/\/([0-9]{1,3}(\.[0-9]{1,3}){3}|([0-9a-z][-0-9a-z]*[0-9a-z]\.)+[a-z]{2,4})\/?[%&=#0-9a-z\/._+-]*\??[^[:space:]]+)/i

> It has worked fine for me, but I just can't read your regexp, so I
> can't
> see why it's better.

For starters, I belive this URL will work for them, but not you:

http://example.com:8080

I think you are also missing the new-fangled .musuem and other TLDs.

I can't read PCRE well enough to say for sure for either of them,
honestly.

But I'd have to say that sucking down Perl's Common one that a zillion
people are more or less happy with [*] is probably a better answer
than rolling your own.

[*] I'm under no illusion that there aren't a couple thousand Perl
users arguing over this PCRE right this minute, but happiness is
relative.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
Hello Guys,
I thought I was home and dry when the program worked fine on my windows but when I ran from my Linus server, I keep getting a url like: http://www.website.com/pdf/ED1.pdf%A0 instead of http://www.website.com/pdf/ED1.pdf.

As a result, the link is not working. Please help.

Regards,
Bunmi
www.ayserve.net
www.budelak.com

AYSERVE.NET wrote:
Hello Robin,
I love you man. The solution you gave below just worked perfectly fine.
Thanks to all who assisted me on this. I appreciate you all.
Regards,
Bunmi
www.ayserve.net
www.budelak.com

Robin Vickery wrote:
On 17/10/06, Al <[EMAIL PROTECTED]> wrote:
AYSERVE.NET wrote:
> Please, I need help on how to to recognise url in a block of text being
> retrieved from a database and present it as a link within that text.
>
> I will appreciate any help.
> Regards,
> Bunmi
Show us some examples of URL substrings, with any variations, you want to handle.

Most likely a regex function will do the job.

In 6 easy steps:

Step 1: Pinch  a regexp from perl...

 perl -e 'use Regexp::Common; print $RE{URI}{HTTP}, "\n";'

Step 2: Double up all backslashes

 M-x replace-string \ \\

Step 3: Escape single quote-marks

 M-x replace-string ' \'

Step 4. modify slightly to cope with the https scheme by adding an
optional 's' to the http scheme.

Step 5. add angle-brackets as delimiters

Step 6. use in a preg_replace()

<?php

$textString = 'orem ipsum dolor sit amet, consectetuer adipiscing
elit. Proin et urna. Duis quam. Suspendisse potenti. Etiam sem tortor,
ultricies nec,  http://example.com  imperdiet nec, tempus ac, purus.
Suspendisse id lectus. Nam vitae quam. Aliquam ligula nisl, vestibulum
vulputate, tempor nec, https://www.example.com  tincidunt sit amet,
libero. Suspendisse a justo. Cum sociis natoque penatibus et.';

$url_regexp = '<(?:(?:https?)://(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]|[a-zA-Z])[.]?)|(?:[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)))(?::(?:(?:[0-9]*)))?(?:/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)(?:;(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*)(?:/(?:(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)(?:;(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*))*))(?:[?](?:(?:(?:[;/?:@&=+$,a-zA-Z0-9\\-_.!~*\'()]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)))?))?)>';

$output = preg_replace($url_regexp, '<a href="$0">$0</a>', $textString);

print $output;
?>

If http and https isn't enough for you, there's another more general
regexp but... well, it's 8.5Kb long.

--- End Message ---
--- Begin Message ---
php -v
PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

This configuration cause no end of problems, and I finally compiled php without the Suhosin-Patch. Everything is back to normal and working.

with the patch, there were numerous errors and problems:

[Wed Oct 18 09:58:05 2006] [error] ALERT - canary mismatch on efree() - heap overflow or double efree detected (attacker 'my.dot.ip.adr', file '/usr/local/www/wordpress/wp-admin/edit.php') [Wed Oct 18 10:26:06 2006] [error] ALERT - canary mismatch on efree() - heap overflow or double efree detected (attacker 'my.dot.ip.adr', file '/usr/local/www/data/phpMyAdmin/index.php')

etc.

Is it possible to have Suhosin-Patch enabled and somehow avoid these heap overflows, or is Suhosin still not ready for a production environment?

--
The Germans wore gray, you wore blue.

--- End Message ---
--- Begin Message ---
Google Kreme wrote:
php -v
PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

This configuration cause no end of problems, and I finally compiled php without the Suhosin-Patch. Everything is back to normal and working.

with the patch, there were numerous errors and problems:

[Wed Oct 18 09:58:05 2006] [error] ALERT - canary mismatch on efree() - heap overflow or double efree detected (attacker 'my.dot.ip.adr', file '/usr/local/www/wordpress/wp-admin/edit.php') [Wed Oct 18 10:26:06 2006] [error] ALERT - canary mismatch on efree() - heap overflow or double efree detected (attacker 'my.dot.ip.adr', file '/usr/local/www/data/phpMyAdmin/index.php')

etc.

Is it possible to have Suhosin-Patch enabled and somehow avoid these heap overflows, or is Suhosin still not ready for a production environment?

Wouldn't it be best to ask whoever the patch came from?

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

--- End Message ---
--- Begin Message ---
# [EMAIL PROTECTED] / 2006-10-18 10:57:52 -0600:
> php -v
> PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59)
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
> 
> This configuration cause no end of problems, and I finally compiled  
> php without the Suhosin-Patch.  Everything is back to normal and  
> working.
> 
> with the patch, there were numerous errors and problems:
> 
> [Wed Oct 18 09:58:05 2006] [error] ALERT - canary mismatch on efree()  
> - heap overflow or double efree detected (attacker 'my.dot.ip.adr',  
> file '/usr/local/www/wordpress/wp-admin/edit.php')
> [Wed Oct 18 10:26:06 2006] [error] ALERT - canary mismatch on efree()  
> - heap overflow or double efree detected (attacker 'my.dot.ip.adr',  
> file '/usr/local/www/data/phpMyAdmin/index.php')
> 
> etc.
> 
> Is it possible to have Suhosin-Patch enabled and somehow avoid these  
> heap overflows, or is Suhosin still not ready for a production  
> environment?

    The Suhosin patch only reports the double free() in PHP so if
    anything it's PHP that's not ready for production. You can disable
    the patch but that won't fix the bug in PHP.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991

--- End Message ---
--- Begin Message ---
You have an array of names and you want to choose a random name. is it?

try thinking some thing about arrays, keys numbers, key count, and such



Ross wrote:
> 
> 
> Hi,
> 
> I want to randomise a string
> 
> $myrandom = rand("ross", "andrea");
> 
> echo $myrandom;
> 
> 
> I know this doesn't work but is there a built in function to do this?
> 
> 
> R.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/random-string-tf2459193.html#a6881109
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
Tijnema ! wrote:
> Hi
> 
> How can i disable the automatically rounding of numbers, as i work with
> large numbers and when i make them small again, it seems that the last
> digits are gone.
> example:
> 12345678901234567890
> becomes:
> 1.2345678901234E+19 = 12345678901234000000
> 
> Is there a way to disable this??

buy a 64 bit machine?.

> 
> Thanks in advance,
> Tijnema
> 

--- End Message ---
--- Begin Message ---
Good Morning:

I am looking to create a thumbnail from an uploaded image, and then save it to 
a directory.

I don't have any problem with the image functions, and can successfully create 
the thumbnail and push it to the browser or, as is currently set up, store the 
data in a database.

What I want to do instead, however, is take that dynamically created thumbnail 
and write it to a folder on the server.

If I simply write the file, however, it appears I need to have a folder chmod'd 
world read/writable for the process to work.  My network guys do not want this.

I tried the FTP functions, which work great for copying a file that already 
exists somewhere into another folder, but I can't seem to get it to recognize 
the buffer as a valid source file location...

Is there a way to use a php FTP function to FTP the file out of the buffer to a 
directory on the server, or some other way to write a file to a folder without 
making that folder 0777?

Chris Matthews
eGovernment Information Officer
Washoe County, Nevada
775.328.3719
http://www.washoecounty.us

Director, West Region
National Association of Government Webmasters
http://www.nagw.org

--- End Message ---
--- Begin Message ---
On 10/18/06, Matthews, Chris <[EMAIL PROTECTED]> wrote:
Good Morning:

I am looking to create a thumbnail from an uploaded image, and then save it to 
a directory.

I don't have any problem with the image functions, and can successfully create 
the thumbnail and push it to the browser or, as is currently set up, store the 
data in a database.

What I want to do instead, however, is take that dynamically created thumbnail 
and write it to a folder on the server.

If I simply write the file, however, it appears I need to have a folder chmod'd 
world read/writable for the process to work.  My network guys do not want this.

I tried the FTP functions, which work great for copying a file that already 
exists somewhere into another folder, but I can't seem to get it to recognize 
the buffer as a valid source file location...

Is there a way to use a php FTP function to FTP the file out of the buffer to a 
directory on the server, or some other way to write a file to a folder without 
making that folder 0777?

Chris Matthews
eGovernment Information Officer
Washoe County, Nevada
775.328.3719
http://www.washoecounty.us

Director, West Region
National Association of Government Webmasters
http://www.nagw.org

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


If the server is apache make the directory you are writing images out
to owned by apache and you'll be all set.

--- End Message ---
--- Begin Message ---
On Wednesday 18 October 2006 19:40, Matthews, Chris wrote:
> Good Morning:
>
> I am looking to create a thumbnail from an uploaded image, and then save it
> to a directory.
>
> I don't have any problem with the image functions, and can successfully
> create the thumbnail and push it to the browser or, as is currently set up,
> store the data in a database.
>
> What I want to do instead, however, is take that dynamically created
> thumbnail and write it to a folder on the server.
>
> If I simply write the file, however, it appears I need to have a folder
> chmod'd world read/writable for the process to work.  My network guys do
> not want this.
open a folder that is writable by the webserver e.g. apache. only way the 
images ever automaticly will be available for the users of the pages.
No writeaccess no nothing.

>
> I tried the FTP functions, which work great for copying a file that already
> exists somewhere into another folder, but I can't seem to get it to
> recognize the buffer as a valid source file location...
>
> Is there a way to use a php FTP function to FTP the file out of the buffer
> to a directory on the server, or some other way to write a file to a folder
> without making that folder 0777?
>
> Chris Matthews
> eGovernment Information Officer
> Washoe County, Nevada
> 775.328.3719
> http://www.washoecounty.us
>
> Director, West Region
> National Association of Government Webmasters
> http://www.nagw.org

-- 
---
Børge
Kennel Arivene 
http://www.arivene.net
---

--- End Message ---
--- Begin Message ---
Matthews, Chris wrote:
Good Morning:

I am looking to create a thumbnail from an uploaded image, and then save it to 
a directory.

I don't have any problem with the image functions, and can successfully create 
the thumbnail and push it to the browser or, as is currently set up, store the 
data in a database.

What I want to do instead, however, is take that dynamically created thumbnail 
and write it to a folder on the server.

If I simply write the file, however, it appears I need to have a folder chmod'd 
world read/writable for the process to work.  My network guys do not want this.

I tried the FTP functions, which work great for copying a file that already 
exists somewhere into another folder, but I can't seem to get it to recognize 
the buffer as a valid source file location...

Is there a way to use a php FTP function to FTP the file out of the buffer to a 
directory on the server, or some other way to write a file to a folder without 
making that folder 0777?

Chris Matthews
eGovernment Information Officer
Washoe County, Nevada
775.328.3719
http://www.washoecounty.us

Director, West Region
National Association of Government Webmasters
http://www.nagw.org

Have your program create the folder and assign it 754 or 755, don't create it via Apache. Thus, the owner will be the famous "nobody". The 754 means nobody [your program] has full rights; but the world only has reading rights. You'll see all your standard folders created by the system are 755, which is safe also.
--- End Message ---
--- Begin Message ---
On Wednesday 18 October 2006 20:55, Al wrote:
> Matthews, Chris wrote:
> > Good Morning:
> >
> > I am looking to create a thumbnail from an uploaded image, and then save
> > it to a directory.
> >
> > I don't have any problem with the image functions, and can successfully
> > create the thumbnail and push it to the browser or, as is currently set
> > up, store the data in a database.
> >
> > What I want to do instead, however, is take that dynamically created
> > thumbnail and write it to a folder on the server.
> >
> > If I simply write the file, however, it appears I need to have a folder
> > chmod'd world read/writable for the process to work.  My network guys do
> > not want this.
> >
> > I tried the FTP functions, which work great for copying a file that
> > already exists somewhere into another folder, but I can't seem to get it
> > to recognize the buffer as a valid source file location...
> >
> > Is there a way to use a php FTP function to FTP the file out of the
> > buffer to a directory on the server, or some other way to write a file to
> > a folder without making that folder 0777?
> >
> > Chris Matthews
> > eGovernment Information Officer
> > Washoe County, Nevada
> > 775.328.3719
> > http://www.washoecounty.us
> >
> > Director, West Region
> > National Association of Government Webmasters
> > http://www.nagw.org
>
> Have your program create the folder and assign it 754 or 755, don't create
> it via Apache. Thus, the owner will be the famous "nobody".  The 754 means
> nobody [your program] has full rights; but the world only has reading
> rights.  You'll see all your standard folders created by the system are
> 755, which is safe also.

and how do apache create directories again?

-- 
---
Børge
Kennel Arivene 
http://www.arivene.net
---

--- End Message ---
--- Begin Message ---
Where are you from, and (more importantly) where do you want to go?

On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:

I want to go to a foreign country to work for about one year to increase
my
experience.



--- End Message ---
--- Begin Message ---
I´m from Brasil.

I´m not sure where i want to go, but i think USA will be the right place to 
work with php.

Where do you advise me?


""Rory Browne"" <[EMAIL PROTECTED]> escreveu na mensagem 
news:[EMAIL PROTECTED]
Where are you from, and (more importantly) where do you want to go?

On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
>
> I want to go to a foreign country to work for about one year to increase
> my
> experience.
>
>

--- End Message ---
--- Begin Message ---
I have a script the use to work:

$date = date("mdy");

mkdir("Y:/Daily_DisplayAds/todays_ads-$date");

But now I get this error:

Warning: mkdir() [function.mkdir]: No such file or directory in
C:\wamp\www\scripts\ad_finder\display_class.php on line 10

If I change "Y" to "C" it works, can anyone please help me thanks.

--- End Message ---
--- Begin Message ---
Rob Kritzer wrote:
I have a script the use to work:

$date = date("mdy");

mkdir("Y:/Daily_DisplayAds/todays_ads-$date");

But now I get this error:

Warning: mkdir() [function.mkdir]: No such file or directory in
C:\wamp\www\scripts\ad_finder\display_class.php on line 10

If I change "Y" to "C" it works, can anyone please help me thanks.

Just guessing, but does the Daily_DisplayAds exist on drive C but not on drive Y? mkdir can only create one directory - it does not create other missing directories automatically.

If that's not it then it's almost certainly permission-related.

-Stut

--- End Message ---
--- Begin Message ---
On 18 Oct 2006, at 09:56 , Richard Lynch wrote:
Kind of a hack, but think of it as an "import filter" and maybe even
program it generically enough that you *CAN* do more "import filters"
and then you open up a world of possbilities for other image formats
to be supported some day in the future.

Like convert them to png and overlay an alphachannel 'mydomain.tld' bug on the image, just as an example...

--
...in the long run there's still time to change the road you're on

--- End Message ---
--- Begin Message ---
Hi all. I am building a web app which uses sessions to retain user data
between pages and finally enter that data into mysql - I have noticed that
out of 100 entries in the database, 10% are blank. I tested this by setting
a cookie on the home page and when the user navigated to the form pages,
tested whether that cookie was set and if not issuing a warning with some
cookie tutorial info for the user.

Before I used the simple test cookie, obviously the only cookie that was
being set was PHPSESSID. All the users who entered blank records were using
IE. When I test using IE this end, the session cookie is set with no
problems and my IE security settings are set to medium. I know IE will
accept certain third-party cookies at this setting, but what's the criteria
and has anyone else encountered this problem?
--
http://www.web-buddha.co.uk

--- End Message ---
--- Begin Message ---
Dave Goodchild wrote:
Hi all. I am building a web app which uses sessions to retain user data
between pages and finally enter that data into mysql - I have noticed that
out of 100 entries in the database, 10% are blank. I tested this by setting
a cookie on the home page and when the user navigated to the form pages,
tested whether that cookie was set and if not issuing a warning with some
cookie tutorial info for the user.

Before I used the simple test cookie, obviously the only cookie that was
being set was PHPSESSID. All the users who entered blank records were using
IE. When I test using IE this end, the session cookie is set with no
problems and my IE security settings are set to medium. I know IE will
accept certain third-party cookies at this setting, but what's the criteria
and has anyone else encountered this problem?

3rd party cookies are tough.

You'll need to look at p3p headers & a p3p policy to get them through IE.

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

--- End Message ---
--- Begin Message ---
I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a
little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage).

Can anyone recommend something?  

How small can Apache get?

AppWeb?
http://www.mbedthis.com
http://www.appwebserver.org/

What about lighthttpd? 
http://www.lighttpd.net

Or the httpd that comes in the kernel?

tux?

Related, does anyone know of a tutorial or something that will help to
reduce Apache to only the things really needed for PHP, mySQL, SSL? Right
now, our Apache memory footprint is an astounding 120MB !!

ÐÆ5ÏÐ 

--- End Message ---
--- Begin Message --- I've been through the research on that one a couple years ago, and I found that lighttpd/php-fcgi is the best combination...

I've run lighttpd/php (FastCGI) on many soekris boxes. PHP runs beautifully. I've even done it in less than 8 megs of CF with uClibc/busybox. I've used the Soekris net4801s, 4501s and PC-Engines WRAP boards. I really have to say that I'm pretty impressed at how well PHP performs on a minimal CPU.

If you want to chop resource usage, lighttpd is pretty slim and you can compile PHP with only the required modules built-in, and you only need to install the php fastcgi binary, nothing else. I've benchmarked apache v.s. lighttpd on my full-size box, and lighttpd holds it's own. It would probably destroy apache on a resource-limited box.

On one of my 4801s, lighttpd is currently using 2M of memory, 10 PHP fastcgi processes appear to be using 36M. You could probably cut that down to however few processes you need.

jon

Daevid Vincent wrote:
I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a
little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage).

Can anyone recommend something?
How small can Apache get?

AppWeb?
http://www.mbedthis.com
http://www.appwebserver.org/

What about lighthttpd? http://www.lighttpd.net

Or the httpd that comes in the kernel?

tux?

Related, does anyone know of a tutorial or something that will help to
reduce Apache to only the things really needed for PHP, mySQL, SSL? Right
now, our Apache memory footprint is an astounding 120MB !!

ÐÆ5ÏÐ

--- End Message ---
--- Begin Message ---
Hello,
I'm looking for a web site contractor to redo my site from scratch. Although i know Html, Css, and enough Php to get me by without looking at the manual to many times, i do not have the time right now to redo the site although the need is great. I am looking for a standards-compliant Strict Xhtml 1.0 and Css site, with Php support for the dynamic portions. I am not looking for Javascript, Flash, or frames. I can provide additional details if interested in the job, but i see a 10-page site max, with myself taking over maintaining it. If interested please include an estimate.
Thanks.
Dave.

--- End Message ---

Reply via email to