Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 read values from url www.l.com/3@4.png
Index -> Programming, PHP -> PHP Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
md




PostPosted: Thu Mar 22, 2007 5:32 pm   Post subject: Re: read values from url www.l.com/3@4.png

octopi @ 2007-03-22, 8:21 am wrote:
You need to use mod_rewrite to convert that wild url you want to use, into one your web server will understand.
Thats about all I can say.

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

Theres stuff on the internet, but your gonna have to find/figure this one out yourself.


mod_rewrite is an apache mod. Many people now use better web servers instead of apache, like lighttpd. Saying you need to use mod_rewrite is therefor completely false, as it's not even an option with some servers (though they offer similar functionality). Wink
Sponsor
Sponsor
Sponsor
sponsor
abcdefghijklmnopqrstuvwxy




PostPosted: Fri Mar 23, 2007 1:10 am   Post subject: RE:read values from url www.l.com/3@4.png

Also didn't I prove I didn't NEED to use mod_rewrite?
md




PostPosted: Fri Mar 23, 2007 2:06 pm   Post subject: RE:read values from url www.l.com/3@4.png

Look at $_SERVER! It contains a whole lot of very useful info, like hte name of the page requested.

Also, many forums strip out any parameters passed to supposed images as a security feature. Compsci.ca additionally filters out .php as it's usually not an image, and using img tags pointing at php scripts with parameters can be a nifty way of causing trouble.
abcdefghijklmnopqrstuvwxy




PostPosted: Fri Mar 23, 2007 2:53 pm   Post subject: RE:read values from url www.l.com/3@4.png

Quote:

Look at $_SERVER! It contains a whole lot of very useful info, like hte name of the page requested.


huh??
rdrake




PostPosted: Fri Mar 23, 2007 3:58 pm   Post subject: Re: RE:read values from url www.l.com/3@4.png

abcdefghijklmnopqrstuvwxy @ Fri Mar 23, 2007 2:53 pm wrote:
Quote:

Look at $_SERVER! It contains a whole lot of very useful info, like hte name of the page requested.


huh??
I do believe he's talking about this.
octopi




PostPosted: Fri Mar 23, 2007 4:35 pm   Post subject: Re: read values from url www.l.com/3@4.png

The OP already said he figured it all out.

Quote:
Basically I added a directive to send any 404s to a php script. That php script parses it and if it meets the criteria it'll display the signature. ...
Since I figured out a way first I don't have to marry anyone, however!
abcdefghijklmnopqrstuvwxy




PostPosted: Fri Mar 23, 2007 4:59 pm   Post subject: RE:read values from url www.l.com/3@4.png

Exactly, but thanks anyway md...
ideas101




PostPosted: Thu Jan 14, 2010 2:41 am   Post subject: Re: read values from url www.l.com/3@4.png

Great post!!! looking forward on sharing my expertise and learning new ideas here at the same time..i'll see you around guys...Make it a GREAT DAY!!!
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 23 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: