Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 08-05-2010, 10:42 AM call PHP file
Novice Talker

Posts: 13
Name: krator
Location: Brasil , Porto Seguro
Trades: 0
Well folks I have a problem when it comes to link T_T because the index is set to call a single q file.php I created the home button and talz .. Linka and wanted him to open the site when they already go on the home site is www.creddinh.com.br/dinh follows the Code.
Quote:
<?header("content-type: text/html; charset=iso-8859-1",true);

include"admin/configs/banco.php";
include"admin/configs/tabelas.php";
include"admin/funcoes/funcoes.php";
$Idioma = 1;

?><?

$meses['01'] = "Janeiro";
$meses['02'] = "Fevereiro";
$meses['03'] = "Margo";
$meses['04'] = "Abril";
$meses['05'] = "Maio";
$meses['06'] = "Junho";
$meses['07'] = "Julho";
$meses['08'] = "Agosto";
$meses['09'] = "Setembro";
$meses['10'] = "Outubro";
$meses['11'] = "Novembro";
$meses['12'] = "Dezembro";
?>

<HTML>

<head>
<meta name="google-site-verification" content="C_whXBJSZbE8RSZMS5tn7KBm_0euJ2kUDiqCRtI0K yg" />
<meta name="google-site-verification" content="xBgKKA6KIx0xtMGjLsKfIMxOHRXEwJ-TCo9xPiUxCeE" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="keywords" content="classificados, bahia, usados, im&oacute;veis, aluguel, compra, venda, ve&iacute;culos, pequenos an&uacute;ncios" />
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="estilo.css"/>
</head>
<LINK REL="SHORTCUT ICON" HREF="icone.ico">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-4252191-1";
urchinTracker();
</script>
<TITLE>Cred Dinh</TITLE>
<style>
body, table, input, textarea, select { font-family:Trebuchet MS; font-size:11px; }

