Jump to content

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.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.