php-install Digest 30 Jul 2002 11:05:49 -0000 Issue 954
Topics (messages 7941 through 7947):
dynamic pages
7941 by: Rolando Morales
Compile-problems with PHP 4.2.2 on Mandrake 8.2
7942 by: Markus Lervik
7943 by: Rasmus Lerdorf
Globals
7944 by: Nuala & Tony
7946 by: Rasmus Lerdorf
Re: register_globals and array of checkboxen
7945 by: Rasmus Lerdorf
stuck display ......
7947 by: toby -
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 ---
I would like to have the same page (test.php) have different text in it
depending on a database entry.
which is easy enough. but I want it to be on the fly. example list would be
created on the fly depending on databse entries.
which ever entry was picked (lets say STLT) it would open up my template
test.php and it would but the STLT info on the page. Is there a way to do
this without turning on Global_Variables which come standard off in php4.2.2
I'm using apache 2.0.39, PHP4.2.2, FreeBSD4.6, Mysql3.23.51
My database entries would be
deparment page artical template
----------------------------------------
stlt 1 <body of page> test.php
aps 1 <body of page> test.php
srp 1 <body of page> test2.php
main 1 <body of page> test.php
the list would be created by a query that looks for all page 1 entries
from there the main page would show up(default), but once you pick
from the list it would show the database enteries for that department.
|-------|-------------------------------
|main |
|STLT | STLT was picked show STLT "artical" database entry
|aps | this is are STLT page
|srp |
| |
|-------|-------------------------------
|-------|-------------------------------
|main |
|stlt | APS was picked show APS "artical" database entry
|APS | this is are APS page
|srp |
| |
|-------|-------------------------------
I assume that Gobal_Variables are off for a reason.
Rolando
--- End Message ---
--- Begin Message ---
Hello, list!
I can't seem to get PHP 4.2.2 to compile correctly on Mandrake 8.2.
The error I get is
php_functions.c:93: parse error
make[3]: *** [php-functions.lo] Error 1
Line 93 in php_functions.c seems to be
#if !MODULE_MAGIC_AT_LEAST(20020506,0)
ADD_STRING(boundary);
#endif
GCC seems to be version 2.7.2.3 according to gcc -v
It's obviously not the version that came with Mandrake,
but I tried compiling it with 2.96 that comes with the
distribution too, but it gave the same error. I haven't had
any problems compiling PHP < 4.2.2 on MDK 8.
Would a different version of GCC work better?
Cheers,
Markus Lervik
--
Markus Lervik, [EMAIL PROTECTED] | A Microsoft Certified Systems
Engineer
Linux-administrator | is to computing
Vaasa City Library - Regional Library | what a McDonalds Certified Food
Specialist
+358-6-325 3589 / +358-40-832 6709 | is to fine cuisine
--- End Message ---
--- Begin Message ---
Is this Apache2? If so, PHP 4.2.2 does not support it.
On 30 Apr 2002, Markus Lervik wrote:
> Hello, list!
>
> I can't seem to get PHP 4.2.2 to compile correctly on Mandrake 8.2.
> The error I get is
>
> php_functions.c:93: parse error
> make[3]: *** [php-functions.lo] Error 1
>
> Line 93 in php_functions.c seems to be
>
> #if !MODULE_MAGIC_AT_LEAST(20020506,0)
> ADD_STRING(boundary);
> #endif
>
> GCC seems to be version 2.7.2.3 according to gcc -v
> It's obviously not the version that came with Mandrake,
> but I tried compiling it with 2.96 that comes with the
> distribution too, but it gave the same error. I haven't had
> any problems compiling PHP < 4.2.2 on MDK 8.
>
> Would a different version of GCC work better?
>
>
> Cheers,
> Markus Lervik
>
> --
>
> Markus Lervik, [EMAIL PROTECTED] | A Microsoft Certified Systems
> Engineer
> Linux-administrator | is to computing
> Vaasa City Library - Regional Library | what a McDonalds Certified Food
> Specialist
> +358-6-325 3589 / +358-40-832 6709 | is to fine cuisine
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi Could somebody help me please.
I am new to PHP and have some code which works fine on my web host, who has
an old version of PHP.
I am struggling to carry out any updates and testing on my home pc.
I have tried quite a few suggestions from
php.net/manual/en/security.registerglobals.php but none seem to work.
I have PHP 4.21 and would like to get the code correct to pass through a few
variables from one page to another.
My Register Globals is turned on and by default Track Vars, but I have not
been able to verify this.
I am running Windows 2000 Professional, Apache and MYSQL.
The vars I am trying to pass to the next page are called $sessCFSuser and
$sessCFSuid.
I would be most gratefull for any sort of help.
Regards
Tony
--- End Message ---
--- Begin Message ---
> My Register Globals is turned on and by default Track Vars, but I have not
> been able to verify this.
Why not? Just stick <?phpinfo()?> in a php file and load it up. It will
tell you.
-R
--- End Message ---
--- Begin Message ---
Works fine here. Note that you are missing a closing " in your
if($Submit) line. Check your code for obvious typos. Turn up your
error_reporting level to E_ALL and check phpinfo() to make sure
register_globals is really on and that you are editing the correct php.ini
file. phpinfo() will tell you where PHP looks for php.ini.
-Rasmus
On Mon, 29 Jul 2002, Hanser, Kevin wrote:
> I'm having a problem with an array of checkboxen in a form that isn't
> passing on its values when the form is submitted.
>
> At first I thought this was related to the register_globals since I just
> updated to php 4.2.1 a week or so ago.. I've read the information that says
> it's turned off by default now, but when I checked on my php.ini file, my
> register_globals was already set to On. (I had updated from an earlier
> version of php, so I assume it left my .ini file)
>
> Here's the problem I'm having. I have a form that looks something like
> this (except it's pulled from a db... I'm stripping it down to have the
> essentials here :) :
>
> <form action="submit.php" method="post">
> <input type="checkbox" name="Checkbox_List[]" value="option1">Option 1<br>
> <input type="checkbox" name="Checkbox_List[]" value="option2">Option 2<br>
> <input type="submit" name="Submit" value="Submit List">
> </form>
>
> and the submit processing of the submit.php page is:
>
> if ($Submit == "Submit List) {
> echo "checkbox list:<br>\n";
> foreach ($Checkbox_List as $A_Checkbox_Item) {
> echo "checkbox item: $A_Checkbox_Item<br>\n";
> }
> Submit_List($Checkbox_List);
> }
>
>
> Here's the problem: if I check some checkboxen on the page, and then
> submit, the output is:
>
> checkbox list:
>
> Nothing seems to be getting passed with the chechbox array... If I use the
> $_POST["Checkbox_List"] variable instead, the data is there... I'm just
> confused as to why register_globals doesn't fix the problem w/out me having
> to use the _POST array? (we have numerous pages that use the old method,
> and it'll take some time to convert them all, so register_globals is needed
> for now)
>
> The thing that seems _reall_ strange to me, is that it looks like _some_ are
> being registered, and others are not... Like the $Submit variable (from the
> input button), that is obviously being passed, otherwise I wouldn't see any
> output (first echo inside the if) when it's submitted.
>
> Any ideas on why some data is being passed but not all of it? This page was
> working ok on a pre-4.2 system.
> My current config on this server is:
>
> RedHat 6.1 (kernel 2.4.17)
> Apache 1.3.26
> PHP 4.2.1
>
> thx
>
> Kevin Hanser
> System Administrator
> Merchant Internet Group, Inc.
> ShopsForMe.com
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
hi guyx
i ve a lil problem
i run this query n get a result set
$query = "SELECT lang_id,strng_id, strng FROM strngx
where pg_id = 6 and lang_id = '$lang_id '";
$query_result_handle = mysql_query ($query)
or die ('qry failed ! DA tbl must xixt in DA db
specifyd bov ....');
exe and store it in $row
for( $v=1; $v < mysql_num_rows($query_result_handle);
$v++)
{
$row = mysql_fetch_row($query_result_handle);
$str[ $row[0] ][ $row[1] ] = $row;
}
alls well
but
i want to get a single record displayed
when i do
echo($row[2]."<br>");
i get all the records in $row[2]
but i want jst 1
what should i do ?????
how should i go about it .... ?????
plx plx help
m stuck ...
:(
thnx a million ..... billion
stuck ....
toby ....
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---