Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
I have included some code but have to do it a little different because if the query construct. but this shows only the 404. is this correct? "Davi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Em Sexta 30 Março 2007 14:01, Dwayne Heronimo escreveu: > w

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
?catcode=blabla "Davi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Em Sexta 30 Março 2007 13:42, Dwayne Heronimo escreveu: > Yes but this file does not exist. It is just to use for my queries. so I > think I cannot use the file_exists function. Which other functi

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
www.arubaguide.org/blabla but not www.arubaguide.org/categories.php?catcode=blabla "Davi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Em Sexta 30 Março 2007 13:17, Dwayne Heronimo escreveu: > where getting there .. now i have this.. but now it will only show the 404 >

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
sel 17.30-kor Dwayne Heronimo ezt írta: >> I tried every thing. But it works in a way. Because if I issue: >> http://arubaguide.org/arubaguide/categories.php?catcode=dghdfg >> >> it will display the 404 page but it all also continue to display the >> rest

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
; return $previewtext; } ?> ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel 15.56-kor Dwayne Heronimo ezt írta: >> When I echo the $pagename it returns the correct string. I also tried to >

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
> other parts might be screwing things up... > > greets > Zoltán Németh > > 2007. 03. 30, péntek keltezéssel 15.36-kor Dwayne Heronimo ezt írta: >> hey zoltan, >> >> I used your code but this still is displaying both the 404 and the normal >> page: >> >

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
hey zoltan, I used your code but this still is displaying both the 404 and the normal page: http://arubaguide.org/arubaguide/categories.php?catcode=activities ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
7;m missing something, but this works: http://arubaguide.org/arubaguide/index.php?page=advertise and if I put in a type such as: http://arubaguide.org/arubaguide/index.php?page=advertisd I get the 404 error page. I think the problem with using $_GET[catcode]??? On 30/03/07, Dwayne Heronimo <[EMA

Re: [PHP] tabbed navegation PHP

2007-03-30 Thread Dwayne Heronimo
you are right.. i still need to learn alot.. ;) this is my first php site. :-( ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel 15.05-kor Dwayne Heronimo ezt írta: >> Dear All, >> >>

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
indeed.. it should be catcode instead of page.:-(. but still its not working :S ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 2007. 03. 30, péntek keltezéssel 14.45-kor Dwayne Heronimo ezt írta: >> Dear All, >>

[PHP] tabbed navegation PHP

2007-03-30 Thread Dwayne Heronimo
Dear All, I have made a tabbed navegation with CSS. And if you set class="active" to one of the tabs, it will then be highlighted. So I thought to make this dymamic with PHP. Using the $_GET variable I can get the page name above with something like. $page_name = $_GET['page'] ; so I can tell th

[PHP] simple page not found 404 script - PHP

2007-03-30 Thread Dwayne Heronimo
Dear All, I have made a simple php script that will show an 404.php error page when an item is removed. You can see the page here: http://arubaguide.org/arubaguide/categories.php?catcode=art But some how this is not working. It is displaying the 404 page and the normal page. is the $pagena

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Dwayne Heronimo
wrote in message news:[EMAIL PROTECTED] > 2007. 03. 23, péntek keltezéssel 16.55-kor Dwayne Heronimo ezt írta: >> Dear all, >> >> hmm.. sorry the $previewstext thing was a typo in my mail. >> >> But yes it is working but it will only display the first record of the >&g

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Dwayne Heronimo
bstr($minitxt,0,$len); $previewtext = $newstring; $previewtext = $whowcatvar; return $previewtext; } ?> And to to show it later in the page: but this still won't anywould display anything. :S Please let me know. ""Tijnema !"" <[EMAIL PROTECTED]> wrote i

[PHP] preview string with strlen PHP (help)

2007-03-23 Thread Dwayne Heronimo
Dear All, I am very new to programming. I want to make a preview text that would display only a part of the text that is a text field in a database. //Begin Make preview string $minitxt = $row_show_cat['text']; $len = strlen($minitxt); if ($len > 235) { $len = 235; } else { $len = $

Re: [PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Dwayne Heronimo
t; http://phpgurru.com | http://shafiq.pk > > On 3/22/07, Tijnema ! <[EMAIL PROTECTED]> wrote: >> >> On 3/22/07, Dwayne Heronimo <[EMAIL PROTECTED]> wrote: >> > Dear All, >> > >> > I would like to make a script to upload a jpg filewith php to a

[PHP] image uploading/resizing best practices in PHP

2007-03-22 Thread Dwayne Heronimo
Dear All, I would like to make a script to upload a jpg filewith php to a server; then make a thumb; save if for later use. And store the path to the image in a database to display it later. But what is the best practice to do this on a relatively low traffic website? I dont know where to begi