input, textarea, select { border:1px solid #777; }

a { color: #464D53; text-decoration: none; }
a:hover{ color: #262D33; text-decoration: underline; }
img { border-color:#445; }
#menu { width: 160px; padding: 0; margin: 0; font-family: Trebuchet MS; font-weight:bold; text-align:justify;}
#menu ul, #menu2 ul { list-style: none; margin: 0; padding: 0; }
#menu li, #menu2 ul { margin: 0; }
#menu li a { background: #fff; font-size: 11px; display: block; padding: 2px 2px 2px 2px; color: #333; text-decoration: none; border:1px solid #333;}
#menu li a:hover { background: #222; color: #fff; font-size:10px; }
#top{margin-top:-20px;}
#top2{margin-top:-12px;}
#menu2 li { font-size: 13; background: #555; display: block; padding: 2px 2px 4px 5px; color: #fff; text-decoration: none; }
#divtable{text-align:left; margin-top:40px; margin-left:40px;}
#divtable2{text-align:left; margin-top:10px; margin-left:0px;}
#divtable3{text-align:left; margin-top:10px; margin-left:0px;}
#divtable4{text-align:left; margin-top:10px; margin-left:0px;}
.o { font-size:18px; color:#006531; text-align:justify;}
.Subcat{ display:none; }
.b5{font-size:5px;}

.busca { font-size:15px; width:220px; }
.buscabt{ font-size:15px; }
.top { font-size:18px; color:#777;}
.d:hover {color:#000; font-size:16px; font-weight:bold; text-decoration:none;}
.d{ color:#009932; font-size:14px; text-decoration:none; font-family:arial}
.m { color:#fff; font-weight:bold; font-size:12px; font-family:arial; }
.m:hover { color:#eee; }
.m2 { color:#999; font-size:12px; }
.m2:hover { color:#555; }
.lembrete{ display:none; }
</style>
<body bgcolor='#eeeeee' style='margin:0'>
<script>
function Ampliar(foto){
window.open("view.php?img="+foto,"","height=420,wi dth=530");
}
</script>
<center>
<div id="headerleft">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="1060" height="182" id="FlashID" title="creddinh">
<param name="movie" value="Flash CredDinh.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="6.0.65.0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="Flash CredDinh.swf" width="1060" height="182">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="6.0.65.0">
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<table width='720' cellpadding='0' cellspacing='0' style='border:3px solid #ddd;'>
<tr><Td colspan='3'><center><br>
<div id="top">
<Table height='31' width='1060' cellpadding='0' cellspacing='0'>
<tr><td height='31' width='auto' background='btop.gif'><center>
<A href='./?/conteudo/regras/' class='m'>HOME</a>
<A href='./?/conteudo/quem/' class='m'>QUEM SOMOS</a>
<A href='./?/conteudo/anuncio/' class='m'>EMPREENDIMENTOS</a>
<A href='./?/contato/' class='m'>CONTATO</a>
</tr>
</table>
</div>
<div id="top2">
</div>
<div id="divtable">
<a href="/?/conteudo/quem/" target="_self"><img src="http://www.webmaster-talk.com/images/Emprestimo.png" border="none"></a>
<div id="divtable2">
<a href="/?/conteudo/quem/" target="_self"><img src="http://www.webmaster-talk.com/images/consorcio.png" border="none"></a>
<div id="divtable3">
<a href="/?/conteudo/quem/" target="_self"><img src="http://www.webmaster-talk.com/images/financiamento.png" border="none"></a>
<div id="divtable4">
<a href="/?/conteudo/quem/" target="_self"><img src="http://www.webmaster-talk.com/images/servicos.png" border="none"></a>
<br><br><br><br><br>
<div id="geral">
<Table>
<?

if($_SERVER['REQUEST_URI']){

$uri = $_SERVER['REQUEST_URI'];
$urr = explode('/',$uri); reset($urr);

next($urr); // Temp -> enquanto o dommnio nco for ativado...


$i = next($urr); if($i=="?"){ $i = next($urr); }
$s = next($urr);
$n = next($urr);

if($i=="conteudo"){ $i='secs'; } //he calls these files

if(!$i){ $i='home'; } //and here too

if(!file_exists("inc/$i.php")){
?><Center><Br><Br><b>Pagina nco encontrada!</b><Br><Br><a href='http://www.classificadaobahia.com.br'>www.classificadaoba hia.com.br</a><br><Br><?
}

}

$ii = $i;

if(file_exists("inc/$i.php")){ include"inc/$i.php"; }

if($i!=$ii){ if(file_exists("inc/$i.php")){ include"inc/$i.php"; } }

?>

<?$nc;
$bB=mysql_query("SELECT * FROM {$DB_PRENOM}_categorias WHERE idioma='$Idioma' ORDER BY nome");
while($v=mysql_fetch_array($bB,MYSQL_ASSOC)){ $nc++;
if($cor=='#eeeeee'){ $cor = '#ffffff'; } else { $cor = '#eeeeee'; }
?><tr><td bgcolor='<?=$cor?>'>
<a href='?/categoria/<?=$v[id]?>/'><?=$v[nome]?></a></td></tr>
<?}
?>
</table>
</div>
<Tr>
</table>
</div>
</div>
</div>

<br>
</td></tr>

</table>
<div id="rodape">
</div>
</td>

<td valign='top' width='160'> </td>

</table>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->

</script>

Last edited by krator; 08-05-2010 at 10:44 AM..
krator is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-05-2010, 01:01 PM Re: help to link
Novice Talker

Posts: 13
Name: krator
Location: Brasil , Porto Seguro
Trades: 0
Like this brother .... q mentioned the website "www.creddinh.com.br / dinh" when will the website it goes straight in index.php but I created buttons in the horizontal menu that goes to home, then I wish that when people entered the site was Direct home likagem wanted to do this, do not explain here x_x php code.

Quote:
<?

if($_SERVER['REQUEST_URI']){

$uri = $_SERVER['REQUEST_URI'];
$urr = explode('/',$uri); reset($urr);

next($urr); // Temp -> enquanto o dommnio nco for ativado...


$i = next($urr); if($i=="?"){ $i = next($urr); }
$s = next($urr);
$n = next($urr);

if($i=="conteudo"){ $i='secs'; } //ele chama esses arquivos

if(!$i){ $i='home'; }

if(!file_exists("inc/$i.php")){
?><Center><Br><Br><b>Pagina nco encontrada!</b><Br><Br><a href='http://www.classificadaobahia.com.br'>www.classificadaoba hia.com.br</a><br><Br><?
}

}

$ii = $i;

if(file_exists("inc/$i.php")){ include"inc/$i.php"; }

if($i!=$ii){ if(file_exists("inc/$i.php")){ include"inc/$i.php"; } }

?>
that party is the party he calls q files in php for the home
Quote:
if($i=="conteudo"){ $i='secs'; } //ele chama esses arquivos
if(!$i){ $i='home'; }
is that clear??
krator is offline
Reply With Quote
View Public Profile
 
Old 08-06-2010, 04:18 PM Call php file
Novice Talker

Posts: 13
Name: krator
Location: Brasil , Porto Seguro
Trades: 0
Well personally I had created another topic though people could not understand me because not knowing how to express myself correctly, but is so kind ... I have the index.php and talz ... aii I made a copy of index.php and tall because I'll link the menus that are on the right side of this site http://www.creddinh.com.br/dinh, i like ... me just did the normal copy tried to make other tbm to see if it works because he is not calling the php file to understand?? and it is not understood why, I'm new to php and talz so obviously, I still have some difficulties, but if someone can help me I appreciate the part that I copied this link okay, http://www.creddinh.com. br/dinh/emprestimo.php.
krator is offline
Reply With Quote
View Public Profile
 
Old 08-06-2010, 04:38 PM Re: call PHP file
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
having several threads ISN'T going to help.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-06-2010, 04:47 PM Re: call PHP file
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and "talz" is?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-07-2010, 07:46 AM Re: call PHP file
Novice Talker

Posts: 13
Name: krator
Location: Brasil , Porto Seguro
Trades: 0
talz = among others




Last edited by krator; 08-07-2010 at 09:38 AM..
krator is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to call PHP file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.70867 seconds with 12 queries