Jump to content

ERROR When upload program ?


yusufhermanto

Recommended Posts

hello all,

 

i has been create application with php. and when i try this application on my computer it run with succsessful.

so i'm tring to upload my code on internet with free web hosting.

but there are varibales not detecting on web.

 

this my code:

  <td width="78%" height="1" align="center" valign="top" bgcolor="#FFFFFF" style="border-style: none; border-width: medium">

            <?

 

  if( ($exec=='main.php' && file_exists("main.php"))|| $exec=='') include "main.php";

  else include $exec;

?>

          </td>

 

the $exec variable not have value, so whan i choose other menu it alway go to main.php

 

what is wrong ?

can anybody give me the solution for this prblem ?

 

thank you,

Link to comment
https://forums.phpfreaks.com/topic/53118-error-when-upload-program/
Share on other sites

your not setting $exec!!

 

how to do it ?

 

if has been try to load other file like this :

<tr>

            <td width="100%" bgcolor="#FFFFFF" style="border-left:1px solid #FF0000; border-right:1px solid #FF0000; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium; " height="25">

            <b>

            <font face="Arial" size="2" color="#333333">

            <a href=index.php?exec=dafcust.php>Customer</a></font></b></td>

          </tr>

 

but main.php is loaded

Great,

 

Oh can you click solved (bottom left)

it save other entering this thread

 

ok my first problem has found the solution.

 

but very many the problem when i upload my program to the web.

likes :

1. display data

2. save data to mysql

3. useing header("Location:...) not detecting

4. and others

 

i'm new for this project so i don't what must i do if i want to upload my project to the web.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.