[PHP] Re: Question about php "forwarding" to javascript

2004-02-14 Thread Ammar Ibrahim
I'm not sure i completely understand what you need but you could write dynamic Javascript using PHP e.g; $myString = 'hey dude, help me'; The code i wrote is really dumb, but trying to give you an example.

[PHP] Question about php "forwarding" to javascript

2004-02-14 Thread Peter Andersson
Hi! I am using a web page that uses the following php code to display the contents of a dynamically update webpage: http://.../source.xls); ?> Is it possible to "forward" the contents of the code to a javascript? eg if the file "source.xls" contains the text "help me" is it possible to send that

Re: [PHP] phps and iis

2004-02-14 Thread John W. Holmes
Anders Gjermshus wrote: Is it possible to get IIS 6 to show php sources. ( phps files ) No. I've never seen any way to do this with IIS. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP Gene

[PHP] Re: Apache crashes on windows XP / PHP & MySQL

2004-02-14 Thread Manuel Vázquez Acosta
Does this happens *everytime* you try to connect to MySQL using PHP? Does PHP is running as module or cgi? I've been using WinXP, PHP and MySQL. Although, I'm now running Apache 1.3.28, I did try Apache 2 (php as a cgi) Manu. "Johan Kok" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

Re: [PHP] Another preg question

2004-02-14 Thread Hans Juergen von Lengerke
> From: Al <[EMAIL PROTECTED]> > > $text= preg_replace("/\n\n+/", "\n\n", $text); > // remove excess This doesn't seem to do anything. Strange, your code works for me: [EMAIL PROTECTED]:~ > cat foo.php [EMAIL PROTECTED]:~ > php ./foo.php before: === foo bar === after: === foo bar ===

Re: [PHP] include result from script in midle of other script

2004-02-14 Thread Marek Kilimajer
Boneripper wrote: hi, im trying to do this: ... '; else include ("./5_grafico_total.php");?> ... and it works perfectly, BUT if i wanna send vars with GET like: ... '; else include ("./5_grafico_total.php?aVar=aValue");?> include cannot pass variables as in get request, set the variables firs

[PHP] Apache crashes on windows XP / PHP & MySQL

2004-02-14 Thread Johan Kok
I have the following software: 1. Apache 2.0.48 (tried with and without SSL) 2. PHP - Latest version 3. MySQL - latest version Running on Microsoft XP The problem that I have is that when accessing MySQL with PHP cause Apache to crash, restart, crash etc Could anybody help me please? Regards J

Re: [PHP] include result from script in midle of other script

2004-02-14 Thread Adam Bregenzer
On Sat, 2004-02-14 at 15:46, Boneripper wrote: > src="./5_grafico_total.php?aVar=aValue">'; > else include ("./5_grafico_total.php?aVar=aValue");?> Using include literally inserts the contents of the file into your code. One way to achieve what you are looking for is to set the variables you wan

[PHP] include result from script in midle of other script

2004-02-14 Thread Boneripper
hi, im trying to do this: ... '; else include ("./5_grafico_total.php");?> ... and it works perfectly, BUT if i wanna send vars with GET like: ... '; else include ("./5_grafico_total.php?aVar=aValue");?> ... it doesnt work! someone has any ideas? tkx in advance. -- Herberto Graça. _

SV: [PHP] Re: phps and iis

2004-02-14 Thread Anders Gjermshus
I have installed php on my iis server. What I'm looking for is how to get php sources to work on IIS. Like phps files. -Opprinnelig melding- Fra: zerof [mailto:[EMAIL PROTECTED] Sendt: 14. februar 2004 21:41 Til: [EMAIL PROTECTED] Emne: [PHP] Re: phps and iis It is possible: http://www.m

php-general Digest 14 Feb 2004 19:40:49 -0000 Issue 2590

2004-02-14 Thread php-general-digest-help
php-general Digest 14 Feb 2004 19:40:49 - Issue 2590 Topics (messages 177686 through 177714): Syntax 177686 by: PETCOL 177690 by: John Nichel Re: Constant PHP_OS and Mac Server 177687 by: - Edwin - 177688 by: - Edwin - 177704 by: Gerard Samuel Re: Ge

[PHP] Re: phps and iis

