Re: [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)
| From: | Tony | Date: | Wed, 11 Feb 2004 11:18:49 +0000 |
| Subject: | Re: [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177365@lists.php.net to get a copy of this message | ||
Hello,
I have a similar problem whereby in the receiving PHP program the variable
$Myname doesn't contain anything (i.e. echo $Myname returns nothing) however
$_GET['Myname'] returns the correct value. How can this be?
I attach the two short files. I'd appreciate it if anyone can tell me why
this is happening. It seems to me that I'm following the right conventions.
I'm running this under Apache on a Windows XP system. I sent another news
item today but became more enlightened by the response to this similar
problem. Apologies for the superfluous item.
Regards
Tony
"Richard Davey" <rich@launchcode.co.uk> wrote in message
news:1838927883.20040211101614@launchcode.co.uk...
> Hello Michael,
>
> Wednesday, February 11, 2004, 2:48:00 AM, you wrote:
>
> MTP> Again, no are any errors displayed or logged. Any help would be
greatly
> MTP> appreciated.
>
> Your code is fine (well, the code you posted anyway) so I'd bet the
> problem is Apache related regarding the config of PHP on your system.
>
> Simple test, stick this page on your server:
>
> <?php
> echo phpinfo();
> ?>
>
> and call it via your browser - do you get to see all the PHP settings?
>
> If you do, then you need to check if it's just form data that isn't
> being passed, again a simple script like:
>
> <?php
> echo $_GET['value'];
> ?>
>
> and call the script with: script.php?value=something
>
> If that works, try the same thing only for POST values.
>
> Many things to test!
>
> --
> Best regards,
> Richard
> mailto:rich@launchcode.co.uk
begin 666 prog.html
M/"%$3T-465!%($A434P@4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,#$@
M5')A;G-I=&EO;F%L+R]%3B(^#0H-"CQH=&UL/@T*/&AE860^#0H)/'1I=&QE
M/E5N=&ET;&5D/"]T:71L93X-"CPO:&5A9#X-"CQB;V1Y/@T*/$9/4DT@;65T
M:&]D/5!/4U0@04-424]./2)P<F]G,BYP:' B/@T*(" \24Y0550@3D%-13TB
M37EN86UE(B!465!%/2)415A4(CX-"B @/$E.4%54(%194$4]4U5"34E4/@T*
;/"]&3U)-/@T*/"]B;V1Y/@T*/"]H=&UL/@T*
`
end
begin 666 prog2.php
M/#]P:' -"@T*)&YA;64](E1O;GDB.PT*/SX-"@T*/"%$3T-465!%($A434P@
M4%5"3$E#("(M+R]7,T,O+T141"!(5$U,(#0N,#$@5')A;G-I=&EO;F%L+R]%
M3B(^#0H-"CQH=&UL/@T*/&AE860^#0H)/'1I=&QE/E5N=&ET;&5D/"]T:71L
M93X-"CPO:&5A9#X-"@T*/&)O9'D^#0H\5$%"3$4@0D]21$52/3$^#0H-"CP_
M<&AP( T*(" @96-H;R B/% ^/%12/CQ41#Y087-S960@4&%R86UE=&5R/"]4
M1#X\5$0^37D@;F%M92!I<R!\(B N("1->6YA;64@+B B?#PO5$0^/"]44CX\
M+U ^(CL-"B @(&5C:&\@(CQ0/CQ44CX\5$0^3&]C86P@5F%R:6%B;&4\+U1$
M/CQ41#Y->2!N86UE(&ES('PB("X@)&YA;64@+B B?#PO5$0^/"]44CX\+U ^
M(CL-"B @(&5C:&\@(CQ0/CQ44CX\5$0^27,@=&AE('9A<FEA8FQE(&UY;F%M
M92!E;7!T>2 H,2!M96%N<R!Y97,I/"]41#X\5$0^(B N(&5M<'1Y*"1M>6YA
M;64I("X@(CPO5$0^/"]44CX\+U ^(CL@( T*(" @96-H;R B/% ^/%12/CQ4
M1#Y#:&5C:VEN9R!'970@5F%L=65S/"]41#X\5$0^(B N("1?1T546R=->6YA
M;64G72 N("(\+U1$/CPO5%(^/"]0/B([#0H@("!E8VAO("(\4#X\5%(^/%1$
M/D-H96-K:6YG(%!O<W0@5F%L=65S/"]41#X\5$0^(B N("1?4$]35%LG37EN
M86UE)UT@+B B/"]41#X\+U12/CPO4#XB.PT*#0H_/@T*#0H\+V)O9'D^#0H\
(+VAT;6P^#0H`
`
end