phi10 Posted July 27, 2007 Share Posted July 27, 2007 I'm currently developing a dynamic image script, and I've run into a little problem. Most forums don't support the handling of images in .php format. I want to try and rewrite the ending product (process.php) to a different file-type, like (process.jpg), so forums can handle the image. I've tried a few different solutions, none working so far. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 27, 2007 Share Posted July 27, 2007 <img src="http://www.yoursite.com/imagescript.php?param1=x¶m2=y"> that should work fine... there are a couple of users on here that have that in their profile bit! Quote Link to comment Share on other sites More sharing options...
phi10 Posted July 27, 2007 Author Share Posted July 27, 2007 But the forum I'm currently using it on isn't displaying the image. http://website.com/process.php?user=username Is basically what it's looking like. But it's not working. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 27, 2007 Share Posted July 27, 2007 maybe they don't allow hotlinking outside the site for images.... Quote Link to comment Share on other sites More sharing options...
phi10 Posted July 27, 2007 Author Share Posted July 27, 2007 They do, other users have hotlinked images. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 27, 2007 Share Posted July 27, 2007 then maybe your server doesn't allow hotlinks - other wise test you script by putting the url directly into the browser and turn error reporting on see what it says... Quote Link to comment Share on other sites More sharing options...
phi10 Posted July 27, 2007 Author Share Posted July 27, 2007 I've figured it out for the most part. I'm using mod rewrite to redirect it to a .jpg page it's it's working fine. I just need a regular expression to match All upper and lowercase letters, numbers and underscores. Quote Link to comment Share on other sites More sharing options...
Crow Posted July 27, 2007 Share Posted July 27, 2007 /[a-zA-Z0-9_]+/ My regex is a little rusty but that should be what you're looking for. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.