[PHP] Strange error

2003-09-16 Thread Sid
Hello everyone, Am I having a bad day or WHAT! I have exactly 5 lines of code as follows and I get this error Parse error: parse error, unexpected T_STRING, expecting '&' or T_VARIABLE or T_CONST in D:\sid\sid-test\index.php on line 3 what is the problem here. Can someone help - Sid

[PHP] Using 'print <<

2003-09-16 Thread Rudi Starcevic
Hi, When printing like this: print << Is it at all possible to use a function in the output ? For example: print << So far I've been unable to make it function work. Many thanks Rudi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange error

2003-09-16 Thread Martin Towell
Hi Odd - I copy/paste the code below and run it against windows version of php4.0.6 and it's okay Maybe you've got a hidden char there somewhere? Martin -Original Message- From: Sid [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 5:39 AM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Re: PHP|Con insane pricing

2003-09-16 Thread Jeremy Brand, B.S.
Thanks again to all who at least had a mature answer. Cheers :) Jeremy Jeremy Brand, B.S. wrote: Does anyone know a way to attend the PHP|con west as an observer in Santa Clara, CA, US on Oct. 23rd without spending tons of ca$h? The pricing seems insane, and geared towards people with lots of sp

Re: [PHP] Re: PHP|Con insane pricing

2003-09-16 Thread John Coggeshall
> These gatherings are most likely for people sponsored by their employers, don't > imagine participants come out of it $500 smarter then they went in. If it makes > you feel good to hang out for 5 minutes with "the big guys" then borrow money and > go, if learning is your goal, a good book and mos

Re: [PHP] Using 'print <<

2003-09-16 Thread Duncan Hill
On Tuesday 16 Sep 2003 08:14, Rudi Starcevic wrote: > Hi, > > When printing like this: > > print << Hello world > END; > > Is it at all possible to use a function in the output ? > For example: > > print << strtolower("Hello World") IIRC, heredocs print everything contained within literally, unles

Re: [PHP] Strange error

2003-09-16 Thread Sid
You are probably right. I typed in the same code into a new file and it started to work. Just for the record, I copied and pasted this code from Opera in Windows. Anyone had similar problems? - Sid - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Sid'" <[EMAIL PROTECTE

[PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
I just read this: http://zend.com/zend/trick/tricks-august-2001.php To protect a file via PHP. What does this part mean in the serving the files part: define('FILEDIR', '/mnt/dos/'); Do I define the directory where the file is served from? Or do I define a directory to which the file is serv

Re: [PHP] Re: PHP|Con insane pricing

2003-09-16 Thread Jeremy Johnstone
I apologize I couldn't help more, but if I knew a solution to your problem I would be going to! ;-) Jeremy On Tue, 2003-09-16 at 02:17, Jeremy Brand, B.S. wrote: > Thanks again to all who at least had a mature answer. > > Cheers :) > Jeremy > > > Jeremy Brand, B.S. wrote: > > Does anyone kno

[PHP] after postgres upgrade - ERROR: current transaction is aborted

2003-09-16 Thread Abdul-Wahid Paterson
Hi, I have had a site working for the last 2 years and have had no problems until at the weekend I replace my database server with a newer one. The database migration went like a dream and I had the whole db changed over in 1 hour. Since the upgrade I have been getting the following error message

[PHP] Re: Strange error

2003-09-16 Thread rush
"Sid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everyone, > > Am I having a bad day or WHAT! I have exactly 5 lines of code as follows > what is the problem here. works fine at my localhost. rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.

[PHP] Timeout and fsockopen

2003-09-16 Thread uros . gruber
Hello! I'm trying to find if some host is up or not. For example $fp = @fsockopen ('www.damirjosar.com', 80, $errno, $errstr, 1); because this url is expired it takes about 10 seconds to get response from DNS, but with fsockopne it take 62 seconds. but i set timeout to 1. I also try checkdnsrr

[PHP] Re: Language filter

2003-09-16 Thread rush
"Kris Reid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a website with a standard html form on it. Every now and then some jerk submits the form with some >dirty words. This is then seen by my clients which as you can imagine is very unprofessional. >Any ideas? I think you

Re: [PHP] How to comment out chunk of html/php mixed code?

2003-09-16 Thread rush
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Wrong approach all together. Start using CVS and do not mix php and html - use templates :) rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Protecting a file via PHP.

