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 about
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:
'/img\s+src=([\'])([^\1]+)\1\s*\/?\s*/i'
I am a bit of a
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
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
Thanks John,
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
PETCOL wrote:
snip
This line is whats causing me all the greif:
echo option
value=$_POST[Country];selected\n$_POST[Country];/option\n;
Parse error: parse error, expecting `','' or `';''
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
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 the
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,
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 ---
Function
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
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 List
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...
?php
var_dump(PHP_OS);
// result is - string(6) Darwin
?
Thanks
--
PHP General Mailing List (http://www.php.net/)
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, because
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
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 application?
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]PHP not
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
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, yes.
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 http://www.google.com/
Regards
anders
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, I have not
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
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
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:
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:
hi,
im trying to do this:
...
BR
? if ($_SESSION['valores_relativos']) echo 'img
src=./5_grafico_total.php';
else include (./5_grafico_total.php);?
/FONT
...
and it works perfectly, BUT
if i wanna send vars with GET like:
...
BR
? if ($_SESSION['valores_relativos']) echo 'img
On Sat, 2004-02-14 at 15:46, Boneripper wrote:
? if ($_SESSION['valores_relativos']) echo 'img
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
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
Boneripper wrote:
hi,
im trying to do this:
...
BR
? if ($_SESSION['valores_relativos']) echo 'img
src=./5_grafico_total.php';
else include (./5_grafico_total.php);?
/FONT
...
and it works perfectly, BUT
if i wanna send vars with GET like:
...
BR
? if ($_SESSION['valores_relativos']) echo 'img
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
?php
$text = foo\n\n\n\n\nbar;
echo before:\n===\n$text\n===\n\n;
$text =
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 PROTECTED]
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
Hi!
I am using a web page that uses the following php code to display the
contents of a dynamically update webpage:
?php
include(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
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';
script language = ...
?php
if( strstr('help me') )
include('jsfunction.inc');
?
/script
The code i wrote is really dumb, but
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
34 matches
Mail list logo