Re: Apply the hyper link ( javascript functon ) with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, October 10, 2006 7:57 am, edwardspl@xxxxxxxxxx wrote:
> php web page ( test.php ) :
>
> <script language="javascript" type="text/javascript">
> <!--
> function popup(page)
> {
> window.open(page,title, "height=100,width=100");
> }
> // -->
> </script>
>
> <a href="javascript:popup('./<?php echo $dir?>/index.htm')"> Test </a>
>
> Result : "homepage error"
>
> Web Server error log :
>
> [Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does
> not
> exist: /home/web/index.htm
> [Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does
> not
> exist: /home/web/test2004.htm
> [Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does
> not
> exist: /home/web/readme.htm
>
> Please help, thanks !

So, after you take out the $dir and there is NO PHP in it, the problem
clearly has nothing to do with PHP.

It has everything to do with you don't know what the URL is to get to
the page you want.

Can you surf directly to the index.htm or readme.htm page?

If so, copy/paste the URL, with the http:// and everything, into your
HTML.  That will work.

You can then experiment with stripping out parts of the URL, to see
what else *might* work.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux