Hi ya scripting wizzards, Im wanting to set up a searchable (location, name) movie webpage for my mobile website using data from my phpwebsite databases.<br /><br />Can anyone give me some direction about writing such html/php/tpl files that I may need to do so? I think I would need an index.php, search.tpl and results.tpl or the like to do so.<br /><br />Any hints would be fantastic.<br /><br />Wayne <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/rolleyes.gif" style="vertical-align:middle" emoid="" border="0" alt="rolleyes.gif" /><!--content-->
Wayne, that's a bit vague.<br /><br />I'd say that you need at least those files, perhaps also a search.php, if the search code is complex and you want to keep it separated from the index.php code.<!--content-->
<!--QuoteBegin-TCH-Raul+Dec 14 2004, 07:46 AM--><div class='quotetop'>QUOTE(TCH-Raul @ Dec 14 2004, 07:46 AM)</div><div class='quotemain'><!--QuoteEBegin-->Wayne, that's a bit vague.<br /><br />I'd say that you need at least those files, perhaps also a search.php, if the search code is complex and you want to keep it separated from the index.php code.<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=103472"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Raul, thanx for the reply. Vague it was. Being my lack of knowledge of php.<br /><br />Here's an explanation of where I'm at now...I'm running phpwebsite 09320 and have pulled a branch off the main website (a mirror website that can be changed but still interacts with the db). I created a void.tpl in boxstyles directory (made it an empty file) so make a box not show. I selected void.tpl for a boxstyle in Cp Layout Admin.?br />?br />The box concerned doesnt show as required but I get the following error.?br />?br />"Warning: fread(): Length parameter must be greater than 0. in /home/tototon/public_html/phpwebsite/lib/pear/HTML/Template/IT.php on line 948"?br />?br />Is there something I need to do to avoid this error? Is there another way to not show the content of a box other than a blank tpl file??br /><br />Wayne <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tchrocks!.gif" style="vertical-align:middle" emoid=":tchrocks!:" border="0" alt="tchrocks!.gif" /> <br /><br />PS, cool new look the the board here. I like it. Well done TCH poeple.<!--content-->
Wayne, that error means the fread() function is being called somewhere with it's second parameter as 0, which is no good.<br /><br />I never used phpwebsite, so I really don't know where to start but maybe someone else here on the forums can help you... <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /><br /><br />Humm... this is just a wild guess but it just occured to me: check that none of the template files you're using are empty or missing. I'm saying this because the error is occurring in a PEAR file from the Template package and since the error is because the length parameter being passed to fread() is 0, then perhaps the PEAR template class is trying to load a non-existant template or a template file that is empty...<!--content-->
Raul, thanx for your reply.<br /><br />Sorry for being vague.<br /><br />What Im thinking now is to set up a separate database and file system independant of phpws and then pull that into a phpws block.<br /><br />So I want to search the www for such a script that will give me a db install and tmeplate system that will allow users to see whats on at each theater, and see where each movie is showing.<br /><br />What would I search for? I have done searches on "movie" etc but just get movie dbs like imdb.com.<br /><br />Any help would be appreciated.<br /><br />Wayne <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/eek.gif" style="vertical-align:middle" emoid="" border="0" alt="eek.gif" /><!--content-->
I'm not sure what you want the script to do but on the other hand I don't know of any scripts that do anything similar to what you described, so I can only suggest you search: "<a href="http://www.google.com/search?q=movie+theater+script+php" target="_blank">movie theatre script php</a>" are probably better keywords than just "movie" <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Thanx Raul,<br /><br />Ive found a php listing script that Im playing with.<br /><br /><br />Will report back when/if things work.<br /><br />Wayne<!--content-->
Great! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> <br /><br />Hope it fits your needs <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br />Let me know how it goes <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /><!--content-->
Wayne, that's a bit vague.<br /><br />I'd say that you need at least those files, perhaps also a search.php, if the search code is complex and you want to keep it separated from the index.php code.<!--content-->
<!--QuoteBegin-TCH-Raul+Dec 14 2004, 07:46 AM--><div class='quotetop'>QUOTE(TCH-Raul @ Dec 14 2004, 07:46 AM)</div><div class='quotemain'><!--QuoteEBegin-->Wayne, that's a bit vague.<br /><br />I'd say that you need at least those files, perhaps also a search.php, if the search code is complex and you want to keep it separated from the index.php code.<br /><div align="right"><a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=103472"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Raul, thanx for the reply. Vague it was. Being my lack of knowledge of php.<br /><br />Here's an explanation of where I'm at now...I'm running phpwebsite 09320 and have pulled a branch off the main website (a mirror website that can be changed but still interacts with the db). I created a void.tpl in boxstyles directory (made it an empty file) so make a box not show. I selected void.tpl for a boxstyle in Cp Layout Admin.?br />?br />The box concerned doesnt show as required but I get the following error.?br />?br />"Warning: fread(): Length parameter must be greater than 0. in /home/tototon/public_html/phpwebsite/lib/pear/HTML/Template/IT.php on line 948"?br />?br />Is there something I need to do to avoid this error? Is there another way to not show the content of a box other than a blank tpl file??br /><br />Wayne <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/tchrocks!.gif" style="vertical-align:middle" emoid=":tchrocks!:" border="0" alt="tchrocks!.gif" /> <br /><br />PS, cool new look the the board here. I like it. Well done TCH poeple.<!--content-->
Wayne, that error means the fread() function is being called somewhere with it's second parameter as 0, which is no good.<br /><br />I never used phpwebsite, so I really don't know where to start but maybe someone else here on the forums can help you... <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /><br /><br />Humm... this is just a wild guess but it just occured to me: check that none of the template files you're using are empty or missing. I'm saying this because the error is occurring in a PEAR file from the Template package and since the error is because the length parameter being passed to fread() is 0, then perhaps the PEAR template class is trying to load a non-existant template or a template file that is empty...<!--content-->
Raul, thanx for your reply.<br /><br />Sorry for being vague.<br /><br />What Im thinking now is to set up a separate database and file system independant of phpws and then pull that into a phpws block.<br /><br />So I want to search the www for such a script that will give me a db install and tmeplate system that will allow users to see whats on at each theater, and see where each movie is showing.<br /><br />What would I search for? I have done searches on "movie" etc but just get movie dbs like imdb.com.<br /><br />Any help would be appreciated.<br /><br />Wayne <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/eek.gif" style="vertical-align:middle" emoid="" border="0" alt="eek.gif" /><!--content-->
I'm not sure what you want the script to do but on the other hand I don't know of any scripts that do anything similar to what you described, so I can only suggest you search: "<a href="http://www.google.com/search?q=movie+theater+script+php" target="_blank">movie theatre script php</a>" are probably better keywords than just "movie" <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Thanx Raul,<br /><br />Ive found a php listing script that Im playing with.<br /><br /><br />Will report back when/if things work.<br /><br />Wayne<!--content-->
Great! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /> <br /><br />Hope it fits your needs <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br />Let me know how it goes <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /><!--content-->