[PHP] Problem with sending mail with attachment

2004-03-17 Thread shyxu
I'm using Mail.php which is located in /usr/local/lib/php I made a mail program by php. Which is attaching a file. But I guess there's problem in MIME syntax. I don't know what is wrong... What's the problem? ** Below this line is php codes. ** include "Mail.php"; // defines header $he

Re: [PHP] Javascript Mouseover Help

2004-03-17 Thread Tom Rogers
Hi, Thursday, March 18, 2004, 1:08:27 PM, you wrote: JM> Hi everyone, JM> How can I get around my problem? I have a couple pages that I JM> would like to have buttons where the button and background changes JM> when the javascript mouseover event happens. My code works fine if JM> the page is .ht

RE: [PHP] Javascript Mouseover Help

2004-03-17 Thread Clifford W. Hansen
Jake, Have you tried the second option, I've never seen a variable assigned with

RE: [PHP] Javascript Mouseover Help

2004-03-17 Thread Clifford W. Hansen
Jake, Personally I don't use the

Re: [PHP] Javascript Mouseover Help NOT A JAVASCRIPT QUESTION

2004-03-17 Thread Terence
Post your code since it's like trying to solve a math problem writtin in invisible ink during a blackout. - Original Message - From: "Jake McHenry" <[EMAIL PROTECTED]> To: "Raditha Dissanayake" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 18, 2004 1:43 PM Subject: Re:

[PHP] [about mail] I can't see main message either attached file what I sent

2004-03-17 Thread Xu
I'm using Mail.php which is located in /usr/local/lib/php I made a mail program by php. Which is attaching a file. But I guess there's problem in MIME syntax. I don't know what is wrong... What's the problem? ** Below this line is php codes. ** include "Mail.php"; // defines header $he

[PHP] [about mail] I can't see main message either attached file what I sent.

2004-03-17 Thread Xu
I'm using Mail.php which is located in /usr/local/lib/php I made a mail program by php. Which is attaching a file. But I guess there's problem in MIME syntax. I don't know what is wrong... What's the problem? ** Below this line is php codes. ** include "Mail.php"; // defines header $he

Re: [PHP] Javascript Mouseover Help NOT A JAVASCRIPT QUESTION

2004-03-17 Thread Jake McHenry
- Original Message - From: "Raditha Dissanayake" <[EMAIL PROTECTED]> To: "Jake McHenry" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 18, 2004 12:35 AM Subject: Re: [PHP] Javascript Mouseover Help > Jake McHenry wrote: > > >Hi everyone, > > > >How can I get around my

Re: [PHP] Javascript Mouseover Help

2004-03-17 Thread Raditha Dissanayake
Jake McHenry wrote: Hi everyone, How can I get around my problem? I have a couple pages that I would like to have buttons where the button and background changes when the javascript mouseover event happens. My code works fine if the page is .html, but when I try it as php, the mouseovers no longe

Re: [PHP] auto closing session?

2004-03-17 Thread trlists
On 18 Mar 2004 Louie Miranda wrote: > On my website i massively use session. And often times the webserver is > lacking resources to process more queries, and thats where all my > applications are failing. > > I issue a destroy session at the end of my transaction, but some users dont > end their

[PHP] auto closing session?

2004-03-17 Thread Louie Miranda
Hello, On my website i massively use session. And often times the webserver is lacking resources to process more queries, and thats where all my applications are failing. I issue a destroy session at the end of my transaction, but some users dont end their transaction and thats the big problem fo

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > yes i am well aware of google and amazon but i just wanted to get > george some extra exposure by getting a link into an email. You can use the link I list here to give George a commission: http://shiflett.org/archive/29 He also now has an Amazo

[PHP] Javascript Mouseover Help

2004-03-17 Thread Jake McHenry
Hi everyone, How can I get around my problem? I have a couple pages that I would like to have buttons where the button and background changes when the javascript mouseover event happens. My code works fine if the page is .html, but when I try it as php, the mouseovers no longer work. I have th

Re: [PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-17 Thread trlists
On 17 Mar 2004 Brent Westmoreland wrote: > I too have questions on how to handle this situation, any help would be > greatly appreciated. [Situation was how to use a single database connection inside a class nested within another class etc.] If you have a single DB connection open for the enti

RE: [PHP] PHP On Solaris 9 - MySQL Problem

2004-03-17 Thread trlists
You might try an fsockopen() to port 3306 on the dbserver and see if it works. If not, you get a reasonably descriptive error. I just tried a couple of known servers and bogus addresses with this code: A server listening on that port produces: resource(4) of type (stream) string(0)

Re: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Manuel Lemos
Hello, On 03/17/2004 02:12 PM, Chris W. Parker wrote: I instantly started to read and I'm very happy with the quality and level of the book. Of course I haven't read the complete book yet, but from what I've read so far this was money well spent. where can we get more information and what "onlin

[PHP] Re: Global variables in a class? Nested classes VS inheritance...

2004-03-17 Thread Brent Westmoreland
I too have questions on how to handle this situation, any help would be greatly appreciated. On 2003-07-30 11:30:54 -0400, [EMAIL PROTECTED] said: Hello, I'm lookin for some tips on the best way to do this... I make a database connection outside of my classes... lets call it $myDBConnection. I

[PHP] Interbase c/php no Mandrake !

2004-03-17 Thread Luiz Gustavo Sarubi Macchi
Por favor Uso o Mandrake 9.1 e preciso usar PHP c/interbase ! entao instalei o php430-devel e compilei a extensao do interbase ou seja: phpize depois ./configure --with-interbase=/opt/interbase/ depois make install a extensao foi adicionada ! so q quando tento acessar o banco o php reporta um e

Re: [PHP] header() vs. fsockopen for "Location: http:www.d.com"....

2004-03-17 Thread Raditha Dissanayake
Hi Scott, This has been heavily discussed in recent weeks you will find lots of pointers in the archives. But in short there's no harm in header("Location:"); Scott Fletcher wrote: Hi! Let's say there are 3 webpages with webpage #1 for customer filling out the form and submit it to webpage

[PHP] Managed Server/Cluster hosting recommendations?

2004-03-17 Thread Brian Tully
sorry if this is considered "off-topic" but I'm desperate to find a new hosting provider that specializes in managed servers/clusters. it looks as though our current host is going under so we need to move fast. we have a pretty intricate setup that involves load balancing of both web (Apache) and

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Labunski
Thank you very much, it's working fine. Lab. "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Labunski wrote: > | $ip = getenv ("REMOTE_ADDR"); > | > | function kick() { > | $file_ip = file("log.txt"); > |

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jason Giangrande
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Labunski wrote: | $ip = getenv ("REMOTE_ADDR"); | | function kick() { | $file_ip = file("log.txt"); | foreach($file_ip as $value_ip ) { | $kick .= "$value_ip"; | } | return $kick; | } | if ($ip == kick()){ | echo "Sorry, the acce

RE: [PHP] Re: Stupid question

2004-03-17 Thread Chris W. Parker
Luis Mirabal on Wednesday, March 17, 2004 3:18 PM said: > as Chris W. Parker noticed, there is a little mistake in the example > above posted by me, it says: i'd like to thank the academy, my parents, God, my cat, and all of those that voted for me! thank you!

[PHP] Re: Stupid question

2004-03-17 Thread Luis Mirabal
as Chris W. Parker noticed, there is a little mistake in the example above posted by me, it says: //Class function function set() { $sum = $this->a . $this->b . $this->c; } and it should say: //Class function function set() { $this->sum = $this->a . $this->b . $this->c; } sorry :P luis.

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Rob Ellis
On Wed, Mar 17, 2004 at 06:11:31PM -0500, Jake McHenry wrote: > > I think you want something like: > > > >if (in_array($_SERVER['REMOTE_ADDRESS'], file('log.txt'))) > >die("Sorry, the access is denied."); > > > > - Rob > > > yes, that'll work too.. just more compact than what I post

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jake McHenry
> I think you want something like: > >if (in_array($_SERVER['REMOTE_ADDRESS'], file('log.txt'))) >die("Sorry, the access is denied."); > > - Rob yes, that'll work too.. just more compact than what I posted :-p Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Rob Ellis
On Thu, Mar 18, 2004 at 12:46:52AM +0200, Labunski wrote: > I have a small problem with the script - could you hepl me, please? > > I made small "kicking system" for those who tried to guess the Login > information. > The script below is just a part of the code, but it's not working properly. > I

RE: [PHP] PHP On Solaris 9 - MySQL Problem

2004-03-17 Thread Cameron B. Prince
I updated my die message on failure to connect to print the mysql_error and mysql_errorno output: Could not connect : Can't connect to MySQL server on '192.168.1.44' (0) - 2003 Neither is very helpful... ERROR code 2000 to 2999 can be found in the MySQL source code file: `include/errmsg.h' Exa

Re: [PHP] Small Problem - could you help me, please?

2004-03-17 Thread Jake McHenry
- Original Message - From: "Labunski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 5:46 PM Subject: [PHP] Small Problem - could you help me, please? > $ip = getenv ("REMOTE_ADDR"); > > function kick() { > $file_ip = file("log.txt"); > foreach($file

[PHP] PHP On Solaris 9 - MySQL Problem

2004-03-17 Thread Cameron B. Prince
Hey guys, I'm back again after trying many more things to solve this problem. If you weren't following the previous thread with Adam, I moved my site from a single development machine to the production environment which consists of a separate webserver and dbserver. At that point, PHP could no lon

RE: [PHP] mail() to own domain not working

2004-03-17 Thread Jason Merrique
Just read your email properly, there was no need for me to ask that question :) Right, I think you had pretty much the same problem as I had. Your webserver also doubled as the email server, so whenever mail was sent to [EMAIL PROTECTED], the local mail server was handling it rather than the serve

[PHP] Small Problem - could you help me, please?

2004-03-17 Thread Labunski
I have a small problem with the script - could you hepl me, please? I made small "kicking system" for those who tried to guess the Login information. The script below is just a part of the code, but it's not working properly. I tried to solve this problem in many ways, but I couldn't. This script

Re: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Filip de Waard
On Mar 17, 2004, at 6:12 PM, Chris W. Parker wrote: Filip de Waard on Wednesday, March 17, 2004 7:20 AM said: Hey guys. hi. I instantly started to read and I'm very happy with the quality and level of the book. Of course I haven't read the complete book yet, but from

Re: [PHP] The <<< convension

2004-03-17 Thread Ben Ramsey
And if you want the actual text "$variable" to be displayed, just use the backslash before the dollar symbol (e.g. "\$variable"). Chris W. Parker wrote: Chris W. Parker <> on Wednesday, March 17, 2004 1:38 PM said: it's choking on the $variable you've got in your heredoc text. you've probab

RE: [PHP] The <<< convension

2004-03-17 Thread Chris W. Parker
Chris W. Parker <> on Wednesday, March 17, 2004 1:38 PM said: > it's choking on the $variable you've got in your heredoc text. you've > probably got error reporting turned up so that it coughs on those > kinds of errors. notice it didn't cause your program to fail. i should also say.. if you

Re: [PHP] The <<< convension

2004-03-17 Thread Jake McHenry
- Original Message - From: "noginn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 4:29 PM Subject: [PHP] The <<< convension > I have read a range of comments on php.net manual where people have > mentioned this, along with it being in the 'print' functions p

RE: [PHP] The <<< convension

2004-03-17 Thread Chris W. Parker
noginn on Wednesday, March 17, 2004 1:30 PM said: > I would get this error when running the above script. > > *Notice*: Undefined variable: variable in > *C:\WWW\Apache2\htdocs\php\testprint.php* on line *4* > This uses the "here document" syntax to output multiple

[PHP] The <<< convension

2004-03-17 Thread noginn
I have read a range of comments on php.net manual where people have mentioned this, along with it being in the 'print' functions page itself. I have tryed to use it in some context before but without success, I have always been getting an error on some sort. For example; print $text; ?> I would

RE: [PHP] Stupid question

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 16:08, Jeff McKeon wrote: > > Ewe... OOP That should read: $this->ewww( 'OOP' ) :) -- .. | InterJinn Application Framework - http://www.interjinn.com | :---

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
With PHP 5 looming on the horizon (and even many already using it), it'd be a good idea to go ahead and learn OOP now. ;-) Jeff McKeon wrote: Ewe... OOP Ok, I guess I'll have to learn OOP. Thanks for the info! Jeff -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
If your question was about using dates in PHP, then by all means, ask it here. But I understood your question to be about dates with Javascript. Be specific with your question so people don't pass it off as being off topic. Luis Mirabal wrote: i am using it from a php program... maybe i was n

