yusufhermanto Posted May 27, 2007 Share Posted May 27, 2007 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, Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/ Share on other sites More sharing options...
MadTechie Posted May 27, 2007 Share Posted May 27, 2007 your not setting $exec!! Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262397 Share on other sites More sharing options...
yusufhermanto Posted May 27, 2007 Author Share Posted May 27, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262399 Share on other sites More sharing options...
MadTechie Posted May 27, 2007 Share Posted May 27, 2007 add at the top <?php $exec = $_GET['exec']; ?> so <?php $exec = $_GET['exec']; if( ($exec=='main.php' && file_exists("main.php"))|| $exec=='') { include "main.php"; }else{ include $exec; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262400 Share on other sites More sharing options...
yusufhermanto Posted May 27, 2007 Author Share Posted May 27, 2007 ok, thank you it success Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262402 Share on other sites More sharing options...
MadTechie Posted May 27, 2007 Share Posted May 27, 2007 Great, Oh can you click solved (bottom left) it save other entering this thread Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262403 Share on other sites More sharing options...
yusufhermanto Posted May 27, 2007 Author Share Posted May 27, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262404 Share on other sites More sharing options...
MadTechie Posted May 27, 2007 Share Posted May 27, 2007 These are additional problems! i am not going to do it all for you.. Quote Link to comment https://forums.phpfreaks.com/topic/53118-error-when-upload-program/#findComment-262407 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.