2004-02-14 Thread zerof
It is possible: http://www.macromedia.com/devnet/mx/dreamweaver/articles/php_iis.html - zerof - "Anders Gjermshus" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Is it possible to get IIS 6 to show php sources. ( phps files ) --- -- PHP General Mailing List (htt

SV: [PHP] Re: phps and iis

2004-02-14 Thread Anders Gjermshus
I'm using Windows 2003 server with IIS 6 I have installed php using isap not cgi. I really need this to work :) - anders -Opprinnelig melding- Fra: Jason Lewis [mailto:[EMAIL PROTECTED] Sendt: 14. februar 2004 19:04 Til: [EMAIL PROTECTED] Emne: [PHP] Re: phps and iis Yes you just have

[PHP] Re: phps and iis

2004-02-14 Thread Jason Lewis
Yes you just have to set the filetype in the filetype associations in IIS 6, are you using SBS2003? Jason Lewis "Anders Gjermshus" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi. > > > > Is it possible to get IIS 6 to show php sources. ( phps files ) > > And how do I do that,

[PHP] phps and iis

2004-02-14 Thread Anders Gjermshus
Hi. Is it possible to get IIS 6 to show php sources. ( phps files ) And how do I do that, I have not found anything about it on php.net or www.google.com Regards anders

Re: [PHP] Arranging My Functions

2004-02-14 Thread Richard Davey
Hello Hamid, Saturday, February 14, 2004, 5:09:46 PM, you wrote: HH> I've created a big site contains about 500 functions to handle all the site HH> logic. I saved all these functions in one file. HH> - Should I separate them into grouped files ? For your own sanity, more than anything else, ye

Re[2]: [PHP] [Q]PHP not taking input values from forms

2004-02-14 Thread Richard Davey
Hello Dan, Saturday, February 14, 2004, 5:19:26 PM, you wrote: DA> yeah. phpinfo() works, which is how I know for sure that PHP is working DA> fine. It's just not taking inputs. WTF is going? heheI'm going nuts over DA> here. Any other ideas? The fact that you cannot post any data to your in

RE: [PHP] [Q]PHP not taking input values from forms

2004-02-14 Thread Dan Aloma
yeah. phpinfo() works, which is how I know for sure that PHP is working fine. It's just not taking inputs. WTF is going? heheI'm going nuts over here. Any other ideas? From: "Vail, Warren" <[EMAIL PROTECTED]> To: "'Dan Aloma'" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: RE: [PHP] [Q]

Re: [PHP] returning value to variable

2004-02-14 Thread tg
Bao Ruixian wrote: tg wrote: hi i need returning value of function as a variable example : function 1 () { return "some error"; } function 2 () { $v = 1(); if ( $v != '' ) echo "error"; } it doesn't work this way Are you using 1 and 2 as the function names in your real applicati

[PHP] Arranging My Functions

2004-02-14 Thread Hamid Hossain
Hi, I've created a big site contains about 500 functions to handle all the site logic. I saved all these functions in one file. - Should I separate them into grouped files ? - Is there any reference on the web on how to arrange my PHP code? Regards, Hamid Hossain --- Check Am

Re: [PHP] returning value to variable

2004-02-14 Thread BAO RuiXian
tg wrote: hi i need returning value of function as a variable example : function 1 () { return "some error"; } function 2 () { $v = 1(); if ( $v != '' ) echo "error"; } it doesn't work this way Are you using 1 and 2 as the function names in your real application? Hope not, becaus

Re: [PHP] Re: Constant PHP_OS and Mac Server

2004-02-14 Thread Gerard Samuel
On Saturday 14 February 2004 02:34 am, - Edwin - wrote: > I don't have a Mac Server here; only a G5 with the "ordinary" Panther ;) > > The answer must be the same though... > > >var_dump(PHP_OS); >// result is -> string(6) "Darwin" > > ?> > Thanks -- PHP General Mailing List (http://www.

[PHP] returning value to variable

2004-02-14 Thread tg
hi i need returning value of function as a variable example : function 1 () { return "some error"; } function 2 () { $v = 1(); if ( $v != '' ) echo "error"; } it doesn't work this way this works : echo 1(); but i need the string value as a variable thanks -- PHP General Mailing Lis