RE: [PHP] Stupid question

2004-03-17 Thread Jeff McKeon
Ewe... OOP Ok, I guess I'll have to learn OOP. Thanks for the info! Jeff > -Original Message- > From: Jordan S. Jones [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 17, 2004 4:02 PM > To: Jeff McKeon > Subject: Re: [PHP] Stupid question > > > That has to deal with Object Or

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
If you were going to call that function you would use $this->testfunc(); You're on the right track. If you're going to call that function (or "method") from within the class, then you use the $this. Also, you can use $this to access member variables from within the class. Outside of the clas

[PHP] Re: js date picker

2004-03-17 Thread Luis Mirabal
i am using it from a php program... maybe i was not clear enough... but thanx, i found some at phpclasses.org "Ben Ramsey" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > This is a wee bit off topic, seeing as how this is a PHP mailing list. > We'll be happy to help with PHP-re

Re: [PHP] Stupid question

2004-03-17 Thread noginn
Jeff McKeon wrote: I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this-> What does this do? I know it has som

Re: [PHP] Stupid question

2004-03-17 Thread Aaron Gould
Jeff McKeon wrote: $this-> What does this do? I know it has something to do with classes but can't quite get my head around it. You might want to check out this: http://ca.php.net/oop -- Aaron Gould Parts Canada - Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: Stupid question

