[PHP] Re: Problem sending HTML formated mail

2003-09-16 Thread SLanger
Hello Use a mail class to send your mail instead of mail. These classes have a lot of workarounds for mail() problems and are fairly easy to manage. I personally prefer phpmailer (http://phpmailer.sourceforge.net) but there are others. Just do a search through the archive for mail or mime classe

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

2003-09-16 Thread SLanger
hello just a side note instead of > ereg( '^<$var>(.*)$', $line, $matches ) use preg_match('/^<'.$var.'>(.*)$/', $line, $matches) since it is faster than ereg. Regards Stefan Langer

Re: Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Chris Shiflett
--- Tom Rogers <[EMAIL PROTECTED]> wrote: > This is why you need this construct > > $foo = 0; > switch (true) You must have missed example 1. :-) > which now works as expected Both examples work as expected, of course. Chris = Become a better Web developer with the HTTP Developer's Handbo

Re: [PHP] Control Structure problem

2003-09-16 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > : switch (true) { > : case ($var === 'TEST-1')?true:false: > : case ($var === 'TEST-2')?true:false: > : case ($var === 'TEST-2')?true:false: > :do something > : } > > Oh man, that's just sick... Partially because it's unnecessari

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 01:29:26PM +1000, Tom Rogers wrote: : Wednesday, September 17, 2003, 11:47:45 AM, Eugene Lee wrote: : : EL> The switch statement doesn't do an equivalency test, does it? [...] : EL> it doesn't do: : : EL> if (($var === 'TEST-1') || : EL>($var === 'TEST-

[PHP] PHP and Palm

2003-09-16 Thread Charles Kline
I have a project in mind where I would like to be able to Sync my Palm with the calendar in my CRM. Anyone have info on doing this? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Control Structure problem

2003-09-16 Thread Tom Rogers
Hi, Wednesday, September 17, 2003, 11:47:45 AM, you wrote: EL> On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: EL> : EL> : switch ($var) { EL> : case 'TEST-1': case 'TEST-2': case 'TEST-2': EL> : do something EL> : } EL> The switch statement doesn't do an equivalency

Re: [PHP] Control Structure problem

2003-09-16 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): > On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: > The switch statement doesn't do an equivalency test, does it? So while > this switch statement can be rewritten as: > > if (($var == 'TEST-1') || ($var == 'TEST-1') || ($var == 'TE

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: : : switch ($var) { : case 'TEST-1': case 'TEST-2': case 'TEST-2': : do something : } The switch statement doesn't do an equivalency test, does it? So while this switch statement can be rewritten as: if (($var =

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
Yeah, thats exactly what im thinking, and speaking of it, im going to start using it a lot more :) thanks Luke - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'Luke Skywalker'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 10:51 AM Subje

RE: [PHP] Control Structure problem

2003-09-16 Thread Martin Towell
are you thinking of "default:" ? -Original Message- From: Luke Skywalker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 10:51 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Control Structure problem yeah, i really like using cases they work well and especially if you want to d

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
yeah, i really like using cases they work well and especially if you want to do something different for different values, i forgot about that, its a good way to do it, does php have case else? cuz that is a really handy thing in VB that people often forget... Luke - Original Message - Fr

Re: [PHP] Japanese on a page

2003-09-16 Thread - Edwin -
Hi, "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > - Edwin - > on Monday, September 15, 2003 9:45 PM said: > > > Or, you can just declare it inside you're tags (as mentioned > > previously). Also, depending on the charset you're using, you might > > need "shift_ji

Re: [PHP] Control Structure problem

2003-09-16 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Dan J. Rychlik > on Tuesday, September 16, 2003 5:12 PM said: > > > Thank you guys. I truly know the level of expertise on this mailing > > list, and I know that it proves invaluable. > > > p.p.s. I totally thin

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
yeah, it does make more sense to do it that way for some things, but when you get ands, and ors, it gets complicated eg. if ($a == "foo" && $b == "bar" || "something"){ //do something } does that mean $a can either = "foo" or "something" or $b = "bar" or "something"? and thats just a simple

RE: [PHP] Control Structure problem

2003-09-16 Thread Chris W. Parker
Dan J. Rychlik on Tuesday, September 16, 2003 5:12 PM said: > Thank you guys. I truly know the level of expertise on this mailing > list, and I know that it proves invaluable. If by "I truly know the level of expertise on this mailing list" you meant "I truly don'

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

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

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

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

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

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

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

[PHP] RE: [PHP-DB] store whois requests

2003-09-16 Thread Ryan Marks
This is some code I already use... you may wish to change the way you retrieve you whois data. Ryan Whois Hostname: $host"; //backwards tick marks will run this command on the server and echo's it out to the screen echo `whois $host`; echo ""; //get the tim

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

[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

[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

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

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.

[PHP] store whois requests

2003-09-16 Thread IS
I want to store whois requests including the ip address and date/time stamp into a file or MySQL database (a database is what I prefer to use) for monitoring the PHP whois script. Anybody an idea of how I could do this? I'm a beginner in PHP so any help is welcome. --IS -- PHP General Mailing Li

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

[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

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

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

[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

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

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] 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] 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 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] Re: [PHP-DB] Graphs

2003-09-16 Thread Chris Sherwood
I found phpchartdirector to be a nice third party app http://www.hotscripts.com/Detailed/12237.html - Original Message - From: <[EMAIL PROTECTED]> To: "Balaji H. Kasal" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, September 16, 2003 10:12 AM Su

[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] 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] Re: [PHP-DB] Graphs

2003-09-16 Thread j.zanen
Hi I have been using the utilities from this website with very good results http://www.aditus.nu/jpgraph/ Jack > > from: "Balaji H. Kasal" <[EMAIL PROTECTED]> > date: 2003/09/16 Tue PM 06:48:48 CEST > to: [EMAIL PROTECTED], PHP List <[EMAIL PROTECTED]> > subject: [PHP-DB] Graphs > > > Hi,

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

[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

[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

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

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

[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";

[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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >