Welcome Guest, Not a member yet? Register   Sign In
URL help
#1

[eluser]DanielJay[/eluser]
I am working on creating an application that allows me to store my bookmarks in a database instead of in firefox as I use multiple computers. I have seen how the del.icio.us bookmark code works by making the bookmark url javascript as shown below:
Code:
[removed]location.href='http://del.icio.us/post?v=4;url='+encodeURIComponent(location.href)+';title='+encodeURIComponent(document.title)
so my bookmark url is:
Code:
[removed]location.href='http://[mydomain]/Portal/bookmark/addbookmark/'+encodeURIComponent(location.href)+'/'+encodeURIComponent(document.title)


However when I do make my link point to: http://[mydomain]/Portal/bookmarks/addbookmark/http://www.google.com/ I cannot pass this and it produces an apache 404. Portal is the root of CodeIgniter with my index.php, bookmarks is the controller and addbookmark is a function in the bookmarks controller.

If I create a really basic php page with the following and save this outside of my Portal directory. Then modify the bookmark url to http://[mydomain]/addbookmark.php?url=http://www.google.com/ everything works fine.
Code:
<?php
foreach($_GET as $key=>$value) {
echo $key.' = '.$value.'<br />';
}
?&gt;

I have even removed my .htaccess file trying to figure this out and it still produces an apache 404 when going to http://[mydomain]/Portal/bookmarks/addbookmark/http&#x3A;&#x2F;&#x2F;www.google.com&#x2F; .

Any suggestions?


Messages In This Thread
URL help - by El Forum - 01-02-2008, 01:23 PM
URL help - by El Forum - 01-02-2008, 01:51 PM
URL help - by El Forum - 01-07-2008, 09:21 AM
URL help - by El Forum - 01-07-2008, 02:13 PM
URL help - by El Forum - 02-13-2008, 07:24 PM
URL help - by El Forum - 06-03-2008, 07:18 AM
URL help - by El Forum - 06-03-2008, 08:31 AM
URL help - by El Forum - 06-03-2008, 08:42 AM
URL help - by El Forum - 06-03-2008, 09:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB