The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 3 of 3

Thread: Getting an image name

  1. #1

    Getting an image name


    I am using PHP to call an image from a directory. The image source is a url, something like

    showimage.php?pid=15&phototype=image/jpeg&photorealname=test&test[1] (4).jpg

    However, when this image is called it cannot read the & and Im not even sure yet if it can read the [] or (). I tried using addcslashes and replacing certain things with its html code but it still did not work.

    Any ideas?

    The showimage.php page just has a header with the image file type and then I use readfile

  2. #2
    Registered User
    what are you doing? pid=15 is a reference to the photo ID? and its in a database?
    if so photoID row in database should have either a URL or a blob to that is the real Image. as well as info on the image headers....

    I dont understand why you would need more than pid=15 I guess

  3. #3
    I figured out what to do, thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012