php-windows Digest 30 Jun 2002 06:16:42 -0000 Issue 1217
Topics (messages 14467 through 14476):
Re: no Values in variables
14467 by: Saci
How can i Have a function who returns 2 variables?
14468 by: Saci
14471 by: Christian Leberfinger
Re: PHP 4.2.1. on PWS...
14469 by: César Monroy
Re: Eh?? RE: [PHP-WIN] Guidelines for installing PHP on Apache Win32 - comments
please
14470 by: César Monroy
function call ????
14472 by: toby z
14473 by: brother
14474 by: Bruce Karstedt
My functions dosent work
14475 by: Jan - CWIZO
14476 by: Saci
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Tente
<?php echo "Hola, ".$_GET['name']?>
"Gustavo Castro" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]...
> No values in variable why??
>
>
> http://locahost/welcome.php?name=Gustavo
>
> File Welcome.php
>
>
> <? echo "Hola, $name!" ?>
>
>
> **********************
> I Explorer
>
> Hola,!
>
> He does not appear nothing in the variable $$name. That problem can have
in
> the installation of the PHP.
>
> Gustavo
>
>
--- End Message ---
--- Begin Message ---
I need to discover how can I do to one function who change or set 2
variables without the use of global, the idea is to pass variable by
reference not by value.
For example
a = 'none'
b = 'none'
c= 'none'
d= 'none'
myfunctioncall( a,b)
echo a ; // will show 'value1'
echo b ; // will show 'value2'
b = 'value2'
myfunctioncall( c,d)
echo c ; // will show 'value1'
echo d ; // will show 'value2'
In Delphi I made on that way
procedure ( var value1: String ; var value2: String)
Any tips?
--- End Message ---
--- Begin Message ---
Pass variable by reference:
function abc(&$var1, &var2) {
$var1 ++;
$var2 ++;
} //end of function
Christian Leberfinger
--- End Message ---
--- Begin Message ---
Yes... As I posted in PHP.install:
Hi Group:
I recently downloaded PHP4 to try it in my Win98/Personal Web Server.
Even after several installations following instructions, my server refuses
to
interpret PHP scripts...
1. Downloaded PHP 4.2.1 for Windows
2. Unzipped to C:\PHP
3. Edited and copied PHP.INI to C:\Windows
4. PWS works fine at http://localhost
5. Added virtual folder C:\PHP to PWS and set execute privileges
6. Rebooted computer
7. Wrote a simple PHP file: <?php echo "This is a test"; ?>
8. Opened browser and pointed to http://localhost/test.php
The page displays correctly but the string THIS IS A TEST never
showed.
Can anyone point me to what I did wrong?
"Steve Yates" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "CéSar Monroy" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Lucky you... I've still try to figure out how to make it work... After
> > several tries, following step by step instructions my PWS still can't
pase
> > PHP scripts.
>
> > "Max Sullivan" <[EMAIL PROTECTED]> escribió en el mensaje
> > 004d01c20bf6$bf074420$1f281142@WILLY">news:004d01c20bf6$bf074420$1f281142@WILLY...
> > > You need to set cgi.force_redirect = 0 in your php.ini file.
>
> Is your PHP.INI file in your Windows directory?
>
> - Steve Yates
> - Paranoia is when you think these are about you.
>
> / Taglines by Taglinator - www.srtware.com /
>
>
>
>
--- End Message ---
--- Begin Message ---
I'm sorry but ain't that easy...
I've followed the same 7 steps and PHP works, but not with my server (that
happen to be MS PWS). Maybe is a bug in the server or something like that,
but I have reinstalled PHP, PWS and the whole lot more times than I care to
remember... My blind guess is that localized versions are not tested.
Anyway, if anybody has experience with this configuration: Win98, PWS & PHP
4, please let me know
"Ross Fleming" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]...
> In fact, I'll update my installation instructions for the latest (not
> including apache2) releases for win32. Previously I was installing with
> win98(SE)/apache 1.3.20/php 4.0.6 so I guessed "maybe it's changed and is
> now more difficult?". So I downloaded the latest releases and I'm now
using
> win98(SE)/apache 1.3.26/php 4.2.1 and used almost the same instructions.
In
> Step 5 I entered the lines:
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
> instead, to which apache gave me the warning "module mod_php4.c is already
> added, skipping" implying that it will run fine without that line.
>
> Again, SAPI is better than CGI (don't take it from me, take it from the
> horses mouth at php.net) and I wouldn't even consider installing it as a
CGI
> script. WinXP arrives on Friday or Saturday, and once I've installed it
on
> that, I'll let you know if there are any changes to the install method,
> though I doubt it.
>
> I stand by my claims that installing it is not that difficult.
>
> Ross
>
>
> > -----Original Message-----
> > From: Ross Fleming [mailto:[EMAIL PROTECTED]]
> > Sent: 20 June 2002 16:09
> > To: Jacques Steyn
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: [PHP-WIN] Eh?? RE: [PHP-WIN] Guidelines for installing PHP
> > on Apache Win32 - comments please
> >
> >
> > I did state that this was for the ISAPI version. There is no
> > reason to use
> > CGI. And win2k may well be easier, I wouldn't know. I installed it on
> > Win98. I did NOTHING more than the 7 steps that I suggested and it
works.
> > And I ain't exaggerating when I said that I actually removed
> > apache and php
> > before starting (as in I was doing a reinstall of windows anyway so know
> > mysterious "registry entries" that I may have done before could remain,
or
> > any other steps), I installed from scratch. It still works.
> >
> > Ross
> >
> > > -----Original Message-----
> > > From: Jacques Steyn [mailto:[EMAIL PROTECTED]]
> > > Sent: 20 June 2002 15:34
> > > To: [EMAIL PROTECTED]
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP-WIN] Eh?? RE: [PHP-WIN] Guidelines for installing
PHP
> > > on Apache Win32 - comments please
> > >
> > >
> > > Hi Ross
> > > It depends on whether you do ISAPI or CGI.
> > >
> > > You need to muck with registery if it is CGI, and then you have to
> > > restart.
> > > And WIN2000 etc is much easier than Win98.
> > >
> > > Then again, the referenced page is not an installation summary, but a
> > > summary of
> > > all the suggestions as the standard steps (in your case 7) do not seem
> > > to work
> > > on the specific configuration. Once a set of steps have been
identified
> > > that
> > > works on this configuration, it will be posted as the final version.
> > >
> > > Ciau
> > > Jacques
> > >
> > > Ross Fleming wrote:
> > >
> > > > Have I just been working with computers for too long? To
> > test I wasn't
> > > > missing something, I've just installed Apache/PHP from scratch,
> > > and it is by
> > > > no means as involved as that page makes out. There are only
> > > SEVEN steps I
> > > > had to do...
> > > >
> > > > 1. Installed apache to c:\program files\apache group\apache
> > > (used the .msi
> > > > file and just hit next a lot)
> > > > 2. Extracted the PHP zip file to c:\php
> > > > 3. renamed php.ini-dist and moved it to c:\windows (actually
> > MOVE it to
> > > > ensure you've only got one copy)
> > > > 4. opened the newly created php.ini (in the c:\windows folder)
> > > and entered
> > > > the details for doc_root and extension_dir.. change NOTHING
> > else, you're
> > > > only trying to get it working:
> > > > doc_root = "C:\progra~1\apache~1\apache\htdocs"
> > > > extension_dir = "c:\php\extensions"
> > > > 5. Opened the httpd.conf file in the apache/conf folder and added
the
> > > > following lines to the bottom of the file:
> > > > LoadModule php4_module c:/php/sapi/php4apache.dll
> > > > AddType application/x-httpd-php .php
> > > > 6. Placed a copy of php4ts.dll in the windows/system directory.
> > > > 7. Started Apache and et voila, pointing to
http://localhost/test.php
> > > > test.php was located in apache/htdocs and contained only the
> > following:
> > > > <?PHP
> > > > phpinfo();
> > > > ?>
> > > >
> > > > There are NO restarts involved and no mucking about with the system
> > > > registry. And if anyone here is feeling a sense of deja-vu, then
it's
> > > > probably because the 7 steps (which took all of five minutes)
> > > all feature in
> > > > the install.txt file that comes with the PHP distro. I
> > > struggled to find
> > > > how the
> > > >
> > > > Feel free to replace the webpage with that. This also assumes
> > > that you want
> > > > the apache module, the CGI version is horrible and less
> > > functional anyway
> > > >
> > > > Ross
> > > >
> > > > > -----Original Message-----
> > > > > From: Jacques Steyn [mailto:[EMAIL PROTECTED]]
> > > > > Sent: 17 June 2002 22:26
> > > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > > Subject: [PHP-WIN] Guidelines for installing PHP on Apache Win32 -
> > > > > comments please
> > > > >
> > > > >
> > > > > Quite a few notes have been posted here on guys battling to get
this
> > > > > kind of environment going.
> > > > > If you have tips on installing PHP for Apache on Win 98, could you
> > > > > please read
> > > > > http://www.knowsystems.com/notes/phpinstallnotes.html
> > > > > and comment. The notes in the PHP Manual are ancient and need
> > > an update.
> > > > >
> > > > > I've had some good feedback from the friendly guys on this list,
but
> > > > > have not been able to get the system going yet.
> > > > >
> > > > > So I put together all the suggestions for all to see - and
> > > hopefully get
> > > > > a fix so that others do not battle as I have done.
> > > > >
> > > > > Please note that somewhere there is something missing in these
> > > > > guidelines - which is where I desparately need your help. So don't
> > > > > follow them yet...
> > > > >
> > > > > Thanks
> > > > > Jacques
> > > > > --
> > > > > ___________________
> > > > > Jacques Steyn
> > > > >
> > > > > +27 (0)11 478-1259
> > > > > http://www.knowsystems.com
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > PHP Windows Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > > --
> > > ___________________
> > > Jacques Steyn
> > >
> > > +27 (0)11 478-1259
> > > http://www.knowsystems.com
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
--- End Message ---
--- Begin Message ---
hi guyz
how do i call a phpfile into another phpfile ????
like i wanna call cat_disply.php from within
article.php
so dat it displays all the categories WHERE im giving
it a call
now i did this in c/c++
i CALLED files as i call functions
but is this possible in php ?????
n how ????
thnx a million
toby .....
sql,query
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--- End Message ---
--- Begin Message ---
am I stuppid?
http://www.php.net/manual/en/function.include.php
/brother
> -----Original Message-----
> From: toby z [mailto:[EMAIL PROTECTED]]
> Sent: den 29 juni 2002 13:07
> To: php hlp list
> Subject: [PHP-WIN] function call ????
>
>
>
>
> hi guyz
>
> how do i call a phpfile into another phpfile ????
>
> like i wanna call cat_disply.php from within
> article.php
> so dat it displays all the categories WHERE im giving
> it a call
>
> now i did this in c/c++
> i CALLED files as i call functions
>
> but is this possible in php ?????
> n how ????
--- End Message ---
--- Begin Message ---
Try reading the manual - hint "include"
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474
-----Original Message-----
From: toby z [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 29, 2002 6:07 AM
To: php hlp list
Subject: [PHP-WIN] function call ????
Importance: Low
hi guyz
how do i call a phpfile into another phpfile ????
like i wanna call cat_disply.php from within
article.php
so dat it displays all the categories WHERE im giving
it a call
now i did this in c/c++
i CALLED files as i call functions
but is this possible in php ?????
n how ????
thnx a million
toby .....
sql,query
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi
Coudl somebody tell me what is wrong with hte attached code ?
It always displays the index.php file (the starting file).
Even ig all condisions are complete.
LP
JaN
www.3delavnica.com
<title>Jan</title>
<font face="Verdana">
<h2>Če me želiš kontaktirati, spodaj napiši svoj e-mail in sporočilo !</h2>
<form name="form1" method="post" action="rez.php">
<p>
<b>E-mail:</b>
<br><input style="text" name="email" size="55">
<br>
<br><b>Sporočilo (uporabljate lahko tudi HTML kodo) :</b>
<br><textarea name="kom" rows="10" cols="42"></textarea>
<br>
<br><input type="submit" name="submit" value="Pošlji">
<input type="reset" name="reset" value="Pobriši">
</form>
<font face="verdana">
<?
$ema = $_POST[email];
$spo = $_POST[kom];
if (empty($ema) and empty($spo) or empty($ema) and isset($spo) or isset($ema) and
empty($spo))
{
zavrni();
}
else
{
naprej();
}
function naprej() {
if (ereg("@", $ema) and ereg(".", $ema))
{
mail('[EMAIL PROTECTED]', "Sporočilo od $ema",
"<html><body><p>$spo</p></body></html>",
"To: Jan Hančič <[EMAIL PROTECTED]>\n".
"From: $ema <$ema>\n" . "MIME-Version: 1.0\n".
"Content-type: text/html; charset=iso-8859-2");
echo "<b>Sporočilo poslano !</b>";
}
else
{
zavrni();
}
}
function zavrni() {
echo "<b>Niste vpisali vseh podatkov ali pa je e-mail napisan v nepravilni obliki
!!</b>";
echo "<p></p>";
include("index.php");
}
?>
--- End Message ---
--- Begin Message ---
Quotes makes diference if you forget....
$ema = $_POST['email'];
$spo = $_POST['kom'];
--- End Message ---