beven Posted November 1, 2011 Share Posted November 1, 2011 hi I have a problem with my code. Actually i want to make a dynamic page. for that i have a database from where i get data. I getting data dynamically at homepage & make a hyperlink there with html code. But in actual inner pages are not exists. I made a file there which is getting dynamic data also. All comparing data is put in redirect.html on server & also include that specific file as well................Main Problem is that i do not know from where to call redirect.php....because when a link is clicked server open that page & we redirect control to redirec.php....... Is there any possible solutions Quote Link to comment https://forums.phpfreaks.com/topic/250223-how-we-call-a-file-in-php/ Share on other sites More sharing options...
trq Posted November 1, 2011 Share Posted November 1, 2011 Your post makes little sense. Can we see some relevant code? Quote Link to comment https://forums.phpfreaks.com/topic/250223-how-we-call-a-file-in-php/#findComment-1283905 Share on other sites More sharing options...
beven Posted November 1, 2011 Author Share Posted November 1, 2011 it is simple I want to call a page from server without using href tag of html. Send a dummy links & want to open a specific file Quote Link to comment https://forums.phpfreaks.com/topic/250223-how-we-call-a-file-in-php/#findComment-1283907 Share on other sites More sharing options...
trq Posted November 1, 2011 Share Posted November 1, 2011 Maybe your looking for include, but that's the last guess I'm going to make. Quote Link to comment https://forums.phpfreaks.com/topic/250223-how-we-call-a-file-in-php/#findComment-1283909 Share on other sites More sharing options...
beven Posted November 1, 2011 Author Share Posted November 1, 2011 <a href="yourdomain.com"><?php "script getting data from database"?></a> when we click this links there is no page on the server to open.... suppose link becomes like Dewali I have a dummy page from that page i get data related to Dewali in tables....................I did all comparison & save that file with redirect.php................but when we click the link....server have nt know about how get redirect file because i have not use it in index.php This is i am asking from which place to call that redirect.php or there is any other method of calling it Quote Link to comment https://forums.phpfreaks.com/topic/250223-how-we-call-a-file-in-php/#findComment-1283911 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.