Re: [PHP] Upload dir

2009-12-10 Thread kranthi
i doubt i can use ini_set in this scenario http://us3.php.net/manual/en/ini.core.php#ini.upload-tmp-dir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload dir

2009-12-10 Thread Gaurav Kumar
OK you used ini_get try using ini_set and set the temporary directory on your server of your choice at run time in your script (top of the script or any config file if you have one). REMEMBER that you have access to that directory, should have full permissions and also check the absolute server pa

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-10 Thread Gaurav Kumar
A very typical problem. Good you sent the error message. This problem can be caused due to one of the following- 1. I have faced similar problem due to local firewall settings. 2. Try some other domain; i.e. other than google com. Try some of the local area website with a particular page like www

[PHP] Upload dir

2009-12-10 Thread kranthi
How can i change the temporary upload directory? var_dump(ini_get('upload_tmp_dir')); gives me (and that is set in php.ini) string '/var/www/cgi-bin' (length=16) but var_dump($_FILES) gives me 'tmp_name' => string '/tmp/phpbSZ6WP' (length=14

Re: [PHP] mysterious include problem

2009-12-10 Thread Kim Madsen
LinuxManMikeC wrote on 2009-12-07 22:48: > Instead of hard coding cases you can validate and constrain the input > with a regex. Much more flexible when adding content. I would also > add code to make sure the file exists, otherwise fall through to the > default. In huge sites with a lot of inc

Re: [PHP] mysterious include problem

2009-12-10 Thread Kim Emax
LinuxManMikeC wrote on 2009-12-07 22:48: Instead of hard coding cases you can validate and constrain the input with a regex. Much more flexible when adding content. I would also add code to make sure the file exists, otherwise fall through to the default. In huge sites with a lot of include f

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Paul M Foster
On Thu, Dec 10, 2009 at 08:01:51PM +0100, Jochem Maas wrote: > Ashley Sheridan schreef: > > On Thu, 2009-12-10 at 11:26 -0500, Robert Cummings wrote: > > > > > > Telepathic email servers? I've heard they're becoming more popular these > > days. > > no, your confused with that other list php-ps

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Jochem Maas
Ashley Sheridan schreef: > On Thu, 2009-12-10 at 11:26 -0500, Robert Cummings wrote: > >> tedd wrote: >>> At 10:29 AM -0500 12/10/09, Robert Cummings wrote: No, it's been broken for days. You won't get any emails for at least another week. >>> What's been broken? >>> >>> I've been recei

Re: [PHP] mysterious include problem

2009-12-10 Thread Jochem Maas
Ashley Sheridan schreef: > On Tue, 2009-12-08 at 17:32 +0100, Jochem Maas wrote: > >> Hi Allen, >> >> gonna be a bit ruthless with you :). >> >> 1. your not filtering your input (your open to include being hacked) >> 2. your not validating or error checking (e.g. does the include file exist??) >>

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Ashley Sheridan
On Thu, 2009-12-10 at 11:26 -0500, Robert Cummings wrote: > tedd wrote: > > At 10:29 AM -0500 12/10/09, Robert Cummings wrote: > >> No, it's been broken for days. You won't get any emails for at least > >> another week. > > > > What's been broken? > > > > I've been receiving [PHP] post everyday

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Ashley Sheridan
On Thu, 2009-12-10 at 11:25 -0500, Robert Cummings wrote: > Joseph Thayne wrote: > > If the site can be a few minutes behind, (say 15-30 minutes), then what > > I recommend is to create a caching script that will update the necessary > > files if the md5 checksum has changed at all (or a specifi

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Robert Cummings
tedd wrote: At 10:29 AM -0500 12/10/09, Robert Cummings wrote: No, it's been broken for days. You won't get any emails for at least another week. What's been broken? I've been receiving [PHP] post everyday. Nothing is broken... it was a joke. How could it be broken if you receive my respon

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Joseph Thayne wrote: If the site can be a few minutes behind, (say 15-30 minutes), then what I recommend is to create a caching script that will update the necessary files if the md5 checksum has changed at all (or a specified time period has past). Then store those files locally, and run loca

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2009-12-10 at 11:10 -0500, Robert Cummings wrote: Ashley Sheridan wrote: > Hi, > > I need to replicate a site on another domain, and in this case, an > iframe won't really do, as I need to remove some of the graphics, etc > around the content. The owner of the si

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread tedd
At 10:29 AM -0500 12/10/09, Robert Cummings wrote: No, it's been broken for days. You won't get any emails for at least another week. What's been broken? I've been receiving [PHP] post everyday. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Joseph Thayne
If the site can be a few minutes behind, (say 15-30 minutes), then what I recommend is to create a caching script that will update the necessary files if the md5 checksum has changed at all (or a specified time period has past). Then store those files locally, and run local copies of the files

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Ashley Sheridan
On Thu, 2009-12-10 at 11:10 -0500, Robert Cummings wrote: > Ashley Sheridan wrote: > > Hi, > > > > I need to replicate a site on another domain, and in this case, an > > iframe won't really do, as I need to remove some of the graphics, etc > > around the content. The owner of the site I'm needing

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Ashley Sheridan wrote: Hi, I need to replicate a site on another domain, and in this case, an iframe won't really do, as I need to remove some of the graphics, etc around the content. The owner of the site I'm needing to copy has asked for the site to be duplicated, and unfortunately in this cas

[PHP] Using Curl to replicate a site

2009-12-10 Thread Ashley Sheridan
Hi, I need to replicate a site on another domain, and in this case, an iframe won't really do, as I need to remove some of the graphics, etc around the content. The owner of the site I'm needing to copy has asked for the site to be duplicated, and unfortunately in this case, because of the CMS he'

Re: [PHP] PHP 5.3 Code Documentor

2009-12-10 Thread Lester Caine
Andrew Mason wrote: Hi all, Is anyone aware of a code documentation generator like phpdoc or doxygen that supports the PHP 5.3 namespaces ? I tried adding support to doxygen myself but didn't have a whole lot of luck and didn't have huge amounts of time to spend on learning flex/yacc. Well it

[PHP] RE: I have not seen any messages for a couple of days...

2009-12-10 Thread Tom Calpin
Yep, although Christmas shopping seems to be higher on the agenda than PHP Wait till a week before Christmas and we'll have a slew of messages from desperate developers trying to complete to a client deadline :) -Original Message- From: Jay Blanchard [mailto:jblanch...@pocket.com] Subje

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread reda khyatti
yes it is On Thu, Dec 10, 2009 at 11:27 AM, Jay Blanchard wrote: > ...is this thing on? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- khyatti Reda Tel: +21255880898

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Ashley Sheridan
On Thu, 2009-12-10 at 10:29 -0500, Robert Cummings wrote: > No, it's been broken for days. You won't get any emails for at least > another week. > > > > > Jay Blanchard wrote: > > ...is this thing on? > > > > -- > http://www.interjinn.com > Application and Templating Framework for PHP >

Re: [PHP] file_get_contents ($file) works -- file_get_contents ($url) returns false

2009-12-10 Thread René Fournier
I thought error_reporting would display them, but I guess php.ini had them suppressed. Anyway, with: http://www.google.com')); ?> I get: Warning: file_get_contents(http://www.google.com): failed to open stream: Operation now in progress in //.php on line 7 bool(false) Does that help

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Robert Cummings
No, it's been broken for days. You won't get any emails for at least another week. Jay Blanchard wrote: ...is this thing on? -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Jay Blanchard
...is this thing on? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SimpleXML or DOMDocument help

2009-12-10 Thread Michael Alaimo
> Michael Alaimo wrote: >> Hello All, >> >> I have an XML document that has elements as such: >> >> >> Test/Query:Equal> >> >> >> >> >> I cannot figure out how to access these with simple xml. I am not >> opposed >> to a DOMDocument solution eit