2004-03-17 Thread Luis Mirabal
when you are working with classes and objects in php, and you are coding inside a class, you must use the $this variable to access the members of the class, for example: class test { //Class vars (something like properties) var $a; var $b; var $c; var $sum; //Class functi

[PHP] Re: Replace space from form field using preg_replace

2004-03-17 Thread Ben Ramsey
If you're doing this to pass it through a URL, then use urlencode() http://www.php.net/urlencode Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- Regards, Ben Ramsey http://benramsey

Re: [PHP] Stupid question

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 15:55, Jeff McKeon wrote: > I've been using PHP for about 6 months and I'm ok with it but I'm now > starting to get into more advanced stuff and inheriting project that > other people have coded. One of the major stumpers I have is any line > of code that contains: > > $this

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
This is a wee bit off topic, seeing as how this is a PHP mailing list. We'll be happy to help with PHP-related questions. As for JavaScript stuff, use Google to find a good resource. :-) Luis Mirabal wrote: anyone knows a good javascript date picker, i need it to be compatible with all major

[PHP] Stupid question

2004-03-17 Thread Jeff McKeon
I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this-> What does this do? I know it has something to do with c

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Cameron B. Prince
> I would think the mysqlclient library would be backwards > compatible, but it's possible I guess. I'm kind of out of > ideas, as the can't connect error without something like a > bad username or password message, seems to indicate a TCP/IP > communication failure. Well, after thinking more

Re: [PHP] Replace space from form field using preg_replace

2004-03-17 Thread Red Wingate
str_replace(" ","+",$var); -- red Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replace space from form field using preg_replace

2004-03-17 Thread Adam Voigt
http://www.php.net/str-replace On Wed, 2004-03-17 at 15:48, Vernon wrote: > I want to be able to replace a space that comes from a form field (such as > in 123 My Street) with a + sign. > > Can anyone help me with this? > > Thanks -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (

[PHP] Replace space from form field using preg_replace

2004-03-17 Thread Vernon
I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] js date picker

