[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] 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

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
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 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] 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

[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] 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] 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] 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

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 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] 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 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

[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] 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!

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] 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"); > |

[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] 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] 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

[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

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

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] 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

[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] 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] 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] 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

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] 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

[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 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:

RE: [PHP] Javascript Mouseover Help

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

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 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

[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

<    1   2