Re: [PHP] FPDF passing values into header and footer?

2010-04-25 Thread Angus Mann
- Original Message - From: "Angus Mann" To: "php-general" Sent: Monday, April 26, 2010 2:46 PM Subject: [PHP] FPDF passing values into header and footer? Hi all. Whilst this question relates to fpdf (www.fpdf.org) I think it really is a PHP question, because it involves passing val

Re: [PHP] copy() method on objects

2010-04-25 Thread richard gray
Paul M Foster wrote: [snip] There are cases where I strictly want a *copy* of $a stored in $b. In cases like this, I supply $a's class with a copy() method, and call it like this: $b = $a->copy(); Is this reasonable, or do people have a better/more correct way to do this? Paul http:

[PHP] FPDF passing values into header and footer?

2010-04-25 Thread Angus Mann
Hi all. Whilst this question relates to fpdf (www.fpdf.org) I think it really is a PHP question, because it involves passing values into classes and functions. Here's the problem .. I need to pass a PHP variable like $number into the header of a PDF. I have extended the FPDF class as follows..

Re: [PHP] copy() method on objects

2010-04-25 Thread Andrew Ballard
On Mon, Apr 26, 2010 at 12:24 AM, Paul M Foster wrote: > Here is some code: > > $a = new my_object; > $b = $a; > > My understanding of this operation under PHP 5+ is that $b will now be > essentially a "reference" to $a, *not* a *copy* of the $a object. Is > this correct? > > There are cases where

[PHP] copy() method on objects

2010-04-25 Thread Paul M Foster
Here is some code: $a = new my_object; $b = $a; My understanding of this operation under PHP 5+ is that $b will now be essentially a "reference" to $a, *not* a *copy* of the $a object. Is this correct? There are cases where I strictly want a *copy* of $a stored in $b. In cases like this, I suppl

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
on; a classical location might be something like: {/usr/local}/etc/apache/httpd.conf HTH, Kevin Kinsey __ Information from ESET NOD32 Antivirus, version of virus signature database 5059 (20100425) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com _

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread ioan...@btinternet.com
This is all I see in the error log: SUEXEC error_log: [2010-04-25 16:45:42]: uid: (1116/myname) gid: (1118/myname) cmd: fcgiwrapper John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Structured PHP studying

2010-04-25 Thread David McGlone
Another one from this morning that didn't seem to make it to the list. >>On Saturday 24 April 2010 10:01:03 Ashley Sheridan wrote: > On Sat, 2010-04-24 at 07:14 -0400, David McGlone wrote: > > On Friday 23 April 2010 07:45:16 Michiel Sikma wrote: > > > On 23 April 2010 13:15, David McGlone wrote

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread David McGlone
On Sunday 25 April 2010 09:16:23 tedd wrote: apologies if this made it to the list earlier this morning when I initially sent it. I didn't see my reply so I'm going to try again here. > Hi gang: > > Considering we recently had several people mention what games they > play, it might be interestin

