Jump to content


Photo

Shrink don't shrink?


  • Please log in to reply
2 replies to this topic

#1 RunePlanet

RunePlanet

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 21 January 2013 - 08:16 AM

http://rune-planet.com/Shortener/

When i try to shrink a link it just says shrinking and don't actually shrink it?

Whats the cause to this?

Anyone have any idea

thanks

Ps: this is an Adf.ly Clone , all i done was modify style

#2 Jessica

Jessica

    This is not my name.

  • Gurus
  • 8,982 posts
  • LocationDallas, TX
  • Age:26

Posted 21 January 2013 - 08:33 AM

:psychic:
My goal in replying to posts is to help you become a better programmer, including learning how to debug your own code and research problems. For that reason, rather than posting the solution, I reply with tips and hints on how to find the solution yourself. See below for useful links when you get stuck.

How to Get Good Help: How to Ask Questions | Don't be a help vampire
Debugging Your Code: Debugging your SQL | What does a php function do? | What does a term mean? | Don't see any errors?
Things You Should Do: Normalize Your Data | use print_r() or var_dump()
Lulz: "Functions should not have side effects." - trq

Please take a look at my new PHP/Web Dev blog: The Web Mason - Thanks!!

#3 Christian F.

Christian F.

    Advanced Member

  • Staff Alumni
  • 3,106 posts
  • LocationNorway

Posted 21 January 2013 - 08:35 AM

Yes, I do have an idea.

What I did was to simply open the page in my browser (Opera), open up the development tools (Dragonfly), and then click on the "Network" tab. Once I reloaded the page, I tested submitting an URL for shrinking, and this was the HTTP response I got from the server:
HTTP/1.1 403 Forbidden
Date: Mon, 21 Jan 2013 13:34:23 GMT
Server: Apache
Content-Length: 339
Keep-Alive: timeout=5, max=75
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /Shortener/ajax.php
on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

Basic debugging, in other words. Now that I've told you how to do this, I'm sure you can do it on your own the next time. Right? ;)

PS: Also, I recommend seeing the "How to ask questions" link in Jessica's signature above.

Edited by Christian F., 21 January 2013 - 08:36 AM.

Keeping it simple.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com