Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6841271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:56:45+00:00 2026-05-26T23:56:45+00:00

I am rewriting my website, changing it over from ColdFusion to PHP. While I

  • 0

I am rewriting my website, changing it over from ColdFusion to PHP. While I am making the changes and testing I am using a subfolder under my son’s domain name. I have encountered a problem that I have seen before, but I have been able to fix it before by putting a couple of .. or / in front of the path.

While testing I have discovered that some of these paths work and some don’t; it seems a bit random. So, it makes it a little difficult to test and in fact on one of the pages I’m working on I cannot get the path to work at all unless I put the complete path. However, that would defeat the purpose of using databases.

(And yes, the PHP variable is working.)

Does anyone know of a sure fix?

<img src="..$ArtFilePath" title="$Title" alt="$Title"> 

<img src="/$ArtFilePath" title="$Title" alt="$Title">

<img src="/PHP2012/$ArtFilePath" title="$Title" alt="$Title">

<img src="http://markdinwiddie.com/PHP2012/artwork/Drawings/Boy.jpg" title="$Title" alt="$Title">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:56:46+00:00Added an answer on May 26, 2026 at 11:56 pm

    I am not quite sure what you want, but you can have something like:

    <img scr="http://markdinwiddie.com/PHP2012/<?php echo $variable; ?>/<?php echo $anothervariable; ?>/" title="<?php echo $Title; ?>" alt="<?php echo $Title; ?>">
    

    That would have the ‘http://markdinwiddie.com/PHP2012/’ part of the URL already in place and you can then use variables from your database to fill the other sections of the link. (With $variable being one section of the URL and and $anothervariable being the second part of the URL.

    This would echo: (provided $variable=hi123, $anothervariable=two2, and $title=tilt)

    <img scr="http://markdinwiddie.com/PHP2012/hi123/two2/" title="tilt" alt="tilt">
    

    Hope that answers your question (or at least helps).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using http://urlrewriter.net/ to rewrite urls at my website. For example, I'm rewriting: http://www.example.com/schedule.aspx?state=ca
I used to have PHP websites and using url rewriting on picture to have
I'm rewriting a PHP+MySQL site that averages 40-50 hits a day using Django. Is
My organization is rewriting our database-driven website from scratch including a brand new database
I'm using URL Rewriting under ASP.NET 4 (using ISAPI_Rewrite) and I'm finding that that
I'm trying to setup a PHP website in IIS 7.0 with URL rewriting enabled
I just tried to download the URL rewriting module from urlrewriter.net but the website
In my website, website.com/downloads actually goes to website.com/index.php?page=downloads (with apache rewriting). I have a
I'm developping a website using php and the template.inc class. The problem is that
I am using IIS7 URL rewriting with my website which is written in ASP.NET.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.