FileFront Gaming Forums

A noob's php link question

This is a discussion on A noob's php link question within the Web-Code Help and Discussion forums, part of the Tech Discussion category; I'm currently trying to post a link as part of a newspost on a site (can't link to it here ...

Web-Code Help and Discussion Forum for questions relating to web-based scripting languages and website design.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1  
Old October 13th, 2009
MrFancypants's Avatar
The Bad
FileFront Forum Administrator
 
Join Date: December 7th, 2003
Location: Germany
Posts: 10,964
Rep Power: 50
MrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the Admins
Default A noob's php link question

I'm currently trying to post a link as part of a newspost on a site (can't link to it here as it is work related). The box for newsposts allows html code, but whenever I try to put in a link to another part of the site the code shows up in the page without being converted. I suspect this has something to do with Php which I don't really know much about.

The link I'm trying to put in looks like this: www.abc.de/index.php/location
If I use this with the normal html command <a href=""></a> nothing happens.
If I use www.abc.de/location as address the link is properly converted but doesn't work. Help please?
__________________
Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. - H.G.Wells
Reply With Quote
  #2  
Old 4 Weeks Ago
Yannick's Avatar
A psychedelic experience.
 
Join Date: April 16th, 2004
Location: New Zealand
Posts: 7,244
Rep Power: 19
Yannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forums
Send a message via MSN to Yannick
Default Re: A noob's php link question

index.php/location does not exist/is invalid. It's the same as saying C:\Documents\hello.txt\whatever. You're trying to continue a directory from within a file.

Link directly to the page you are trying to post.
__________________

Last edited by Yannick; 4 Weeks Ago at 02:25 PM..
Reply With Quote
  #3  
Old 4 Weeks Ago
MrFancypants's Avatar
The Bad
FileFront Forum Administrator
 
Join Date: December 7th, 2003
Location: Germany
Posts: 10,964
Rep Power: 50
MrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the Admins
Default Re: A noob's php link question

I'd like to, the problem is that the URL of that location is diplayed to me as index.php/location/. When entering this URL in my browser it actually shows me the right page, but I cannot enter the URL into a link.
__________________
Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. - H.G.Wells
Reply With Quote
  #4  
Old 4 Weeks Ago
Cheese!'s Avatar
GF is my bext friend *hugs GF*
 
Join Date: August 7th, 2007
Location: Kingdom of Boredom
Posts: 826
Rep Power: 6
Cheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as Revenge
Send a message via MSN to Cheese! Send a message via Yahoo to Cheese!
Default Re: A noob's php link question

Try not having the last slash at the end. Also, you're doing this?

<a href="somesite.com/index.php/location">linkzorsz</a>
__________________
Chopped demise differently apologized
Reply With Quote
  #5  
Old 4 Weeks Ago
goody10's Avatar
Network Staff Manager
We took the "u" out of Color
 
Join Date: July 25th, 2005
Location: yorkshire, England
Posts: 4,547
Rep Power: 13
goody10 has many friends around these partsgoody10 has many friends around these partsgoody10 has many friends around these partsgoody10 has many friends around these partsgoody10 has many friends around these partsgoody10 has many friends around these partsgoody10 has many friends around these parts
Send a message via MSN to goody10
Default Re: A noob's php link question

Some site prefer it that way instead of the href and some only work with the " and some without.
HTML Code:
[url="link in here"]link title here[/url]
__________________



Last edited by goody10; 4 Weeks Ago at 01:40 PM..
Reply With Quote
  #6  
Old 4 Weeks Ago
Graeme's Avatar
Your Commodore
FileFront's Local Paladin
 
Join Date: August 13th, 2008
Location: Çírçlè öf Màgï
Posts: 2,504
Rep Power: 7
Graeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GF
Default Re: A noob's php link question

That is BBCode and HTML. I assume you want to use hyperlink in PHP? If so, either use the echo function or print.
PHP Code:
<?php print( '<a href="http://www.abc.de/index.php/location">Whatever text you want</a>' ); ?>
Reply With Quote
  #7  
Old 4 Weeks Ago
Cheese!'s Avatar
GF is my bext friend *hugs GF*
 
Join Date: August 7th, 2007
Location: Kingdom of Boredom
Posts: 826
Rep Power: 6
Cheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as RevengeCheese! is almost as leet as Revenge
Send a message via MSN to Cheese! Send a message via Yahoo to Cheese!
Default Re: A noob's php link question

I don't think he would want to link in PHP. Hence:

Quote:
I suspect this has something to do with Php which I don't really know much about.
It sounds more like the CMS is not liking it. You could also try linking to just the "index.php/location", that is if your news post is in the same directory (it should be).
__________________
Chopped demise differently apologized
Reply With Quote
  #8  
Old 4 Weeks Ago
Graeme's Avatar
Your Commodore
FileFront's Local Paladin
 
Join Date: August 13th, 2008
Location: Çírçlè öf Màgï
Posts: 2,504
Rep Power: 7
Graeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GFGraeme is addicted to GF
Default Re: A noob's php link question

Quote:
Originally Posted by thecheeseman View Post
I don't think he would want to link in PHP.
In some cases, HTML linking within a PHP template causes problems like these; not being able to parse, or convert properly.
Reply With Quote
  #9  
Old 4 Weeks Ago
Yannick's Avatar
A psychedelic experience.
 
Join Date: April 16th, 2004
Location: New Zealand
Posts: 7,244
Rep Power: 19
Yannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forumsYannick mourns the day Revenge left the forums
Send a message via MSN to Yannick
Default Re: A noob's php link question

He said the box he's trying to link through supports html; there's no guarantee it has php running on it.

I've still never seen this .php/x thing either. If it's querying something within the php page then it should have a question mark at least.
__________________
Reply With Quote
  #10  
Old 4 Weeks Ago
MrFancypants's Avatar
The Bad
FileFront Forum Administrator
 
Join Date: December 7th, 2003
Location: Germany
Posts: 10,964
Rep Power: 50
MrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the AdminsMrFancypants has been noticed by the Admins
Default Re: A noob's php link question

Thanks for all the input, I tried the other suggestions but it didn't work. I think the page just isn't set up properly.

When inputting a link to box for adding content the link isn't properly converted, it always inserts something (www.nameofsite.de/index.php/content) in front of the address that is used in the html tags. Maybe the box wasn't intended to support html after all.
__________________
Yet across the gulf of space, minds that are to our minds as ours are to those of the beasts that perish, intellects vast and cool and unsympathetic, regarded this earth with envious eyes, and slowly and surely drew their plans against us. - H.G.Wells
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7.