Re: [PHP] object persistence within a session

2008-11-07 Thread Andrew Ballard
On Fri, Nov 7, 2008 at 3:54 PM, Stan <[EMAIL PROTECTED]> wrote: > Andrew, > Do I feel stupid! > Thanks. Welcome to the list. No need to feel stupid, and you're welcome. We were all here at some point. Even tedd, who has been programming since Rocks apparently. :-) At least you read up on the langu

Re: [PHP] object persistence within a session

2008-11-07 Thread Shawn McKenzie
tedd wrote: > At 7:08 PM +0100 11/7/08, Jochem Maas wrote: >> Stan schreef: >>> If this is the wrong forum, please point me at the correct forum. >>> >>> I am new to PHP but have 40 years experience programming. >> >> cool. we're you around when they programmed with Rocks[tm]? :-) >> (stick aroun

[PHP] Re: PCRE regex result is different between Linux & Windows.

2008-11-07 Thread ClapClap
Jochem Maas a écrit : >> >> [I precede you, sorry for language mistakes...] > > php or english? :-) > ohhh... sh.. ! I think I speak PHP better than english (silly, not ?). > > okay, are you using the same PHP version on both machines? > anything in the php.ini's that differs? > The same, not p

Re: [PHP] object persistence within a session

2008-11-07 Thread tedd
At 7:08 PM +0100 11/7/08, Jochem Maas wrote: Stan schreef: If this is the wrong forum, please point me at the correct forum. I am new to PHP but have 40 years experience programming. cool. we're you around when they programmed with Rocks[tm]? :-) (stick around a while and you'll get to know

Re: [PHP] object persistence within a session

2008-11-07 Thread Stan
Jochem, So ... what I did was to experiment with the idea of creating a database schema that would allow me to define a web page. One row, one web page. Contained navigation information (bar left, right, bottom, top, none), title, pointer to the file containing the HTML document for the main page.

[PHP] object persistence within a session is resolved

2008-11-07 Thread Stan
Thank you all for your assistance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] object persistence within a session

2008-11-07 Thread Stan
Andrew, Do I feel stupid! Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PCRE regex result is different between Linux & Windows.

2008-11-07 Thread Lupus Michaelis
Jochem Maas a écrit : okay, are you using the same PHP version on both machines? anything in the php.ini's that differs? And by the way, what version of PCRE are in use. -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] PCRE regex result is different between Linux & Windows.

2008-11-07 Thread Jochem Maas
ClapClap schreef: > Hi, > > [I precede you, sorry for language mistakes...] php or english? :-) > > I have done a pretty regex which can normally strip all the empties HTML regexp's are never pretty IMHO ;-) I'm just going to start asking a whole stack of questions in the hope something sti

[PHP] domWrite() lazy loading ads: external code using document.write() - execution AFTER the page has rendered

2008-11-07 Thread Rene Veerman
Friend of mine wrote this article that might be of interest to you: Often there is advertizing code to be implemented in a page, and there are 2 problems one may face: (1) the website hangs due to a lag on the code delivering server (2) you normally cannot lazy load the script since document

[PHP] PCRE regex result is different between Linux & Windows.

2008-11-07 Thread ClapClap
Hi, [I precede you, sorry for language mistakes...] I have done a pretty regex which can normally strip all the empties HTML tags. With PHP v5.2.4, under Windows XP, preg_replace() gives me 90 matches (which is correct) while under linux it stagnate to 54. Let me introduce this regex : $patt

Re: [PHP] object persistence within a session

2008-11-07 Thread Jochem Maas
Stan schreef: > If this is the wrong forum, please point me at the correct forum. > > I am new to PHP but have 40 years experience programming. cool. we're you around when they programmed with Rocks[tm]? :-) (stick around a while and you'll get to know that inside joke) > My initial effort inclu

Re: [PHP] Re: take me off the list

2008-11-07 Thread Robert Cummings
On Thu, 2008-11-06 at 02:56 +0100, Michelle Konzack wrote: > Am 2008-11-03 11:10:29, schrieb Robert Cummings: > > Give a man some fish, he'll be back later for more! > > Hau ihm den Fisch um die Ohren und er wird vom Gestank > so angewiedert sein, das er nicht mehr zurückkommt. ;-) > > (It is no

Re: [PHP] permission failure with fopen

