Forum Moderators: coopster

Message Too Old, No Replies

PHP jump script and Wordpress

A little help please?

         

m2c1r

11:22 pm on Jun 4, 2007 (gmt 0)

10+ Year Member



I created a very simple jump script, and then edited a page on my blog so the links use the jump script links. I followed a template, and triple checked all the code, so I am sure that part is right. My question is, where do I put the actual .php file so the links in the jump script actually pick up the code and go where they are supposed to go?

I tried a variety of folders (public_html, themes folder, actual theme folder, etc.), but none made the script work. unless I am (quite possibly) missing something else?

Thanks.

phparion

5:01 am on Jun 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



your question is too ambiguous for me at least.

Anyway, the wild guess is if you are using Wordpress blog and trying to put links of a php file in the template files of your current theme then put the php page wherever you want BUT not outside public_html. make a simple script as below

echo realpath("yourphpfile.php");

and put it in the same folder of your php file and browse this page it will show you the exact server location of your php file.. use this URL in your WP template pages to link the php file.

m2c1r

5:51 pm on Jun 5, 2007 (gmt 0)

10+ Year Member



Thanks. The problem was not using an absolute link in the href tag. Doing that made it work.