UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
December
Su M Tu W Th F Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Our Sponsors


Latest Postings
My friend NEEDS your HELP!
by Gizmo
11/26/08 12:21 AM
Useful PHP Functions & Code
by Gizmo
11/13/08 09:25 PM
UBBCode Tags
by Gizmo
11/13/08 09:25 PM
Topic Options
Rate This Topic
#18794 - 04/15/04 03:05 AM links go to server
Gollum Offline
Member

Registered: 06/05/02
Posts: 207
Loc: US
ok, so inside a perl script of mine, i take user input. this COULD be a link. now my code does a few of find/replace iterations to replace quotes with &quot however, i don't wanna do this in a link (right?) so i've decided to reaplce them with single quotes....for nwo anyway. basically my problem is this. when i click on a link on one of the pages. say "www.slashdot.org" it'd do like "http://www.mysite.com/'www.slashdot.org'" and of course come up with a page doesn't exist error. i'm still doing some testing. and it seems that sometimes when i type th http in front it works...but then sometimes it doesn't. but get this. when i view source. the url is always what i type in. so i think it must be apache that's doing it. but i don't remember it doing it before. so could this also be related to perl? so yeah...for some reason, 90% of the time, it tries finding everything locally. now it doens't happen all the time, i just need to figure out what i'm doing differently. but has anyone else run into this problem?
btw, while i'm posting, thanks for the reply on the hash of arrays, helped out quite a bit in the end.//
_________________________
Unbodied unsouled unheard unseen
Let the gift be grown in the time to call our own
Truth is natural like a wind that blows
Follow the direction no matter where it goes
Let the truth blow like a hurricane through me

Top
Our Sponsors
Sponsor Our Sponsors

Sponsor Advertisements help keep UGN Security Online.



Support UGN Security by Purchasing our Sponsors Products.
Top  
#18795 - 04/19/04 04:41 PM Re: links go to server
Brett Offline
Aptenodytes Forsteri

Registered: 08/25/03
Posts: 9
Loc: Salina, KS
I think i know what your talking about here.
Code:
$url = 'http://' . $url if(substr($url, 0, 7) ne 'http://');
?

Top



Moderator:  §intå×, Gizmo 
Featured Member
Registered: 02/11/08
Posts: 16
Forum Stats
6890 Members
44 Forums
11065 Topics
45844 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6958
UGN Security 4115
§intå× 3252
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
lucky vin, prEttyNDistress, AndrewKlilly, border, f4k3m3
6889 Registered Users
Who's Online
1 registered (Gizmo), 13 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Sept 26, 2008
by Gizmo
11/28/08 03:39 AM
Happy Holidays!
by Gizmo
11/27/08 09:09 AM
New Mailing
by Gizmo
11/24/08 01:30 PM
A special update...
by Gizmo
11/24/08 01:10 PM
Required Reading Update...
by Gizmo
11/07/08 11:36 AM


Donate
  Get Firefox!
Get FireFox!