2003-09-16 Thread - Edwin -
Hi, "Steve Jackson" <[EMAIL PROTECTED]> wrote: > I just read this: > http://zend.com/zend/trick/tricks-august-2001.php > To protect a file via PHP. Didn't really read this but... > What does this part mean in the serving the files part: > define('FILEDIR', '/mnt/dos/'); > > Do I define th

Re: [PHP] Using 'print <<

2003-09-16 Thread - Edwin -
Hi, Rudi Starcevic <[EMAIL PROTECTED]> wrote: > Hi, > > When printing like this: > > print << Hello world > END; > > Is it at all possible to use a function in the output ? > For example: > > print << strtolower("Hello World") > END; > > So far I've been unable to make it function work. Hmm

Re: [PHP] Using 'print <<

2003-09-16 Thread Rudi Starcevic
Hi, > $my_string = strtolower("Hello World"); > print << $my_string > END; Yeah that'll work fine for me. Thanks Rudi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Yikes! Strange Occurrence of ! in mail

2003-09-16 Thread Naintara Jain
This would be of some use to you http://bugs.php.net/bug.php?id=13342&edit=1 -Naintara -Original Message- From: Nicole [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Yikes! Strange Occurrence of ! in mail Has anyone experienced exc

[PHP] IP adress problem

2003-09-16 Thread Webmaster
Hi, why doesn't this work? ## IP FUNCTIONS ## function assignClientIP() { if (getenv('HTTP_X_FORWARDED_FOR') == '') { $this->aCustomer->setClientIP((!empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE

FW: [PHP] Protecting a file via PHP.

2003-09-16 Thread Steve Jackson
Steve Jackson Web Development and Marketing Manager Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Steve Jackson [mailto:[EMAIL PROTECTED] Sent: 16. syyskuuta 2003 12:15 To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Pro

Re: [PHP] Strange error

2003-09-16 Thread John W. Holmes
Sid wrote: You are probably right. I typed in the same code into a new file and it started to work. Just for the record, I copied and pasted this code from Opera in Windows. Anyone had similar problems? Yes. There are sometimes hidden characters in code that you cut and paste like that. It will c

RE: [PHP] PHP|Con insane pricing

2003-09-16 Thread Jay Blanchard
[snip] ... a lot ... [/snip] As someone who has put together conferences before and has/is/will be attempting to do a conference like this in the future I can say that for day pricing it may be slightly high, but just slightly. A conference is an expensive thing, usually offset by sponsors to a de

RE: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Jay Blanchard
[snip] Has anyone ever suceesfully embedded a jpGraph image in an FPDF output? FPDF uses this function for an image $pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG'); but when image.jpg is created with jpgraph it throws errors. I am sure that I am missing something quite obvious, but alas

Re: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Marek Kilimajer
fflush did not work? Jay Blanchard wrote: [snip] Has anyone ever suceesfully embedded a jpGraph image in an FPDF output? FPDF uses this function for an image $pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG'); but when image.jpg is created with jpgraph it throws errors. I am sure that I a

RE: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Jay Blanchard
[snip] fflush did not work? [/snip] No, because the graph image was not complete before the PDF was complete. Flushing the JPG would display (if no errors occured) an partial JPG within the PDF. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cvs and shell_exec

2003-09-16 Thread Jurgens du Toit
Hi... I'm trying to parse my cvs's logs through php, but am coming up short with shell_exec. shell_exec works fine with all the other commands i have tried, but not with cvs. I've tried the cvs command as myself, and that works. I've run the command as user 'nobody', and that works as well. The

RE: [PHP] multiple FORMS on same page problem.

2003-09-16 Thread Golawala, Moiz M (IndSys, GE Interlogix)
It is almost working.. I can't figure out why I can get the "someVal" to page5.php. file: page4.php http://127.0.0.1/Alarms/page5.php?"); }else{ echo "NO button clicked, do not act accordingly"; } ?> file: page5.php for some r

Re: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Marek Kilimajer
If your are using $graph->Stroke('sometempfile'); before $pdf->Image('sometempfile'); (I bet you do), then the image should be completed. Is it happening always or just now and then? What if you wait a few seconds between the two calls? Do you call clearstatcache()? I'm asking this because I o

[PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Steve Jackson
OK, After much headbanging I figured out the first part of my problem. I want to retrieve a file from behind the webroot and to do this I need to send headers. This should be a simple case of finding out what the file is called (its extension) and sending the headers via a switch depending on what

RE: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Jay Blanchard
[snip] If your are using $graph->Stroke('sometempfile'); before $pdf->Image('sometempfile'); (I bet you do), then the image should be completed. Is it happening always or just now and then? What if you wait a few seconds between the two calls? Do you call clearstatcache()? I'm asking this beca

Re: [PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Jon Haworth
Hi Steve, > $pfile = str_replace('get.php?file=','','$file'); > $p = explode('.', $pfile); > // How do I say look at the extension and put it into the switch? > $extension = $p; > // end of the bit I'm stuck on. At this point $p is an array rather than a variable, so you'll need to get the last e

[PHP] $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Maria Garcia Suarez
Hi there! I'm currently developing some pages where I use $_SELF[PHP_SELF], always without any kind of problem (until some days ago). Some days ago, as I said, I formated my hard disk, installed everything again and from that day on $_SELF[PHP_SELF] stopped working, same goes for $_SERVER[REQUEST

RE: [PHP] PHP|Con insane pricing

2003-09-16 Thread Dan Joseph
Hi, I know a couple people who put together a Con once. It wasn't a large one, it only took up one hotel conference room, and the budget was kept low. The least he could sell tickets for was $250-$300 (somewhere in there) each. That was without him turning a profit. Now, take into account a con

Re: [PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Jurgens du Toit
If you use pathinfo($pfile), you'll get an array with the dirname, basename and extension... Jrgns -- <>< [EMAIL PROTECTED] 083 511 7932 "For those who believe no evidence is necessary. For those who don't, no evidence would suffice." -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] PHP|Con insane pricing

2003-09-16 Thread Dan Joseph
Hi, > > at least I dont live in a police state. I sure do.. Its a joke too.. > I hate the patriot act. You don't like illegal search and seizures? What's wrong with you? :) -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] IP adress problem

2003-09-16 Thread Jason Sheets
Try using global $HTTP_SERVER_VARS at the top of your function or using the $_SERVER super global which is automatically global. Jason Webmaster wrote: Hi, why doesn't this work? ## IP FUNCTIONS ## function assignClientIP() { if (getenv('HTTP_X_FORWARDED_FOR') == '') { $this->aCustomer->setCl

Re: [PHP] Using a jpGraph image in an FPDF pdf output...-SOLVED

2003-09-16 Thread Marek Kilimajer
Did you also noticed the partial image files are always in multiple of 4096 in size? There must be some inner php caching that just does not work right. This bug should be fixed. Jay Blanchard wrote: [snip] If your are using $graph->Stroke('sometempfile'); before $pdf->Image('sometempfile'); (

RE: [PHP] PHP|Con insane pricing

2003-09-16 Thread Robert Cummings
I don't know, the Ottawa Linux Symposium runs in Ottawa Canada each year. They usually run about 5 days and rent multiple rooms. The cost to non-students (this year): $325 CAD ($217 USD). That's less than half the price of PHP|Con. Cheers, Rob. On Tue, 2003-09-16 at 09:31, Dan Joseph wrote: > Hi

RE: [PHP] PHP|Con insane pricing

2003-09-16 Thread Dan Joseph
Hi, Probably depends on location. My friend's was in Chicago, so everything was a little more expensive. -Dan Joseph > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 16, 2003 9:39 AM > To: Dan Joseph > Cc: [EMAIL PROTECTED] > Subject: RE:

Re: [PHP] cvs and shell_exec

2003-09-16 Thread Jurgens du Toit
I've gotten some output now... I've changed the /usr/bin/cvs .. -d to -dtn, but I have no idea why that should work. Jrgns -- <>< [EMAIL PROTECTED] 083 511 7932 "For those who believe no evidence is necessary. For those who don't, no evidence would suffice." -- PHP General Mailing List (http://w

[PHP] RE: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Maria Garcia Suarez
Hi there! --- Javier Tacon <[EMAIL PROTECTED]> wrote: > Try with $_SERVER["PHP_SELF"] Then I get: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in This is how I use it: $currentAddress="$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]";

RE: [PHP] $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Javier Tacon
Try with $_SERVER["PHP_SELF"] -Mensaje original- De: Maria Garcia Suarez [mailto:[EMAIL PROTECTED] Enviado el: martes, 16 de septiembre de 2003 15:26 Para: [EMAIL PROTECTED] Asunto: [PHP] $_SELF[PHP_SELF] not working anymore Importancia: Baja Hi there! I'm currently developing some pa

RE: [PHP] Novice in eCommerce

2003-09-16 Thread Karen Lubrecht
I think I finally found my answer to the missing piece: from DevShed.com URL: http://www.devshed.com/Server_Side/Administration/CREDIT/ Looks like the ISP needs to recompile the php! Dah!!! Tim, thanks for the lead to the missing piece and the rest of the invaluable information! Karen -Or

Re: [PHP] Re: PHP|Con insane pricing

2003-09-16 Thread andu
On 16 Sep 2003 03:45:15 -0400 John Coggeshall <[EMAIL PROTECTED]> wrote: > > These gatherings are most likely for people sponsored by their employers, > > don't imagine participants come out of it $500 smarter then they went in. If > > it makes you feel good to hang out for 5 minutes with "the big

Re: [PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Jason Wong
On Tuesday 16 September 2003 21:24, Jon Haworth wrote: > At this point $p is an array rather than a variable, so you'll need to get > the last element of $p.Try something like this: > > $p = explode('.', $pfile); > $extension = $p[sizeof($p)-1]; Better still, use array_pop(). -- Jason Wong -> G

Re: [PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Curt Zirzow
* Thus wrote Jon Haworth ([EMAIL PROTECTED]): > Hi Steve, > > > $pfile = str_replace('get.php?file=','','$file'); > > $p = explode('.', $pfile); > > // How do I say look at the extension and put it into the switch? > > $extension = $p; > > // end of the bit I'm stuck on. > > At this point $p is a

Re: [PHP] RE: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Curt Zirzow
* Thus wrote Maria Garcia Suarez ([EMAIL PROTECTED]): > Hi there! > > --- Javier Tacon <[EMAIL PROTECTED]> wrote: > > > Try with $_SERVER["PHP_SELF"] > > Then I get: > > Parse error: parse error, unexpected > T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or > T_VARIABLE or T_NUM_STRING in > >

[PHP] Re: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Maria Garcia Suarez
Hi there! First, thanks for your reply... --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Maria Garcia Suarez > ([EMAIL PROTECTED]): > > > Try with $_SERVER["PHP_SELF"] > > Then I get: > > Parse error: parse error, unexpected > > T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or > > T_VA

[PHP] How do I do this PERL in PHP?

2003-09-16 Thread Susan Ator
I have a text file with the following format: name stuff message text message text message text I need to be able to assign a variable to the data like so: $to = "everything to the left of "; $subject = "everything to the left of "; $message = "everything to the left of "; so $to = "name";

Re: [PHP] multiple FORMS on same page problem.

2003-09-16 Thread John W. Holmes
Golawala, Moiz M (IndSys, GE Interlogix) wrote: It is almost working.. I can't figure out why I can get the "someVal" to page5.php. file: page4.php if (isset($_REQUEST['submit1'])){ echo "button 1 was clicked, act accordingly"; echo "this the request values"; echo $_REQUEST['someVal']; }els

Re: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Robert Cummings
This isn't tested, but should work :) // $to = ''; $subject = ''; $message = ''; $matches = array(); $data = file( $file ); foreach( $data as $id => $line ) { if( ereg( '^(.*)$', $line, $matches ) ) { $to = trim( $matches[1] );

Re: [PHP] Re: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Jason Wong
On Tuesday 16 September 2003 23:45, Maria Garcia Suarez wrote: > $currentAddress="{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}"; > > > php wont be so confused as what you're trying to do. Does the above not work? > I also tried with $_SERVER[PHP_SELF] alone (echo > "$_SERVER[PHP_SELF]"; or echo

[PHP] Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Scott Fletcher
Hi Fellas! Javascript is driving me crazy. I'm not looking forward to writing a user-defined function that would do something to the numbers as number_format would do. When I do something like (1.00 + 2.34), I would expect a 3.34 in return, not a 3.34900388389495. Thanks, Scott -- P

[PHP] Re: Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Scott Fletcher
Ah! Never mind. I only need to do this... AmtRequestBy = Math.round(AmtRequestBy*100)/100; That is multiplying by 100 and dividing by 100 and that will fix it. Sorry for hte Spam Scott F. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Fellas! > > Javascr

Re: [PHP] MS-SQL 2000 weird problem

2003-09-16 Thread Martin Greco
Solved the problem I changed the locales.conf file from freetds/etc I had spanish, i changed to us_english. I would like to use it in spanish cause when you use some spanish characters the application crashes. I don't know any other way to do it. [default] date format = %b %d %Y %I:%M%p [en_US

[PHP] Re: $_SELF[PHP_SELF] not working anymore *** SOLVED!

2003-09-16 Thread Maria Garcia Suarez
Hi there! First I would like to send a big THANKS to all the people who tried to help me. And after that, the solution It was a problem of the server (Xitami), browsing around the PHP.net server I found the following comment: ---CUT--- Using the CGI (c:\php[version]\php.exe) with Xitami sin

Re: [PHP] Re: Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Marek Kilimajer
It did? I tried it once and javascript came up with the same result. What browsers did you try? I ended up implementing javascript version of number_format(). Scott Fletcher wrote: Ah! Never mind. I only need to do this... AmtRequestBy = Math.round(AmtRequestBy*100)/100; That is multiplying

[PHP] Problem sending HTML formated mail

2003-09-16 Thread Juan Carlos Borrero
Hi People I'm using the mail() function in order to send HTML formated e-mails to my customers in an automatic process, witha aPHP program. Some times the e-mails where produced with a sort of non intelligible caracters and the headers were exposed. Even if i repeat the same e-mail some times whe

Re: [PHP] Re: Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Scott Fletcher
Well, I use IE and Mozilla. This one work only with one decimal point. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It did? I tried it once and javascript came up with the same result. > What browsers did you try? I ended up implementing javascript version of >

[PHP] Session data getting lost

2003-09-16 Thread Rich Gray
Hi I'm running v4.2.3 on RedHat v7.0 and am getting some strange behaviour with the $_SESSION superglobal... below is a script to demonstrate the problem... Whenever the $_SESSION array gets re-created by session_start() the reloaded test entry is set to -1 however at no time does this value ever

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Susan Ator
It works beautifully. My only question is there a way to pass a variable to the ereg? In other words: if( ereg( '^(.*)$', $line, $matches ) ) would become: if( ereg( '^<$var>(.*)$', $line, $matches ) ) I've tried doing eval but that was a no go. I have a lot of fields and I hate doing

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Chris Shiflett
--- Susan Ator <[EMAIL PROTECTED]> wrote: > It works beautifully. My only question is there a way to pass a > variable to the ereg? In other words: > > if( ereg( '^(.*)$', $line, $matches ) ) > > would become: > > if( ereg( '^<$var>(.*)$', $line, $matches ) ) > > I've tried doing eval b

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Robert Cummings
The following will do variable matching like you asked: if( ereg( '^<'.$var.'>(.*)$', $line, $matches ) ) Cheers, Rob. On Tue, 2003-09-16 at 13:34, Susan Ator wrote: > It works beautifully. My only question is there a way to pass a variable to > the ereg? In other words: > > if( ereg(

Re: [PHP] Session data getting lost

2003-09-16 Thread Chris Shiflett
--- Rich Gray <[EMAIL PROTECTED]> wrote: > I'm running v4.2.3 on RedHat v7.0 and am getting some strange > behaviour with the $_SESSION superglobal... ... > It works fine on Win2K albeit v4.3.0 of PHP. Maybe you have register_globals enabled on your Linux server and not on your Windows PC? Compare

Re: [PHP] RE: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Eugene Lee
On Tue, Sep 16, 2003 at 03:30:39PM +, Curt Zirzow wrote: : * Thus wrote Maria Garcia Suarez ([EMAIL PROTECTED]): : > --- Javier Tacon <[EMAIL PROTECTED]> wrote: : > : > > Try with $_SERVER["PHP_SELF"] : > : > Then I get: : > : > Parse error: parse error, unexpected : > T_ENCAPSED_AND_WHITESP

[PHP] win32 php on win2000 does not seem to be searching its own C:\php\dlls folder???

2003-09-16 Thread Tom H
Hi, Im using php 4.3.3 on win 2000 server, and ive enabled extensions like so; extension=php_gd2.dll extension=php_gettext.dll and set the extension_dir to C:\php\extensions and php loads the gd2 library ok, it just fails to open the gettext dll. with a "PHP Warning: Unknown(): Unable to load dyna

RE: [PHP] How do I do this PERL in PHP?

2003-09-16 Thread Susan Ator
Thank y'all so much for all your help. sa -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 2:30 PM To: Susan Ator Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How do I do this PERL in PHP? The following will do variable matching like you a

[PHP] webhost --0T-->

2003-09-16 Thread Ryan A
Hiya everyone, We are creating a voteing/rateing script for BestWebHosters.com (a webhosting index) which will be opened in the next few days, Its filled with loads of features for the visitor and the webhost but it just wouldnt be complete with this. So far we have come up with these points wh

[PHP] ADO Connection Problems

2003-09-16 Thread Joe Mack
I am having problems making things happen in a Microsoft Access Database that I am connecting to through an ADO Connection using PHP. I know a little bit about PHP and how to code, but this is the first time I have played around with the ADO Connection and Command objects. I am getting no error m

Re: [PHP] ADO Connection Problems

2003-09-16 Thread Curt Zirzow
* Thus wrote Joe Mack ([EMAIL PROTECTED]): > I am getting no error messages or anything, but when I browse the database, > my changes are not being posted. Here is an example of what I am trying to > do. Hopefully, I am just missing a step along the way. ensure that your error_reporting and disp

[PHP] Help: undefined function: getproxy()

2003-09-16 Thread Daniel Ke
Hello there, I tested GoogleAPI with PHP and soap. But got an error message when running the googlesearch.php file(http://127.0.0.1/googlesearch.php). Fatal error: Call to undefined function: getproxy() in C:\Program Files\Abyss Web Server\htdocs\googlesearch.php on line 9 My OS is Windows XP w

[PHP] Whats wrong with my code?

2003-09-16 Thread Stevie D Peele
Can someone spot what Is wrong with my code? It says Line 195 which is the ?> Would it matter I don't have all of these files (i.e. /includes/world.html) were uploaded yet? Thanks, Stevie

[PHP] output to Excel

2003-09-16 Thread Jackson Miller
Is there a way to output PHP to MS Excel format? -Jackson -- jackson miller cold feet creative 615.321.3300 / 800.595.4401 [EMAIL PROTECTED]     cold feet presents Emma the world's easiest email marketing Learn more @  http://www.myemma.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Brad Pauly
Stevie D Peele wrote: [snip] case "world": $includes = "/includes/world.html"; break; } include ($include) ?> It says Line 195 which is the ?> Would it matter I don't have all of these files (i.e. /includes/world.html) were uploaded yet? Yeah. You need a ; at the end of the line

Re: [PHP] output to Excel

2003-09-16 Thread Payne
Jackson Miller wrote: Is there a way to output PHP to MS Excel format? -Jac One you can do a dump with mysqladmin save the file as myfile.csv , excel can read cvs formatted files. Two you can use phpMyAdmin to do the save things. Chuck Payne -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Whats wrong with my code?

2003-09-16 Thread Craig Lonsbury
no semicolon after "include ($include)" hope that helps, Craig -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Whats wrong with my code? Can someone spot what Is wrong with my code?

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Chris Shiflett
--- Stevie D Peele <[EMAIL PROTECTED]> wrote: > Can someone spot what Is wrong with my code? It is about 200 lines of redundant crap and posted to a mailing list? Please be considerate and try to narrow your code down to the smallest case that demonstrates the problem. We are not here to debug yo

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Matthias Nothhaft
Hi Stevie D Peele, you wrote: Can someone spot what Is wrong with my code? Please read your code carefully and check the writing of your variable $include! Sometimes you write $includes instead... It has to have the same name everywhere, PHP can't guess what you want ;-) What is the certain error

Re: [PHP] output to Excel

2003-09-16 Thread Jackson Miller
On Tuesday 16 September 2003 4:17, Payne wrote: > Jackson Miller wrote: > >Is there a way to output PHP to MS Excel format? > > > >-Jac > > One you can do a dump with mysqladmin save the file as myfile.csv , > excel can read cvs formatted files. > > Two you can use phpMyAdmin to do the save things.

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Dan J. Rychlik
Your missing your default for your case switch statement And you ; at the end of line on your last include statement.. -Dan - Original Message - From: "Stevie D Peele" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 4:10 PM Subject: [PHP] Whats wrong with

[PHP] sending internal auto email with attachment

2003-09-16 Thread DougD
I've searched and tried a variety of different things to send an attachment with an email that is triggered through a simple form. Any ideas? or obvious solutions. Thanks -Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] output to Excel

2003-09-16 Thread Jennifer Goodie
> Is there a way to output PHP to MS Excel format? > Send the headers for the appropriate application type and then format your output as HTML with Excel's styles. In order to get a feel for what my output should be, I just create a sample of what I want in Excel, save as html and then open the fi

[PHP] Re: win32 php on win2000 does not seem to be searching its own C:\php\dlls folder???

2003-09-16 Thread Shadow
I usually put the .dll extensions in \windows\system32 and avoid the problems. Shadow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] globals on globals off (help

2003-09-16 Thread Frank Tudor
This is more for a linux group post but I know someone can provide enlightenment on this issue. I have the latest version of apache and php I have created my entire sie in a foxserv environment on windows but my production environment is on mandrake linux 9.1 The globals are set to off but i'll b

Re: [PHP] globals on globals off (help

2003-09-16 Thread Brad Pauly
Frank Tudor wrote: This is more for a linux group post but I know someone can provide enlightenment on this issue. I have the latest version of apache and php I have created my entire sie in a foxserv environment on windows but my production environment is on mandrake linux 9.1 The globals are set

RE: [PHP] Is this inefficient?

2003-09-16 Thread Chris W. Parker
Todd Cary on Sunday, September 14, 2003 9:34 AM said: > I may have two buttons on the form and the Form Action has the same > value as the current form, then at the top of my php script, I may > have I've never done this but can you give the two buttons the same na

RE: [PHP] For Loops and Variables??

2003-09-16 Thread Chris W. Parker
John Ryan on Saturday, September 13, 2003 9:26 AM said: > When I use for loops, at the start of each iteration, the variables > hold the values from the last loop. You're doing it wrong then (I think). 1. You should always initialize your loop counters. i.e. $x =

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Stevie D Peele
Okay, I took all the extra spaces out of my code, So it is now 151 lines.   I have attached that code, instead of posting it in my mail. It says Warning: Unable to access /includes/home.html in /usr/local/psa/home/vhosts/net-riches.com/httpdocs/includes/category.php on line 150Warning:

RE: [PHP] For Loops and Variables??

2003-09-16 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, September 16, 2003 4:07 PM said: > This Is Good(tm): > > for($x=0;$x<100;$x++) > { > for($x=0;$x<100;$x++) > { > echo "Me happy now!!"; > } > } Hehe... whoops! Should be: for($x=0;$x<100;$x++) { for($y=0;$y<100;$y++)

RE: [PHP] Whats wrong with my code?

2003-09-16 Thread Chris W. Parker
Stevie D Peele on Tuesday, September 16, 2003 4:08 PM said: > Okay, I took all the extra spaces out of my code, So it is now 151 > lines. > > I have attached that code, instead of posting it in my mail. It says Attachments are even worse. I'll never open an attach

[PHP] pear upgrade

2003-09-16 Thread Cory Lamle
Contents are Direct Alliance Corporation CONFIDENTIAL - PROBLEM: - I'm trying to run a pear upgrade on a sever that does not have access to the internet. - I have also tried $pear .tgz, however I don't have zlib, and I really can't bring down the server. OPTIONS: - I may have access to a prox

Re: [PHP] output to Excel

2003-09-16 Thread Jason Sheets
PEAR has an Excel Spreadsheet Writer class, view it at: http://pear.php.net/package/Spreadsheet_Excel_Writer Jason Payne wrote: Jackson Miller wrote: Is there a way to output PHP to MS Excel format? -Jac One you can do a dump with mysqladmin save the file as myfile.csv , excel can read cv

RE: [PHP] Control Structure problem

2003-09-16 Thread Jennifer Goodie
> This doesnt work as expected. > > if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { > > do something; > > } > > It returns true on all strings. Ive tried using the or operator > and the == but these fail as well. Any Ideas? It behaves exactly as expected. Try checking the manual

[PHP] Re: Control Structure problem

2003-09-16 Thread Greg Beaver
Hi Dan, if ($var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { do something } Regards, Greg -- phpDocumentor http://www.phpdoc.org Dan J. Rychlik wrote: This doesnt work as expected. if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { do something; } It return

Re: [PHP] globals on globals off (help

2003-09-16 Thread Jason Sheets
You can enable them on a per directory bases with .htaccess, take a look at http://www.php.net/manual/en/configuration.php. I recommend using the .htaccess method rather than globally turning on register globals. Jason Frank Tudor wrote: This is more for a linux group post but I know someone

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
try if ( $var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { do something; } luke - Original Message - From: "Dan J. Rychlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 9:53 AM Subject: [PHP] Control Structure problem This does

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Chris Shiflett
--- Stevie D Peele <[EMAIL PROTECTED]> wrote: > Okay, I took all the extra spaces out of my code, So it is now > 151 lines. I appreciate you trying to trim down your code. However, it isn't the whitespace that is superfluous. You now have 151 lines that are mostly repeating the same basic assignme

Re: [PHP] Control Structure problem

2003-09-16 Thread Dan J. Rychlik
Thank you guys. I truly know the level of expertise on this mailing list, and I know that it proves invaluable. Thank you again. -Dan - Original Message - From: "Luke Skywalker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 7:01 PM Subject: Re: [PHP] Contr

[PHP] Control Structure problem

2003-09-16 Thread Dan J. Rychlik
This doesnt work as expected. if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { do something; } It returns true on all strings. Ive tried using the or operator and the == but these fail as well. Any Ideas? -Dan

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
I think speaking for everyone its great to be able to help, we all started somwhere :) i remember getting stuck on the same problem in visual basic ages ago Luke - Original Message - From: "Dan J. Rychlik" <[EMAIL PROTECTED]> To: "Luke Skywalker" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

  1   2   >