php-general Digest 18 Sep 2007 15:34:35 -0000 Issue 5025

2007-09-18 Thread php-general-digest-help
php-general Digest 18 Sep 2007 15:34:35 - Issue 5025 Topics (messages 262191 through 262202): dir_object-read() on different platform 262191 by: news.php.net 262192 by: Jim Lucas 262193 by: Jim Lucas 262194 by: Jim Lucas Re: Try to find a solution, when

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-18 Thread Rodolfo De Nadai
Daevid, understood... but in my case the php script is called once one time, and then keep's on running forever on a server background shell... The user never will have to worry about the process again, but if the process is not running on the server a message will apear on the interface or a

[PHP] dynamic img

2007-09-18 Thread Anugrah Widya
dear friends :), i have problem with dynamic image displaying here the snippets thumb.php ?php header(Content-type: image/jpg); $file = data/original/filename.jpg; readfile($file); ? img.php img src=thumb.php?filename.jpg / problem is i always get broken images, someone know how to fix this

[PHP] Re: PHP preg_replace help

2007-09-18 Thread Al
Just use stripslashes() on your submitted data and forget about testing for magic_quotes. It's good practice anyhow. \ is not legit text regardless. haim Chaikin wrote: Hello, I am a beginner in PHP. I need help with the function preg_replace. I am trying to remove the backslashes (

[PHP] Re: back-button question

2007-09-18 Thread Al
The general rule is to create or maintain every page on your server of what you what the client to see. Then send it for every submit. That way you don't have to worry about satisfying every browser and configuration there is. Πρεκατές Αλέξανδρος wrote: I'a writing first time so sorry if i

[PHP] dynamic img

2007-09-18 Thread Daniel Brown
Hello, Anugrah. On 9/18/07, Anugrah Widya [EMAIL PROTECTED] wrote: i have problem with dynamic image displaying here the snippets thumb.php ?php header(Content-type: image/jpg); $file = data/original/filename.jpg; readfile($file); ? img.php img src=thumb.php?filename.jpg /

Re: [PHP] split in to multiple pages ( pagination)

2007-09-18 Thread Joker7
In news: [EMAIL PROTECTED] - Greg Donald wrote : On Sat, 15 Sep 2007, Joker7 wrote: I'm using the code below to display news articles-which works great apart from. I can control the number of articles,but I would like to add a link to the bottom of the page to the un-displayed articles (

[PHP] Re: split in to multiple pages (I think)

2007-09-18 Thread Joker7
In news: [EMAIL PROTECTED] - Thomas Bachmann wrote : Why don't post an example of your news file too? Joker7 schrieb: Hi, I'm using the code below to display news articles-which works great apart from. I can control the number of articles,but I would like to add a link to the bottom of the

Re: [PHP] Case insensitive ksort

2007-09-18 Thread Jim Lucas
Christoph Boget wrote: I looked in the docs but didn't see anything regarding case insensitivity and I fear the functionality doesn't exist. I'm just hoping I'm looking in the wrong place. Is there a way to get ksort to work without regard to case? When I sort an array using ksort, all the

RE: [PHP] dynamic img

2007-09-18 Thread Edward Kay
thumb.php ?php header(Content-type: image/jpg); $file = data/original/filename.jpg; readfile($file); ? Change header(Content-type: image/jpg); to header(Content-type: image/jpeg); Apparently IE doesn't like image/jpg [1]. [1] http://pear.php.net/bugs/bug.php?id=4586 Edward

[PHP] Case insensitive ksort

2007-09-18 Thread Christoph Boget
I looked in the docs but didn't see anything regarding case insensitivity and I fear the functionality doesn't exist. I'm just hoping I'm looking in the wrong place. Is there a way to get ksort to work without regard to case? When I sort an array using ksort, all the upper case keys end up at

Re: [PHP] Case insensitive ksort

2007-09-18 Thread Robin Vickery
On 18/09/2007, Christoph Boget [EMAIL PROTECTED] wrote: I looked in the docs but didn't see anything regarding case insensitivity and I fear the functionality doesn't exist. I'm just hoping I'm looking in the wrong place. Is there a way to get ksort to work without regard to case? When I

Re: [PHP] dynamic img

2007-09-18 Thread Stut
Anugrah Widya wrote: dear friends :), i have problem with dynamic image displaying here the snippets thumb.php ?php header(Content-type: image/jpg); $file = data/original/filename.jpg; readfile($file); ? img.php img src=thumb.php?filename.jpg / problem is i always get broken images, someone

Re: [PHP] dynamic img

2007-09-18 Thread Anugrah Widya
Daniel Brown wrote: Hello, Anugrah. On 9/18/07, Anugrah Widya [EMAIL PROTECTED] wrote: i have problem with dynamic image displaying here the snippets thumb.php ?php header(Content-type: image/jpg); $file = data/original/filename.jpg; readfile($file); ? img.php img

Re: [PHP] Case insensitive ksort

2007-09-18 Thread TG
I don't have time to look up in the manual but I don't remember a case insensitive ksort(). I think there's a uksort() where you could specify your own sorting parameters for the keys. Also, you could create the array with keys run through strtoupper() or strtolower(). If you need the

[PHP] Questions about overloading and visibility in PHP5

2007-09-18 Thread Steve Brown
I've been doing a bunch of reading about objects and overloading in PHP5, but I've got a couple of questions that I can't seem to find the answer to online. Suppose the following code in PHP5.2.4: ?php class foo { public $x; private $z = 'z'; public function __set