2004-03-17 Thread Luis Mirabal
anyone knows a good javascript date picker, i need it to be compatible with all major browsers thx, luis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Adam Voigt
I would think the mysqlclient library would be backwards compatible, but it's possible I guess. I'm kind of out of ideas, as the can't connect error without something like a bad username or password message, seems to indicate a TCP/IP communication failure. On Wed, 2004-03-17 at 15:26, Cameron B.

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Cameron B. Prince
> What does your MySQL error log say on your production database server? > It should be in the "var" directory named something ".err". These are SunFire 210 Solaris boxes. The MySQL is installed from binary. It doesn't write a log by default as best I can tell, but I did find something. The MySQ

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
What does your MySQL error log say on your production database server? It should be in the "var" directory named something ".err". On Wed, 2004-03-17 at 15:16, Cameron B. Prince wrote: > > Change your server address, to leave off the port number. > > > > Any different? > > $DBhost = "192.168.1.

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
> Change your server address, to leave off the port number. > > Any different? $DBhost = "192.168.1.44"; $DBuser = "web"; $DBpwd = "user"; $DBreg = "registration"; $DBconf = "config"; # setup database handle and load configuration data $dbh = mysql_connect($DBhost, $DBuser, $DBpwd) or die(

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
Change your server address, to leave off the port number. Any different? On Wed, 2004-03-17 at 15:07, Cameron B. Prince wrote: > > So what error prints out when you try and connect from PHP? > > Could not connect : Can't connect to MySQL server on '192.168.1.44' (2) > > Not very helpful huh? >

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
> So what error prints out when you try and connect from PHP? Could not connect : Can't connect to MySQL server on '192.168.1.44' (2) Not very helpful huh? Any ideas? Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
So what error prints out when you try and connect from PHP? On Wed, 2004-03-17 at 15:03, Cameron B. Prince wrote: > Hi Adam, > > > What happens when you try to use the "mysql" client on the > > web machine, to connect to the production database server? > > It works: > > bash-2.05# pwd > /usr

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
Hi Adam, > What happens when you try to use the "mysql" client on the > web machine, to connect to the production database server? It works: bash-2.05# pwd /usr/local/mysql/bin bash-2.05# ./mysql -h 192.168.1.44 -u web -P 3306 -p Enter password: Welcome to the MySQL monitor. Commands end wit

Re: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
What happens when you try to use the "mysql" client on the web machine, to connect to the production database server? Does it work? If yes, what lines are you using to connect to your DB with PHP? On Wed, 2004-03-17 at 14:54, Cameron B. Prince wrote: > Hey guys, > > I've been developing my site

[PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
Hey guys, I've been developing my site on a dev server with MySQL locally installed. I've now moved the site to the production webserver and setup my databases on the production dbserver, which are two different machines. I have begin updating my connection variables and now I find I can't connec

[PHP] Re: [ERR] Re: [PHP] php crash and memory_limit

2004-03-17 Thread kringla
No, none at all. Not even any sugestions from anyone what to do. I am stuck. [EMAIL PROTECTED] wrote: Transmit Report: To: [EMAIL PROTECTED], 2004/03/18 03:17:48, 999, »ó´ë¹æ ¼ö½Å¼­¹ö Á¢¼Ó½Ã°£ Ãʰú Subject: Re: [PHP] php c

Re: [PHP] Regex help - PLease

2004-03-17 Thread Michal Migurski
>Sorry I to should have added this this is what im going with so far > >preg_match(/\d100.*/); This will match a digit, followed by '100', followed by anything. Go with Rob's suggestion. - michal migurski- contact info and pgp ke

[PHP] Re: Regular expression checker

2004-03-17 Thread Luis Mirabal
an excelent tool: The Regex Coach, its free and you can grab it from http://weitz.de/regex-coach/ and its available for windows and linux! luis. <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hello all, > > For a while I tried in vain to find a decent regular expression teste

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Hi Am Mi, 2004-03-17 um 19.14 schrieb Chris W. Parker: > Marco Schuler > on Wednesday, March 17, 2004 9:18 AM said: > > > google, or in this case amazon, is your friend: > > yes i am well aware of google and amazon but i just wanted to get george > some extra expos

[PHP] Regular expression checker

2004-03-17 Thread memoimyself
Hello all, For a while I tried in vain to find a decent regular expression tester. The closest I found was RegExpEditor, by the same people who produce PHPEdit, but I found it to be slow and didn't like its constant bitching about "invalid delimiters" or some such thing. Anyway, I ended up wri

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Chris W. Parker
Marco Schuler on Wednesday, March 17, 2004 9:18 AM said: > google, or in this case amazon, is your friend: yes i am well aware of google and amazon but i just wanted to get george some extra exposure by getting a link into an email. maybe to the publishers homepage

Re: [PHP] PDF Creating

2004-03-17 Thread Vicente Werner
We had a similar issue ourselves, we finally solved it using htmldoc to build the pdf from a custom html file. It allows you to explicitly say where you want to split the document, or to rely upon itself to break the stuff into pages. --

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Am Mi, 2004-03-17 um 18.12 schrieb Chris W. Parker: > Filip de Waard > on Wednesday, March 17, 2004 7:20 AM said: > > > Hey guys. > > hi. > > > I instantly started to read and I'm very happy > > with the quality and level of the book. > > > > Of course I haven't r

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Jake McHenry
I didn't post it, I just added on to someone elses question. I do use counter++; in other scripts, but it's only in my timesheet app that it doesn't work. It's very odd, so I just made them all $counter = $counter + 1; I didn't have time to mess with it. Was just asking. $counter is initially set

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Hi Am Mi, 2004-03-17 um 18.12 schrieb Chris W. Parker: > Filip de Waard > on Wednesday, March 17, 2004 7:20 AM said: > > > Hey guys. > > hi. > > > I instantly started to read and I'm very happy > > with the quality and level of the book. > > > > Of course I haven

Re: [PHP] Help with adding an image to a table row

2004-03-17 Thread Brian V Bonini
On Wed, 2004-03-17 at 12:23, Mark wrote: > I have the following snippet of code that I cannot seem to find a way to > add an image to a . The line in question is the first one under the > else statement: > > print ""; > > This line, I would like to show a image called "backgrnd.png" instead of

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Chris W. Parker
Shane McBride on Wednesday, March 17, 2004 9:40 AM said: > No, the value still is not incrementing. then you must be resetting it unknowingly or the else block in your if..else statement is not being executed like you are expecting it to be. one thing i do to debug

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
No, the value still is not incrementing. -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:25 PM To: Shane McBride; PHP; [EMAIL PROTECTED] Subject: RE: [PHP] Simple: Whats wrong with this? Shane McBride o

[PHP] header() vs. fsockopen for "Location: http:www.d.com"....

2004-03-17 Thread Scott Fletcher
Hi! Let's say there are 3 webpages with webpage #1 for customer filling out the form and submit it to webpage #2 for processing and database insert/update then php header("Location: http://www.whatever.com";) to redirect the webapge to webpage #3. (or back to webpage #1). That way, the web-b

RE: [PHP] Help with adding an image to a table row

2004-03-17 Thread Chris W. Parker
Mark on Wednesday, March 17, 2004 9:24 AM said: > Any help would be much appreciated as this is not a php related question and that this is a very basic question it would be most beneficial for you to join a list like thelist from http://evolt.org or webdesign-l (i

Re: [PHP] Help with adding an image to a table row

2004-03-17 Thread Arthur Pelkey
background="" Mark wrote: I have the following snippet of code that I cannot seem to find a way to add an image to a . The line in question is the first one under the else statement: print ""; This line, I would like to show a image called "backgrnd.png" instead of a backgound color. Any he

Re: Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 12:19, Jason Wong wrote: > On Thursday 18 March 2004 01:07, Richard Davey wrote: > > > ++ is a _post_ increment. This means it'll returns $correct first and > > then increment it by one. There is a section in the PHP manual on this > > (search for "Incrementing/Decrementing O

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Chris W. Parker
Shane McBride on Wednesday, March 17, 2004 9:16 AM said: > I am just trying to get the variable to increment, than I will be > working on a session. It's basically being used to keep track of > correct/incorrect answers for an online quiz. and so now that you've cor

Re: [PHP] PDF Creating

2004-03-17 Thread Jason Wong
On Thursday 18 March 2004 00:59, Robert Sossomon wrote: > I have the PDF librarys from FPDF and from Potential Tech, I have not > decided which one to use yet. Have you tried pc4p? [snip] > My question is how to I know how/where the pages will break, and how can > I make the generation of the

[PHP] Help with adding an image to a table row

2004-03-17 Thread Mark
I have the following snippet of code that I cannot seem to find a way to add an image to a . The line in question is the first one under the else statement: print ""; This line, I would like to show a image called "backgrnd.png" instead of a backgound color. Any help would be much appreciated

Re: Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Jason Wong
On Thursday 18 March 2004 01:07, Richard Davey wrote: > ++ is a _post_ increment. This means it'll returns $correct first and > then increment it by one. There is a section in the PHP manual on this > (search for "Incrementing/Decrementing Operators". Whether it's pre or post depends on whether i

RE: [PHP] PHP vs Algorithm

2004-03-17 Thread Chris W. Parker
Firman Wandayandi on Wednesday, March 17, 2004 12:22 AM said: > I want to make algorithm representation of my code for my homework, > but I have no idea to convert PHP code to algorithm. Can anyone help > me? i think your problem is that you are misunderstanding the

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
I am just trying to get the variable to increment, than I will be working on a session. It's basically being used to keep track of correct/incorrect answers for an online quiz. Here's what I am trying: if(!isset($correct)) { $correct = 0; } else { $correct++ } Sha

RE: [PHP] PDF Creating

2004-03-17 Thread Daniel Purdy
[snip] My question is how to I know how/where the pages will break, and how can I make the generation of the PDF files work automagically? The first page will always have a header set of information, and then the quote following it, all other pages will just have the quoted items. [/snip] My expe

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Chris W. Parker
Filip de Waard on Wednesday, March 17, 2004 7:20 AM said: > Hey guys. hi. > I instantly started to read and I'm very happy > with the quality and level of the book. > > Of course I haven't read the complete book yet, but from what I've > read so far this was money

Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Richard Davey
Hello Sam, Wednesday, March 17, 2004, 5:04:21 PM, you wrote: SM> This drove me nuts for a while and instead of doing $variable++ I SM> started using ++$variable and never had the problem again. Yes, that's a pre-increment operator. Quite different to a post-increment. You need to use the right o

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Chris W. Parker
Jake McHenry on Wednesday, March 17, 2004 9:01 AM said: > Does this always work? In my timesheet app, I have to do $counter = > $counter + 1, because for some reason the $counter++; doesn't work. > It just doesn't work, no incrementation of the variable. Is there > s

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Red Wingate
Maybe you guys should take a read about pre- and post-increment :-) Sam Masiello wrote: This drove me nuts for a while and instead of doing $variable++ I started using ++$variable and never had the problem again. --Sam Jake McHenry wrote: No. $correct++; Is all you need for the second conditio

Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Richard Davey
Hello Jake, Wednesday, March 17, 2004, 5:00:52 PM, you wrote: >> $correct++; JM> Does this always work? In my timesheet app, I have to do $counter = $counter JM> + 1, because for some reason the $counter++; doesn't work. It just doesn't JM> work, no incrementation of the variable. Is there somet

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
Well I accidentally deleted your original email, but I didn't see where you were getting the counter variable from. Where is the variable being stored? You do know that setting $counter++ for one visitor, doesn't translate the value of $counter to another, right? On Wed, 2004-03-17 at 12:05, Sha

Re: [PHP] PDF Creating

2004-03-17 Thread Adam Voigt
I don't know if this is still the case, but when I was using the PDF library to generate PDF's, the only way to know when to stop the current page and start the next, was by keeping track of what your pixel position on the page was, and if you were within such and such of the margin, you should cal

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Sam Masiello
This drove me nuts for a while and instead of doing $variable++ I started using ++$variable and never had the problem again. --Sam Jake McHenry wrote: >> No. >> >> $correct++; >> >> Is all you need for the second condition, it automatically sets >> itself back. >> > > > Does this always w

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
Not that I'm aware of. In every incantation I've ever seen of the incrementing, $correct++; Is always, 100% equal to: $correct = ($correct + 1); But, maybe you ran into a case where it's not, you never know. On Wed, 2004-03-17 at 12:00, Jake McHenry wrote: > > No. > > > > $correct++; > > > > I

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
It doesn't seem to work either way for me. Shane -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Simple: Whats wrong with this? > No. > > $correct++; > > Is all you need for the second cond

  1   2   >