2008-11-07 Thread Lupus Michaelis
Andrew Ballard a écrit : Once you identify the account, it needs to have Modify (which, for files, includes Read & Execute, Read, and Write) permission on the file being edited. If the file does not already exist, then that account needs to have Modify (which, for folders, includes Read & Execut

RE: [PHP] Infinite Loop Issue

2008-11-07 Thread Jay Blanchard
[snip] while($all->fetch()){ $i = 0; $iss_link = explode(', ', $issues); foreach($iss_link as $a){ $row2[$i] = "http://mantisus/view.php?id=$a\"; target=\"_blank\">".$a.''; $i++; } $issues = implode(', ', $row2); echo $releas

Re: [PHP] Infinite Loop Issue

2008-11-07 Thread Kyle Terry
On Thu, Nov 6, 2008 at 7:18 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Thu, Nov 6, 2008 at 5:57 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Thu, Nov 6, 2008 at 3:54 PM, Daniel P. Brown > > <[EMAIL PROTECTED]>wrote: > > > >> On Thu, Nov 6, 2008 at 5:51 PM, Kyle Terry <[EMAIL PROTECTED

RE: [PHP] Re: take me off the list

2008-11-07 Thread Boyd, Todd M.
> -Original Message- > From: Michelle Konzack [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 05, 2008 7:56 PM > To: php-general@lists.php.net > Subject: [PHP] Re: take me off the list > > Am 2008-11-03 11:10:29, schrieb Robert Cummings: > > Give a man some fish, he'll be back later

Re: [PHP] permission failure with fopen

2008-11-07 Thread Andrew Ballard
On Fri, Nov 7, 2008 at 8:35 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> So I guess that making "somefile.txt" with PHP is not possible for Win XP > > Er, no. But the permissions system on Windows is greatly different to > Unix. You could make it (and the containing directory) world > writeable,

Re: [PHP] object persistence within a session

2008-11-07 Thread Eric Butera
On Fri, Nov 7, 2008 at 8:33 AM, Stan <[EMAIL PROTECTED]> wrote: > If this is the wrong forum, please point me at the correct forum. > > I am new to PHP but have 40 years experience programming. > > My initial effort includes a class definition which needs to persist for the > duration of a WWW ses

Re: [PHP] object persistence within a session

2008-11-07 Thread Andrew Ballard
On Fri, Nov 7, 2008 at 8:33 AM, Stan <[EMAIL PROTECTED]> wrote: > If this is the wrong forum, please point me at the correct forum. > > I am new to PHP but have 40 years experience programming. > > My initial effort includes a class definition which needs to persist for the > duration of a WWW ses

Re: [PHP] object persistence within a session

2008-11-07 Thread uaca man
>Did storing the object reference not also store the class definition? No. You need to include the class definition. Take a look at: http://br.php.net/manual/en/function.unserialize.php, maybe you can use the *unserialize_callback_func *to load the class definition. Ângelo 2008/11/7 Stan <[EM

Re: [PHP] permission failure with fopen

2008-11-07 Thread cr.vegelin
Already tried with file mode "wb", but same failure ... I will try using chmod's on directory and file. Thanks, Cor - Original Message - From: "Paul Scott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Friday, November 07, 2008 2:35 PM Subject: Re: [PHP] permission failure wit

Re: [PHP] permission failure with fopen

2008-11-07 Thread Paul Scott
On Fri, 2008-11-07 at 14:27 +0200, Thodoris wrote: > > > > I'm testing on Windows XP SP2 with PHP 5.2.0 > > As far as I remember, you need to pass the "b" parameter to Windows as well on fopen(), so you would do an fopen("/path/to/file","wb"); --Paul All Email originating from UWC is covered by

Re: [PHP] permission failure with fopen

2008-11-07 Thread Richard Heyes
> So I guess that making "somefile.txt" with PHP is not possible for Win XP Er, no. But the permissions system on Windows is greatly different to Unix. You could make it (and the containing directory) world writeable, and work backwards from there (ie making it not so world writeable). -- Richar

[PHP] object persistence within a session

2008-11-07 Thread Stan
If this is the wrong forum, please point me at the correct forum. I am new to PHP but have 40 years experience programming. My initial effort includes a class definition which needs to persist for the duration of a WWW session. The code (this snippet is the beginning of Default.php) $value

Re: [PHP] permission failure with fopen

2008-11-07 Thread cr.vegelin
Thanks Thodoris, Richard, Well, I need fopen() only for prepress purposes. So I guess that making "somefile.txt" with PHP is not possible for Win XP ... Regards, Cor - Original Message - From: "Richard Heyes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Friday, November 07

Re: [PHP] Infinite Loop Issue

2008-11-07 Thread Andrew Ballard
On Thu, Nov 6, 2008 at 11:59 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Kyle Terry wrote: >> I believe I'm doing everything right here. It just seems like it doesn't >> end. The browser just keeps trying to load the page forever... >> >> function displayAll(){ >> global $db; > > What the heck i

[PHP] Re: PHP and Cyrus problem

2008-11-07 Thread Colin Guthrie
Richard Heyes wrote: ...PHP for webmail. Did you know you can use Gmail for webmail, even having the From: address set to your own domain? It will require a little more setup (well, with ten thousand mailboxes that would be "a lot") but you end with one of the best webmail clients there is. W

Re: [PHP] permission failure with fopen

2008-11-07 Thread Richard Heyes
> I'm testing on Windows XP SP2 with PHP 5.2.0 That may be your problem. You may want to try a Unix based OS. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 1st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] permission failure with fopen

2008-11-07 Thread Thodoris
Hi All, I get strange permission problems with fopen() ... $directory = "somedir"; $filename = $directory . "/somefile.txt"; $handle = fopen($filename, "w");// gives: failed to open stream: Permission denied but, - fileperms($directory) gives: 0777 and is_writable($directory) gives "wri

[PHP] permission failure with fopen

2008-11-07 Thread cr.vegelin
Hi All, I get strange permission problems with fopen() ... $directory = "somedir"; $filename = $directory . "/somefile.txt"; $handle = fopen($filename, "w");// gives: failed to open stream: Permission denied but, - fileperms($directory) gives: 0777 and is_writable($directory) gives "writab

Re: [PHP] I have a problem with dynamicly updating files...

2008-11-07 Thread Thodoris
I got a lot through a tutorial, but problem is when i tried to insert, problem occured using following code: $query = "INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web')"; mysql_query($query); But when i used a code provided by my server for same purpos

Re: [PHP] Re: Mailing lists

2008-11-07 Thread Richard Heyes
>> Ok, other then mailman, anyone know of a free (other than >> freelists.org) hosted discussion list management service? > > , , , In the end I've setup a Google Group. You can see it here: http://groups.google.com/group/rgraph It's busy... (:-/) -- Richard Heyes HTML5 Graphing for FF, Chrom

[PHP] Re: Weird problem with HTML form and $_POST

2008-11-07 Thread Michelle Konzack
Am 2008-11-05 08:49:02, schrieb Oscar Gosdinski: > On Wed, Nov 5, 2008 at 8:47 AM, Oscar Gosdinski <[EMAIL PROTECTED]> wrote: > > Name the select tag as sub_projects[], then in PHP you can read the > > $sub_project variable as an array. > > Oops, my error... you have to use the $_POST['sub_project

[PHP] Re: take me off the list

2008-11-07 Thread Michelle Konzack
Am 2008-11-03 11:10:29, schrieb Robert Cummings: > Give a man some fish, he'll be back later for more! Hau ihm den Fisch um die Ohren und er wird vom Gestank so angewiedert sein, das er nicht mehr zurückkommt. ;-) (It is not realy nice, so I have written in german...) Thanks, Greetings and nice

[PHP] Re: Problems with images..

2008-11-07 Thread Michelle Konzack
Am 2008-11-03 14:43:43, schrieb Anders Norrbring: > I've been staring myself blind, so now I don't get anywhere, please do > advice.. > > I have a web page printed with PHP, in a table I need to display images that > are stored in a SQL DB. > Getting the images into variables isn't an issue at all

[PHP] Re: take me off the list

2008-11-07 Thread Michelle Konzack
Salut Deborah, Am 2008-11-02 19:52:50, schrieb Dennison, Deborah: > Sorry to have to do this to the list but I have tried 4 rimes to > unsubscribe from this list the suggested way yet I continue to get mail. > List Master please remove me. Which email have you used to unsubscribe? [EMAIL PRO

[PHP] Re: php exec()

2008-11-07 Thread Michelle Konzack
Am 2008-11-03 13:28:27, schrieb cheesiong: > hi Chris, > thank you. i change the path and change the httpd.conf LogLevel to debug > then restart apache. > but nothing is change from the output or the error log. > basically it is still not working. > > this is weird, isn't it. the apache is run

[PHP] Re: Mailing lists

2008-11-07 Thread Michelle Konzack
Am 2008-10-30 12:30:28, schrieb Richard Heyes: > > ... > > Ok, other then mailman, anyone know of a free (other than > freelists.org) hosted discussion list management service? , , , Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer

Re: [PHP] Infinite Loop Issue

2008-11-07 Thread Thodoris
I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = "SELECT release_id, description, date(release_date) date, issues, priority FROM release_data"; $all =

Re: [PHP] Infinite Loop Issue

2008-11-07 Thread Thodoris
I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = "SELECT release_id, description, date(release_date) date, issues, priority FROM release_data"; $all = $db

Re: [PHP] Waste of storage space? [follow-up]

2008-11-07 Thread Frank Arensmeier
1 nov 2008 kl. 16.27 skrev Michelle Konzack: Hello Frank, Do you use Linux or Windows? Initially, the system I am working on will be installed under Mac OS X Server. If Windows you have already lost since the cluster size of e.g. Windows 2003 is 32 kByte or 64 kByte... If Linu

Re: [PHP] PHP and Cyrus problem

2008-11-07 Thread Richard Heyes
> ...PHP for webmail. Did you know you can use Gmail for webmail, even having the From: address set to your own domain? It will require a little more setup (well, with ten thousand mailboxes that would be "a lot") but you end with one of the best webmail clients there is. -- Richard Heyes HTML5

[PHP] Re: PHP and Cyrus problem

2008-11-07 Thread Colin Guthrie
Emerson Virti wrote: Where is the problem? Probably not the right list, but have you tried using cyradm and running: reconstruct user.name.mailbox.name (correct the folder as needed). When a cyrus database file gets corrupted or generally borked this fixes it 99% of the time for me. Col