[PHP] Re: Questions about overloading and visibility in PHP5

2007-09-18 Thread Gregory Beaver
Steve Brown wrote: I've been doing a bunch of reading about objects and overloading in PHP5, but I've got a couple of questions that I can't seem to find the answer to online. Suppose the following code in PHP5.2.4: ?php class foo { public $x; private $z = 'z';

Re: [PHP] Questions about overloading and visibility in PHP5

2007-09-18 Thread Andrew Ballard
1) It seems that the getter and setter are not called on every single call. For example, if I do the following: $bar = new foo; $bar-x = 'x'; There is no output. I would expect to see Setting $this-x to x. Another example: $bar = new foo; $bar-y = 'y'; echo $bar-y; I would expect

[PHP] Job openings in Maryland

2007-09-18 Thread Christoph Boget
My company has the following job openings available: Join in the Adventure. Yakabod, a web software and services company, is located in a beautifully restored facility in Frederick, Maryland's historic district. We've experienced steady growth since starting in 2001. We've set our hearts on

RE: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Sanjeev N
I did it. Still I am not able to access it. Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirectory.sanchanworld.com - Submit your website URL http://webhosting.sanchanworld.com - Choose your best web hosting plan -Original Message- From: Stut [mailto:[EMAIL PROTECTED]

RE: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Sanjeev N
Hey Stut, Thanks.. Now its working fine. Now I am able to access the value. Actually problem was in main domain the cookies path was wrong. It was showing /user/ . I set it to / Thanks Stut. Warm Regards, Sanjeev http://www.sanchanworld.com/ http://webdirectory.sanchanworld.com - Submit your

Re: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Stut
Sanjeev N wrote: I did it. Still I am not able to access it. You'll probably need to delete the existing cookie from your browser and get it set again. -Stut -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 12:41 AM To: Sanjeev N Cc:

[PHP] read the main domain cookie in sub domain

2007-09-18 Thread Sanjeev N
Hi, Assume, I have www.domain.com http://www.domain.com/ in which I wrote the functionality for user authentication and his profile related functionality. Now, when user logs in using http://www.domain.com/users/login.php then after his successful login a session as well as a cookie is

Re: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Stut
Sanjeev N wrote: Assume, I have www.domain.com http://www.domain.com/ in which I wrote the functionality for user authentication and his profile related functionality. Now, when user logs in using http://www.domain.com/users/login.php then after his successful login a session as well as a

[PHP] date weirdness

2007-09-18 Thread Greg Donald
I have extracted a small portion of a calendar application I developed recently to show some strange behavior with the date() function. When I run this I get duplicate dates occasionally down the list. I'm seeing 11/4 twice for example. Sometimes dates are missing from the list. The results

Re: [PHP] date weirdness

2007-09-18 Thread Andrew Ballard
I'm seeing 11/4 twice for example. Sometimes dates are missing from the list. The results change from day to day. That would be DST. The number of seconds per day changes on Nov. 4, 2007 in the US local time zones. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Try to find a solution, when restart Apache with PHP Script

2007-09-18 Thread James Ausmus
On 9/17/07, Rodolfo De Nadai [EMAIL PROTECTED] wrote: Hi all... I'm facing a serious problem with my application. I have a script write in PHP that starts in Internet Explorer, this script keep on running until a varible value change on my MySQL database. The problem is that when i restart

Re: [PHP] Re: PHP preg_replace help

2007-09-18 Thread Arpad Ray
Apologies if you already received this message, I tried to send it earlier from my webmail but it doesn't seem to have worked. Al wrote: Just use stripslashes() on your submitted data and forget about testing for magic_quotes. It's good practice anyhow. \ is not legit text regardless.

Re: [PHP] date weirdness

2007-09-18 Thread Robert Cummings
On Tue, 2007-09-18 at 15:32 -0500, Greg Donald wrote: I have extracted a small portion of a calendar application I developed recently to show some strange behavior with the date() function. When I run this I get duplicate dates occasionally down the list. I'm seeing 11/4 twice for example.

[PHP] setup help in IIS6

2007-09-18 Thread Chuck Chidekel
Hello, I have installed the latest PHP on my windows server 2003 IIS6 machine. From the DOS command line interface (when in the C:\PHP directory) if I type PHP phpinfo.php, the file runs. However I cannot get it to work on the browser on the server our out on the web using my URL. I'm sure

[PHP] trouble trying to connect to gmail server.

2007-09-18 Thread Fábio Generoso
I have a little trouble while trying to connect to gmail server. I already enabled POP on gmail. After experience a lots of errors with the command below, now I'm seeing no more errors, but it still doesn't working, the page stay processing and just is broke after this command. $mbox =

RE: [PHP] setup help in IIS6

2007-09-18 Thread Bastien Koert
Have you created the .php file type in the IIS and pointed IIS to the php.exe? Bastien Date: Tue, 18 Sep 2007 22:39:07 -0400 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] setup help in IIS6 Hello, I have installed the latest PHP on my windows server 2003 IIS6 machine.

Re: [PHP] trouble trying to connect to gmail server.

2007-09-18 Thread Chris
Fábio Generoso wrote: I have a little trouble while trying to connect to gmail server. I already enabled POP on gmail. After experience a lots of errors with the command below, now I'm seeing no more errors, but it still doesn't working, the page stay processing and just is broke after this