Re: [PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread Ashley Sheridan
On Sun, 2010-04-25 at 22:17 +0900, ioan...@btinternet.com wrote: > I can return a target page - once, but then on refresh within a few > hours the script curl_error is that it cannot connect to the host and > return is empty. The target URL is an ip address, not a named url, so > maybe it has

[PHP] CURL cannot connect to URL - IP address - after successful connection

2010-04-25 Thread ioan...@btinternet.com
I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. The target URL is an ip address, not a named url, so maybe it has something to do with DNS. I am on a shared server. Any ideas on why thi

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread sean greenslade
On Sun, Apr 25, 2010 at 4:13 PM, Jason Pruim wrote: > > On Apr 25, 2010, at 9:16 AM, tedd wrote: > > Hi gang: >> >> Considering we recently had several people mention what games they play, >> it might be interesting to see what everyone plays. >> >> As for me, I currently play "Modern Warfare 2"

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Danilo Moncastro Sabbagh
Is anyone up for a vgaplanets match? Danilo Moncastro Sabbagh cel: +55 31 88613128 gtalk: torea...@gmail.com Em 25/04/2010, às 17:13, Jason Pruim escreveu: > > On Apr 25, 2010, at 9:16 AM, tedd wrote: > >> Hi gang: >> >> Considering we recently had several people mention what games they pla

Re: [PHP] creating a PHP wrapper script?

2010-04-25 Thread Danilo Moncastro Sabbagh
Even tho most of the servers uses 1.1 they have compliant configurations. or at least they should. things like mod_gzip and deflate are usually only used if the request is 1.1 to be honest.. if i understood you correctly the curl solution or even a wrapper for another downloader like wget or

Re: [PHP] Weird problem with is_file()

2010-04-25 Thread Karl DeSaulniers
Oops, my apologies. That is a PHP MySQL solution. Wrong list. Please disregard that solution. Maybe find a way to get an error response from your session to see what the problem is. Karl On Apr 25, 2010, at 3:24 PM, Karl DeSaulniers wrote: Hi Michelle, Maybe try adding an error catch to se

Re: [PHP] Weird problem with is_file()

2010-04-25 Thread Karl DeSaulniers
Hi Michelle, Maybe try adding an error catch to see what you get. if(is_file($isFile)) or die(mysql_error()); On Apr 25, 2010, at 3:14 PM, Michelle Konzack wrote: if (is_file($isfile)) { Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP General Mailing List (http://www.php.net/)

[PHP] Weird problem with is_file()

2010-04-25 Thread Michelle Konzack
Hi, I have a code sniplet which does not work and I do not know why: 8<-- $isfile=shell_exec("ls /tmp/tdphp-vserver/SESSION_" . $_SERVER['REMOTE_ADDR'] . "_" . $_COOKIE['VSERVER_AUTHUSER'] . "_* |head -n1"); if (is_file($is

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Jason Pruim
On Apr 25, 2010, at 9:16 AM, tedd wrote: Hi gang: Considering we recently had several people mention what games they play, it might be interesting to see what everyone plays. As for me, I currently play "Modern Warfare 2" on XBOX. It's the most recent in a long line of war games (i.e., C

Re: [PHP] PHP not being read?

2010-04-25 Thread Kevin Kinsey
Gary wrote: Peter ""Check that the php module is loaded by Apache on the 'bad' machine and that the proper handler is set. Should be a line like: AddHandler application/x-httpd-php .php .phtml .php3"" I have been looking through some of the files, but frankly it is a combination hunt and peek

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Ashley Sheridan
On Sun, 2010-04-25 at 13:56 -0400, Robert Cummings wrote: > tedd wrote: > > Hi gang: > > > > Considering we recently had several people mention what games they > > play, it might be interesting to see what everyone plays. > > > > As for me, I currently play "Modern Warfare 2" on XBOX. It's the

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread shiplu
King Of Fighters (Series), Tom Raider (Series), Grand Theft Auto (Series), Max Payne, Max Payne II, Prince Of Persia (Series), & Sudoku Shiplu Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distingu

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Robert Cummings
I do, though I can't find the disc right now... Keiran (19 months) was last seen toddling around with it about 2 weeks ago :/ When I find it I'll send you my player code. Nathan Rixham wrote: Robert Cummings wrote: tedd wrote: Hi gang: Considering we recently had several people mention w

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Hans Åhlin
Lineage II Comanche 4 Unreal Tournament Blood Rayne 1 and 2 Battlefield 2, 2142 Warhammer 40k Fallout 1, 2 and 3 My game list at CheatHappens.com http://www.cheathappens.com/show_user.asp?userID=553587 ** Hans Åhlin Tel: +46761488019 http://www.k

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Nathan Rixham
Robert Cummings wrote: > tedd wrote: >> Hi gang: >> >> Considering we recently had several people mention what games they >> play, it might be interesting to see what everyone plays. >> >> As for me, I currently play "Modern Warfare 2" on XBOX. It's the most >> recent in a long line of war games (i

Re: [PHP] creating a PHP wrapper script?

2010-04-25 Thread Nathan Rixham
Peter Lind wrote: > php.net/curl should be able to do what you want. +1 > file_get_contents with a proper stream context should also work (have > a look at functions like http://dk.php.net/manual/en/context.http.php > ) very important to note that file_get_contents uses HTTP 1.0 not 1.1 by defau

Re: [PHP] Structured PHP studying

2010-04-25 Thread Nathan Rixham
David McGlone wrote: > On Saturday 24 April 2010 10:46:33 Nathan Rixham wrote: >> Aside: in every project i do, and at all times i have a test.php where I >> literally just try out ways of doing things and snippets of code, once >> I'm done i stick an exit; before it then do the next snippet above

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Robert Cummings
tedd wrote: Hi gang: Considering we recently had several people mention what games they play, it might be interesting to see what everyone plays. As for me, I currently play "Modern Warfare 2" on XBOX. It's the most recent in a long line of war games (i.e., Call of Duty, Ghost Recon, etc.).

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread Jim Lucas
tedd wrote: Hi gang: Considering we recently had several people mention what games they play, it might be interesting to see what everyone plays. As for me, I currently play "Modern Warfare 2" on XBOX. It's the most recent in a long line of war games (i.e., Call of Duty, Ghost Recon, etc.).

Re: [PHP] Recommendation for online PHP editor please....

2010-04-25 Thread Jim Lucas
Angus Mann wrote: HI all. I'm looking for a recommendation for an online PHP editor. Here's what I mean I mean a PHP program I can install on my web-server, then log in and use it to browse and edit other PHP files on the server. The idea is that I could make changes and bugfixes to a web

[PHP] Re: What's your game? (X-PHP)

2010-04-25 Thread Nathan Rixham
tedd wrote: > Hi gang: > > Considering we recently had several people mention what games they play, > it might be interesting to see what everyone plays. > > As for me, I currently play "Modern Warfare 2" on XBOX. It's the most > recent in a long line of war games (i.e., Call of Duty, Ghost Recon

[PHP] Re: Recommendation for online PHP editor please....

2010-04-25 Thread Al
On 4/25/2010 4:01 AM, Angus Mann wrote: HI all. I'm looking for a recommendation for an online PHP editor. Here's what I mean I mean a PHP program I can install on my web-server, then log in and use it to browse and edit other PHP files on the server. The idea is that I could make chang

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread David McGlone
On Sunday 25 April 2010 09:16:23 tedd wrote: > Hi gang: > > Considering we recently had several people mention what games they > play, it might be interesting to see what everyone plays. > > As for me, I currently play "Modern Warfare 2" on XBOX. It's the most > recent in a long line of war games (

Re: [PHP] Structured PHP studying

2010-04-25 Thread David McGlone
On Saturday 24 April 2010 10:01:03 Ashley Sheridan wrote: > On Sat, 2010-04-24 at 07:14 -0400, David McGlone wrote: > > On Friday 23 April 2010 07:45:16 Michiel Sikma wrote: > > > On 23 April 2010 13:15, David McGlone wrote: > > > > Is there a good strategy to studying PHP? > > > > > > > > For ins

Re: [PHP] Structured PHP studying

2010-04-25 Thread paragasu
> Just build what you want to build and look things up when necessary. I did exactly like this. My first application is a forum. It never made it to production, but i learn a lot. And i am glad i learn it this way. It is a bit costly but fun. On Sun, Apr 25, 2010 at 11:01 PM, David McGlone wrote

Re: [PHP] Structured PHP studying

2010-04-25 Thread David McGlone
On Saturday 24 April 2010 10:46:33 Nathan Rixham wrote: > David McGlone wrote: > > On Friday 23 April 2010 07:45:16 Michiel Sikma wrote: > >> On 23 April 2010 13:15, David McGlone wrote: > >>> Is there a good strategy to studying PHP? > >>> > >>> For instance, is there a way to break everything do

Re: [PHP] Re: [RCD] [RCU] [bug of pecl pam ] I try to implement the change password plugin

2010-04-25 Thread fakessh
On Sun, 25 Apr 2010 16:16:00 +0200, fakessh wrote: > On Sun, 25 Apr 2010 00:38:17 +0200, fakessh wrote: >> On Sat, 24 Apr 2010 06:00:55 +0200, fakessh wrote: >>> On Thu, 22 Apr 2010 17:58:43 +0200, fakessh wrote: On Thu, 22 Apr 2010 13:15:42 +0200, "A.L.E.C" wrote: > fakessh wrote: >>

[PHP] Re: [RCD] [RCU] [bug of pecl pam ] I try to implement the change password plugin

2010-04-25 Thread fakessh
On Sun, 25 Apr 2010 00:38:17 +0200, fakessh wrote: > On Sat, 24 Apr 2010 06:00:55 +0200, fakessh wrote: >> On Thu, 22 Apr 2010 17:58:43 +0200, fakessh wrote: >>> On Thu, 22 Apr 2010 13:15:42 +0200, "A.L.E.C" wrote: fakessh wrote: > [r...@r13151 ~]# diff --text -u > /home/ftpchro

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
mation from ESET NOD32 Antivirus, version of virus signature database 5057 (20100424) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 5058 (20100425) __ The message w

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Information from ESET NOD32 Antivirus, version of virus signature database 5057 (20100424) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.c

[PHP] What's your game? (X-PHP)

2010-04-25 Thread tedd
Hi gang: Considering we recently had several people mention what games they play, it might be interesting to see what everyone plays. As for me, I currently play "Modern Warfare 2" on XBOX. It's the most recent in a long line of war games (i.e., Call of Duty, Ghost Recon, etc.). My gamer t

Re: [PHP] Structured PHP studying

2010-04-25 Thread tedd
At 3:01 PM +0100 4/24/10, Ashley Sheridan wrote: I look at some code I did a while back and shudder. It started off well enough, but then feature creep set in and now it looks like a creation of Frankenstein! I think it happens to all of us at some point, it just depends how well we deal with it.

Re: [PHP] Re: Re: replying to list (I give up)

2010-04-25 Thread Ashley Sheridan
On Sun, 2010-04-25 at 13:30 +0200, Michelle Konzack wrote: > Hello Michiel Sikma, > > Am 2010-04-25 12:21:40, hacktest Du folgendes herunter: > > Ah, you're right, I misread. But I believe all of those games except Diablo > > will run under DOS as well. DOSBox can also run up to Windows 3.11. >

Re: [PHP] Recommendation for online PHP editor please....

2010-04-25 Thread Ashley Sheridan
On Sun, 2010-04-25 at 13:46 +0200, mrfroasty wrote: > SSH + MC i.e http://www.midnight-commander.org, you will get syntax high > lights. > > P:S > **Any CLI program will do the job. > > > > > > On 04/25/2010 10:01 AM, Angus Mann wrote: > > HI all. I'm looking for a recommendation for an onli

Re: [PHP] Recommendation for online PHP editor please....

2010-04-25 Thread mrfroasty
SSH + MC i.e http://www.midnight-commander.org, you will get syntax high lights. P:S **Any CLI program will do the job. On 04/25/2010 10:01 AM, Angus Mann wrote: > HI all. I'm looking for a recommendation for an online PHP editor. > > Here's what I mean > > I mean a PHP program I can inst

[PHP] Re: Re: replying to list (I give up)

2010-04-25 Thread Michelle Konzack
Hello Michiel Sikma, Am 2010-04-25 12:21:40, hacktest Du folgendes herunter: > Ah, you're right, I misread. But I believe all of those games except Diablo > will run under DOS as well. DOSBox can also run up to Windows 3.11. WfW 3.11 in fullscreen? Hahaha! LOL! I can imagine, my AMD Phenom Q

Re: [PHP] Re: replying to list (I give up)

2010-04-25 Thread Michiel Sikma
On 25 April 2010 09:31, Per Jessen wrote: > > >> Doesn't WoW need DirectX and all that? I have some old Windows games > >> (Diablo, Alpha Centauri, Railroad Tycoon, Wolfenstein) I'd love to > >> play under Wine, but so far I've not managed to make them work. > >> > >> > > The best way to run old

Re: [PHP] Recommendation for online PHP editor please....

2010-04-25 Thread Karl DeSaulniers
Here you go. This is labeled a html editor, but thinking you can edit php files with it as well. HTH, http://phphtmledit.com/ Karl On Apr 25, 2010, at 3:01 AM, Angus Mann wrote: HI all. I'm looking for a recommendation for an online PHP editor. Here's what I mean I mean a PHP program

[PHP] Recommendation for online PHP editor please....

2010-04-25 Thread Angus Mann
HI all. I'm looking for a recommendation for an online PHP editor. Here's what I mean I mean a PHP program I can install on my web-server, then log in and use it to browse and edit other PHP files on the server. The idea is that I could make changes and bugfixes to a web app while I'm away

Re: [PHP] Re: replying to list (I give up)

2010-04-25 Thread Per Jessen
Michiel Sikma wrote: > On 24 April 2010 16:14, Per Jessen wrote: > >> Ashley Sheridan wrote: >> >> >> >> >> Is there an actual WoW client for Linux or you run in Wine like >> >> environment? >> >> >> >> Thanks, >> >> Tommy >> >> >> > >> > I run it under Wine. Wine has come a long way since my fi