2007. 03. 30, péntek keltezéssel 19.01-kor Dwayne Heronimo ezt írta:
> wierd.. your code is behaving exactly the same as mine did.
> it will display the error and the page.. but both at the same time :S
>
> it is working but somehow it continues to execute.
>
> http://arubaguide.org/arubaguide/ca
On Fri, March 30, 2007 8:18 am, Zoltán Németh wrote:
> actually I don't know what the problem is, but I would do it in a much
> shorter way:
>
> $pagename = $_GET['catcode'];
> if(file_exists("$pagename")) {
> include "$pagename";
> } else {
> include "404.php";
> }
You really ought to be filter
My mistake:
Try
$found_catcode=$row_show_cat['catcode'];
--
Davi Vidal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
Agora com fortune:
"Thus mathematics may be defined as the subject in which we never know
what we are talking about, nor whether what we are saying is true.
-- Bertran
Em Sexta 30 Março 2007 14:35, Dwayne Heronimo escreveu:
> 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?
>
> if (!function_exists("GetSQLValueString")) {
> function GetSQLValueString($theValue, $theType
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:
> wierd.. your code is behavi
Em Sexta 30 Março 2007 14:01, Dwayne Heronimo escreveu:
> wierd.. your code is behaving exactly the same as mine did.
> it will display the error and the page.. but both at the same time :S
>
> it is working but somehow it continues to execute.
>
> http://arubaguide.org/arubaguide/categories.php?ca
wierd.. your code is behaving exactly the same as mine did.
it will display the error and the page.. but both at the same time :S
it is working but somehow it continues to execute.
http://arubaguide.org/arubaguide/categories.php?catcode=art
http://arubaguide.org/arubaguide/categories.php?catcode
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 function I would
> use to do this?
> I already have setup the .htaccess file to point also to a 404 page. but
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 function I would
use to do this?
I already have setup the .htaccess file to point also to a 404 page. but
this works only if the URL is totally wrong. like www.arubag
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
> page. I think somehow that the firstpart is not working? the include part?
> http://arubaguide.org/arubaguide/categories.php?catcode=activities
>
>
>
>
>
> $cat_i
where getting there .. now i have this.. but now it will only show the 404
page. I think somehow that the firstpart is not working? the include part?
http://arubaguide.org/arubaguide/categories.php?catcode=activities
wrote in message
news:[EMAIL PROTECTED]
> 2007. 03. 30, péntek keltezéssel
2007. 03. 30, péntek keltezéssel 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.
>
> And if you iss
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.
And if you issue:
http://arubaguide.org/arubaguide/categories.php?catcode=activities
It will di
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
> rename the $pagename to something I am sure that wouldn't come up in other
> scripts.
> One thing that is coming up in other scripts is the $_GET['catc
When I echo the $pagename it returns the correct string. I also tried to
rename the $pagename to something I am sure that wouldn't come up in other
scripts.
One thing that is coming up in other scripts is the $_GET['catcode'] because
I am using queries with this to show the categories.
wierd i
well, I don't know what may be wrong...
try echoing out $pagename
and is your script only this? or are there other parts? if so, those
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 you
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 keltezéssel 15.10-kor Dwayne
yes the index.php?page=gsfgsfg is working fine. But is it only when you
want to use the categories.php?catcode=asdfad
It is now displaying both the 404 and the normal page.
""Tom Chubb"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I think I'm missing something, but this works
well, then it's pretty sure that you have mixed up the two variable
names somewhere... decide which one you want to use for this and make
sure you always use that one in your script
greets
Zoltán Németh
2007. 03. 30, péntek keltezéssel 14.20-kor Tom Chubb ezt írta:
> I think I'm missing something
I think I'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 He
2007. 03. 30, péntek keltezéssel 15.10-kor Dwayne Heronimo ezt írta:
> indeed.. it should be catcode instead of page.:-(. but still its not working
> :S
>
>
>
>
> /* function to get an external file into a vatiable */
> function get_include_contents($filename) {
>if (is_file($filename)) {
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,
>>
>> I have made a simple php script that will
2007. 03. 30, péntek keltezéssel 14.45-kor Dwayne Heronimo ezt írta:
> 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
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
24 matches
Mail list logo