[PHP] Re: Session, loging users in.

2004-02-14 Thread memoimyself
Hello Philip, On 14 Feb 2004 at 18:48, Philip J. Newman wrote: > Whats the best information to add to a session to say a user is logged in? > > I currently have $siteUserLogIn="true"; > > anything else that I could add to beef up security? You'll find an in-depth answer to your question in an

[PHP] Re: General Function usage question (simple)

2004-02-14 Thread memoimyself
Hello Dave, You'll find all this information and much more in the PHP manual ( http://www.php.net/docs.php ). Look for the chapter on functions. Have fun, Erik On 14 Feb 2004 at 7:31, Dave Carrera wrote: > Hi List, > > Here is an easy one for you :-) > > --- Example1 Function --- > > Func

Re: [PHP] Error with ftp_get()

2004-02-14 Thread Thorben
Oh. Yes. I forget the code. With an normal FTP-client i can get the file easily. Ah! I've found the error. My code was ftp_get($conn, "tmp", $file, FTP_BINARY); The var $file is a GET-var, but on my server register_globals is off. So i had to write $_GET['file']. It was so easy. On Fri, 2003-11

Re: [PHP] Error with ftp_get()

2004-02-14 Thread Adam Bregenzer
On Fri, 2003-11-14 at 07:33, Thorben wrote: > Warning: ftp_get(): 'RETR ' not understood. > > I guess 'RETR' is a message from FTPServer to PHP and PHP don't > understand it. So, can you tell me, how to avoid this? When you request (get) a file using the ftp command you send a RETR command to th

[PHP] Error with ftp_get()

2004-02-14 Thread Thorben
Hi guys. It's possible that my english sometimes isn't so good. I'm a small german boy. At the moment i am working on a WebFTP client. All the stuff like list,mkdir,rm(dir),put works. But when i use ftp_get() an error appears: Warning: ftp_get(): 'RETR ' not understood. I guess 'RETR' is a mess

[PHP] Re:[SOLVED] [PHP] Syntax

2004-02-14 Thread PETCOL
Thanks John, "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > PETCOL wrote: > > > This line is whats causing me all the greif: > > echo " > value="$_POST["Country"];"selected>\n"$_POST["Country"];"\n"; > > Parse error: parse error, expecting `','' or `';''

Re: [PHP] Using exceptions to write more perfect software ...

2004-02-14 Thread Adam Bregenzer
On Tue, 2004-02-10 at 11:40, Markus Fischer wrote: > Isn't this the same thing I started doing anyway? I however didn't > integrated those functions in my application directly but put them in a > file of its own so I can (hopefully ;) reuse them. I started putting them together then I real

Re: [PHP] PHP5: Problem concerning multiple inheritance / interfaces

2004-02-14 Thread Adam Bregenzer
Oops, I left this in my Drafts folder, sorry about that. On Wed, 2004-02-04 at 20:28, Vivian Steller wrote: > ok my problem in a nutshell: i need multiple inheritance! is there a > solution to fake this functionallity in php5? It sounds like you would want to check out association and aggregation

Re: [PHP] Re: preg guru question

2004-02-14 Thread joel boonstra
On Sat, Feb 14, 2004 at 12:50:55AM -0500, Adam Bregenzer wrote: > As far as I could tell the regexp I posted was the only one to use a > subpattern to match the first quote type used and then re-apply that > after matching the file name: > '//i' > > I am a bit of a regular expression fan and I wou

Re: [PHP] General Function usage question (simple)

2004-02-14 Thread Adam Bregenzer
On Sat, 2004-02-14 at 02:31, Dave Carrera wrote: > My question is what do or where do or why are the $var1 and or $var2 > included inside the brackets of a function. > > What do they do ? > > Why are they in there ? > > And how are they used within an application ? A good place to start reading

[PHP] Re: [PHP-INSTALL] Re: Apache+modssl+php problem??? possible IE bug?

2004-02-14 Thread Chris Wilson
I found several sources of information regarding a IE bug that does'nt pass all the post data, however this is roughly 1/4 times that it does it. Its actually become a serious problem for people to navigate through my webmail :/ Chris > I mean, I sometime found a few POST data had incorrectly went