1 |
voy a provar y te cuento.....gracias. |
2 |
|
3 |
|
4 |
On Thu, 2003-12-11 at 19:56, Marcos Garcia Marti wrote: |
5 |
> mozilla nunca podrá interpretar (ejecutar) codigo php... por eso |
6 |
> inventaron el mod_php (tb se podria usar el interprete php como un cgi |
7 |
> pero joer nunca lo he visto xD) |
8 |
> asi q el problema lo tienes en el apache. En versiones anteriores habia |
9 |
> visto las directivas AddType application/x-httpd.php .php, q si no las |
10 |
> ponías el apache t servía en texto plano el código PHP. |
11 |
> Pero he estado revisando, y en las ultimas versiones de PHP y APACHE2, |
12 |
> en concreto (~x86): |
13 |
> Calculating dependencies ...done! |
14 |
> [ebuild R ] net-www/apache-2.0.48-r1 |
15 |
> [ebuild R ] dev-php/mod_php-4.3.4-r1 |
16 |
> |
17 |
> la configuración de mod_php está en |
18 |
> /etc/apache2/conf/modules.d/70mod_php o algo asi |
19 |
> Pero en 4.3.3 (stable) no está ahi! está en el commonapache.conf |
20 |
> |
21 |
> De todas maneras, ya t digo... Por defecto funciona! asi q borra los |
22 |
> archivos del etc (los del conf, los del apache y todo lo q se parezca a |
23 |
> php), reemerge, modifica el /etc/conf.d/apache y yasta. DEBE funcionar |
24 |
> :) |
25 |
> |
26 |
> |
27 |
> |
28 |
> El jue, 11-12-2003 a las 13:36, guillermo_abate escribió: |
29 |
> > Hola lista: |
30 |
> > |
31 |
> > He estado trabajando con apache+php+mysql para trabajarlo con el |
32 |
> > drupal ya tengo configurado el drupal y en el /etc/conf.d/apache tengo |
33 |
> > -D PHP4; pero tengo el problema que el mozilla no me interpreta el |
34 |
> > codigo php solo me saca el codigo por ejemplo cuando en el mozilla pongo |
35 |
> > http://localhost/phpmyadmin solo me muestra: |
36 |
> > |
37 |
> > <?php |
38 |
> > /* $Id: index.php,v 1.54 2003/07/11 09:35:05 rabus Exp $ */ |
39 |
> > // vim: expandtab sw=4 ts=4 sts=4: |
40 |
> > |
41 |
> > |
42 |
> > /** |
43 |
> > * Gets core libraries and defines some variables |
44 |
> > */ |
45 |
> > require('./libraries/grab_globals.lib.php'); |
46 |
> > require('./libraries/common.lib.php'); |
47 |
> > |
48 |
> > // Gets the default font sizes |
49 |
> > PMA_setFontSizes(); |
50 |
> > |
51 |
> > // Gets the host name |
52 |
> > // loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+ |
53 |
> > if (empty($HTTP_HOST)) { |
54 |
> > if (!empty($_ENV) && isset($_ENV['HTTP_HOST'])) { |
55 |
> > $HTTP_HOST = $_ENV['HTTP_HOST']; |
56 |
> > } |
57 |
> > else if (!empty($HTTP_ENV_VARS) && |
58 |
> > isset($HTTP_ENV_VARS['HTTP_HOST'])) { |
59 |
> > $HTTP_HOST = $HTTP_ENV_VARS['HTTP_HOST']; |
60 |
> > } |
61 |
> > else if (@getenv('HTTP_HOST')) { |
62 |
> > $HTTP_HOST = getenv('HTTP_HOST'); |
63 |
> > } |
64 |
> > else { |
65 |
> > $HTTP_HOST = ''; |
66 |
> > } |
67 |
> > } |
68 |
> > |
69 |
> > |
70 |
> > /** |
71 |
> > * Defines the frameset |
72 |
> > */ |
73 |
> > // loic1: If left light mode -> urldecode the db name |
74 |
> > if (isset($lightm_db)) { |
75 |
> > // no longer urlencoded because of html entities in the db name |
76 |
> > // $db = urldecode($lightm_db); |
77 |
> > $db = $lightm_db; |
78 |
> > unset($lightm_db); |
79 |
> > } |
80 |
> > $url_query = PMA_generate_common_url(isset($db) ? $db : ''); |
81 |
> > |
82 |
> > header('Content-Type: text/html; charset=' . $GLOBALS['charset']); |
83 |
> > |
84 |
> > require('./libraries/relation.lib.php'); |
85 |
> > $cfgRelation = PMA_getRelationsParam(); |
86 |
> > |
87 |
> > if ($cfg['QueryHistoryDB'] && $cfgRelation['historywork']) { |
88 |
> > PMA_purgeHistory($cfg['Server']['user']); |
89 |
> > } |
90 |
> > |
91 |
> > $phpmain_hash = md5($cfg['PmaAbsoluteUri']); |
92 |
> > $phpmain_hash_js = time(); |
93 |
> > ?> |
94 |
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" |
95 |
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> |
96 |
> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo |
97 |
> > $available_languages[$lang][2]; ?>" lang="<?php echo |
98 |
> > $available_languages[$lang][2]; ?>" dir="<?php echo $text_dir; ?>"> |
99 |
> > <head> |
100 |
> > <title>phpMyAdmin <?php echo PMA_VERSION; ?> - <?php echo $HTTP_HOST; |
101 |
> > ?></title> |
102 |
> > <meta http-equiv="Content-Type" content="text/html; charset=<?php echo |
103 |
> > $charset; ?>" /> |
104 |
> > <link rel="stylesheet" type="text/css" |
105 |
> > href="./css/phpmyadmin.css.php?lang=<?php echo $lang; |
106 |
> > ?>&js_frame=right" /> |
107 |
> > </head> |
108 |
> > |
109 |
> > <?php |
110 |
> > if ($cfg['QueryFrame']) { |
111 |
> > |
112 |
> > if ($cfg['QueryFrameJS']) { |
113 |
> > echo '<script type="text/javascript">' . "\n"; |
114 |
> > echo '<!--' . "\n"; |
115 |
> > echo ' document.writeln(\'<frameset cols="' . |
116 |
> > $cfg['LeftWidth'] . ',*" rows="*" border="1" frameborder="1" |
117 |
> > framespacing="0">\');' . "\n"; |
118 |
> > echo ' document.writeln(\' <frameset rows="*, 50" |
119 |
> > framespacing="0" frameborder="0" border="0">\');' . "\n"; |
120 |
> > echo ' document.writeln(\' <frame src="left.php?' . |
121 |
> > $url_query . '&hash=' . $phpmain_hash . $phpmain_hash_js . '" |
122 |
> > name="nav" frameborder="0" />\');' . "\n"; |
123 |
> > echo ' document.writeln(\' <frame |
124 |
> > src="queryframe.php?' . $url_query . '&hash=' . $phpmain_hash . |
125 |
> > $phpmain_hash_js . '" name="queryframe" frameborder="0" scrolling="no" |
126 |
> > />\');' . "\n"; |
127 |
> > echo ' document.writeln(\' </frameset>\');' . "\n"; |
128 |
> > echo ' document.writeln(\' <frame src="' . (empty($db) ? |
129 |
> > $cfg['DefaultTabServer'] : $cfg['DefaultTabDatabase']) . '?' . |
130 |
> > $url_query . '" name="phpmain' . $phpmain_hash . $phpmain_hash_js . '" |
131 |
> > border="0" frameborder="0" />\');' . "\n"; |
132 |
> > echo ' document.writeln(\' <noframes>\');' . "\n"; |
133 |
> > echo ' document.writeln(\' <body |
134 |
> > bgcolor="#FFFFFF">\');' . "\n"; |
135 |
> > echo ' document.writeln(\' <p>' . str_replace("'", |
136 |
> > "\'", $strNoFrames) . '</p>\');' . "\n"; |
137 |
> > echo ' document.writeln(\' </body>\');' . "\n"; |
138 |
> > echo ' document.writeln(\' </noframes>\');' . "\n"; |
139 |
> > echo ' document.writeln(\'</frameset>\');' . "\n"; |
140 |
> > echo '//-->' . "\n"; |
141 |
> > echo '</script>' . "\n"; |
142 |
> > echo "\n"; |
143 |
> > echo '<noscript>' . "\n"; |
144 |
> > } |
145 |
> > |
146 |
> > echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" |
147 |
> > border="1" frameborder="1" framespacing="0">' . "\n"; |
148 |
> > echo ' <frameset rows="*, 50" framespacing="0" frameborder="0" |
149 |
> > border="0">' . "\n"; |
150 |
> > echo ' <frame src="left.php?' . $url_query . '&hash=' . |
151 |
> > $phpmain_hash . '" name="nav" frameborder="0" />' . "\n"; |
152 |
> > echo ' <frame src="queryframe.php?' . $url_query . |
153 |
> > '&hash=' . $phpmain_hash . '" name="queryframe" frameborder="0" |
154 |
> > scrolling="no" />' . "\n"; |
155 |
> > echo ' </frameset>' . "\n"; |
156 |
> > echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : |
157 |
> > $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . |
158 |
> > $phpmain_hash . '" frameborder="0" />' . "\n"; |
159 |
> > |
160 |
> > } else { |
161 |
> > |
162 |
> > echo '<frameset cols="' . $cfg['LeftWidth'] . ',*" rows="*" |
163 |
> > border="1" frameborder="1" framespacing="0">' . "\n"; |
164 |
> > echo ' <frame src="left.php?' . $url_query . '&hash=' . |
165 |
> > $phpmain_hash . '" name="nav" frameborder="0" />' . "\n"; |
166 |
> > echo ' <frame src="' . (empty($db) ? $cfg['DefaultTabServer'] : |
167 |
> > $cfg['DefaultTabDatabase']) . '?' . $url_query . '" name="phpmain' . |
168 |
> > $phpmain_hash . '" frameborder="1" />' . "\n"; |
169 |
> > |
170 |
> > } |
171 |
> > ?> |
172 |
> > |
173 |
> > <noframes> |
174 |
> > <body bgcolor="#FFFFFF"> |
175 |
> > <p><?php echo $strNoFrames; ?></p> |
176 |
> > </body> |
177 |
> > </noframes> |
178 |
> > </frameset> |
179 |
> > <?php |
180 |
> > if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { |
181 |
> > echo '</noscript>' . "\n"; |
182 |
> > } |
183 |
> > ?> |
184 |
> > |
185 |
> > </html> |
186 |
> > |
187 |
> > si alguien me puede orientar en donde esta mi error se los agradeceria. |
188 |
> > |
189 |
> > |
190 |
> > |
191 |
> > Gentoo Rules. |
192 |
> > |
193 |
> > |
194 |
> > Abasme |
195 |
> > |
196 |
> > |
197 |
> > -- |
198 |
> > gentoo-user-es@g.o mailing list |
199 |
> > |
200 |
> > |
201 |
|
202 |
|
203 |
-- |
204 |
gentoo-user-es@g.o mailing list |